All Products
Search
Document Center

Bastionhost:ListTagKeys

Last Updated:Apr 02, 2026

Queries the tag keys on resources.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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.

The only valid value is INSTANCE, which represents a Bastionhost instance.

INSTANCE

PageSize

integer

No

The number of entries per page.

10

PageNumber

integer

No

The page number to return.

1

ResourceGroupId

string

No

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

50177258-E817-4D2F-A5C6-3FD7BC4806E3

PageNumber

integer

The returned page number.

1

PageSize

integer

The number of entries per page.

10

TotalCount

integer

The total number of tag keys.

5

TagKeys

array<object>

An array of tag keys.

object

TagCount

integer

The number of resources with this tag key.

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.