CreateTags

1. API Description

This API is used to create tags in batches.

Note

  • Tag key is required.

  • Tag value is optional.

  • Duplicate key-value tags are not allowed.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter Name
Required
Type
Description

tags

Yes

Array of Tag

Tags to be created in batches.

A maximum of 20 tags can be created at a time.

3. Output Parameters

Parameter Name
Type
Description

requestId

String

The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Code Example

Create tags in batches.

POST /api/v2/zrm HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: CreateTags
<Common Request Params>

Request:
{
  "tags": [
    {
      "key": "key_f7105ccd1a94",
      "value": "value_5a4be6ee5544"
    }
  ]
}

Response:
{
  "requestId": "T05992D0C-7E8B-4047-B0C0-780F2CD549D3",
  "response": {
    "requestId": "T05992D0C-7E8B-4047-B0C0-780F2CD549D3"
  }
}

5. Developer Resources

Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.

6. Error Codes

No error codes related to the API business logic. For other error codes, see Common Error Codes.​​

Last updated