- API Reference
- APIs
- Tag Management APIs
- Querying Tags of a Specified Cluster
Querying Tags of a Specified Cluster¶
Function¶
This API is used to query tags of a specified cluster.
URI¶
Format
GET /v1.1/{project_id}/clusters/{cluster_id}/tags
Parameter description
¶ Parameter
Mandatory
Description
project_id
Yes
Project ID. For details on how to obtain the project ID, see Obtaining a Project ID.
cluster_id
Yes
Cluster ID
Request¶
Request parameters
None.
Response¶
Parameter | Type | Description |
---|---|---|
key | String | Key. A tag key can contain only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_). |
value | String | Tag value. A tag value can contain only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_). |
Example¶
Example request
None.
Example response
{ "tags": [ { "key": "key1", "value": "value1" }, { "key": "key2", "value": "value3" } ] }
Status Code¶
Table 4 describes the status code of this API.
Status Code | Description |
---|---|
200 | The operation is successful. |
last updated: 2024-11-14 12:28 UTC - commit: 9d95be538b931742820cff066f12ce18f037ed96
Page Contents