解绑标签
描述
可以指定 ResourceId 解绑某一个实例、磁盘、快照、镜像、安全组上的 Tag
请求参数
| 名称 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| Action | String | 是 | 操作接口名,RemoveTags |
| RegionId | String | 是 | 资源所属地域 |
| ResourceId | String | 是 | 要解绑 Tag 的资源 ID。 |
| ResourceType | String | 是 | 资源类型:
|
| Tag.n.Key | String | 否 | 标签 key,最长为 64 字符,n 从 1 开始,最大为 5 |
| Tag.n.Value | String | 否 | 标签 value,最长为 128 字符,n 从 1 开始,最大为 5 如果不指定该参数,则解绑指定资源上 Key 为指定的 Tag.n.Key 的 Tag |
返回参数
| 名称 | 类型 | 描述 |
|---|---|---|
| RequestId | String | 请求 ID |
错误类型
| 错误代码 | 描述 | Http状态码 | 语义 |
|---|---|---|---|
| MissingParameter | The input parameter "ResourceId" that is mandatory for processing this request is not supplied. | 400 | ResourceId 参数未指定 |
| InvalidResourceId.NotFound | The specified ResourceId is not found in our records | 404 | 指定的 ResourceId 不存在 |
| MissingParameter | The input parameter "RegionId" that is mandatory for processing this request is not supplied. | 400 | RegionId 参数未指定 |
| InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | 404 | 指定的 RegionId 不存在 |
| InvalidResourceType.NotFound | The ResourceType provided does not exist in our records. | 404 | 指定的 ResourceType 不存在 |
| InvalidTagCount | The specified tags are beyond the permitted range | 400 | 指定的 Tag 数超过了 5 个 |
示例
请求示例
https://ecs.aliyuncs.com/?Action=RemoveTags
&ResourceId=s-946ntx4wr
&ResourceType=snapshot
&RegionId=cn-shenzhen
&Tag.1.Key=test
&Tag.1.Value=api
&<公共请求参数>
返回示例
