Queries the tags bound to a resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ListTagKeys |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the Bastionhost instance. |
cn-hangzhou |
| ResourceType |
string |
Yes |
The resource type definition. Valid values:
|
INSTANCE |
| PageSize |
integer |
No |
The maximum number of entries to return on each page in a paging query. |
10 |
| PageNumber |
integer |
No |
The page number of the current page in a paging query. |
1 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-aek2jpqvnr6yd3a |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique identifier generated by Alibaba Cloud for the request. |
50177258-E817-4D2F-A5C6-3FD7BC4806E3 |
| PageNumber |
integer |
The page number of the current page in a paging query. |
1 |
| PageSize |
integer |
The maximum number of entries to return on each page in a paging query. |
10 |
| TotalCount |
integer |
The total number of tags. |
5 |
| TagKeys |
array<object> |
The list of tags. |
|
|
object |
|||
| TagCount |
integer |
The total number of tag keys. |
2 |
| TagKey |
string |
The tag key name. |
key2 |
Examples
Success response
JSON format
{
"RequestId": "50177258-E817-4D2F-A5C6-3FD7BC4806E3",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 5,
"TagKeys": [
{
"TagCount": 2,
"TagKey": "key2"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.