Removes tags from resources.
Operation description
Removing tags from resources helps simplify resource management, optimize system performance, and mitigate potential security vulnerabilities. After a tag is removed from a resource, the system automatically deletes the tag if the tag is not added to other resources.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /v2/openapi/untagresources HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
body | object | No | The request body parameters. | |
ResourceType | string | No | The type of the resource. valid value: instance: instance | instance |
ResourceIds | array | No | The resource IDs, which are instance names. | |
string | No | The resource ID, which is the instance name. | asg-bp1gnlr8vqatuqukwrx1 | |
TagKeys | array | No | The tag keys. | |
string | No | The tag key. | app-fl-test-0 | |
All | boolean | No | Specifies whether to remove all tags from the resources. Default value: false. Valid values:
| false |
Response parameters
Examples
Sample success responses
JSON
format
{
"requestId": "26B43C99-F5C9-5341-B462-37427C5BF201"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history