Modify Tag Values

Last updated: 2019-11-29 19:32:24


API Description

This API (UpdateResourceTagValue) is used to modify the tag values of the tags associated to resources on Tencent Cloud (The tag keys do not change).

Domain name for API request:

Input Parameters

The following request parameter list only provides API request parameters and some common parameters.

Parameter Name Required Type Description
tagKey Yes String Tag key
tagValue Yes String The modified tag value
resource Yes String Six-segment resource tag

Output Parameters


Error Codes

Error Code Description
30001 The tag key does not exist
30006 The tag value does not exist
30004 The main account Uin does not exist
30016 The creator Uin does not exist
30003 Incorrect parameter in the six-segment resource tag
30007 The tag does not exist
30020 The number of tag values corresponding to a tag key exceeds the limit of 1,000


Input example

https://domain/v2/index.php?Action=UpdateResourceTagValue&tagKey=t1&tagValue=v1&resource=qcs::cvm:ap-beijing:uin/1234567:instance/ins-123&<Common request parameters>

Output example

    "code": 0,
    "message": "",
    "codeDesc": "Success",
    "data": []