UntagResources
Description
call UntagResources unbind tags for the specified ECS resource list. After unbinding, if the tag is not bound to any other resources, it will be automatically deleted.
Request Method
POST
Request Path
/apsara/route/Ecs/UntagResources
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
All | BODY | boolean | No | false | Whether to unbind all tags on the resource. This parameter is valid only when TagKey.N is not set in the request. Value range: true false default value: false. |
ResourceId.N | BODY | repeatlist | Yes | i-bp67acfmxazb4ph*** | resource ID, n values range from 1 to 50. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
TagKey.N | BODY | repeatlist | No | FinanceDept | the tag key of the resource. The value range of n is 1~20. |
ResourceType | BODY | string | Yes | instance | resource type. Value range: instance:ECS instance. disk: disk. snapshot: snapshot. image: mirror. securitygroup: security group. volume: storage volume. eni: ENI. ddh: dedicated host. keypair:SSH key pair. launchtemplate: launch template. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID to which the resource belongs. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}