Queries the tags that are attached 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 type of the resource. Valid value: INSTANCE. This value indicates a Bastionhost instance. The only value is INSTANCE, which indicates a Bastionhost instance. |
INSTANCE |
| PageSize |
integer |
No |
The number of entries to return on each page. |
10 |
| PageNumber |
integer |
No |
The number of the page to return. |
1 |
| ResourceGroupId |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
50177258-E817-4D2F-A5C6-3FD7BC4806E3 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| TotalCount |
integer |
The total number of tags. |
5 |
| TagKeys |
array<object> |
A list of tags. |
|
|
object |
|||
| TagCount |
integer |
The total number of tag keys. |
2 |
| TagKey |
string |
The tag key. |
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.