OPNexusdocs

API: ipsec

GET /api/ipsec/tunnels#

List Tunnels

Berechtigung vpn.read (ansehen)

Antwort 200 IpsecTunnelRead[]

21 Felder anzeigen
FeldTypHinweise
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

Berechtigung vpn.write (vorbereiten)

Anfrage-Body IpsecTunnelCreate

14 Felder anzeigen
FeldTypHinweise
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)[]

Antwort 201 IpsecTunnelRead

21 Felder anzeigen
FeldTypHinweise
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

Berechtigung vpn.write (vorbereiten)

Parameter

tunnel_id *pathstring (uuid)

Anfrage-Body IpsecTunnelEdit

15 Felder anzeigen
FeldTypHinweise
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)[]

Antwort 200 IpsecTunnelRead

21 Felder anzeigen
FeldTypHinweise
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

Berechtigung vpn.deploy (ausrollen)

Parameter

tunnel_id *pathstring (uuid)
acknowledge_management_riskqueryboolean

Antwort 204

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

Deploy

Berechtigung vpn.deploy (ausrollen)

Parameter

tunnel_id *pathstring (uuid)

Anfrage-Body IpsecDeployApproval

2 Felder anzeigen
FeldTypHinweise
acknowledge_management_riskboolean default: false
preview_token *stringminLength 64, maxLength 64

Antwort 200 IpsecTunnelRead

21 Felder anzeigen
FeldTypHinweise
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

Berechtigung vpn.deploy (ausrollen)

Parameter

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

Anfrage-Body IpsecDeployApproval

2 Felder anzeigen
FeldTypHinweise
acknowledge_management_riskboolean default: false
preview_token *stringminLength 64, maxLength 64

Antwort 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.

Berechtigung vpn.read (ansehen)

Parameter

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

Antwort 200

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

Preview Tunnel

Berechtigung vpn.read (ansehen)

Parameter

tunnel_id *pathstring (uuid)

Antwort 200

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

List Revisions

Berechtigung vpn.read (ansehen)

Parameter

tunnel_id *pathstring (uuid)

Antwort 200