Adding a Tag to a Specified Cluster
Function
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.
URI
- Format
- Parameter description
Table 1 URI parameter description 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
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
key |
Yes |
String |
Key. A tag key cannot contain special characters (=*<>\,|/) or start or end with a space. |
value |
Yes |
String |
Tag value. A tag value cannot contain special characters (=*<>\,|/) or start or end with a space. |
Response
Response parameters
None.
Status Code
Table 3 describes the status code of this API.
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