Creates tags for one or more PolarDB clusters.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | TagResources |
The operation that you want to perform. Set the value to TagResources. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region. |
ResourceId.N | RepeatList | Yes | pc-***************** |
The ID of the PolarDB cluster for which tags are to be created. To create tags for multiple clusters at a time, click the plus sign (+) icon to add cluster IDs. Note You can create tags for a maximum of 50 clusters at a time.
|
ResourceType | String | Yes | cluster |
The type of the resource. Set the value to cluster. |
Tag.N.Key | String | No | type |
The key of the tag. To create multiple tags for a cluster at a time, click Add to add tags. Note You can create up to 20 key-value pairs of tags at a time. Each value of the
Tag.n.Key parameter is paired with a value of the Tag.n.Value parameter.
|
Tag.N.Value | String | No | test |
The value of the tag. To create multiple tags for a cluster at a time, click Add to add tags. Note You can create up to 20 key-value pairs of tags at a time. Each value of the
Tag.n.Value parameter is paired with a value of the Tag.n.Key parameter.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 1CB5286F-AF5A-4E09-BFE9-588D4C****** |
The ID of the request. |
Examples
Sample requests
https://polardb.aliyuncs.com/? Action=TagResources?Action=TagResources
&RegionId=cn-hangzhou
&ResourceId.1=pc-*****************
&ResourceType=cluster
&<Common request parameters>
Sample success responses
XML
format
<TagResourcesResponse>
<RequestId>1CB5286F-AF5A-4E09-BFE9-588D4C******</RequestId>
</TagResourcesResponse>
JSON
format
{
"RequestId": "1CB5286F-AF5A-4E09-BFE9-588D4C******"
}
Error codes
For a list of error codes, visit the API Error Center.