This API is used to create or delete predefined tags. You can add tags to resources using the predefined tags.
This API supports idempotency and batch processing.
Idempotent operations refer to invoking the same API for multiple times by using the same parameters, which have the same impact on the system.
POST /v1.0/predefine_tags/action
Name |
Mandatory |
Type |
Description |
---|---|---|---|
action |
Yes |
String |
Specifies the operation identifier. This parameter value is case sensitive and can be create or delete. |
tags |
Yes |
Array of objects |
Specifies the tags. For details, see Table 2. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
key |
Yes |
String |
Specifies the key. It cannot be left blank and can contain a maximum of 36 Unicode characters. Only digits, letters, hyphens (-), and underscores (_) are allowed. |
value |
Yes |
String |
Specifies the value. Each value contains a maximum of 43 Unicode characters and can be an empty string. Only digits, letters, hyphens (-), and underscores (_) are allowed. |
POST https://{TMS endpoint}/v1.0/predefine_tags/action
{ "action": "create", "tags": [ { "key": "ENV1", "value": "DEV1" }, { "key": "ENV2", "value": "DEV2" } ] }
See Status Codes.
See Error Codes.