调用UntagResources接口取消资源的标签。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| RegionId | string | 是 | 地域 ID。 | cn-hangzhou |
| ResourceType | string | 是 | 资源类型,取值固定为 INSTANCE。 | INSTANCE |
| All | boolean | 否 | 是否删除资源的所有标签。 | false |
| ResourceId | array | 是 | 资源 ID。 | |
| string | 是 | |||
| TagKey | array | 否 | 标签的键。 说明
N 表示传入第几个标签的键。例如:* Tag.1.Key 表示传入第一个标签的键。* Tag.2.Key 表示传入第二个标签的键。
| |
| string | 否 |
返回参数
示例
正常返回示例
JSON格式
{
"Success": true,
"RequestId": "DSSDF-SEWE-*****"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 400 | InvalidParameter.tagKey | Check the parameter tagKey %s | - |
| 400 | InvalidParameter.tagValue | Check the parameter tagValue %s | - |
| 400 | InvalidParameter.tags.exceed | Tags num exceed 10 | - |
| 400 | InvalidParameter.tags.notFound | Tags connot be empty | - |
| 400 | InvalidParameter.tags.json.error | Thr parameter tags is not a JsonArray | - |
| 400 | TagService.%s | TagService return errorMsg: %s | - |
| 400 | TagApi.InvalidParameter.resourceId.exceed | ResourceId num exceed 50 | - |
| 500 | InternalError | The request processing has failed due to some unknown error. | 请求失败,内部错误 |
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 |
|---|
暂无变更历史
