Updating a VPN Endpoint Group¶
Function¶
This interface is used to update a VPN endpoint group.
URI¶
PUT /v2.0/vpn/endpoint-groups/{endpoint_group_id}
Parameter | Type | Mandatory | Description |
---|---|---|---|
endpoint_group_id | String | No | Specifies the VPN endpoint group ID. |
Request Message¶
Table 2 describes the request parameters.
Parameter | Type | Mandatory | Description |
---|---|---|---|
description | String | No | Provides supplementary information about the VPN endpoint group. |
name | String | No | Specifies the VPN endpoint group name. |
Note
The endpoint_group_id parameter must be specified.
The value of name can contain 1 to 64 characters.
The value of description can contain a maximum of 255 characters.
The project_id parameter is not supported.
Response Message¶
Table 3 describes the response parameters.
Parameter | Type | Description |
---|---|---|
description | Yes | Provides supplementary information about the VPN endpoint group. |
tenant_id | Yes | Specifies the project ID. |
endpoints | Yes | Specifies the endpoint list. The endpoints in a list must be of the same type. |
type | Yes | Specifies the endpoint type. The value can be subnet or cidr. |
id | Yes | Specifies the VPN endpoint group ID. |
name | Yes | Provides supplementary information about the VPN endpoint group. |
Example¶
Example Request
PUT /v2.0/vpn/endpoint-groups/{endpoint_group_id} { "endpoint_group" : { "description" : "New description" } }
Example Response
{ "endpoint_group" : { "description" : "New description", "tenant_id" : "4ad57e7ce0b24fca8f12b9834d91079d", "endpoints" : [ "10.2.0.0/24", "10.3.0.0/24" ], "type" : "cidr", "id" : "6ecd9cf3-ca64-46c7-863f-f2eb1b9e838a", "name" : "peers" } }
Returned Values¶
For details, see section Common Returned Values.