调用本接口查询您的私有CA资源绑定的标签。
私有CA资源包括私有根CA、私有子CA和私有证书。您可以调用本接口查询私有根CA、私有子CA或私有证书绑定的标签。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | ListTagsForResources | 要执行的操作,取值:ListTagsForResources。 |
Version | String | 是 | 2025-10-01 | API的版本,取值:2025-10-01。 |
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
ResourceType | String | 是 | root_instance | 要查询的私有CA资源的类型。该参数有以下取值:
|
ResourceIds | Array of String | 是 | pca_root_aXPEF**** | 要查询的资源ID列表。
|
TagFilters | Array of Object | 否 | [ | 标签过滤器,用来找出绑定了指定标签的资源。 |
PageSize | Integer | 否 | 10 | 设置每页包含标签信息的数量。默认值:10。最大值:100。 |
PageNumber | Integer | 否 | 1 | 设置要返回的页码。默认值:1 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
ResourceTags | Array of Object | { "ResourceType": "root_instance", "ResourceId": "pca_root_aXPEF****", "TagKey": "env", "TagValue": "test" } | 资源绑定的标签信息列表。 |
PageNumber | Integer | 1 | 当前页码。 |
PageSize | Integer | 20 | 页面大小。 |
TotalCount | Integer | 50 | 符合条件的标签信息总数。 |
POST /?Action=ListTagsForResources&Version=2025-10-01 HTTP/1.1 Host: pca.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20251016T121137Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251016/cn-beijing/pca/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "ResourceType": "root_instance", "ResourceIds": [ "pca_root_aXPEF****" ], "TagFilters": [ { "Key": "env", "Values": [ "test" ] } ], "PageSize": 10, "PageNumber": 1 }
{ "ResponseMetadata": { "RequestId": "202510162011541390051040326ED188", "Action": "ListTagsForResources", "Version": "2025-10-01", "Service": "pca", "Region": "cn-beijing" }, "Result": { "ResourceTags": [ { "ResourceType": "root_instance", "ResourceId": "pca_root_aXPEF****", "TagKey": "env", "TagValue": "test" } ], "PageNumber": 1, "PageSize": 20, "TotalCount": 50 } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
200 | InternalError | 未知错误。 |
200 | MissingParameter | 缺少必填参数。 |
200 | InvalidParameter | 指定的参数值无效。 |