Creating a Tag for a VPN Resource¶
Function¶
This interface is used to create a tag for a VPN resource.
URI¶
POST /v2.0/{project_id}/ipsec-site-connections/{resource_id}/tags
Note
In the URI, project_id indicates the project ID, and resource_id indicates the target resource ID.
Request Message¶
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:
|
Response Message¶
None
Example¶
Example Request
POST /v2.0/{project_id}/ipsec-site-connections/{resource_id}/tags
{
"tag": {
"key": "key1",
"value": "value1"
}
}
Example Response
None
Returned Values¶
For details, see section Common Returned Values.