forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com> Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
10 KiB
10 KiB
Adding Tags to a Cluster
Function
This API is used to add tags to a cluster. A cluster can have a maximum of 10 tags.
URI
POST /v1.0/{project_id}/css-cluster/{cluster_id}/tags
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID For details, see Obtaining a Project ID and Name. |
cluster_id |
Yes |
String |
ID of the cluster to which a tag is to be added |
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
key |
Yes |
String |
Tag key. The value can contain up to 36 characters. |
value |
Yes |
String |
Tag value. The value contains up to 43 characters. If value is not empty, delete tags by key/value. If value is empty, delete tags by key. |
Response
None
Example
Status Codes
Table 3 describes the status code.
Parent topic: Tag Management APIs