List the IP addresses of all devices of a user, grouped by location
get
Authorizations
defguard_sessionstringRequired
Path parameters
usernamestringRequired
Name of the user.
Responses
200
IP addresses of all devices of the user, grouped by location.
application/json
objectOptional
401
Session is missing or invalid.
application/json
403
Requires admin privileges.
application/json
404
User not found.
application/json
500
Unable to get user device IP addresses.
application/json
get/api/v1/device/user/{username}/ip
GET /api/v1/device/user/{username}/ip HTTP/1.1
Accept: */*
{
"locations": [
{
"devices": [
{
"device_id": 5,
"device_name": "laptop",
"wireguard_ips": [
{
"ip": "10.0.0.15",
"modifiable_part": "15",
"network_part": "10.0.0.",
"network_prefix": "/24"
}
]
}
],
"location_id": 1,
"location_name": "office"
}
]
}Last updated
Was this helpful?