Adding or Deleting Tags in Batches
Function
This API is used to add or delete tags in batches for a DCS instance.
This API is available only in the CN North-Beijing4 region.
URI
POST /v1.0/{project_id}/dcs/{instance_id}/tags/action
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
| instance_id | Yes | String | Instance ID. |
Example
Post https://dcs.ap-southeast-3.myhuaweicloud.com/v1.0/7dddae81f0e34f62adb9618bc8c8b1fe/dcs/01928d55-7020-4500-9c29-774caabe4bc4/tags/action
Request
Request parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| action | Yes | String | Operation to be performed. The value can be create or delete only. |
| tags | Yes | Array of objects | List of tags. For details, see Table 2. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| key | Yes | String | Tag key, which
|
| value | No | String | Tag value, which
|
Example request
{
"action": "create",
"tags": [
{
"key": "dcs001",
"value": "002"
},
{
"key": "dcs003",
"value": "004"
}
]
} Response parameters
None
Return Value
| Return Value | Description |
|---|---|
| 200 | Tags added/deleted successfully. |
Error Codes
None
Last Article: Querying All Tags of a Tenant
Next Article: Querying Tag of a Specified Instance
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.