This API is used to add a tag to a specified cluster.
A cluster has a maximum of 10 tags. This API is idempotent. If a tag to be created has the same key as an existing tag, the tag will overwrite the existing one.
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 |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
key |
Yes |
String |
Key. A tag key can contain only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_). |
value |
Yes |
String |
Tag value. A tag value can contain only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_). |
Response parameters
None.
Table 3 describes the status code of this API.