This API is used to batch create or delete VPN tags.
This API is idempotent.
POST /v2.0/{project_id}/ipsec-site-connections/{resource_id}/tags/action
In the URI, project_id indicates the project ID, and resource_id indicates the ID of the target resource.
Table 1 describes the request parameters.
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
tags |
List<resource_tag> |
Yes |
Specifies the list of tags. Up to 10 keys are supported. |
action |
String |
Yes |
Specifies the operation identifier. The identifier can be create or delete. |
Name |
Type |
Mandatory |
Description |
---|---|---|---|
key |
String |
Yes |
Specifies the tag key. The key
|
value |
String |
|
Specifies the list of tag values. The value
|
None
POST /v2.0/{project_id}/ipsec-site-connections/{resource_id}/tags/action
{ "action": "create", "tags": [ { "key": "key1", "value": "value1" }, { "key": "key", "value": "value3" } ] }
Or
{ "action": "delete", "tags": [ { "key": "key1", "value": "value1" }, { "key": "key2", "value": "value3" } ] }
For details, see Common Returned Values.