调用本接口为您的私有CA资源绑定标签。
私有CA资源包括私有根CA、私有子CA和私有证书。您可以调用本接口为私有根CA、私有子CA或私有证书绑定标签。
请求频率:同一个租户每秒最多允许请求20次。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | TagResources | 要执行的操作,取值:TagResources。 |
Version | String | 是 | 2025-10-01 | API的版本,取值:2025-10-01。 |
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
ResourceType | String | 是 | root_instance | 要操作的私有CA资源的类型。该参数有以下取值:
|
ResourceIds | Array of String | 是 | pca_root_aXPEF**** | 要绑定标签的资源ID列表。
|
Tags | Array of Object | 是 | { | 要绑定的标签键值对列表。 |
本接口无特有的返回参数。更多信息请见返回结构。
POST /?Action=TagResources&Version=2025-10-01 HTTP/1.1 Host: pca.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20251016T121801Z 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****" ], "Tags": [ { "Key": "env", "Value": "test" } ] }
{ "ResponseMetadata": { "RequestId": "202510162018211541182162513CA468", "Action": "TagResources", "Version": "2025-10-01", "Service": "pca", "Region": "cn-beijing" }, "Result": {} }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
200 | InvalidParameter | 指定的参数值无效。 |
200 | MissingParameter | 缺少必填参数。 |
200 | InternalError | 未知错误。 |