You need to enable JavaScript to run this app.
智能体身份和权限管理平台

智能体身份和权限管理平台

复制全文
标签管理
TagResources - 创建标签
复制全文
TagResources - 创建标签

为多个资源创建标签

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

TagResources

要执行的操作,取值:TagResources。

Version
String

2025-10-30

API的版本,取值:2025-10-30。

ResourceType
String

workloadpool

ResourceType

ResourceIds
Array of String

123456

需要打标签的资源ID或者Name

Tags
Array of Object

[{"Key": "env","Value": "prod"}]

Tags

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

POST /?Action=TagResources&Version=2025-10-30 HTTP/1.1
Host: cis-test.cn-beijing.volcengineapi.com
Content-Type: application/json; charset=UTF-8
X-Date: 20251118T040449Z
X-Content-Sha256: 287e874e******d653b44d21e
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251118/cn-beijing/id/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f

{
  "ResourceType": "workloadpool",
  "ResourceIds": [
    "123456"
  ],
  "Tags": [
    {
      "Key": "app",
      "Value": "test"
    }
  ]
}

返回示例

{
  "ResponseMetadata": {
    "RequestId": "20251118120345218216133134E60D65",
    "Action": "TagResources",
    "Version": "2025-10-30",
    "Service": "id",
    "Region": "cn-beijing"
  },
  "Result": {}
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
MissingParameter.{parameter}

The required parameter %s is missing.

400
InvalidAction

The specified action is invalid.

400
MissingAction

The request is missing an action.

400
InvalidRequest

The request is invalid or malformed.

400
InvalidParameter.{parameter}

The parameter %s is invalid.

401
SignatureNotMatch

The request signature provided is incorrect.

403
AccessDenied

You are not authorized to perform this action.

403
InvalidAccessKeyId

The access key ID provided is not valid.

404
NotFound

Resource not found: %s.

资源 %s 不存在

409
Duplicated

Resource already exists: %s.

资源 %s 已存在

429
QuotaExceeded

Quota exceeded: %s.

配额 %s 已达上限

429
Throttling

The request is denied due to request throttling.

500
InternalError

Internal server error: %s.

内部服务错误: %s

500
DownstreamServerError

An error has occurred due to an unreachable service.

503
ServiceUnavailable

The request has failed due to a temporary failure of the server.

最近更新时间:2025.12.14 13:43:20
这个页面对您有帮助吗?
有用
有用
无用
无用