Adding Tags to a Network ACL in Batches
Function
This API is used to add tags to a specified network ACL in batches. This is an idempotent API. When you add tags, if there are duplicate keys in the request body, an error is reported. Duplicate keys are not allowed. If a key already exists, its value will be overwritten by the new value.
Calling Method
For details, see Calling APIs.
URI
POST /v3/{project_id}/firewalls/{firewall_id}/tags/create
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
firewall_id |
Yes |
String |
The unique ID of a network ACL. The value is a string in UUID format. The network ACL with a given ID must exist. |
|
project_id |
Yes |
String |
Project ID |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
tags |
Yes |
Array of ResourceTag objects |
Tags |
Response Parameters
Status code: 204
Normal request response. For more status codes, see Status Codes.
None
Example Requests
Add two tags to a network ACL. For one tag, the key is keyxxx and the value is value1. The key of the other tag is keyyyy, and the value is value2.
POST https://{Endpoint}/v3/{project_id}/firewalls/{firewall_id}/tags/create
{
"tags" : [ {
"key" : "keyxxx",
"value" : "value1"
}, {
"key" : "keyyyy",
"value" : "value2"
} ]
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
204 |
Normal request response. For more status codes, see Status Codes. |
Error Codes
See Error Codes.
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