API: openvpn
GET /api/openvpn/instances#
List Instances
Permission vpn.read (look)
Response 200 OpenVpnInstanceRead[]
Show 22 fields
| Field | Type | Notes |
|---|---|---|
ca_refs | map<string, string> | |
cert_refs | map<string, string> | |
created_at * | string (date-time) | |
deployments * | OpenVpnDeploymentResult[] | |
description * | string | minLength 1, maxLength 255 |
effective_host_ids | string (uuid)[] | |
enabled | boolean | default: true |
id * | string (uuid) | |
local | string | default: "" · maxLength 255 |
port | string | default: "1194" · maxLength 8 |
proto | "udp" | "tcp" | default: "udp" |
remote | string | default: "" · maxLength 255 |
role | "server" | "client" | default: "server" |
server_network | string | default: "" · maxLength 255 |
target_group_ids | string (uuid)[] | |
target_host_ids | string (uuid)[] | |
tls_key_enabled | boolean | default: false |
tls_key_material_set * | boolean | |
tls_key_mode | "auth" | "crypt" | default: "crypt" |
updated_at * | string (date-time) | |
workflow_counts * | map<string, integer> | |
workflow_state * | "attention" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced" |
POST /api/openvpn/instances#
Create Instance
Permission vpn.write (prepare)
Request body OpenVpnInstanceCreate
Show 15 fields
| Field | Type | Notes |
|---|---|---|
ca_refs | map<string, string> | |
cert_refs | map<string, string> | |
description * | string | minLength 1, maxLength 255 |
enabled | boolean | default: true |
local | string | default: "" · maxLength 255 |
port | string | default: "1194" · maxLength 8 |
proto | "udp" | "tcp" | default: "udp" |
remote | string | default: "" · maxLength 255 |
role | "server" | "client" | default: "server" |
server_network | string | default: "" · maxLength 255 |
target_group_ids | string (uuid)[] | |
target_host_ids | string (uuid)[] | |
tls_key_enabled | boolean | default: false |
tls_key_material | string | null | |
tls_key_mode | "auth" | "crypt" | default: "crypt" |
Response 201 OpenVpnInstanceRead
Show 22 fields
| Field | Type | Notes |
|---|---|---|
ca_refs | map<string, string> | |
cert_refs | map<string, string> | |
created_at * | string (date-time) | |
deployments * | OpenVpnDeploymentResult[] | |
description * | string | minLength 1, maxLength 255 |
effective_host_ids | string (uuid)[] | |
enabled | boolean | default: true |
id * | string (uuid) | |
local | string | default: "" · maxLength 255 |
port | string | default: "1194" · maxLength 8 |
proto | "udp" | "tcp" | default: "udp" |
remote | string | default: "" · maxLength 255 |
role | "server" | "client" | default: "server" |
server_network | string | default: "" · maxLength 255 |
target_group_ids | string (uuid)[] | |
target_host_ids | string (uuid)[] | |
tls_key_enabled | boolean | default: false |
tls_key_material_set * | boolean | |
tls_key_mode | "auth" | "crypt" | default: "crypt" |
updated_at * | string (date-time) | |
workflow_counts * | map<string, integer> | |
workflow_state * | "attention" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced" |
PUT /api/openvpn/instances/{instance_id}#
Edit Instance
Permission vpn.write (prepare)
Parameters
instance_id * | path | string (uuid) |
Request body OpenVpnInstanceEdit
Show 16 fields
| Field | Type | Notes |
|---|---|---|
ca_refs | map<string, string> | |
cert_refs | map<string, string> | |
description * | string | minLength 1, maxLength 255 |
enabled | boolean | default: true |
expected_updated_at * | string (date-time) | |
local | string | default: "" · maxLength 255 |
port | string | default: "1194" · maxLength 8 |
proto | "udp" | "tcp" | default: "udp" |
remote | string | default: "" · maxLength 255 |
role | "server" | "client" | default: "server" |
server_network | string | default: "" · maxLength 255 |
target_group_ids | string (uuid)[] | |
target_host_ids | string (uuid)[] | |
tls_key_enabled | boolean | default: false |
tls_key_material | string | null | |
tls_key_mode | "auth" | "crypt" | default: "crypt" |
Response 200 OpenVpnInstanceRead
Show 22 fields
| Field | Type | Notes |
|---|---|---|
ca_refs | map<string, string> | |
cert_refs | map<string, string> | |
created_at * | string (date-time) | |
deployments * | OpenVpnDeploymentResult[] | |
description * | string | minLength 1, maxLength 255 |
effective_host_ids | string (uuid)[] | |
enabled | boolean | default: true |
id * | string (uuid) | |
local | string | default: "" · maxLength 255 |
port | string | default: "1194" · maxLength 8 |
proto | "udp" | "tcp" | default: "udp" |
remote | string | default: "" · maxLength 255 |
role | "server" | "client" | default: "server" |
server_network | string | default: "" · maxLength 255 |
target_group_ids | string (uuid)[] | |
target_host_ids | string (uuid)[] | |
tls_key_enabled | boolean | default: false |
tls_key_material_set * | boolean | |
tls_key_mode | "auth" | "crypt" | default: "crypt" |
updated_at * | string (date-time) | |
workflow_counts * | map<string, integer> | |
workflow_state * | "attention" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced" |
DELETE /api/openvpn/instances/{instance_id}#
Delete Instance
Permission vpn.deploy (roll out)
Parameters
instance_id * | path | string (uuid) | |
acknowledge_management_risk | query | boolean |
Response 204
POST /api/openvpn/instances/{instance_id}/deploy#
Deploy
Permission vpn.deploy (roll out)
Parameters
instance_id * | path | string (uuid) |
Request body OpenVpnDeployApproval
Show 2 fields
| Field | Type | Notes |
|---|---|---|
acknowledge_management_risk | boolean | default: false |
preview_token * | string | minLength 64, maxLength 64 |
Response 200 OpenVpnInstanceRead
Show 22 fields
| Field | Type | Notes |
|---|---|---|
ca_refs | map<string, string> | |
cert_refs | map<string, string> | |
created_at * | string (date-time) | |
deployments * | OpenVpnDeploymentResult[] | |
description * | string | minLength 1, maxLength 255 |
effective_host_ids | string (uuid)[] | |
enabled | boolean | default: true |
id * | string (uuid) | |
local | string | default: "" · maxLength 255 |
port | string | default: "1194" · maxLength 8 |
proto | "udp" | "tcp" | default: "udp" |
remote | string | default: "" · maxLength 255 |
role | "server" | "client" | default: "server" |
server_network | string | default: "" · maxLength 255 |
target_group_ids | string (uuid)[] | |
target_host_ids | string (uuid)[] | |
tls_key_enabled | boolean | default: false |
tls_key_material_set * | boolean | |
tls_key_mode | "auth" | "crypt" | default: "crypt" |
updated_at * | string (date-time) | |
workflow_counts * | map<string, integer> | |
workflow_state * | "attention" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced" |
POST /api/openvpn/instances/{instance_id}/deployments/{host_id}/remove#
Remove Previous Target
Permission vpn.deploy (roll out)
Parameters
instance_id * | path | string (uuid) | |
host_id * | path | string (uuid) |
Request body OpenVpnDeployApproval
Show 2 fields
| Field | Type | Notes |
|---|---|---|
acknowledge_management_risk | boolean | default: false |
preview_token * | string | minLength 64, maxLength 64 |
Response 204
GET /api/openvpn/instances/{instance_id}/management-check#
Management Check
Read-only hint next to the preview (R12): does a management source reach this firewall THROUGH this VPN? There is no way back for a VPN change, so a doubtful answer counts like a sure one. Reads the firewalls, writes nothing.
Permission vpn.read (look)
Parameters
instance_id * | path | string (uuid) | |
action | query | "deploy" | "remove" | "delete" | |
host_id | query | string (uuid) | null |
Response 200
GET /api/openvpn/instances/{instance_id}/preview#
Preview Instance
Permission vpn.read (look)
Parameters
instance_id * | path | string (uuid) |
Response 200
GET /api/openvpn/instances/{instance_id}/revisions#
List Revisions
Permission vpn.read (look)
Parameters
instance_id * | path | string (uuid) |