All Products
Search
Document Center

ApsaraDB RDS:RemoveTagsFromResource

Last Updated:Dec 05, 2024

Removes tags from an instance.

Operation description

Supported database engines

  • MySQL
  • PostgreSQL
  • SQL Server
  • MariaDB

Usage notes

  • A maximum of 10 tags can be removed in a single request.
  • If a tag is removed from all instances to which the tag is added, the tag is automatically deleted.
  • If you specify only TagKey, all tags that match the TagKey condition are removed.
  • You must specify at least TagKey or a pair of TagKey and TagValue.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
rds:RemoveTagsFromResourcedelete
*DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DbInstanceId}
*DatabaseInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#DBInstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ClientTokenstringNo

The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

ETnLKlblzczshOTUbOCzxxxxxxxxxx
proxyIdstringNo

The ID of the proxy mode.

API
RegionIdstringYes

The region ID. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
DBInstanceIdstringYes

The instance ID.

rm-uf6wjk5xxxxxxx
TagsstringNo

A set of a TagKey and a TagValue that you use to unbind the tag. Format: {"key1":"value1"}.

Note You cannot specify an empty string for TagKey. You can specify an empty string for TagValue.
{"key1":"value1"}
Tag.1.keystringNo

The TagKey of the first tag that you want to unbind. Each tag consists of a TagKey and a TagValue. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.

key1
Tag.2.keystringNo

The TagKey of the second tag that you want to unbind. Each tag consists of a TagKey and a TagValue. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.

key2
Tag.3.keystringNo

The TagKey of the third tag that you want to unbind. Each tag consists of a TagKey and a TagValue. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.

key3
Tag.4.keystringNo

The TagKey of the fourth tag that you want to unbind. Each tag consists of a TagKey and a TagValue. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.

key4
Tag.5.keystringNo

The TagKey of the fifth tag that you want to unbind. Each tag consists of a TagKey and a TagValue. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.

key5
Tag.1.valuestringNo

The TagValue of the first tag that you want to unbind. Each tag consists of a TagKey and a TagValue. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.

value1
Tag.2.valuestringNo

The TagValue of the second tag that you want to unbind. Each tag consists of a TagKey and a TagValue. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.

value2
Tag.3.valuestringNo

The TagValue of the third tag that you want to unbind. Each tag consists of a TagKey and a TagValue. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.

value4
Tag.4.valuestringNo

The TagValue of the fourth tag that you want to unbind. Each tag consists of a TagKey and a TagValue. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.

value4
Tag.5.valuestringNo

The TagValue of the fifth tag that you want to unbind. Each tag consists of a TagKey and a TagValue. You can specify up to five tags in a single request. You cannot specify an empty string as the tag key. You can specify an empty string as the tag value.

value5
ResourceGroupIdstringNo

The resource group ID. You can call the ListResourceGroups operation to query the resource group ID.

rg-acfmy*****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

AE00ACCD-1CF9-4920-9BB9-0175EFF43405

Examples

Sample success responses

JSONformat

{
  "RequestId": "AE00ACCD-1CF9-4920-9BB9-0175EFF43405"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-11-12API Description Update. The Error code has changedView Change Details
2023-07-25The request parameters of the API has changedView Change Details