调用UntagResources为指定的ECS资源列表统一解绑标签。解绑后,如果该标签没有绑定其他任何资源,会被自动删除。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ecs:UntagResources |
delete |
DedicatedHost
Disk
NetworkInterface
Image
Instance
KeyPair
ReservedInstance
SecurityGroup
Snapshot
LaunchTemplate
AutoSnapshotPolicy
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
资源所属的地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。 |
cn-hangzhou |
| RegionId |
string |
是 |
资源所属的地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。 |
cn-hangzhou |
| ResourceType |
string |
是 |
资源类型定义。取值范围:
|
instance |
| All |
boolean |
否 |
是否解绑资源上全部的标签。当请求中未设置 TagKey.N 时,该参数才有效。取值范围:
默认值:false |
false |
| ResourceId |
array |
是 |
资源 ID 列表。可输入最多 50 个资源 ID。 |
i-bp67acfmxazb4ph**** |
|
string |
否 |
资源 ID。 |
i-bp67acfmxazb4ph**** |
|
| TagKey |
array |
否 |
资源的标签键列表。可输入最多 20 个标签键。 |
TestKey |
|
string |
否 |
资源的标签键。 |
TestKey |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
C46FF5A8-C5F0-4024-8262-B16B639225A0 |
示例
正常返回示例
JSON格式
{
"RequestId": "C46FF5A8-C5F0-4024-8262-B16B639225A0"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | NumberExceed.ResourceIds | The ResourceIds parameter's number is exceed , Valid : 50 | |
| 400 | NumberExceed.Tags | The Tags parameter's number is exceed , Valid : 20 | |
| 400 | Duplicate.TagKey | The Tag.N.Key contain duplicate key. | 标签中存在重复的键,请保持键的唯一性。 |
| 400 | InvalidTagKey.Malformed | The specified Tag.n.Key is not valid. | 指定的标签键参数有误。 |
| 400 | InvalidTagValue.Malformed | The specified Tag.n.Value is not valid. | 指定的标签值参数有误。 |
| 400 | OperationDenied.QuotaExceed | The quota of tags on resource is beyond permitted range. | |
| 400 | InvalidTag.Mismatch | The specified Tag.n.Key and Tag.n.Value are not match. | 指定的 Tag.N.Key 和 Tag.N.Value 不匹配。 |
| 400 | InvalidTagCount | The specified tags are beyond the permitted range. | 指定的标记超出取值范围。 |
| 400 | Invalid.Scope | The specified scope is invalid. | |
| 403 | PermissionDenied.TagOwnerBid | The specified operator not have permission to set TagOwnerBid value. | |
| 403 | PermissionDenied.TagOwnerUid | The specified operator not have permission to set TagOwnerUid value. | 无权设置标签归属者。 |
| 403 | PermissionDenied.Scope | The specified operator not have permission to set Scope value. | 指定的操作员无权设置范围值。 |
| 403 | InvalidResourceId.NotSupported | The specified ResourceId does not support tagging. | |
| 403 | NoPermissionKey.Scope | %s | |
| 403 | NoPermission.Tag | The operator is not permission for the tag. | 您没有操作该资源标签的权限。 |
| 403 | Param.Conflict | The specified all is true, but the specified TagKey.N is not empty. | |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | 地域信息错误 |
| 404 | MissingParameter.ResourceIds | The parameter - ResourceIds.N should not be null | |
| 404 | MissingParameter.TagOwnerUid | The parameter - TagOwnerUid should not be null | 参数 TagOwnerUid 不能为空。 |
| 404 | MissingParameter.TagOwnerBid | The parameter - TagOwnerBid should not be null | 参数 TagOwnerBid 不能为空。 |
| 404 | MissingParameter.ResourceType | The parameter - ResourceType should not be null | |
| 404 | MissingParameter.Tags | The parameter - Tags should not be null | 参数 Tags 不能为空。 |
| 404 | MissingParameter.RegionId | The parameter - RegionId should not be null | 参数 RegionId 不能为空。 |
| 404 | InvalidResourceId.NotFound | The specified ResourceIds are not found in our records. | 指定的资源不存在,请检查参数 ResourceId 是否正确。 |
| 404 | InvalidResourceType.NotFound | The ResourceType provided does not exist in our records. | 指定的资源类型不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。