Querying Tags of a Specified Cluster
Function
This API is used to query the tags of a specified cluster.
URI
GET /v1.0/{project_id}/{resource_type}/{cluster_id}/tags
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
cluster_id |
Yes |
String |
ID of the cluster you want to query. |
resource_type |
Yes |
String |
Resource type. Currently, its value can only be css-cluster. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
tags |
Array of ShowTagsTagsResp objects |
List of cluster tags |
Example Requests
None
Example Responses
Status code: 200
Request succeeded.
{ "tags" : [ { "key" : "key1", "value" : "value1" }, { "key" : "key2", "value" : "value3" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Request succeeded. |
400 |
Invalid request. The client should modify the request instead of re-initiating it. |
404 |
The requested resource could not be found. The client should not repeat the request without modifications. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot