REST API for USP Network Authentication System® (1.1)

Download OpenAPI specification:

Netdevice API

Bulk-import netdevices

Accepts a list of netdevices for bulk-import. Netdevices with the same hostname are updated, others are created. If the import mode mode is set to FULL, records from the same source are deleted if they are not in the import list.

query Parameters
source
required
string

Import source

mode
required
string
Enum: "FULL" "DELTA"

Import mode

Request Body schema: application/json
required
Array
deviceName
required
string [ 0 .. 80 ] characters

Hostname

deviceIp
string

IP address

deviceClass
required
string
Enum: "SWITCH" "ROUTER" "SWITCHROUTER" "RADIUSAUTH" "ACCOUNTING" "WLAN" "WTP"

Device class

inScope
required
string
Enum: "OUT_OF_SCOPE" "IN_SCOPE" "MAINTENANCE_MODE"

Monitoring scope

location
string [ 0 .. 256 ] characters

Location

blockMechanism
string
Enum: "SYSTEMDEFAULT" "PORTSHUTDOWN" "BLOCKVLAN" "VLANASSIGNMENT"

Block mechanism

l3Mode
string
Enum: "V4" "V6" "V4V6" "SYSTEM"

Router Layer-3 mode

accounting
string
Enum: "ACCOUNTING_DISABLED" "ACCOUNTING_ENABLED_STOP" "ACCOUNTING_ENABLED_ALL"

Accounting

radiusEnforcementPort
integer <int32>

RADIUS enforcement port

macAddress
string

WTP MAC address

ssid
string [ 0 .. 255 ] characters

WTP SSID

tenantName
string

Tenant name

snmpAccessProfileName
string

SNMP access profile

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Fetch list of netdevices

Provides a list of network devices (switches, routers, ...) registered in the USP NAS inventory.

query Parameters
id
integer <int64>

Database ID

deviceName
string

Hostname

deviceIp
string

IP address

deviceClass
string
Enum: "SWITCH" "ROUTER" "SWITCHROUTER" "RADIUSAUTH" "ACCOUNTING" "WLAN" "WTP"

Netdevice class

inScope
string
Enum: "OUT_OF_SCOPE" "IN_SCOPE" "MAINTENANCE_MODE"

Monitoring scope

location
string

Location

description
string

Description

accessControl
string
Enum: "SYSTEMDEFAULT" "PORTSHUTDOWN" "BLOCKVLAN" "VLANASSIGNMENT"

Access control mode

snmpAccessProfileId
string <uuid>

SNMP access profile ID

snmpAccessProfileName
string

SNMP access profile name

errorCode
string
Enum: "NO_ERROR" "COMMUNICATION_ERROR" "NO_MATCHING_ADAPTOR_FOUND" "OID_SCAN_ERROR" "NO_NETPORTS_DEFINED" "UNKNOWN"

Error code

policyGroupName
string

Policy group name

portGroup
string

Portgroup name

accessRule
string

Access rule name

hasNetports
boolean

Whether the device has any interfaces configured as netport (uplink/downlink) or not

source
string

Import source

created_before
string

Registered before [date] (e.g. 2025-08-20, 2025-08-20 15:45, 2025-08-20T16:00:00+02:00)

created_after
string

Registered after [date]

updated_before
string

Last updated before [date]

updated_after
string

Last updated after [date]

lastScan_before
string

Last successful scan before [date]

lastScan_after
string

Last successful scan after [date]

lastScanDuration_min
integer <int32>

Last scan duration greater than [ms]

limit
integer <int32>
Default: 0

Number of records to fetch

offset
integer <int32>
Default: 0

Record offset

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Interface API

Bulk-import portgroup-netdevice mappings

Accepts a list of portgroup-netdevice mappings for bulk-import. If the import mode mode is set to FULL, records from the same source are deleted if they are not in the import list.

query Parameters
source
required
string

Import source

mode
required
string
Enum: "FULL" "DELTA"

Import mode

Request Body schema: application/json
required
Array
deviceName
required
string [ 1 .. 80 ] characters

Netdevice hostname

ifName
string [ 1 .. 80 ] characters

Interface name

ifIndex
integer <int32> >= 1

Interface index

portgroupName
required
string [ 1 .. 80 ] characters

Portgroup name

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Bulk-import netports

Accepts a list of netports for bulk-import. If the import mode mode is set to FULL, records from the same source are deleted if they are not in the import list.

query Parameters
source
required
string

Import source

mode
required
string
Enum: "FULL" "DELTA"

Import mode

Request Body schema: application/json
required
Array
deviceName
required
string [ 1 .. 80 ] characters

Netdevice hostname

ifName
string [ 1 .. 80 ] characters

Interface name

ifIndex
integer <int32> >= 1

Interface index

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Fetch list of interfaces

Provides a list of interfaces (ports) belonging to network devices registered in the USP NAS inventory.

query Parameters
id
integer <int64>

Database ID

netdeviceId
integer <int64>

Netdevice database ID

netdeviceName
string

Netdevice name)

netdeviceIp
string

Netdevice IP address

ifName
string

Interface name

ifIndex
integer <int32>

Interface index

ifAlias
string

Interface alias ('contains' match)

ifType
string

Interface type (e.g. ETHERNET_CSMACD, IEEE_8023AD_LAG, ...)

dot1xEnabled
boolean

RADIUS/802.1x enabled

defaultVlan
integer <int32>

Default VLAN

isNetport
boolean

Netport (uplink/downlink)

policyGroupName
string

Policy group name to which the interface or network device is assigned to

portGroup
string

Effective port group to which the interface or network device is assigned to

accessRule
string

Access rule which applies to this interface, based on the port group

limit
integer <int32>
Default: 0

Number of records to fetch

offset
integer <int32>
Default: 0

Record offset

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Endpoint API

Bulk-import endpoints

Accepts a list of endpoints for bulk-import. Endpoints with the same MAC address are updated, others are created. If the import mode mode is set to FULL, records from the same source are deleted if they are not in the import list.

query Parameters
source
required
string

Import source

mode
required
string
Enum: "FULL" "DELTA"

Import mode

Request Body schema: application/json
required
Array
assetId
required
string [ 0 .. 80 ] characters

Inventory asset ID

parentAssetId
required
string [ 0 .. 80 ] characters

Inventory parent asset ID

clientName
string [ 0 .. 253 ] characters

Client name (hostname)

macAddress
required
string

MAC address

authorized
required
boolean

Whether the endpoint is authorized or not

assetType
string

Inventory asset type

assetClass
string

Inventory asset class

location
string [ 0 .. 100 ] characters

Location

owner
string [ 0 .. 100 ] characters

Owner

tenantName
string

Tenant name

object

Attributes

validUntil
string <date-time>

Valid until

changedBy
string [ 0 .. 80 ] characters

Changed by

identityType
string
Enum: "MAC" "EAP_LAN" "EAP_WLAN"

Identity type

eapUsername
string

EAP username

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Block endpoint

Blocks a specific endpoint by MAC address. If the endpoint is not registered yet, it will be created and set to unauthorized. If an IP address is specified instead, a lookup will be attempted to find the matching MAC address.

Request Body schema: application/json
required
macAddress
string

MAC address

ipAddress
string

IP address used for looking up MAC address, if MAC address is not known

source
string

Import source

Responses

Request samples

Content type
application/json
{
  • "macAddress": "string",
  • "ipAddress": "string",
  • "source": "string"
}

Approve endpoint temporarily

Temporarily approves an endpoint (with a deletion date in the future). If an endpoint is not registered yet, it will be created.

Request Body schema: application/json
required
validUntil
string <date-time>

Valid until date

macAddress
required
string

MAC address

name
required
string

Device owner name

company
required
string

Device owner company

reason
required
string

Reason for approval

assetTypeId
integer <int64>

Optional asset type

assetClassId
integer <int64>

Optional asset class

tenant
string

Optional tenant membership

source
string

Optional tenant membership

Responses

Request samples

Content type
application/json
{
  • "validUntil": "2019-08-24T14:15:22Z",
  • "macAddress": "string",
  • "name": "string",
  • "company": "string",
  • "reason": "string",
  • "assetTypeId": 0,
  • "assetClassId": 0,
  • "tenant": "string",
  • "source": "string"
}

Disconnect endpoint

Disconnects an endpoint and forces reauthentication by sending a RADIUS disconnect message to the related netdevice. The netdevice needs to accept RADIUS disconnect messages from USP NAS, and the matching switch adapter needs to support RADIUS disconnect messages.

Request Body schema: application/json
required
macAddress
string

MAC address

ipAddress
string

IP address used for looking up MAC address, if MAC address is not known

Responses

Request samples

Content type
application/json
{
  • "macAddress": "string",
  • "ipAddress": "string"
}

Fetch list of endpoints

Provides a list of endpoints (client devices) which are either registered in the inventory and/or have been seen in the network. Information from deleted inventory entries will not be included.

query Parameters
macAddress
string

MAC address

macVendor
string

Vendor name related to MAC address

eapUsername
string

EAP username

clientIp
string

Client IP address

clientName
string

Client name from DNS or inventory

vlan
integer <int32>

VLAN

status
string
Enum: "ACTIVE" "INACTIVE" "DISCONNECTED" "CONNECTING"

Network node state

authType
string
Enum: "MAC_SNMP" "MACBYPASS" "IEEE802DOT1X" "RADIUS_MAC_AUTHENTICATION" "UNDEFINED"

Node authentication type

firstSeen_before
string

First seen in network before [date] (e.g. 2025-08-20, 2025-08-20 15:45, 2025-08-20T16:00:00+02:00)

firstSeen_after
string

First seen in network after [date]

lastSeen_before
string

Last seen in network before [date]

lastSeen_after
string

Last seen in network after [date]

lastCheck_before
string

Last policy check happened before [date]

lastCheck_after
string

Last policy check happened after [date]

lastEvent_before
string

Last connection event happened before [date]

lastEvent_after
string

Last connection event happened after [date]

netdeviceId
integer <int64>

Netdevice database ID

netdeviceName
string

Netdevice hostname

netdeviceIp
string

Netdevice IP address

ifName
string

Interface/port name

ifIndex
integer <int32>

Interface/port index

ifAlias
string

Interface/port alias

policyGroupName
string

Policy group name to which the related interface or network device is assigned to

portGroup
string

Effective port group to which the related interface or network device is assigned to

accessRule
string

Access rule which applies to this endpoint, based on the port group

inventoried
boolean

Inventoried

authorized
boolean

Authorized according to the inventory

identityType
string
Enum: "MAC" "EAP_LAN" "EAP_WLAN"

Identity type from inventory

location
string

Location from inventory

owner
string

Owner from inventory

assetType
string

Asset type from inventory

assetClass
string

Asset class from inventory

changedBy
string

Entity which made the last changes to entry in inventory

source
string

Inventory import source

temporarilyInventoried
boolean

Temporarily inventoried (valid until date is set

limit
integer <int32>
Default: 0

Number of records to fetch

offset
integer <int32>
Default: 0

Record offset

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Status API

System and application status

Provides status information about the USP NAS application and operating system

Responses

Data Import API

Fetch list of data import jobs

Provides a list of data import jobs, their status and how many records were imported. Entries are sorted by latest

query Parameters
source
string

Import source

type
string
Enum: "INVENTORY" "NETDEVICE" "NETPORT" "EPC" "PROFILERDEVICE" "PROFILERCOMBINATION" "PORTCONFIG" "PORTGROUP" "EPD" "DNS"

Import type

mode
string
Enum: "FULL" "DELTA"

Import mode

status
string
Enum: "PENDING" "IN_PROGRESS" "SUCCESS" "FAILURE"

Import status

limit
integer <int32>
Default: 0

Number of records to fetch

offset
integer <int32>
Default: 0

Record offset

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Fetch import job details

Provides the details of a given import job, if it exists

path Parameters
id
required
string <uuid>

ID of the import job entry

Responses

Fetch import job failure report

Provides the failure report of a given import job, if it exists

path Parameters
id
required
string <uuid>

ID of the import job entry

Responses