Removes tags from one or more instances.
Operation description
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
ResourceType | string | Yes | The type of the resource. Set the value to INSTANCE. | INSTANCE |
All | boolean | No | Specifies whether to delete all tags of the instance. Valid values:
Default value: false. Note
This parameter is valid if parameters that contain TagKey.N are not specified.
| false |
ResourceId | array | Yes | The instance ID. You can remove tags from N instances at a time. Valid values of N: 1 to 50. | |
string | Yes | The instance ID. | rm-uf6wjk5xxxxxxx | |
TagKey | array | No | The list of tag keys. You can delete N tag keys at a time. Valid values of N: 1 to 20. The value of this parameter cannot be an empty string. | |
string | No | The key of the tag. | key1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "601B6F25-21E7-4484-99D5-3EF2625C0088"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NumberExceed.Tags | The number of parameter Tags is exceed, Valid : 20 | - |
400 | NumberExceed.ResourceIds | The number of ResourceIds parameter is exceed , Valid : 50 | - |
400 | InvalidTagValue.Malformed | The Tag.N.Value parameter is blank | The Tag.N.Value is empty. |
400 | MissingParameter | The parameter - ResourceIds.N should not be null | - |
400 | InvalidTagKey.Malformed | The Tag.N.Key parameter is blank | The operation failed. The Tag.N.Key parameter is empty. |
400 | InvalidResourceId.NotFound | ResourceId does not refer to an existing DB instance. | The operation failed. The value of the ResourceId parameter is not the ID of an existing RDS instance. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-09-01 | The Error code has changed | View Change Details |