This API is used to add tags to a specified instance in batches.
For details, see Calling APIs.
POST /v5/{project_id}/{resource_type}/{resource_id}/tags/create
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID. |
resource_type |
String |
Yes |
|
resource_id |
String |
Yes |
Indicates a resource ID. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
tags |
Array of ResourceTag objects |
Yes |
|
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
key |
String |
Yes |
|
value |
String |
No |
|
POST https://{Endpoint}/v5/{project_id}/{resource_type}/{resource_id}/tags/create { "tags": [{ "key": "key1", "value": "value1" }] }
For details, see Status Codes.