Queries all tags in a region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeTags |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| ResourceType |
string |
No |
The resource type. Valid values: INSTANCE or instance. |
INSTANCE |
| NextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. Note
This parameter is not required for the first request. If not all results are returned in one query, you can specify the token that is obtained from the previous query as the value of NextToken. |
212db86sca4384811e0b5e8707ec2**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The pagination token to use in the next request to get the next page. If this field is empty, there are no more results. Note
If not all results are returned in one query, this parameter is returned. You can pass in the returned value of this parameter for the next query. |
212db86sca4384811e0b5e8707ec2**** |
| RequestId |
string |
The request ID. |
F3F44BE3-5419-4B61-9BAC-E66E295A**** |
| Tags |
array<object> |
The details of the tags. |
|
|
object |
The information about the tag. |
||
| TagKey |
string |
The key of the tag. |
size |
| TagValues |
array |
The tag values. |
|
|
string |
The value of the tag |
['test_value_2'] |
Examples
Success response
JSON format
{
"NextToken": "212db86sca4384811e0b5e8707ec2****",
"RequestId": "F3F44BE3-5419-4B61-9BAC-E66E295A****",
"Tags": [
{
"TagKey": "size",
"TagValues": [
"['test_value_2']"
]
}
]
}
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.