This API is used to create a VPN endpoint group.
POST /v2.0/vpn/endpoint-groups
Table 1 describes the request parameters.
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
endpoints |
List<String> |
Yes |
Specifies the endpoint list. The endpoints in a list must be of the same type. |
type |
String |
Yes |
Specifies the endpoint type, which can be subnet or cidr. |
name |
String |
No |
Specifies the name of the VPN endpoint group. The name can contain 1 to 64 characters. |
tenant_id |
String |
No |
Specifies the project ID. The ID can contain up to 255 characters. |
description |
String |
No |
Provides supplementary information about the VPN endpoint group. The description can contain up to 255 characters. |
endpoint_group |
Object |
Yes |
Specifies the endpoint group. |
Parameter project_id is not supported.
Table 2 describes the response parameters.
Parameter |
Type |
Description |
|---|---|---|
description |
String |
Provides supplementary information about the VPN endpoint group. |
tenant_id |
String |
Specifies the project ID. |
endpoints |
List<String> |
Specifies the endpoint list. The endpoints in a list must be of the same type. |
type |
String |
Specifies the endpoint type, which can be subnet or cidr. |
id |
String |
Specifies the ID of the VPN endpoint group. |
name |
String |
Specifies the name of the VPN endpoint group. |
endpoint_group |
Object |
Specifies the object of the VPN endpoint group. |
POST /v2.0/vpn/endpoint-groups
{
"endpoint_group" : {
"endpoints" : [ "10.2.0.0/24", "10.3.0.0/24" ],
"type" : "cidr",
"name" : "peers"
}
}
{
"endpoint_group" : {
"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"
}
}
For details, see Common Returned Values.