Vpn API
8 operations. Back to the API overview. Examples use synthetic data.
Vpn overview
GET /admin/v1/vpn
Needs the permission: config:history.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
defaults | object | optional | - |
defaults.bgp_ranges | any | optional | - |
defaults.cloud_asn | any | optional | - |
defaults.region | any | optional | - |
key_storage | any | optional | - |
ports | any | optional | - |
proposal | any | optional | - |
ramp_available | any | optional | - |
service_account | any | optional | - |
service_attachment | any | optional | - |
sites | any | optional | - |
status_check | any | optional | - |
vendors | any | optional | - |
{
"defaults": {
"bgp_ranges": {},
"cloud_asn": {},
"region": {}
},
"key_storage": {},
"ports": {},
"proposal": {},
"ramp_available": {},
"service_account": {},
"service_attachment": {},
"sites": {},
"status_check": {},
"vendors": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/vpn"Vpn gateway
POST /admin/v1/vpn/gateway
Needs the permission: config:history.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
text | string | optional | - |
{
"text": "example"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
cloud_public_ips | any | optional | - |
{
"cloud_public_ips": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"text":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/vpn/gateway"Vpn create
POST /admin/v1/vpn/sites
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
site | object (VpnconfigSite) | optional | Site is one customer site's tunnel parameters (no secrets). |
site.bgp_ranges | array of string | optional | BGPRanges are the two link-local /30s, one per tunnel: the cloud side takes the first host address, the site the second. |
site.cloud_asn | integer | optional | CloudASN is the Cloud Router's (or Alkira's) ASN. |
site.cloud_public_ips | array of string | optional | CloudPublicIPs are the cloud gateway's two interface addresses: HA VPN interfaces 0 and 1, or the Alkira connector's two tunnel endpoints. Empty until the gateway exists (the configuration needs them). |
site.endpoint | string | optional | Endpoint is the private address senders connect to: the Private Service Connect endpoint (google_ha_vpn) or the tenant's private ingress address (alkira). Empty until known. |
site.lan | string | optional | - |
site.name | string | optional | - |
site.path | string | optional | - |
site.project | string | optional | Project and Region locate the customer's HA VPN (google_ha_vpn) for the live status check; Router and the tunnel names default to customer_setup.sh's. |
site.region | string | optional | - |
site.site_asn | integer | optional | - |
site.site_cidrs | array of string | optional | SiteCIDRs are the on-site networks whose systems talk to Velacent Bridge (advertised over BGP; sources in the firewall rules). |
site.site_public_ips | array of string | optional | SitePublicIPs are the public IPv4 addresses of the customer's VPN device(s): one (both tunnels from one address) or two (tunnel i from address i: two WAN links, or two devices). |
site.vendor | string | optional | - |
site.wan_interfaces | array of string | optional | WANInterfaces name the device's outside interface per tunnel and LAN its inside interface or zone (vendor defaults when empty). |
version | integer | optional | - |
{
"site": {
"bgp_ranges": [
"example"
],
"cloud_asn": 1,
"cloud_public_ips": [
"example"
],
"endpoint": "https://example.org/resource",
"lan": "example",
"name": "example-name",
"path": "example",
"project": "example",
"region": "example",
"site_asn": 1,
"site_cidrs": [
"example"
],
"site_public_ips": [
"example"
],
"vendor": "example",
"wan_interfaces": [
"example"
]
},
"version": 1
}Response 201
{}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"site":{"bgp_ranges":["example"],"cloud_asn":1,"cloud_public_ips":["example"],"endpoint":"https://example.org/resource","lan":"example","name":"example-name","path":"example","project":"example","region":"example","site_asn":1,"site_cidrs":["example"],"site_public_ips":["example"],"vendor":"example","wan_interfaces":["example"]},"version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/vpn/sites"Vpn get
GET /admin/v1/vpn/sites/{id}
Needs the permission: config:history.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
vendor | query | string | optional | - |
Response 200
{}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/vpn/sites/example-id"Vpn update
PUT /admin/v1/vpn/sites/{id}
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
site | object (VpnconfigSite) | optional | Site is one customer site's tunnel parameters (no secrets). |
site.bgp_ranges | array of string | optional | BGPRanges are the two link-local /30s, one per tunnel: the cloud side takes the first host address, the site the second. |
site.cloud_asn | integer | optional | CloudASN is the Cloud Router's (or Alkira's) ASN. |
site.cloud_public_ips | array of string | optional | CloudPublicIPs are the cloud gateway's two interface addresses: HA VPN interfaces 0 and 1, or the Alkira connector's two tunnel endpoints. Empty until the gateway exists (the configuration needs them). |
site.endpoint | string | optional | Endpoint is the private address senders connect to: the Private Service Connect endpoint (google_ha_vpn) or the tenant's private ingress address (alkira). Empty until known. |
site.lan | string | optional | - |
site.name | string | optional | - |
site.path | string | optional | - |
site.project | string | optional | Project and Region locate the customer's HA VPN (google_ha_vpn) for the live status check; Router and the tunnel names default to customer_setup.sh's. |
site.region | string | optional | - |
site.site_asn | integer | optional | - |
site.site_cidrs | array of string | optional | SiteCIDRs are the on-site networks whose systems talk to Velacent Bridge (advertised over BGP; sources in the firewall rules). |
site.site_public_ips | array of string | optional | SitePublicIPs are the public IPv4 addresses of the customer's VPN device(s): one (both tunnels from one address) or two (tunnel i from address i: two WAN links, or two devices). |
site.vendor | string | optional | - |
site.wan_interfaces | array of string | optional | WANInterfaces name the device's outside interface per tunnel and LAN its inside interface or zone (vendor defaults when empty). |
version | integer | optional | - |
{
"site": {
"bgp_ranges": [
"example"
],
"cloud_asn": 1,
"cloud_public_ips": [
"example"
],
"endpoint": "https://example.org/resource",
"lan": "example",
"name": "example-name",
"path": "example",
"project": "example",
"region": "example",
"site_asn": 1,
"site_cidrs": [
"example"
],
"site_public_ips": [
"example"
],
"vendor": "example",
"wan_interfaces": [
"example"
]
},
"version": 1
}Response 200
{}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request PUT \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"site":{"bgp_ranges":["example"],"cloud_asn":1,"cloud_public_ips":["example"],"endpoint":"https://example.org/resource","lan":"example","name":"example-name","path":"example","project":"example","region":"example","site_asn":1,"site_cidrs":["example"],"site_public_ips":["example"],"vendor":"example","wan_interfaces":["example"]},"version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/vpn/sites/example-id"Vpn delete
DELETE /admin/v1/vpn/sites/{id}
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
version | query | string | optional | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
deleted | any | optional | - |
{
"deleted": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request DELETE \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/vpn/sites/example-id"Vpn check
POST /admin/v1/vpn/sites/{id}/check
Needs the permission: config:history.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
{}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
grant_command | any | optional | - |
report | object (VpnconfigReport) | optional | Report is the outcome of a connectivity check. |
report.checks | array of object (VpnconfigCheck) | optional | - |
report.ok | boolean | optional | - |
report.reason | string | optional | - |
report.site_tests | array of string | optional | SiteTests still have to be run from a site computer. |
report.source | string | optional | Source: "google" (live), "unavailable" (with Reason). |
report.status | object (VpnconfigCloudStatus) | optional | CloudStatus is what the Compute API reports, reduced to what the check needs (no secrets in it). |
{
"grant_command": {},
"report": {
"checks": [
{
"detail": "example",
"fix": "example",
"id": "example-id",
"ok": true,
"title": "example"
}
],
"ok": true,
"reason": "Example text",
"site_tests": [
"example"
],
"source": "example",
"status": {
"learned": [
"example"
],
"peers": [
{
"advertised": [],
"learned_routes": 1,
"name": "example-name",
"state": "ok",
"status": "ok",
"uptime": "2026-01-15T14:30:00Z"
}
],
"tunnels": [
{
"detailed_status": "ok",
"name": "example-name",
"status": "ok"
}
]
}
}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{}' \
"https://YOUR-CONSOLE-HOST/admin/v1/vpn/sites/example-id/check"Vpn keys
POST /admin/v1/vpn/sites/{id}/keys
Needs the permission: config:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
rotate | boolean | optional | - |
version | integer | optional | - |
{
"rotate": true,
"version": 1
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
fingerprints | any | optional | - |
keys | any | optional | - |
shown_once | any | optional | - |
site | object (VpnSiteView) | optional | vpnSiteView is a site as the console shows it. |
site.created_at | any | optional | - |
site.created_by | string | optional | - |
site.id | string | optional | - |
site.key_fingerprints | array of string | optional | - |
site.key_stored | boolean | optional | KeyStored: the Alkira path's keys are held for Velacent Bridge operations. |
site.keys_issued | boolean | optional | - |
site.keys_issued_at | any | optional | - |
site.keys_issued_by | string | optional | - |
site.name | string | optional | - |
site.path | string | optional | - |
site.ready | boolean | optional | - |
site.site | object (VpnconfigSite) | optional | Site is one customer site's tunnel parameters (no secrets). |
site.updated_at | any | optional | - |
site.vendor | string | optional | - |
site.version | integer | optional | - |
{
"fingerprints": {},
"keys": {},
"shown_once": {},
"site": {
"created_at": {},
"created_by": "example",
"id": "example-id",
"key_fingerprints": [
"example"
],
"key_stored": true,
"keys_issued": true,
"keys_issued_at": {},
"keys_issued_by": "example",
"name": "example-name",
"path": "example",
"ready": true,
"site": {
"bgp_ranges": [
"example"
],
"cloud_asn": 1,
"cloud_public_ips": [
"example"
],
"endpoint": "https://example.org/resource",
"lan": "example",
"name": "example-name",
"path": "example",
"project": "example",
"region": "example",
"site_asn": 1,
"site_cidrs": [
"example"
],
"site_public_ips": [
"example"
],
"vendor": "example",
"wan_interfaces": [
"example"
]
},
"updated_at": {},
"vendor": "example",
"version": 1
}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"rotate":true,"version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/vpn/sites/example-id/keys"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.