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 AP-Singapore 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_endpoint}/v1.0/{project_id}/dcs/{instance_id}/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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot