Get the WireGuard configuration of a network device
get
Authorizations
defguard_sessionstringRequired
Path parameters
device_idinteger · int64Required
ID of the network device.
Responses
200
Network device configuration for each location of the device.
application/json
object[]Optional
401
Session is missing or invalid.
application/json
403
Requires admin privileges or the request must target your own account.
application/json
404
Network device not found.
application/json
500
Unable to get network device configuration.
application/json
get/api/v1/device/network/{device_id}/config
GET /api/v1/device/network/{device_id}/config HTTP/1.1
Accept: */*
[
{
"config": "[Interface]\n...",
"location_mfa_mode": "disabled",
"network_id": 1,
"network_name": "office"
}
]Last updated
Was this helpful?