You need to enable JavaScript to run this app.
文档中心
ArkClaw 企业版

ArkClaw 企业版

复制全文
下载 pdf
Tag
TagResources - 为 ArkClaw 实例添加自定义标签
复制全文
下载 pdf
TagResources - 为 ArkClaw 实例添加自定义标签
为 ArkClaw 实例批量添加自定义标签。​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:TagResources​
要执行的操作,取值:TagResources。​
​
Version string 必选 示例值:2026-05-01​
API的版本,取值:2026-05-01。​
​
ResourceType string 必选 示例值:clawinstance​
资源类型。取值只支持clawinstance,ArkClaw 实例。​
​
SpaceId string 可选 示例值:csi-yehw6ow1kwa5g0****​
ArkClaw 实例所属空间 ID。可以在 ArkClaw 控制台“空间概览”页面的“基本信息”获取。​
​
ResourceIds.N string[] 必选 示例值:ResourceIds.1=ci-yexsihrs3kd****&ResourceIds.2=ci-yexse4err4****​
资源 ID 列表。​
  • 参数 - N:表示资源 ID 的序号,取值范围:1~50。​
  • 多个资源 ID 之间用&分隔。​
  • 传入的无效 ID 将被忽略。​
说明​
查询 ArkClaw 实例ID的方式请参见 ListClawInstances。​
​
Tags object[] 必选 示例值:--​
ArkClaw 实例标签列表。​
Key string 必选 示例值:k1​
标签键。​
​
Value string 可选 示例值:1​
标签值。​
​
Type string 可选 示例值:custom​
标签类型。取值:​
  • custom:自定义标签。​
  • system:系统标签。​
​
​
​
​
返回参数​
本接口无特有的返回参数。更多信息请见返回结构。​
请求示例​
​
POST /?Action=TagResources&Version=2026-05-01&ResourceIds.1=ci-yexsihrs3kd****&ResourceIds.2=ci-yexse4err4**** HTTP/1.1​
Host: arkclaw.cn-beijing.volcengineapi.com​
Content-Type: application/json; charset=UTF-8​
X-Date: 20261022T104241Z​
X-Content-Sha256: 287e874e******d653b44d21e​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20261022/cn-beijing/arkclaw/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
{​
"ResourceType": "clawinstance",​
"SpaceId": "csi-yehw6ow1kwa5g0****",​
"ResourceIds": ["ci-yexsihrs3kd****", "ci-yexse4err4****"],​
"Tags": [​
{​
"Key": "k1",​
"Value": "1",​
"Type": "custom"​
}​
]​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2026102218425203421****",​
"Action": "TagResources",​
"Version": "2026-05-01",​
"Service": "arkclaw",​
"Region": "cn-beijing"​
},​
"Result": {}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
MissingParameter.ResourceType​
The required parameter ResourceType is not supplied.​
参数ResourceType不能为空。​
400​
MissingParameter.ResourceIds​
Resource Ids cannot be empty.​
资源id不能为空。​
400​
MissingParameter.Key​
The required parameter Key is not supplied.​
参数Key不能为空。​
400​
MissingParameter.Tags​
The required parameter Tags is not supplied.​
参数标签数量不能为空。​
​
​
最近更新时间:2026.10.23 10:26:10
这个页面对您有帮助吗?
有用
有用
无用
无用