Adds tags to AnalyticDB for MySQL clusters.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | TagResources |
The operation that you want to perform. Set this parameter to TagResources. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region. You can call the DescribeRegions operation to query the most recent region list. |
ResourceId.N | RepeatList | Yes | am-bp1gfds6a32s9**** |
The ID of the cluster to which you want to add tags. You can add tags to up to 50 clusters at a time. Note You can call the DescribeDBClusters operation to query the details of all AnalyticDB for MySQL clusters within a specific
region, including cluster IDs.
|
ResourceType | String | Yes | ALIYUN::ADB::CLUSTER |
The type of the cluster. Set the value to ALIYUN::ADB::CLUSTER. |
Tag.N.Key | String | Yes | testkey1 |
The key of the tag that you want to add. You can add multiple tags at a time. You can add up to 20 tags to each cluster. |
Tag.N.Value | String | Yes | testvalue1 |
The tag value that corresponds to the tag key. You can add multiple tags at a time. You can add up to 20 tags to each cluster. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 863D51B7-5321-41D8-A0B6-A088B0450EFD |
The ID of the request. |
Examples
Sample requests
http(s)://adb.aliyuncs.com/?Action=TagResources
&RegionId=cn-hangzhou
&ResourceId.1=am-bp1gfds6a32s9****
&ResourceType=ALIYUN::ADB::CLUSTER
&Tag.1.Value=testkey1
&Tag.1.Key=testvalue1
&<Common request parameters>
Sample success responses
XML
format
<RequestId>863D51B7-5321-41D8-A0B6-A088B0450EFD</RequestId>
JSON
format
{
"RequestId": "863D51B7-5321-41D8-A0B6-A088B0450EFD"
}
Error codes
For a list of error codes, visit the API Error Center.