onway director API (5.10.1)

Download OpenAPI specification:Download

Introduction

Response schema

Each response of the API is structured according to the same schema. The status property displays the returned HTTP status, while the links property provides useful URI templates (RFC 6570) for navigation. The answer itself is provided via the content property. If an error occurs, the problem property is set and provides useful information about the error.

Problem schema

A problem has four different properties. The type property specifies the type of the problem. In addition, the title property provides a human-readable title and the optional message property contains the error message itself. If the problem is of the type constraint-violations, the optional violations property provides more details about the problem. Such a violation object supplies the two fields field and message.

Response codes

The API uses only the following status codes:

  • The 200 (OK) status code indicates that the request has succeeded. The payload sent in a 200 response depends on the request method.

  • The 400 (Bad Request) status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

  • The 401 (Unauthorized) status code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.

  • The 403 (Forbidden) status code indicates that the server understood the request but refuses to authorize it.

  • 404 The 404 (Not Found) status code indicates that the origin server did not find a current representation for the target resource or is not willing to disclose that one exists. A 404 status code does not indicate whether this lack of representation is temporary or permanent.

  • The 500 (Internal Server Error) status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.

Authentication

To use the API, a security token must always be sent in the x-auth-token header. This token can be obtained via the authentication API.

Endpoints

All public endpoints start with the prefix /api. These endpoints are documented and stable.

All other endpoints are internal and breaking changes may be introduced at any time.

Pagination

Most endpoints support pagination. Unless you create a UI, you probably don't need this feature.

The onway director uses the so-called keyset pagination method also called seek method. This method loads the next page relative to an element of the current page. You can navigate forward by requesting the elements that come after the last element of the current page, or backwards by requesting the elements that come before the first element of the current page.

A request to load a page contains the following parameters:

Parameter Description
size The number of elements to load.
seekDirection FORWARD or BACKWARD
seekIdentifier.* One or more fields to uniquely identify an element. If the seekDirection is FORWARD, the page will contain elements that come after this element according to the sort order. If the seekDirection is BACKWARD, the page will contain elements that come before this element according to the sort order.

Example:

Assume we have an entity with one field called name. We can load the first page with the request: /api/my-endpoint?size=3.

{
    "status": 200,
    "reason": "OK",
    "content": {
        "hasNext": "YES",
        "hasPrevious": "NO",
        "entities": [
            {
                "name": "A",
            },
            {
                "name": "B",
            },
            {
                "name": "C",
            }
        ]
    }
}

To load the next page we can use the name of the last element as seek identifier: /api/my-endpoint?size=3&seekDirection=FORWARD&seekIdentifier.name=C.

{
    "status": 200,
    "reason": "OK",
    "content": {
        "hasNext": "NO",
        "hasPrevious": "UNKNOWN",
        "entities": [
            {
                "name": "D",
            },
            {
                "name": "E",
            },
             {
                "name": "F",
            }
        ]
    }
}

Authentication

Authentication API to login and logout.

Login Directories

Get all login directories of a user to find the corresponding directory ID.

query Parameters
username
required
string

The login username.

Responses

Request samples

curl --request GET \
  --url 'http://localhost/api/login-directories?username=SOME_STRING_VALUE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Login

Request Body schema: application/json
required
username
required
string

The login username.

password
required
string

The login password.

userDirectoryId
required
integer <int64>

ID of the user directory. You can find the ID under: Sponsoring Portal / Administration / User Directories.

detectedLanguage
string

Detected browser language.

manualSelectedLanguage
string

Manual selected language.

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "password": "string",
  • "userDirectoryId": 0,
  • "detectedLanguage": "string",
  • "manualSelectedLanguage": "string"
}

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Logout

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request POST \
  --url http://localhost/api/logout \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": { }
}

Authentication Check

Check authentication state.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/is-authenticated \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": true
}

Application Version

Provides access to the application version.

Get application version

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/version \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Customers

Provides access to the customers.

Get all customers

Returns all customers you have access to.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/customers \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": [
    ]
}

Get a specific customer

path Parameters
key
required
string

key of the customer

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/customers/EXAMPLE_VALUE \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Tags

Provides access to the tags.

Get all tags of a customer

path Parameters
customerKey
required
string

Specifies the key of the customer.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/tags/EXAMPLE_VALUE \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": [
    ]
}

Input Templates

Provides access to the input templates.

Get all input templates

query Parameters
customerKey
string
header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url 'http://localhost/api/input-templates?customerKey=SOME_STRING_VALUE' \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": [
    ]
}

Network Access Groups

Provides access to the Network Access Groups.

Get network access groups

query Parameters
customerKey
required
string

Specifies the key of the customer.

type
required
string
Enum: "PEAP" "IPSK" "MAB" "BYOD" "OR"

Network access group type

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url 'http://localhost/api/macman/group?customerKey=SOME_STRING_VALUE&type=SOME_STRING_VALUE' \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": [
    ]
}

Network Access Accounts

Allows to create, read, update and delete Network Access Accounts.

Get network access accounts

query Parameters
size
integer <int32>

Number of entities to fetch. The default value is 25.

customerKey
required
string

Specifies the key of the customer.

type
required
string
Enum: "PEAP" "IPSK" "MAB" "BYOD_USER" "BYOD_DEVICE" "PEAP_DEVICE" "OR_USER" "OR_DEVICE"

Network access account type

seekIdentifier.username
string

Username used for pagination.

seekIdentifier.naGroupId
integer <int64>

Network access group id used for pagination. Required if seekIdentifier.username is set.

seekIdentifier.id
integer <int64>

Network access account id used for pagination. Required if seekIdentifier.username is set.

seekDirection
string
Enum: "FORWARD" "BACKWARD"

Seek direction used for pagination.

naGroupIds
Array of integers <int64> unique [ items <int64 > ]

Specifies the filtered group IDs which the entities must have.

tagIds
Array of integers <int64> unique [ items <int64 > ]

Specifies which tag IDs the filtered entities must have.

tagOperator
string
Enum: "OR" "AND"

Specifies if the filtered entities must have all tag ids (AND) or any (OR).

query
string

Search query applied to the name and comment field. Multiple values can be specified separated by spaces.

validityType
string
Enum: "CUSTOM" "EXPIRED" "UNLIMITED" "VALID_NOW" "VALID_IN_FUTURE"
customValidity.validFrom
string <date-time>

Required if validityType is CUSTOM

customValidity.validTo
string <date-time>

Required if validityType is CUSTOM

stateFilterType
string
Enum: "NORMAL" "DELETED" "ALL"

Whether only active, deleted or all accounts should be included.

onlineStatusFilterType
string
Enum: "ALL" "UNKNOWN" "ONLINE" "OFFLINE"

Whether network access accounts with certain online status should be included.

lastSeenFilterType
string
Enum: "NEVER_SEEN" "NOT_SEEN_SINCE_DURATION" "NOT_SEEN_SINCE_DATE" "SEEN_SINCE_DURATION" "SEEN_SINCE_DATE"

Allows to filter accounts/devices by the lastSeenAt field.

lastSeenDate
string <date-time>

This field is required if lastSeenFilterType has one of the following values:

  • NOT_SEEN_SINCE_DATE: Only entities that have not been seen since this date will be returned.
  • SEEN_SINCE_DATE: Only entities that are online or have been online since this date will be returned.
lastSeenDuration
string <ISO 8601 duration>
Example: lastSeenDuration=PT10H

This field is required if lastSeenFilterType has one of the following values:

  • NOT_SEEN_SINCE_DURATION: Only entities that have not been seen for this duration will be returned.
  • SEEN_SINCE_DURATION: Only entities that are online or were last online within this duration will be returned.
header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url 'http://localhost/api/EXAMPLE_VALUE/account?size=SOME_INTEGER_VALUE&customerKey=SOME_STRING_VALUE&type=SOME_STRING_VALUE&seekIdentifier.username=SOME_STRING_VALUE&seekIdentifier.naGroupId=SOME_INTEGER_VALUE&seekIdentifier.id=SOME_INTEGER_VALUE&seekDirection=SOME_STRING_VALUE&naGroupIds=SOME_ARRAY_VALUE&tagIds=SOME_ARRAY_VALUE&tagOperator=SOME_STRING_VALUE&query=SOME_STRING_VALUE&validityType=SOME_STRING_VALUE&customValidity.validFrom=SOME_STRING_VALUE&customValidity.validTo=SOME_STRING_VALUE&stateFilterType=SOME_STRING_VALUE&onlineStatusFilterType=SOME_STRING_VALUE&lastSeenFilterType=SOME_STRING_VALUE&lastSeenDate=SOME_STRING_VALUE&lastSeenDuration=PT10H' \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Create a network access account

path Parameters
customerKey
required
string

Specifies the key of the customer.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE
Request Body schema: application/json
required
type
required
string
Enum: "PEAP" "IPSK" "MAB"

Network access account type

naGroupId
required
integer <int64>
username
required
string
password
string

Required to create a PEAP user or iPSK device. Optional when updating.

comment
string
object (AccountValidityDTO)

Validity period of the account.

tagIds
Array of integers <int64> unique [ items <int64 > ]
Array of objects (CustomFieldValueDTO)

Responses

Request samples

Content type
application/json
{
  • "type": "PEAP",
  • "naGroupId": 0,
  • "username": "string",
  • "password": "string",
  • "comment": "string",
  • "validity": {
    },
  • "tagIds": [
    ],
  • "customFieldValues": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Get a specific network access account

path Parameters
customerKey
required
string

Specifies the key of the customer.

id
required
integer <int64>

Specifies the ID of the entity.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/EXAMPLE_VALUE/account/EXAMPLE_VALUE \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Update a network access account

path Parameters
customerKey
required
string

Specifies the key of the customer.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE
Request Body schema: application/json
required
id
required
integer <int64>
type
required
string
Enum: "PEAP" "IPSK" "MAB"

Network access account type

naGroupId
required
integer <int64>
username
required
string
password
string

Required to create a PEAP user or iPSK device. Optional when updating.

comment
string
object (AccountValidityDTO)

Validity period of the account.

tagIds
Array of integers <int64> unique [ items <int64 > ]
Array of objects (CustomFieldValueDTO)

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "type": "PEAP",
  • "naGroupId": 0,
  • "username": "string",
  • "password": "string",
  • "comment": "string",
  • "validity": {
    },
  • "tagIds": [
    ],
  • "customFieldValues": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Mark a network access account as deleted

An account that is marked as deleted can no longer login. The account is deleted after a retention period that can be configured in the settings.

path Parameters
customerKey
required
string

Specifies the key of the customer.

id
required
integer <int64>

Specifies the ID of the entity.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request DELETE \
  --url http://localhost/api/EXAMPLE_VALUE/account/EXAMPLE_VALUE \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Systems

Allows to create, read, update and delete Systems.

Get a specific system

path Parameters
id
required
integer <int64>

Specifies the ID of the entity.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/system/EXAMPLE_VALUE \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Update a system

path Parameters
id
required
integer <int64>

Specifies the ID of the entity.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE
Request Body schema: application/json
required
name
required
string

The user defined unique name of the system.

dmGroupId
required
integer <int64>

The ID of the corresponding device management group.

required
object (SystemTemplateIdentifierDTO)

The identifier of the system template that is assigned. The template can be changed without affecting the deployed system.

description
string

The optional description or comment.

tagIds
Array of integers <int64> unique [ items <int64 > ]

The assigned tags of the system.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "dmGroupId": 0,
  • "editSystemTemplateIdentifier": {
    },
  • "description": "string",
  • "tagIds": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Mark a system as deleted

The system is permanently deleted after the retention time has expired.

path Parameters
id
required
integer <int64>

Specifies the ID of the entity.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request DELETE \
  --url http://localhost/api/system/EXAMPLE_VALUE \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": { }
}

Decommission a system

path Parameters
id
required
integer <int64>

Specifies the ID of the entity.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request PUT \
  --url http://localhost/api/system/EXAMPLE_VALUE/decommission \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Deploy a system

path Parameters
id
required
integer <int64>

Specifies the ID of the entity.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request PUT \
  --url http://localhost/api/system/EXAMPLE_VALUE/deploy \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Update a device slot of a system

path Parameters
id
required
integer <int64>

Specifies the ID of the entity.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE
Request Body schema: application/json
required
id
required
integer <int64>

The ID of the system device slot.

editDeviceId
integer <int64>

The ID of the device assigned to the slot. Exclude this field or use null to unassign the device.

Array of objects (SystemDeviceSlotVariableDTO)

The variables assigned to the slot.

editIpAddressPoolSubnet
string

The IP address pool subnet assigned to the slot

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "editDeviceId": 0,
  • "editVariables": [
    ],
  • "editIpAddressPoolSubnet": "string"
}

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Get systems

path Parameters
customerKey
required
string

Specifies the key of the customer.

query Parameters
seekDirection
string
Enum: "FORWARD" "BACKWARD"

Seek direction used for pagination.

size
integer <int32>

Number of entities to fetch. The default value is 25.

seekIdentifier.name
string

Name used for pagination.

dmGroupIds
Array of integers <int64> [ items <int64 > ]

Specifies the filtered group IDs which the entities must have.

tagIds
Array of integers <int64> [ items <int64 > ]

Specifies which tag IDs the filtered entities must have.

tagOperator
string
Enum: "OR" "AND"

Specifies if the filtered entities must have all tag ids (AND) or any (OR).

search
string

Search query applied to the name or comment field. Multiple values can be specified separated by spaces.

states
Array of strings
Items Enum: "ACTIVE" "DELETED" "INACTIVE" "ONLINE" "OFFLINE" "UNKNOWN"

Whether only online, offline, unknown, deleted or all systems should be included.

severities
Array of strings
Items Enum: "CRITICAL" "INFO" "OK" "WARNING"

Whether only systems whose status has the severity level ok, info, warning, critical (or none of these) should be included.

systemTemplateIdentifier.id
required
integer <int64>

The ID of the system template.

systemTemplateIdentifier.revision
required
integer <int64>

The revision of the system template. In the user interface, the revision is referred to as "version". These two terms are interchangeable.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url 'http://localhost/api/EXAMPLE_VALUE/system?seekDirection=SOME_STRING_VALUE&size=SOME_INTEGER_VALUE&seekIdentifier.name=SOME_STRING_VALUE&dmGroupIds=SOME_ARRAY_VALUE&tagIds=SOME_ARRAY_VALUE&tagOperator=SOME_STRING_VALUE&search=SOME_STRING_VALUE&states=SOME_ARRAY_VALUE&severities=SOME_ARRAY_VALUE&systemTemplateIdentifier.id=SOME_INTEGER_VALUE&systemTemplateIdentifier.revision=SOME_INTEGER_VALUE' \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Create a system

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE
Request Body schema: application/json
required
name
required
string

The user defined unique name of the system.

dmGroupId
required
integer <int64>

The ID of the corresponding device management group.

required
object (SystemTemplateIdentifierDTO)

The identifier of the system template that is assigned. The template can be changed without affecting the deployed system.

description
string

The optional description or comment.

tagIds
Array of integers <int64> unique [ items <int64 > ]

The assigned tags of the system.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "dmGroupId": 0,
  • "editSystemTemplateIdentifier": {
    },
  • "description": "string",
  • "tagIds": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Get all names of the systems that belong to the specified customer taking into account the user permissions.

path Parameters
customerKey
required
string

Specifies the key of the customer.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/EXAMPLE_VALUE/system/names \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": [
    ]
}

Devices

Manage Devices.

Get devices

path Parameters
customerKey
required
string

Specifies the key of the customer.

query Parameters
size
integer <int32>

Number of entities to fetch. The default value is 25.

seekIdentifier.productSku
string

Product stock keeping unit used for pagination. If set, all other seekIdentifier parameters must be set as well.

seekIdentifier.serial
string

Serial used for pagination. If set, all other seekIdentifier parameters must be set as well.

seekDirection
string
Enum: "FORWARD" "BACKWARD"

Seek direction used for pagination.

dmGroupIds
Array of integers <int64> [ items <int64 > ]

Specifies the filtered group IDs which the entities must have.

productIds
Array of integers <int32> [ items <int32 > ]
tagIds
Array of integers <int64> [ items <int64 > ]

Specifies which tag IDs the filtered entities must have.

tagOperator
string
Enum: "OR" "AND"

Specifies if the filtered entities must have all tag ids (AND) or any (OR).

search
string

Search query applied to the serial and comment field. Multiple values can be specified separated by spaces.

onlineStatus
Array of strings
Items Enum: "ONLINE" "OFFLINE"
activeStatus
Array of strings
Items Enum: "ACTIVE" "DELETED"
assignableToSystem
integer <int64>

Only include devices that can be assigned to the system with this id. This parameter does not take into account the product restrictions that may be defined on the system template device slot. Must be used together with assignableToSystemDeviceSlot.

assignableToSystemDeviceSlot
integer <int64>

Only include devices that can be assigned to the system device slot with this id. This parameter does not take into account the product restrictions that may be defined on the system template device slot. Must be used together with assignableToSystem.

assignedToSystem
integer <int64>

Only include devices that are assigned to the system with this id. Must not be used together with assignableToSystem and assignableToSystemDeviceSlot.

osVersions
Array of strings

Only include devices with these OS versions.

lastSeenFilterType
string
Enum: "NEVER_SEEN" "NOT_SEEN_SINCE_DURATION" "NOT_SEEN_SINCE_DATE" "SEEN_SINCE_DURATION" "SEEN_SINCE_DATE"

Allows to filter accounts/devices by the lastSeenAt field.

lastSeenDate
string <date-time>

This field is required if lastSeenFilterType has one of the following values:

  • NOT_SEEN_SINCE_DATE: Only entities that have not been seen since this date will be returned.
  • SEEN_SINCE_DATE: Only entities that are online or have been online since this date will be returned.
lastSeenDuration
string <ISO 8601 duration>
Example: lastSeenDuration=PT10H

This field is required if lastSeenFilterType has one of the following values:

  • NOT_SEEN_SINCE_DURATION: Only entities that have not been seen for this duration will be returned.
  • SEEN_SINCE_DURATION: Only entities that are online or were last online within this duration will be returned.
header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url 'http://localhost/api/EXAMPLE_VALUE/device?size=SOME_INTEGER_VALUE&seekIdentifier.productSku=SOME_STRING_VALUE&seekIdentifier.serial=SOME_STRING_VALUE&seekDirection=SOME_STRING_VALUE&dmGroupIds=SOME_ARRAY_VALUE&productIds=SOME_ARRAY_VALUE&tagIds=SOME_ARRAY_VALUE&tagOperator=SOME_STRING_VALUE&search=SOME_STRING_VALUE&onlineStatus=SOME_ARRAY_VALUE&activeStatus=SOME_ARRAY_VALUE&assignableToSystem=SOME_INTEGER_VALUE&assignableToSystemDeviceSlot=SOME_INTEGER_VALUE&assignedToSystem=SOME_INTEGER_VALUE&osVersions=SOME_ARRAY_VALUE&lastSeenFilterType=SOME_STRING_VALUE&lastSeenDate=SOME_STRING_VALUE&lastSeenDuration=PT10H' \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Get a specific device

path Parameters
customerKey
required
string

Specifies the key of the customer.

id
required
integer <int64>

Specifies the ID of the entity.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/EXAMPLE_VALUE/device/EXAMPLE_VALUE \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Update a device

path Parameters
customerKey
required
string

Specifies the key of the customer.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE
Request Body schema: application/json
required
id
required
integer <int64>
dmGroupId
required
integer <int64>
comment
string
tagIds
Array of integers <int64> unique [ items <int64 > ]

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "dmGroupId": 0,
  • "comment": "string",
  • "tagIds": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Device Telemetry

Read device telemetry data.

Get the latest telemetry data for a device

path Parameters
customerKey
required
string

Specifies the key of the customer.

deviceId
required
integer <int64>

Specifies the ID of the device.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/EXAMPLE_VALUE/device/EXAMPLE_VALUE/telemetry \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

SIM Cards

Manage SIM cards.

Get SIM cards

path Parameters
customerKey
required
string

Specifies the key of the customer.

query Parameters
size
integer <int32>

Number of entities to fetch. The default value is 25.

seekIdentifier.iccid
string

ICCID used for pagination.

seekDirection
string
Enum: "FORWARD" "BACKWARD"

Seek direction used for pagination.

tagIds
Array of integers <int64> [ items <int64 > ]

Specifies which tag IDs the filtered entities must have.

tagOperator
string
Enum: "OR" "AND"

Specifies if the filtered entities must have all tag ids (AND) or any (OR).

search
string

Search query applied to the ICCID, IMSI, MSISDN or comment field, or the name of the associated device. Multiple values can be specified separated by spaces.

lastSeenFilterType
string
Enum: "NEVER_SEEN" "NOT_SEEN_SINCE_DURATION" "NOT_SEEN_SINCE_DATE" "SEEN_SINCE_DURATION" "SEEN_SINCE_DATE"

Allows to filter accounts/devices by the lastSeenAt field.

lastSeenDate
string <date-time>

This field is required if lastSeenFilterType has one of the following values:

  • NOT_SEEN_SINCE_DATE: Only entities that have not been seen since this date will be returned.
  • SEEN_SINCE_DATE: Only entities that are online or have been online since this date will be returned.
lastSeenDuration
string <ISO 8601 duration>
Example: lastSeenDuration=PT10H

This field is required if lastSeenFilterType has one of the following values:

  • NOT_SEEN_SINCE_DURATION: Only entities that have not been seen for this duration will be returned.
  • SEEN_SINCE_DURATION: Only entities that are online or were last online within this duration will be returned.
header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url 'http://localhost/api/EXAMPLE_VALUE/sim-cards?size=SOME_INTEGER_VALUE&seekIdentifier.iccid=SOME_STRING_VALUE&seekDirection=SOME_STRING_VALUE&tagIds=SOME_ARRAY_VALUE&tagOperator=SOME_STRING_VALUE&search=SOME_STRING_VALUE&lastSeenFilterType=SOME_STRING_VALUE&lastSeenDate=SOME_STRING_VALUE&lastSeenDuration=PT10H' \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Create a SIM card

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE
Request Body schema: application/json
required
iccid
required
string

Digits. The final digit must conform to the Luhn algorithm.

customerKey
required
string
imsi
string

Max. 15 digits.

msisdn
string

Max. 15 digits.

withPin
boolean

Flag to define if the security codes (PIN, PUK) are persisted.

object (SimCardSecurityDTO)
comment
string
tagIds
Array of integers <int64> unique [ items <int64 > ]
slot
integer <int32>
mcc
integer <int32>
mnc
integer <int32>
deviceId
integer <int64>
lastSeenAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "iccid": "string",
  • "customerKey": "string",
  • "imsi": "string",
  • "msisdn": "string",
  • "withPin": true,
  • "security": {
    },
  • "comment": "string",
  • "tagIds": [
    ],
  • "slot": 0,
  • "mcc": 0,
  • "mnc": 0,
  • "deviceId": 0,
  • "lastSeenAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Get a SIM card

path Parameters
iccid
required
string
header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/EXAMPLE_VALUE/sim-cards/EXAMPLE_VALUE \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Update a SIM card

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE
Request Body schema: application/json
required
iccid
required
string

Digits. The final digit must conform to the Luhn algorithm.

customerKey
required
string
imsi
string

Max. 15 digits.

msisdn
string

Max. 15 digits.

withPin
boolean

Flag to define if the security codes (PIN, PUK) are persisted.

object (SimCardSecurityDTO)
comment
string
tagIds
Array of integers <int64> unique [ items <int64 > ]
slot
integer <int32>
mcc
integer <int32>
mnc
integer <int32>
deviceId
integer <int64>
lastSeenAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "iccid": "string",
  • "customerKey": "string",
  • "imsi": "string",
  • "msisdn": "string",
  • "withPin": true,
  • "security": {
    },
  • "comment": "string",
  • "tagIds": [
    ],
  • "slot": 0,
  • "mcc": 0,
  • "mnc": 0,
  • "deviceId": 0,
  • "lastSeenAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Delete a SIM card

path Parameters
iccid
required
string
header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request DELETE \
  --url http://localhost/api/EXAMPLE_VALUE/sim-cards/EXAMPLE_VALUE \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": { }
}

Bundles

Allows to read Bundles.

Search bundles

path Parameters
customerKey
required
string

Specifies the key of the customer.

query Parameters
seekDirection
string
Enum: "FORWARD" "BACKWARD"

Seek direction used for pagination.

size
integer <int32>

Number of entities to fetch. The default value is 25.

seekIdentifier.name
string

Name used for pagination.

search
string

Search query applied to the name field. Multiple values can be specified separated by spaces.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url 'http://localhost/api/EXAMPLE_VALUE/bundle?seekDirection=SOME_STRING_VALUE&size=SOME_INTEGER_VALUE&seekIdentifier.name=SOME_STRING_VALUE&search=SOME_STRING_VALUE' \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Get available bundles

Returns all bundles for which the user has the "bundle_read" permission.

path Parameters
customerKey
required
string
header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/EXAMPLE_VALUE/bundles \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": [
    ]
}

System Templates

Allows to read System Templates.

Search system templates

path Parameters
customerKey
required
string

Specifies the key of the customer.

query Parameters
seekDirection
string
Enum: "FORWARD" "BACKWARD"

Seek direction used for pagination.

size
integer <int32>

Number of entities to fetch. The default value is 25.

seekIdentifier.name
string

Name used for pagination.

search
string

Search query applied to the name field. Multiple values can be specified separated by spaces.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url 'http://localhost/api/EXAMPLE_VALUE/system-template?seekDirection=SOME_STRING_VALUE&size=SOME_INTEGER_VALUE&seekIdentifier.name=SOME_STRING_VALUE&search=SOME_STRING_VALUE' \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Get available system templates

Returns all system templates for which the user has the "system manage" permission. Only the fields that are relevant for creating a new system are returned.

path Parameters
customerKey
required
string
header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/EXAMPLE_VALUE/system-templates \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": [
    ]
}

Get revision metadata

Returns the metadata of all revisions of a system template.

path Parameters
id
required
integer <int64>
header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/system-template/EXAMPLE_VALUE/revisions-meta-data \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": [
    ]
}

Get all available compact versions of system templates

Returns all compact versions of system templates. This end point is intended for read-only purposes.

path Parameters
customerKey
required
string
header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/EXAMPLE_VALUE/system-templates/compact \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": [
    ]
}

Logbooks

Allows to read Logbooks.

Get logbook data of a system

Get all logbook data within a specified time range. This endpoints supports pagination. Unlike the other endpoints, the size parameter does not have a fixed default value, but contains all values within the requested time range by default. Unless you build a UI, it is recommended to adjust the time range instead of using pagination.

path Parameters
systemId
required
integer <int64>
query Parameters
seekDirection
string
Enum: "FORWARD" "BACKWARD"

Seek direction used for pagination.

size
integer <int32>

Optional number of entities to fetch. If not set, all values that match the request are returned.

seekIdentifier.timestamp
string <date-time>

Timestamp used for pagination.

from
required
string <date-time>

Start of the requested time range.

to
required
string <date-time>

End of the requested time range.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url 'http://localhost/api/logbooks/EXAMPLE_VALUE?seekDirection=SOME_STRING_VALUE&size=SOME_INTEGER_VALUE&seekIdentifier.timestamp=SOME_STRING_VALUE&from=SOME_STRING_VALUE&to=SOME_STRING_VALUE' \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Alarm

Allows to read alarm results.

Get alarm results

path Parameters
customerKey
required
string

Specifies the key of the customer.

query Parameters
seekDirection
string
Enum: "FORWARD" "BACKWARD"

Seek direction used for pagination.

size
integer <int32>

Number of entities to fetch. The default value is 25.

seekIdentifier.name
string

Name used for pagination. If set, all other seekIdentifier parameters must be set as well.

systemIds
Array of integers <int64> [ items <int64 > ]

Specifies the filtered system IDs the entities must have.

search
string

Search query applied to the name field.

targetTypes
Array of strings
Items Enum: "ONWAY_ROUTERS" "SERVICE_CHECKS" "SNMP_SERVICE_CHECKS"

Specifies the filtered target types the entities must have.

severities
Array of strings
Items Enum: "CRITICAL" "INFO" "OK" "WARNING"

Specifies the filtered severity levels that the entity targets must have.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url 'http://localhost/api/EXAMPLE_VALUE/monitoring/systems/list?seekDirection=SOME_STRING_VALUE&size=SOME_INTEGER_VALUE&seekIdentifier.name=SOME_STRING_VALUE&systemIds=SOME_ARRAY_VALUE&search=SOME_STRING_VALUE&targetTypes=SOME_ARRAY_VALUE&severities=SOME_ARRAY_VALUE' \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Get a summary of all alarm results

path Parameters
customerKey
required
string

Specifies the key of the customer.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE

Responses

Request samples

curl --request GET \
  --url http://localhost/api/EXAMPLE_VALUE/monitoring/systems/summary \
  --header 'x-auth-token: TOKEN_FROM_LOGIN_RESPONSE'

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": {
    }
}

Acceptable Use Policy

API to accept the use policy.

Acceptable Use Policy

Accept the use policy.

header Parameters
x-auth-token
required
string
Example: TOKEN_FROM_LOGIN_RESPONSE
Request Body schema: application/json
required
aupAccepted
boolean

This field must be true to accept the use policy.

Responses

Request samples

Content type
application/json
{
  • "aupAccepted": true
}

Response samples

Content type
application/json
{
  • "status": 200,
  • "reason": "OK",
  • "links": { },
  • "content": { }
}