Skip to main content

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

NameLocationTypeRequiredSample valueDescription
AllBODYbooleanNofalseWhether 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.NBODYrepeatlistYesi-bp67acfmxazb4ph***resource ID, n values range from 1 to 50.
regionIdBODYstringYesNo sample value for this parameter.region id
TagKey.NBODYrepeatlistNoFinanceDeptthe tag key of the resource. The value range of n is 1~20.
ResourceTypeBODYstringYesinstanceresource 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.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID to which the resource belongs. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}