forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.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 Code
Table 3 describes status codes.
Parent topic: Tag Management APIs