为资源解除关联标签。
请求频率:每秒最多调用 10 次。
除了以下参数,您还需要 对请求进行鉴权。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | UntagResources | 要执行的操作,取值:UntagResources。 |
Version | String | 是 | 2022-06-01 | API的版本,取值:2022-06-01。 |
TagKeys | Array of String | 是 | ["key1","key2","key3"] | 需要解除关联的标签的键。数组的最大长度为 50。 |
ResourceType | String | 是 | zone | 资源类型。
|
ResourceIds | Array of String | 是 | ["101", "102", "103"] | 资源 ID。数组的最大长度为 50。 |
本接口无特有的返回参数。更多信息请见返回结构。
POST https://private-zone.volcengineapi.com/?Action=UntagResources&Version=2022-06-01 { "ResourceType": "zone", "ResourceIds": [ "101" ], "TagKeys": [ "key1", "key2", "key3" ] }
{ "ResponseMetadata": { "RequestId": "20221214140553EC822FFD341E9C19EF59", "Action": "UntagResources", "Version": "2022-06-01", "Service": "private_zone", "Region": "cn" } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 错误信息 | 说明 |
---|---|---|---|
400 | ErrParamInvalid | validation fail: params:[%s] , value:[%v] | 参数校验失败 |
400 | ErrServiceTagNotSupport | service tag is not support | 服务标签不允许操作 |
400 | ErrResourceNotFound | the specified resource does not exist. | 指定的资源不存在 |
500 | ErrInternalServer | server internal error | 服务内部错误 |