Modifies the labels of a specified Container Service for Kubernetes (ACK) cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request syntax

POST /clusters/ClusterId/tags HTTP/1.1
Content-Type:application/json

[ {
  "key" : "String",
  "value" : "String"
} ]

Request parameters

Table 1. Request path parameters
Parameter Type Required Example Description
ClusterId String Yes c106f377e16f34eb1808d6b9362c9****

The ID of the ACK cluster.

Table 2. Request body parameters
Parameter Type Required Example Description
Array of tag No

The data of the labels that you want to modify.

Response syntax

HTTP/1.1 200 OK

Response parameters

None

Examples

Sample requests

POST /clusters/c106f377e16f34eb1808d6b9362c9****/tags HTTP/1.1 
Content-Type:application/json
[ {
  "key" : "env",
  "value" : "prod"
} ]

Sample success responses

JSON format

HTTP/1.1 200 OK

Error codes

For a list of error codes, visit the API Error Center.