OPNexusdocs

API: openvpn

GET /api/openvpn/instances#

List Instances

Permission vpn.read (look)

Response 200 OpenVpnInstanceRead[]

Show 22 fields
FieldTypeNotes
ca_refsmap<string, string>
cert_refsmap<string, string>
created_at *string (date-time)
deployments *OpenVpnDeploymentResult[]
description *stringminLength 1, maxLength 255
effective_host_idsstring (uuid)[]
enabledboolean default: true
id *string (uuid)
localstring default: "" · maxLength 255
portstring default: "1194" · maxLength 8
proto"udp" | "tcp" default: "udp"
remotestring default: "" · maxLength 255
role"server" | "client" default: "server"
server_networkstring default: "" · maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]
tls_key_enabledboolean 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
FieldTypeNotes
ca_refsmap<string, string>
cert_refsmap<string, string>
description *stringminLength 1, maxLength 255
enabledboolean default: true
localstring default: "" · maxLength 255
portstring default: "1194" · maxLength 8
proto"udp" | "tcp" default: "udp"
remotestring default: "" · maxLength 255
role"server" | "client" default: "server"
server_networkstring default: "" · maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]
tls_key_enabledboolean default: false
tls_key_materialstring | null
tls_key_mode"auth" | "crypt" default: "crypt"

Response 201 OpenVpnInstanceRead

Show 22 fields
FieldTypeNotes
ca_refsmap<string, string>
cert_refsmap<string, string>
created_at *string (date-time)
deployments *OpenVpnDeploymentResult[]
description *stringminLength 1, maxLength 255
effective_host_idsstring (uuid)[]
enabledboolean default: true
id *string (uuid)
localstring default: "" · maxLength 255
portstring default: "1194" · maxLength 8
proto"udp" | "tcp" default: "udp"
remotestring default: "" · maxLength 255
role"server" | "client" default: "server"
server_networkstring default: "" · maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]
tls_key_enabledboolean 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 *pathstring (uuid)

Request body OpenVpnInstanceEdit

Show 16 fields
FieldTypeNotes
ca_refsmap<string, string>
cert_refsmap<string, string>
description *stringminLength 1, maxLength 255
enabledboolean default: true
expected_updated_at *string (date-time)
localstring default: "" · maxLength 255
portstring default: "1194" · maxLength 8
proto"udp" | "tcp" default: "udp"
remotestring default: "" · maxLength 255
role"server" | "client" default: "server"
server_networkstring default: "" · maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]
tls_key_enabledboolean default: false
tls_key_materialstring | null
tls_key_mode"auth" | "crypt" default: "crypt"

Response 200 OpenVpnInstanceRead

Show 22 fields
FieldTypeNotes
ca_refsmap<string, string>
cert_refsmap<string, string>
created_at *string (date-time)
deployments *OpenVpnDeploymentResult[]
description *stringminLength 1, maxLength 255
effective_host_idsstring (uuid)[]
enabledboolean default: true
id *string (uuid)
localstring default: "" · maxLength 255
portstring default: "1194" · maxLength 8
proto"udp" | "tcp" default: "udp"
remotestring default: "" · maxLength 255
role"server" | "client" default: "server"
server_networkstring default: "" · maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]
tls_key_enabledboolean 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 *pathstring (uuid)
acknowledge_management_riskqueryboolean

Response 204

POST /api/openvpn/instances/{instance_id}/deploy#

Deploy

Permission vpn.deploy (roll out)

Parameters

instance_id *pathstring (uuid)

Request body OpenVpnDeployApproval

Show 2 fields
FieldTypeNotes
acknowledge_management_riskboolean default: false
preview_token *stringminLength 64, maxLength 64

Response 200 OpenVpnInstanceRead

Show 22 fields
FieldTypeNotes
ca_refsmap<string, string>
cert_refsmap<string, string>
created_at *string (date-time)
deployments *OpenVpnDeploymentResult[]
description *stringminLength 1, maxLength 255
effective_host_idsstring (uuid)[]
enabledboolean default: true
id *string (uuid)
localstring default: "" · maxLength 255
portstring default: "1194" · maxLength 8
proto"udp" | "tcp" default: "udp"
remotestring default: "" · maxLength 255
role"server" | "client" default: "server"
server_networkstring default: "" · maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]
tls_key_enabledboolean 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 *pathstring (uuid)
host_id *pathstring (uuid)

Request body OpenVpnDeployApproval

Show 2 fields
FieldTypeNotes
acknowledge_management_riskboolean default: false
preview_token *stringminLength 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 *pathstring (uuid)
actionquery"deploy" | "remove" | "delete"
host_idquerystring (uuid) | null

Response 200

GET /api/openvpn/instances/{instance_id}/preview#

Preview Instance

Permission vpn.read (look)

Parameters

instance_id *pathstring (uuid)

Response 200

GET /api/openvpn/instances/{instance_id}/revisions#

List Revisions

Permission vpn.read (look)

Parameters

instance_id *pathstring (uuid)

Response 200