Queries the tags that are added to a resource.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the bastion host. | cn-hangzhou |
ResourceType | string | Yes | The type of the resource. Set the value to INSTANCE, which indicates that the resource is a bastion host. | 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 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "50177258-E817-4D2F-A5C6-3FD7BC4806E3",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 5,
"TagKeys": [
{
"TagCount": 2,
"TagKey": "key2"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.