This interface is used to create a tag for a VPN resource.
POST /v2.0/{project_id}/ipsec-site-connections/{resource_id}/tags
In the URI, project_id indicates the project ID, and resource_id indicates the target resource ID.
Table 1 describes the request parameters.
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
tag |
List<resource_tag> |
Yes |
Specifies the tag. |
Description of field resource_tag
Name |
Type |
Mandatory |
Description |
---|---|---|---|
key |
String |
Yes |
Specifies the tag key. The parameter constraints are as follows:
|
value |
String |
Yes |
Specifies the tag value. The parameter constraints are as follows:
|
None
POST /v2.0/{project_id}/ipsec-site-connections/{resource_id}/tags { "tag": { "key": "key1", "value": "value1" } }
For details, see section Common Returned Values.