Skip to main content

List and delete devices

Two endpoints cover the Radius device inventory.

Endpoints

ScreenMethodEndpoint
List Radius devicesPOST/network_device/ListDevices
Delete Radius devicePOST/network_device/DeleteDevice

List Radius devices

POST /network_device/ListDevicesRadius → Devices

Returns network devices registered against the domain. Filter by device type to separate Microsoft NPS, Cisco ISE and ClearPass devices.

Body parameters

FieldTypeDescription
domainId (required)integerDirectory domain the devices belong to.
orgId (required)integerOrganization the request acts within. Returned to you at onboarding.
tenantId (required)integerTenant inside the organization. Most single-tenant deployments use 1.
pageIdinteger1-based page number. Defaults to 1.
pageSizeintegerRecords per page. Defaults to 10, maximum 100.
searchstringFree-text search across device name and IP address.
filter.filterBystringColumn to filter on, for example DEVICE_NAME.
filter.valuestringValue to match, for example Microsoft NPS.
MachineTypestringDevice class. Use radius for Radius Mode.

Example request

curl -X POST 'https://api.authnull.com/network_device/ListDevices' \
-H 'Content-Type: application/json' \
-H "X-Authorization: $AUTHNULL_TOKEN" \
-d '{
"domainId": 1,
"pageId": 1,
"pageSize": 10,
"search": "",
"filter": { "filterBy": "DEVICE_NAME", "value": "Microsoft NPS" },
"MachineType": "radius",
"tenantId": 1,
"orgId": 105
}'

Responses

200 OK
{
"network_devices": [
{
"ip_address": "10.0.0.10",
"client_ip": "10.0.0.20",
"device_type": "Microsoft NPS",
"nas_port_type": "Wireless"
}
]
}
403 Forbidden
{
"error": "domain 1 not in tenant 1",
"code": 403
}

Errors

CodeMessageCause
400invalid filterByfilterBy names a column that does not exist on network devices.
403domain not in tenantdomainId belongs to a different tenant than the token.

Response fields

FieldTypeDescription
ip_addressstringAddress of the Radius server itself.
client_ipstringAddress of the client that authenticated through it.
device_typestringVendor product, such as Microsoft NPS.
nas_port_typestringAccess medium reported by the NAS, such as Wireless or Ethernet.

Delete a device

DeleteDevice removes a device from the inventory. It does not uninstall the agent or reconfigure the vendor server, so a device that is still forwarding requests will re-register.

Payload needed.

The DeleteDevice request body was not supplied — most likely a device identifier alongside the usual scope fields.