Queries all tags in a specified region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeTags |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| ResourceType |
string |
No |
The resource type. Set the value to INSTANCE. |
INSTANCE |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
dds-bp17e7a04960**** |
| NextToken |
string |
No |
The token used to start the next query to retrieve more results. Note
This parameter is not required in the first query. If not all results are returned in one query, you can pass in the NextToken value returned in the previous query to perform the query again. |
212db86**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token used to start the next query. Note
If not all results are returned in the first query, this parameter is returned. You can pass in the value of this parameter in the next query. |
212db86**** |
| RequestId |
string |
The ID of the request. |
EEDBE38F-5CF5-4316-AAC2-35817BA60D68 |
| Tags |
array<object> |
Details about the tags. |
|
|
object |
|||
| TagValues |
array |
The values of the tags. |
|
|
string |
The value of the tag. |
3.4 environment |
|
| TagKey |
string |
The key of the tag. |
Test group |
Examples
Success response
JSON format
{
"NextToken": "212db86****",
"RequestId": "EEDBE38F-5CF5-4316-AAC2-35817BA60D68",
"Tags": [
{
"TagValues": [
"3.4 environment"
],
"TagKey": "Test group"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidTagKey.Malformed | The specified parameter 'Tag.n.Key' or 'TagKey.n' is not valid. | |
| 400 | InvalidTagValue.Malformed | The specified parameter 'Tag.n.Value' is not valid. | |
| 400 | InvalidParameter.ResourceId | The specified parameter 'ResourceId.n' is not valid. | |
| 400 | MissParameter.TagOrResourceId | The parameter 'Tag.n'' or 'ResourceId.n' is needed. | |
| 400 | InvalidParameter.Scope | The specified parameter 'Scope' is not valid. | |
| 400 | NumberExceed.ResourceIds | The ResourceIds parameter's number is exceed. | |
| 400 | NumberExceed.Tags | The Tags parameter's number is exceed. | |
| 400 | Duplicate.TagKey | The specified parameter 'Tag.n.Key' is duplicated. | |
| 400 | InvalidParameter.ResourceType | The specified parameter 'ResourceType' is not valid. | |
| 404 | InvalidDbInstanceId.NotFound | Specified instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.