Queries the tag keys for stacks or templates in a specified region.
Operation description
This topic provides an example of how to query the tag keys that are attached to a stack in the China (Hangzhou) region.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
ros:ListTagKeys | get | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | Yes | The ID of the region. You can call the DescribeRegions operation to query the latest list of Alibaba Cloud regions. | cn-hangzhou |
ResourceType | string | Yes | The resource type. Valid values:
| stack |
NextToken | string | No | The token that is used to start the next query. | caeba0bbb2be03f84eb48b699f0***** |
For more information about common parameters, see Common parameters.
Response elements
Element | Type | Description | Example |
object | |||
NextToken | string | The token that is used to start the next query. | caeba0bbb2be03f84eb48b699f0***** |
RequestId | string | The request ID. | C429473A-5C66-4661-B5F8-4F900CD4330A |
| Keys | array | The list of tag keys. | |
string | A tag key. | ["TagKey1","TagKey2"] |
Examples
Success response
JSON format
{
"NextToken": "caeba0bbb2be03f84eb48b699f0*****",
"RequestId": "C429473A-5C66-4661-B5F8-4F900CD4330A",
"Keys": [
"[\"TagKey1\",\"TagKey2\"]"
]
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.