Create Tags

Last updated: 2020-06-07 19:17:49


    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new Tag API 3.0 which is standardized and faster.

    API Description

    This API (CreateTag) is used to create tags for resources on Tencent Cloud.

    Domain name for API request:

    Input Parameters

    The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, please see Common Request Parameters.

    Parameter Name Required Type Description
    tagKey Yes String Tag key
    tagValue Yes String Tag value

    Output Parameters


    Error Codes

    Error Code Description
    30001 The tag key does not exist
    30002 System reserved tag keys qcloud: and tencent: cannot be created.
    30004 The main account Uin does not exist
    30016 The creator Uin does not exist
    30017 The user tag already exists
    30010 The number of created tag keys exceeds the limit of 1,000
    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=CreateTag&tagKey=t1&tagValue=v1&<Common request parameters>

    Output example

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

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback