OPNexusdocs

API: ipsec

GET /api/ipsec/tunnels#

List Tunnels

Permission vpn.read (look)

Response 200 IpsecTunnelRead[]

Show 21 fields
FieldTypeNotes
created_at *string (date-time)
deployments *IpsecDeploymentResult[]
description *stringminLength 1, maxLength 255
effective_host_idsstring (uuid)[]
enabledboolean default: true
esp_proposalstring default: "default" · minLength 1, maxLength 128
id *string (uuid)
ike_version"ike" | "ikev1" | "ikev2" default: "ikev2"
local_address *stringminLength 1, maxLength 255
local_identity *stringminLength 1, maxLength 255
local_networks *stringminLength 1, maxLength 255
pre_shared_key_set *boolean
proposalstring default: "default" · minLength 1, maxLength 128
remote_address *stringminLength 1, maxLength 255
remote_identitystring default: "" · maxLength 255
remote_networks *stringminLength 1, maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]
updated_at *string (date-time)
workflow_counts *map<string, integer>
workflow_state *"attention" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced"

POST /api/ipsec/tunnels#

Create Tunnel

Permission vpn.write (prepare)

Request body IpsecTunnelCreate

Show 14 fields
FieldTypeNotes
description *stringminLength 1, maxLength 255
enabledboolean default: true
esp_proposalstring default: "default" · minLength 1, maxLength 128
ike_version"ike" | "ikev1" | "ikev2" default: "ikev2"
local_address *stringminLength 1, maxLength 255
local_identity *stringminLength 1, maxLength 255
local_networks *stringminLength 1, maxLength 255
pre_shared_key *stringminLength 1, maxLength 512
proposalstring default: "default" · minLength 1, maxLength 128
remote_address *stringminLength 1, maxLength 255
remote_identitystring default: "" · maxLength 255
remote_networks *stringminLength 1, maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]

Response 201 IpsecTunnelRead

Show 21 fields
FieldTypeNotes
created_at *string (date-time)
deployments *IpsecDeploymentResult[]
description *stringminLength 1, maxLength 255
effective_host_idsstring (uuid)[]
enabledboolean default: true
esp_proposalstring default: "default" · minLength 1, maxLength 128
id *string (uuid)
ike_version"ike" | "ikev1" | "ikev2" default: "ikev2"
local_address *stringminLength 1, maxLength 255
local_identity *stringminLength 1, maxLength 255
local_networks *stringminLength 1, maxLength 255
pre_shared_key_set *boolean
proposalstring default: "default" · minLength 1, maxLength 128
remote_address *stringminLength 1, maxLength 255
remote_identitystring default: "" · maxLength 255
remote_networks *stringminLength 1, maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]
updated_at *string (date-time)
workflow_counts *map<string, integer>
workflow_state *"attention" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced"

PUT /api/ipsec/tunnels/{tunnel_id}#

Edit Tunnel

Permission vpn.write (prepare)

Parameters

tunnel_id *pathstring (uuid)

Request body IpsecTunnelEdit

Show 15 fields
FieldTypeNotes
description *stringminLength 1, maxLength 255
enabledboolean default: true
esp_proposalstring default: "default" · minLength 1, maxLength 128
expected_updated_at *string (date-time)
ike_version"ike" | "ikev1" | "ikev2" default: "ikev2"
local_address *stringminLength 1, maxLength 255
local_identity *stringminLength 1, maxLength 255
local_networks *stringminLength 1, maxLength 255
pre_shared_keystring | null
proposalstring default: "default" · minLength 1, maxLength 128
remote_address *stringminLength 1, maxLength 255
remote_identitystring default: "" · maxLength 255
remote_networks *stringminLength 1, maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]

Response 200 IpsecTunnelRead

Show 21 fields
FieldTypeNotes
created_at *string (date-time)
deployments *IpsecDeploymentResult[]
description *stringminLength 1, maxLength 255
effective_host_idsstring (uuid)[]
enabledboolean default: true
esp_proposalstring default: "default" · minLength 1, maxLength 128
id *string (uuid)
ike_version"ike" | "ikev1" | "ikev2" default: "ikev2"
local_address *stringminLength 1, maxLength 255
local_identity *stringminLength 1, maxLength 255
local_networks *stringminLength 1, maxLength 255
pre_shared_key_set *boolean
proposalstring default: "default" · minLength 1, maxLength 128
remote_address *stringminLength 1, maxLength 255
remote_identitystring default: "" · maxLength 255
remote_networks *stringminLength 1, maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]
updated_at *string (date-time)
workflow_counts *map<string, integer>
workflow_state *"attention" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced"

DELETE /api/ipsec/tunnels/{tunnel_id}#

Delete Tunnel

Permission vpn.deploy (roll out)

Parameters

tunnel_id *pathstring (uuid)
acknowledge_management_riskqueryboolean

Response 204

POST /api/ipsec/tunnels/{tunnel_id}/deploy#

Deploy

Permission vpn.deploy (roll out)

Parameters

tunnel_id *pathstring (uuid)

Request body IpsecDeployApproval

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

Response 200 IpsecTunnelRead

Show 21 fields
FieldTypeNotes
created_at *string (date-time)
deployments *IpsecDeploymentResult[]
description *stringminLength 1, maxLength 255
effective_host_idsstring (uuid)[]
enabledboolean default: true
esp_proposalstring default: "default" · minLength 1, maxLength 128
id *string (uuid)
ike_version"ike" | "ikev1" | "ikev2" default: "ikev2"
local_address *stringminLength 1, maxLength 255
local_identity *stringminLength 1, maxLength 255
local_networks *stringminLength 1, maxLength 255
pre_shared_key_set *boolean
proposalstring default: "default" · minLength 1, maxLength 128
remote_address *stringminLength 1, maxLength 255
remote_identitystring default: "" · maxLength 255
remote_networks *stringminLength 1, maxLength 255
target_group_idsstring (uuid)[]
target_host_idsstring (uuid)[]
updated_at *string (date-time)
workflow_counts *map<string, integer>
workflow_state *"attention" | "cleanup" | "unassigned" | "disabled" | "draft" | "synced"

POST /api/ipsec/tunnels/{tunnel_id}/deployments/{host_id}/remove#

Remove Previous Target

Permission vpn.deploy (roll out)

Parameters

tunnel_id *pathstring (uuid)
host_id *pathstring (uuid)

Request body IpsecDeployApproval

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

Response 204

GET /api/ipsec/tunnels/{tunnel_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

tunnel_id *pathstring (uuid)
actionquery"deploy" | "remove" | "delete"
host_idquerystring (uuid) | null

Response 200

GET /api/ipsec/tunnels/{tunnel_id}/preview#

Preview Tunnel

Permission vpn.read (look)

Parameters

tunnel_id *pathstring (uuid)

Response 200

GET /api/ipsec/tunnels/{tunnel_id}/revisions#

List Revisions

Permission vpn.read (look)

Parameters

tunnel_id *pathstring (uuid)

Response 200