Modifying a Predefined Tag
Function
Modify predefined tags.
Calling Method
For details, see Calling APIs.
URI
PUT /v1.0/predefine_tags
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Specifies the user token. TMS is a global service. When calling the Identity and Access Management (IAM) API to obtain a user token, set the scope field to domain. The value of X-Subject-Token in the response header is the user token. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
new_tag |
Yes |
PredefineTagRequest object |
Specifies the modified tag. |
|
old_tag |
Yes |
PredefineTagRequest object |
Specifies the tag before modification. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
key |
Yes |
String |
Specifies the tag key. The value can contain up to 36 characters including letters, digits, hyphens (-), and underscores (_). |
|
value |
Yes |
String |
Specifies the tag value. The value can contain up to 43 characters including letters, digits, periods (.), hyphens (-), and underscores (_). It can be an empty string. |
Response Parameters
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 405
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 406
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 409
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 410
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 412
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 429
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 501
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Request error code |
|
error_msg |
String |
Error message |
Status code: 503
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
RespErrorMessage object |
Response error information. |
Example Requests
Modifying a predefined tag
PUT https://{Endpoint}/v1.0/predefined_tags
{
"new_tag" : {
"key" : "ENV1",
"value" : "DEV1"
},
"old_tag" : {
"key" : "ENV2",
"value" : "DEV2"
}
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
204 |
No Content |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
405 |
Method Not Allowed |
|
406 |
Not Acceptable |
|
409 |
Conflict |
|
410 |
Gone |
|
412 |
Precondition Failed |
|
429 |
Too Many Requests |
|
500 |
Internal Server Error |
|
501 |
Not Implemented |
|
503 |
Service Unavailable |
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