For the complete documentation index, see llms.txt. This page is also available as Markdown.

Assign static IP addresses to user devices

post
Authorizations
defguard_sessionstringRequired
Path parameters
usernamestringRequired

Name of the user.

Bodyobject · StaticIpAssignment[]
device_idinteger · int64Required
ipsstring[]Required
location_idinteger · int64Required
Responses
200

IP addresses assigned.

application/json
objectOptional
post/api/v1/device/user/{username}/ip
POST /api/v1/device/user/{username}/ip HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 48

[
  {
    "device_id": 1,
    "ips": [
      "text"
    ],
    "location_id": 1
  }
]
{
  "message": "Static IPs assigned successfully"
}

Last updated

Was this helpful?