Modifying Predefined Tags
Function
This API is used for modifying predefined tags.
URI
PUT /v1.0/predefine_tags
Request
- Parameter description
- old_tag field description
Table 2 Fields Name
Mandatory
Type
Description
key
Yes
String
Specifies the key.
A tag key can contain up to 36 characters. Only A-Z, a-z, 0-9, hyphens (-), underscores (_), and Unicode characters (\u4E00-\u9FFF) are allowed.
value
Yes
String
Specifies the value.
A tag value can contain up to 43 characters and can be an empty string. Only A-Z, a-z, 0-9, periods (.), hyphens (-), underscores (_), and Unicode characters (\u4E00-\u9FFF) are allowed.
- new_tag field description
Table 3 Fields Name
Mandatory
Type
Description
key
Yes
String
Specifies the key.
A tag key can contain up to 36 characters. Only A-Z, a-z, 0-9, hyphens (-), underscores (_), and Unicode characters (\u4E00-\u9FFF) are allowed.
value
Yes
String
Specifies the value.
A tag value can contain up to 43 characters and can be an empty string. Only A-Z, a-z, 0-9, periods (.), hyphens (-), underscores (_), and Unicode characters (\u4E00-\u9FFF) are allowed.
- Example request
PUT https://{TMS endpoint}/v1.0/predefined_tags
{ "new_tag": { "key": "ENV1", "value": "DEV1" }, "old_tag": { "key": "ENV2", "value": "DEV2" } }
Example Response
Status code: 200
Successful operation
Status Codes
See Status Codes.
Error Codes
See Error Codes.
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