VPN Customer Gateway
Customer-side gateway definitions (IKE/ESP policy) used by site-to-site VPN connections.
Resource base path: /restapi/vpncustomergateway
| Method | Path | Description |
|---|---|---|
POST | /restapi/vpncustomergateway/addVpnCustomerGateway | Add VPN Customer Gateway |
GET | /restapi/vpncustomergateway/vpnCustomerGatewayList | VPN Customer Gateway List |
PUT | /restapi/vpncustomergateway/updateVpnCustomerGateway | Update VPN Customer Gateway |
DELETE | /restapi/vpncustomergateway/deleteVpnCustomerGateway/{uuid} | Delete VPN Customer Gateway |
note
apikey and secretkey are required HTTP headers on every request and are omitted from the parameter tables below. See Authentication.
Add VPN Customer Gateway
Add VPN Customer Gateway.
POST /restapi/vpncustomergateway/addVpnCustomerGateway
Request body
| Field | Type | Required | Description |
|---|---|---|---|
esplifetime | string | ✅ Yes | ESP Lifetime (3600) |
forceencap | boolean | No | |
ikepolicy | string | ✅ Yes | IKE DH Example: Group 5(modpb1536) |
ikeEncryption | string | ✅ Yes | IKE Encryption (aes128,aes192,aes256,3des) Example: aes128 |
ikeHash | string | ✅ Yes | IKE Hash (sha1,sha256,sha384,sha512,md5) Example: sha1 |
ikeVersion | string | No | |
splitConnection | boolean | No | |
ikelifetime | string | ✅ Yes | IKE lifetime (86400) |
ipsecpsk | string | ✅ Yes | IPsec Preshared-Key |
espHash | string | ✅ Yes | ESP Hash (sha1,sha256,sha384,sha512,md5) Example: sha1 |
espEncryption | string | ✅ Yes | ESP Encryption (aes128,aes192,aes256,3des) Example: aes128 |
cidrlist | string | ✅ Yes | CIDR List |
name | string | ✅ Yes | Name |
dpd | boolean | No | Dead Peer Detection |
esppolicy | string | ✅ Yes | Perfect Forward Secrecy Example: None |
gateway | string | ✅ Yes | Gateway |
{
"esplifetime": "string",
"forceencap": true,
"ikepolicy": "Group 5(modpb1536)",
"ikeEncryption": "aes128",
"ikeHash": "sha1",
"ikeVersion": "string",
"splitConnection": true,
"ikelifetime": "string",
"ipsecpsk": "string",
"espHash": "sha1",
"espEncryption": "aes128",
"cidrlist": "0.0.0.0/0",
"name": "example-name",
"dpd": true,
"esppolicy": "None",
"gateway": "string"
}
Example request
curl -X POST \
"https://portal.your-domain.com/restapi/vpncustomergateway/addVpnCustomerGateway" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"esplifetime": "string",
"forceencap": true,
"ikepolicy": "Group 5(modpb1536)",
"ikeEncryption": "aes128",
"ikeHash": "sha1",
"ikeVersion": "string",
"splitConnection": true,
"ikelifetime": "string",
"ipsecpsk": "string",
"espHash": "sha1",
"espEncryption": "aes128",
"cidrlist": "0.0.0.0/0",
"name": "example-name",
"dpd": true,
"esppolicy": "None",
"gateway": "string"
}'
Responses
| Code | Description |
|---|---|
200 | Successful operation. |
401 | Invalid authentication credentials. |
550 | Permission denied. |
{
"count": 1,
"listVpnCustomerGatewayResponse": [
{
"esplifetime": "string",
"cidrList": "0.0.0.0/0",
"forceencap": true,
"ikepolicy": "string",
"ipsecPresharedKey": "string",
"ikeVersion": "string",
"splitConnection": true,
"isActive": true,
"ikelifetime": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainName": "example-name",
"name": "example-name",
"dpd": true,
"esppolicy": "string",
"gateway": "string",
"status": "Active"
}
]
}
VPN Customer Gateway List
VPN Customer Gateway List.
GET /restapi/vpncustomergateway/vpnCustomerGatewayList
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
uuid | query | string | No | UUID of the resource. |
Example request
curl -X GET \
"https://portal.your-domain.com/restapi/vpncustomergateway/vpnCustomerGatewayList" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"
Responses
| Code | Description |
|---|---|
200 | Successful operation. |
401 | Invalid authentication credentials. |
550 | Permission denied. |
{
"count": 1,
"listVpnCustomerGatewayResponse": [
{
"esplifetime": "string",
"cidrList": "0.0.0.0/0",
"forceencap": true,
"ikepolicy": "string",
"ipsecPresharedKey": "string",
"ikeVersion": "string",
"splitConnection": true,
"isActive": true,
"ikelifetime": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainName": "example-name",
"name": "example-name",
"dpd": true,
"esppolicy": "string",
"gateway": "string",
"status": "Active"
}
]
}
Update VPN Customer Gateway
Update VPN Customer Gateway.
PUT /restapi/vpncustomergateway/updateVpnCustomerGateway
Request body
| Field | Type | Required | Description |
|---|---|---|---|
esplifetime | string | No | ESP Lifetime (second) |
forceencap | boolean | No | Force UDP Encapsulation of ESP Packets |
ikepolicy | string | No | IKE DH Example: Group 5(modpb1536) |
ikeEncryption | string | No | IKE Encryption Example: aes128 |
ikeHash | string | No | IKE Hash Example: sha1 |
ikeVersion | string | No | IKE version |
splitConnection | boolean | No | Split connections |
ikelifetime | string | No | IKE lifetime (second) |
uuid | string | No | UUID of the resource. |
ipsecpsk | string | No | IPsec Preshared-Key |
espHash | string | No | ESP Hash Example: sha1 |
espEncryption | string | No | ESP Encryption Example: aes128 |
cidrlist | string | No | CIDR List |
name | string | No | Name |
dpd | boolean | No | Dead Peer Detection |
esppolicy | string | No | Perfect Forward Secrecy Example: None |
gateway | string | No | Gateway |
{
"esplifetime": "string",
"forceencap": true,
"ikepolicy": "Group 5(modpb1536)",
"ikeEncryption": "aes128",
"ikeHash": "sha1",
"ikeVersion": "string",
"splitConnection": true,
"ikelifetime": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"ipsecpsk": "string",
"espHash": "sha1",
"espEncryption": "aes128",
"cidrlist": "0.0.0.0/0",
"name": "example-name",
"dpd": true,
"esppolicy": "None",
"gateway": "string"
}
Example request
curl -X PUT \
"https://portal.your-domain.com/restapi/vpncustomergateway/updateVpnCustomerGateway" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"esplifetime": "string",
"forceencap": true,
"ikepolicy": "Group 5(modpb1536)",
"ikeEncryption": "aes128",
"ikeHash": "sha1",
"ikeVersion": "string",
"splitConnection": true,
"ikelifetime": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"ipsecpsk": "string",
"espHash": "sha1",
"espEncryption": "aes128",
"cidrlist": "0.0.0.0/0",
"name": "example-name",
"dpd": true,
"esppolicy": "None",
"gateway": "string"
}'
Responses
| Code | Description |
|---|---|
200 | Successful operation. |
202 | Accepted — processed asynchronously (poll via the Resource API Status endpoint). |
401 | Invalid authentication credentials. |
550 | Permission denied. |
{
"count": 1,
"listVpnCustomerGatewayResponse": [
{
"esplifetime": "string",
"cidrList": "0.0.0.0/0",
"forceencap": true,
"ikepolicy": "string",
"ipsecPresharedKey": "string",
"ikeVersion": "string",
"splitConnection": true,
"isActive": true,
"ikelifetime": "string",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"domainName": "example-name",
"name": "example-name",
"dpd": true,
"esppolicy": "string",
"gateway": "string",
"status": "Active"
}
]
}
Delete VPN Customer Gateway
Delete VPN Customer Gateway.
DELETE /restapi/vpncustomergateway/deleteVpnCustomerGateway/{uuid}
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
uuid | path | string | ✅ Yes | UUID of the resource. |
Example request
curl -X DELETE \
"https://portal.your-domain.com/restapi/vpncustomergateway/deleteVpnCustomerGateway/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"
Responses
| Code | Description |
|---|---|
200 | Successful operation. |
401 | Invalid authentication credentials. |
550 | Permission denied. |
true