Console Server REST API version v1
https://{cshost}/api/v1
- cshost: required(string)
Console Server REST API
This API allows inspection of an Opengear Console Server Appliance.
/sessions
The sessions endpoint is used to authenticate the user and create a session token for accessing all other Lighthouse endpoints.
Create a new authenticated session.
post /sessions
Create a new authenticated session.
Body
Media type: application/json
Type: object
Properties- username: required(string)
- password: required(string)
Example:
{
"username": "root",
"password": "default"
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- state: required(string)
- session: required(string)
- user: (string)
- last_challenge: (string)
Example:
{
"state": "authenticated",
"session": "71dcba707b6c177644ede1b224f69096",
"user": "root"
}
HTTP status code 303
Redirect to new authentication session
Body
Media type: application/json
Type: any
Example:
{
"sid": "71dcba707b6c177644ede1b224f69096",
"message": "Redirecting to new session at {redirect-url}"
}
HTTP status code 400
Failed to initiate session creation due to error in post body.
Body
Media type: application/json
Type: any
Example:
{
"type": "authError",
"example": {
"error": "Invalid request body"
}
}
HTTP status code 401
Authentication failed due to invalid credentials or session.
Body
Media type: application/json
Type: any
Example:
{
"error": [
{
"type": 7,
"code": 41,
"text": "Invalid login credentials",
"args": {},
"level": 1
}
]
}
Retrieve the state of an authentication session by ID. A session ID may be valid for some period after the user logs out.
Apply a challenge response to a session
Log out of and delete a session
get /sessions/{sessionUid}
Retrieve the state of an authentication session by ID. A session ID may be valid for some period after the user logs out.
Console Server base authentication scheme
URI Parameters
- sessionUid: required(string)
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Session exists
Body
Media type: application/json
Type: object
Properties- state: required(string)
- session: required(string)
- user: (string)
- last_challenge: (string)
Example:
{
"state": "authenticated",
"session": "71dcba707b6c177644ede1b224f69096",
"user": "root"
}
HTTP status code 304
Etag matched If-None-Match header
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
No session in data
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /sessions/{sessionUid}
Apply a challenge response to a session
Console Server base authentication scheme
URI Parameters
- sessionUid: required(string)
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- session: required(string)
- state: required(object)
- challenge: required(string)
Next challenge (if any)
HTTP status code 200
Response applied. Next challenge in {challenge} if required.
Body
Media type: application/json
Type: object
Properties- session: required(string)
- state: required(object)
- challenge: required(string)
Next challenge (if any)
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
{
"error": "Invalid Session ID"
}
HTTP status code 403
Authentication failed. No more attempts allowed.
HTTP status code 404
Authentication failed.
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
delete /sessions/{sessionUid}
Log out of and delete a session
Console Server base authentication scheme
URI Parameters
- sessionUid: required(string)
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Session deleted
Body
Media type: application/json
Type: object
Properties- session: required(string)
- success: required(string)
- state: required(string)
- user: required(string)
HTTP status code 400
Incomplete data
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
{
"error": "Invalid Session ID"
}
HTTP status code 404
Session did not exist
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/registration
The Registration endpoint is used by Lighthouse to provide the Node with the address and credentials to retrieve an enrollment package for the device
post /registration
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- id: required(string)
The ID of the node - this is generated by Lighthouse
- server: required(string)
The address of the Lighthouse - this is either an IP address or a hostname
- package_password: required(string)
This is the password used to request the enrollment package from Lighthouse. Once enrolled, a certificate is used for all authentication
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
{
"error": "Invalid request data."
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
{
"error": "Invalid Session ID"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
delete /registration
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 201
Enrollment Deleted
Body
Media type: application/json
Type: object
Properties- message: required(string)
HTTP status code 400
Incomplete data
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
{
"error": "Invalid Session ID"
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 500
Error during processing
Body
Media type: application/json
Type: object
Properties- message: required(string)
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Update the server address of a connection to Lighthouse
put /registration/{$id}/server_address
Console Server base authentication scheme
URI Parameters
- $id: required(string)
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- address: required(string)
updated server address
Example:
{
"address": "192.168.128.6"
}
HTTP status code 200
Server address updated successfully
Body
Media type: application/json
Type: any
Example:
{
"message": "OK"
}
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
{
"error": "Parameter 'id' not provided."
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
{
"error": "Invalid Session ID"
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 500
Internal server error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/auth
The auth endpoint is used to update and retrieve the authentication configuration from the console server
put /auth
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- auth: required(object)
- auth_type: required(string)
- use_remote_groups: required(boolean)
- radius: required(object)
- auth_server: required(string)
- acct_server: (string)
- password: required(string)
- tacacs: required(object)
- auth_server: required(string)
- auth_method: required(string)
- service: required(string)
- ldap: required(object)
- server: required(string)
- bind_dn: (string)
- base_dn: (string)
- bind_password: (string)
- username_attr: (string)
- group_membership_attr: (string)
Example:
{
"auth": {
"radius": {
"password": "default",
"auth_server": "192.168.0.1:5555",
"acct_server": "192.168.0.2:5555"
},
"ldap": {
"username_attr": "member",
"base_dn": "basedn",
"group_membership_attr": "group",
"bind_dn": "binddn",
"bind_password": "default",
"server": "192.168.0.1:5555"
},
"tacacs": {
"auth_server": "192.168.0.1:5555",
"auth_method": "pap",
"service": "raccess"
},
"auth_type": "RADIUS",
"use_remote_groups": true
}
}
HTTP status code 200
Successful request
Body
Media type: application/json
Type: object
Properties- auth: required(object)
- auth_type: required(string)
- use_remote_groups: required(boolean)
- radius: required(object)
- auth_server: required(string)
- acct_server: (string)
- password: required(string)
- tacacs: required(object)
- auth_server: required(string)
- auth_method: required(string)
- service: required(string)
- ldap: required(object)
- server: required(string)
- bind_dn: (string)
- base_dn: (string)
- bind_password: (string)
- username_attr: (string)
- group_membership_attr: (string)
Example:
{
"auth": {
"radius": {
"password": "default",
"auth_server": "192.168.0.1:5555",
"acct_server": "192.168.0.2:5555"
},
"ldap": {
"username_attr": "member",
"base_dn": "basedn",
"group_membership_attr": "grou",
"bind_dn": "binddn",
"bind_password": "asdf",
"server": "1.4.5.6:2345"
},
"tacacs": {
"auth_server": "1.2.3.4",
"auth_method": "pap",
"service": "raccess"
},
"auth_type": "Local",
"use_remote_groups": true
}
}
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
{
"error": "Invalid Session ID"
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
get /auth
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Successful request
Body
Media type: application/json
Type: object
Properties- auth: required(object)
- auth_type: required(string)
- use_remote_groups: required(boolean)
- radius: required(object)
- auth_server: required(string)
- acct_server: (string)
- password: required(string)
- tacacs: required(object)
- auth_server: required(string)
- auth_method: required(string)
- service: required(string)
- ldap: required(object)
- server: required(string)
- bind_dn: (string)
- base_dn: (string)
- bind_password: (string)
- username_attr: (string)
- group_membership_attr: (string)
Example:
{
"auth": {
"radius": {
"password": "default",
"auth_server": "192.168.0.1:5555",
"acct_server": "192.168.0.2:5555"
},
"ldap": {
"username_attr": "member",
"base_dn": "basedn",
"group_membership_attr": "grou",
"bind_dn": "binddn",
"bind_password": "asdf",
"server": "1.4.5.6:2345"
},
"tacacs": {
"auth_server": "1.2.3.4",
"auth_method": "pap",
"service": "raccess"
},
"auth_type": "Local",
"use_remote_groups": true
}
}
HTTP status code 304
Etag matched If-None-Match header
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
Request data error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/groups
The groups endpoint is used to update and retrieve the group configuration from the console server
put /groups
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- groups: required(array of group)
Items: group
- name: required(string)
The name of the group
- description: (string)
The description of the group
- roles: required(array of string)
The list of roles provided by the group
- ports: required(array of boolean)
A list of flags for whether the group has access to each serial port
- system: required(boolean)
A flag indicating whether or not this is a system group
- name: required(string)
- meta: (object)
- total_pages: (number)
Example:
{
"groups": [
{
"name": "custom_group",
"description": "A custom group",
"roles": [
"admin",
"operators"
],
"ports": [
true,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"system": false
}
]
}
HTTP status code 200
Successful request
Body
Media type: application/json
Type: object
Properties- groups: required(array of group)
Items: group
- name: required(string)
The name of the group
- description: (string)
The description of the group
- roles: required(array of string)
The list of roles provided by the group
- ports: required(array of boolean)
A list of flags for whether the group has access to each serial port
- system: required(boolean)
A flag indicating whether or not this is a system group
- name: required(string)
- meta: (object)
- total_pages: (number)
Example:
{
"meta": {
"total_pages": 1
},
"groups": [
{
"name": "root",
"description": "Default system super user group",
"roles": [],
"ports": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"system": true
},
{
"name": "custom_group",
"description": "A custom group",
"roles": [
"admin",
"operators"
],
"ports": [
true,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"system": false
}
]
}
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
{
"error": "Invalid request data."
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
{
"error": "Invalid Session ID"
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
get /groups
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Successful request
Body
Media type: application/json
Type: object
Properties- groups: required(array of group)
Items: group
- name: required(string)
The name of the group
- description: (string)
The description of the group
- roles: required(array of string)
The list of roles provided by the group
- ports: required(array of boolean)
A list of flags for whether the group has access to each serial port
- system: required(boolean)
A flag indicating whether or not this is a system group
- name: required(string)
- meta: (object)
- total_pages: (number)
Example:
{
"meta": {
"total_pages": 1
},
"groups": [
{
"name": "root",
"description": "Default system super user group",
"roles": [],
"ports": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"system": true
}
]
}
HTTP status code 304
Etag matched If-None-Match header
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
Request data error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve the configuration of a particular group
get /groups/{$id}
Console Server base authentication scheme
URI Parameters
- $id: required(string)
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Successful request
Body
Media type: application/json
Type: object
Properties- group: required(object)
Console Server Group Configuration
- name: required(string)
The name of the group
- description: (string)
The description of the group
- roles: required(array of string)
The list of roles provided by the group
- ports: required(array of boolean)
A list of flags for whether the group has access to each serial port
- system: required(boolean)
A flag indicating whether or not this is a system group
- name: required(string)
HTTP status code 304
Etag matched If-None-Match header
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
Request data error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/users
User list configuration for console server
Get full list of users and user configuration data
Update the full list of users configurations. Note 'password' is required for new users.
Delete all users except root
get /users
Get full list of users and user configuration data
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- users: required(array of object)
Items: userConfiguration
- id: required(string)
- description: required(string)
Must not contain ':'
- username: required(string)
- disabled: required(boolean)
- groups: required(array of string)
List of group names for which this user is a member
- meta: required(object)
- total_pages: required(number)
Example:
{
"meta": {
"total_pages": 1
},
"users": [
{
"id": "user1",
"username": "root",
"description": "Root User",
"disabled": false,
"groups": []
},
{
"id": "user2",
"username": "coolguy",
"description": "",
"disabled": false,
"groups": [
"cool"
]
},
{
"id": "user3",
"username": "alice",
"description": "",
"disabled": false,
"groups": [
"pmadmin"
]
}
]
}
HTTP status code 304
Etag matched If-None-Match header
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
Request data error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /users
Update the full list of users configurations. Note 'password' is required for new users.
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- users: required(array of userConfigurationUpdate)
Items: userConfigurationUpdate
- id: required(string)
- description: required(string)
Must not contain ':'
- username: required(string)
- password: (string)
- disabled: required(boolean)
- groups: required(array of string)
List of group names for which this user is a member
Example:
{
"users": [
{
"id": "user1",
"username": "root",
"description": "Root User",
"disabled": false,
"groups": []
},
{
"id": "user2",
"username": "coolguy",
"description": "test",
"disabled": false,
"password": "asdf1234",
"groups": [
"cool"
]
},
{
"id": "user3",
"username": "alice",
"description": "test",
"disabled": false,
"password": "password",
"groups": [
"pmadmin"
]
}
]
}
HTTP status code 201
On success the updated list of user configurations is returned
Body
Media type: application/json
Type: object
Properties- users: required(array of userConfiguration)
Items: userConfiguration
- id: required(string)
- description: required(string)
Must not contain ':'
- username: required(string)
- disabled: required(boolean)
- groups: required(array of string)
List of group names for which this user is a member
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
{
"error": "Invalid Session ID"
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
delete /users
Delete all users except root
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- message: required(string)
Example:
{
"message": "OK"
}
HTTP status code 400
Incomplete data
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
{
"error": "Invalid Session ID"
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Single user configuration for console server
Get single user configuration
get /users/{$id}
Get single user configuration
Console Server base authentication scheme
URI Parameters
- $id: required(string)
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- user: required(object)
Console server user configuration
- id: required(string)
- description: required(string)
Must not contain ':'
- username: required(string)
- disabled: required(boolean)
- groups: required(array of string)
List of group names for which this user is a member
Example:
{
"user": {
"id": "user1",
"username": "root",
"description": "Root User",
"disabled": false,
"groups": []
}
}
HTTP status code 304
Etag matched If-None-Match header
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
Request data error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/scripts
The scripts endpoint is used to upload and execute custom user scripts on the console server and to retrieve the status of currently executing scripts
Upload a shell script to be executed on the node
Retrieve the status of a script executing on the node by execution ID
post /scripts
Upload a shell script to be executed on the node
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
Body
Media type: multipart/form-data
Type: object
Properties- script_metadata: required(object)
JSON object containing script_timeout in minutes and the script_checksum (SHA1).
- script_timeout: required(integer)
The number of minutes that the script is allowed to run
- script_checksum: required(string)
The SHA1 checksum of the script
Example:
{ "script_timeout": 15, "script_checksum": "ca69c6a865dffa6b745f25f6c446d1ff24a7d394" }
- script_timeout: required(integer)
- file: required(file)
The file to be uploaded.
HTTP status code 200
Successful request
Body
Media type: application/json
Type: object
Properties- execution_id: required(string)
- info: required(string)
Example:
{
"info": "Script execution started successfully",
"execution_id": "ASD123"
}
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
{
"error": "Invalid script metadata"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
{
"error": "Invalid Session ID"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
get /scripts
Retrieve the status of a script executing on the node by execution ID
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
Query Parameters
- execution_id: required(string)
Example:
ASD123
HTTP status code 200
Successful request
Body
Media type: application/json
Type: object
Example:
{
"script_status": "in_progress"
}
HTTP status code 304
Etag matched If-None-Match header
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Examples:
example1:
{
"error": "Failed to parse request data"
}
{
"error": "Script execution ID not provided"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Unexpected error
Body
Media type: application/json
Type: object
Examples:
example1:
{
"error": "Failed to open configuration handle"
}
{
"error": "Script exit code not found"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/serialPorts
The Serial port endpoint is used to retrieve the serial port configuration from the console server
get /serialPorts
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Successful request
Body
Media type: application/json
Type: object
Properties- serialports: required(array of serialPort)
Items: serialPort
- label: required(string)
The label for the serial port
- id: required(string)
The id of the serial port. This ID can be used to fetch individual ports using the /serialPorts/{portid} endpoint
- attachedDeviceType: required(one of unknown, none, remotePowerControl, uninterruptiblePowerSupply, environmentMonitor, nmeaSource, powerAlert)
The type of device attached to the serial port. Ports in console server mode will have this property set to 'none'
- hardwareType: required(one of unknown, builtInUART, builtInUSB, removableUSB)
The underlying hardware type of the port. This is used to indicate if its a fixed or removable port.
- mode: required(one of disabled, localConsole, consoleServer, sdtServer, bridge, terminalServer, reserved, powerman, unknown)
The mode that the port is in
- hardwareSettings: required(object)
This group of properties define the hardware level configuration of the port
- pinout: required(one of X0, X1, X2)
The physical pinout of the port connector
- protocol: required(one of RS232, RS422, RS485, RS485e)
The data protocol the port is using when transmitting and receiving
- uart: required(object)
UART configuration settings
- parity: required(one of none, unknown, even, mark, space)
The format of the parity byte
- baud: required(one of 50, 75, 110, 134, 150, 200, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400)
The communication rate of the port
- stopBits: required(one of 1, 1.5, 2)
The number of stop bits between characters
- dataBits: required(one of 5, 6, 7, 8)
The number of data bits in a character
- flowControl: required(one of unknown, none, noneUnpowered, hardware, software, softwareUnpowered)
The algorithm used for flow control.
- parity: required(one of none, unknown, even, mark, space)
- pinout: required(one of X0, X1, X2)
- modeSettings: required(union of consoleServer or terminalServer or bridge or sdtServer)
This object contains mode specific configuration objects. Only the object corresponding to the 'mode' property will be present
- nagios: required(object)
This object contains Nagios related configuration settings for this port
- enabled: required(boolean)
Indicates if nagios checks are enabled for this port
- serialStatus: required(boolean)
Indicates if the nagios serial status check should be configured for this port
- name: required(string)
The Nagios name for the port (autogenerated from the hostname and the port name)
- portLogging: required(boolean)
Indicates if nagios port logging is enabled
- enabled: required(boolean)
- logging: required(object)
This object contains logging related configuration settings for this port
- level: required(one of unknown, disabled, access, accessInputOutput, accessInput, accessOutput)
Indicates the logging level for the port
- priority: required(one of default, warning, notice, info, error, emergency, debug, critical, alert)
The log priority to assign to log messages from this port when they're sent to a remote syslog server
- facility: required(one of default, local0, local1, local2, local3, local4, local5, local6, local7, auth, authpriv, cron, daemon, ftp, kern, lpr, mail, news, user, uucp)
The log facility to assign to log messages from this port when they're sent to a remote syslog server
- level: required(one of unknown, disabled, access, accessInputOutput, accessInput, accessOutput)
- label: required(string)
Example:
{
"serialports": [
{
"label": "sv.router",
"id": "port1",
"modeSettings": {
"consoleServer": {
"ssh": {
"enabled": true,
"unauthenticated": false
},
"tcp": {
"enabled": false
},
"general": {
"accumulateMS": 0,
"replaceBackspace": false,
"powerMenuEnabled": false,
"escapeChar": "~"
},
"portShare": {
"enabled": false,
"password": "secrets",
"authentication": false,
"encryption": false
},
"rfc2217": {
"enabled": false
},
"webShell": {
"enabled": false
},
"telnet": {
"enabled": true,
"unauthenticated": false
},
"ipAlias": {
"wan": [],
"oobfo": [],
"wlan": [],
"lan": []
}
}
},
"attachedDeviceType": "none",
"hardwareSettings": {
"pinout": "X2",
"protocol": "RS232",
"uart": {
"parity": "none",
"baud": "9600",
"stopBits": "1",
"dataBits": "8",
"flowControl": "none"
}
},
"logging": {
"level": "accessInputOutput",
"priority": "default",
"facility": "default"
},
"mode": "consoleServer",
"nagios": {
"enabled": false,
"serialStatus": false,
"name": "",
"portLogging": false
},
"hardwareType": "builtInUART"
},
{
"label": "sv.fileserver",
"id": "port2",
"modeSettings": {
"consoleServer": {
"ssh": {
"enabled": true,
"unauthenticated": false
},
"tcp": {
"enabled": false
},
"general": {
"accumulateMS": 0,
"replaceBackspace": false,
"powerMenuEnabled": false,
"escapeChar": "~"
},
"portShare": {
"enabled": false,
"password": "secrets",
"authentication": false,
"encryption": false
},
"rfc2217": {
"enabled": false
},
"webShell": {
"enabled": false
},
"telnet": {
"enabled": true,
"unauthenticated": false
},
"ipAlias": {
"wan": [],
"oobfo": [],
"wlan": [],
"lan": []
}
}
},
"attachedDeviceType": "none",
"hardwareSettings": {
"pinout": "X2",
"protocol": "RS232",
"uart": {
"parity": "none",
"baud": "9600",
"stopBits": "1",
"dataBits": "8",
"flowControl": "none"
}
},
"logging": {
"level": "accessInputOutput",
"priority": "default",
"facility": "default"
},
"mode": "consoleServer",
"nagios": {
"enabled": false,
"serialStatus": false,
"name": "",
"portLogging": false
},
"hardwareType": "builtInUART"
}
]
}
HTTP status code 304
Etag matched If-None-Match header
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
Request data error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve the configuration of a particular serial port
get /serialPorts/{$id}
Console Server base authentication scheme
URI Parameters
- $id: required(string)
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Successful request
Body
Media type: application/json
Type: object
Properties- serialport: required(object)
Console Server Serial Port Configuration
- label: required(string)
The label for the serial port
- id: required(string)
The id of the serial port. This ID can be used to fetch individual ports using the /serialPorts/{portid} endpoint
- attachedDeviceType: required(one of unknown, none, remotePowerControl, uninterruptiblePowerSupply, environmentMonitor, nmeaSource, powerAlert)
The type of device attached to the serial port. Ports in console server mode will have this property set to 'none'
- hardwareType: required(one of unknown, builtInUART, builtInUSB, removableUSB)
The underlying hardware type of the port. This is used to indicate if its a fixed or removable port.
- mode: required(one of disabled, localConsole, consoleServer, sdtServer, bridge, terminalServer, reserved, powerman, unknown)
The mode that the port is in
- hardwareSettings: required(object)
This group of properties define the hardware level configuration of the port
- pinout: required(one of X0, X1, X2)
The physical pinout of the port connector
- protocol: required(one of RS232, RS422, RS485, RS485e)
The data protocol the port is using when transmitting and receiving
- uart: required(object)
UART configuration settings
- parity: required(one of none, unknown, even, mark, space)
The format of the parity byte
- baud: required(one of 50, 75, 110, 134, 150, 200, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400)
The communication rate of the port
- stopBits: required(one of 1, 1.5, 2)
The number of stop bits between characters
- dataBits: required(one of 5, 6, 7, 8)
The number of data bits in a character
- flowControl: required(one of unknown, none, noneUnpowered, hardware, software, softwareUnpowered)
The algorithm used for flow control.
- parity: required(one of none, unknown, even, mark, space)
- pinout: required(one of X0, X1, X2)
- modeSettings: required(union of consoleServer or terminalServer or bridge or sdtServer)
This object contains mode specific configuration objects. Only the object corresponding to the 'mode' property will be present
- nagios: required(object)
This object contains Nagios related configuration settings for this port
- enabled: required(boolean)
Indicates if nagios checks are enabled for this port
- serialStatus: required(boolean)
Indicates if the nagios serial status check should be configured for this port
- name: required(string)
The Nagios name for the port (autogenerated from the hostname and the port name)
- portLogging: required(boolean)
Indicates if nagios port logging is enabled
- enabled: required(boolean)
- logging: required(object)
This object contains logging related configuration settings for this port
- level: required(one of unknown, disabled, access, accessInputOutput, accessInput, accessOutput)
Indicates the logging level for the port
- priority: required(one of default, warning, notice, info, error, emergency, debug, critical, alert)
The log priority to assign to log messages from this port when they're sent to a remote syslog server
- facility: required(one of default, local0, local1, local2, local3, local4, local5, local6, local7, auth, authpriv, cron, daemon, ftp, kern, lpr, mail, news, user, uucp)
The log facility to assign to log messages from this port when they're sent to a remote syslog server
- level: required(one of unknown, disabled, access, accessInputOutput, accessInput, accessOutput)
- label: required(string)
Example:
{
"serialport": {
"label": "sv.router",
"id": "port1",
"modeSettings": {
"consoleServer": {
"ssh": {
"enabled": true,
"unauthenticated": false
},
"tcp": {
"enabled": false
},
"general": {
"accumulateMS": 0,
"replaceBackspace": false,
"powerMenuEnabled": false,
"escapeChar": "~"
},
"portShare": {
"enabled": false,
"password": "secrets",
"authentication": false,
"encryption": false
},
"rfc2217": {
"enabled": false
},
"webShell": {
"enabled": false
},
"telnet": {
"enabled": true,
"unauthenticated": false
},
"ipAlias": {
"wan": [],
"oobfo": [],
"wlan": [],
"lan": []
}
}
},
"attachedDeviceType": "none",
"hardwareSettings": {
"pinout": "X2",
"protocol": "RS232",
"uart": {
"parity": "none",
"baud": "9600",
"stopBits": "1",
"dataBits": "8",
"flowControl": "none"
}
},
"logging": {
"level": "accessInputOutput",
"priority": "default",
"facility": "default"
},
"mode": "consoleServer",
"nagios": {
"enabled": false,
"serialStatus": false,
"name": "",
"portLogging": false
},
"hardwareType": "builtInUART"
}
}
HTTP status code 304
Serial Port configuration matches the provided Etag
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
Request data error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Invalid Port ID
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal server error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/secureShell
This endpoint is used for getting the SSH port of the device
get /secureShell
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Successful Request
Body
Media type: application/json
Type: object
Properties- ssh: required(object)
- port: required(integer)
The host port that the SSH daemon is listening on
- port: required(integer)
Example:
{
"ssh": {
"port": 22
}
}
HTTP status code 304
Etag matched If-None-Match header
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
Request data error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal Error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
This endpoint is used for retrieving SSH keys, and modifying user's authorized keys lists
get /secureShell/keys/host
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Successful Request
Body
Media type: application/json
Type: object
Properties- keys: required(object)
- ecdsa: (string)
The ECDSA SSH host key - base64 encoded
- ed25519: (string)
The ED25519 host key - base64 encoded
- rsa: (string)
the RSA host key - base64 encoded
- ecdsa: (string)
Example:
{
"keys": {
"ecdsa": "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMhfUnZC8MD+iqxLq7vhvUCoFTzC1+lmieMXj2N6j+SUHYkKipoNkI9kks3PEXIMwShiVJ3ySW5cERFDvRsVT+c=",
"ed25519": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC59SOqiYAs3DfLEtdW6RE/W2OY1WCEkQi/1AqUkOvs5",
"rsa": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDN+Gd1ul7tCYWiAC3CQ76MM+FfhesjKimeMSeVNUfIvK4rTGfL14LKUB37rJAU5PhO/snRw+xtQRaD5SHzDHzCh1xXzVlb+x77IqeasbeKhWNCCYfgHNx1sAxzwnAUA26UifoAZSv81HLmE9kJnCqTH0o54HKdRtUQGyo0a0F1tTweQKlrCPxQ6YoDfMbFhsYgPPX+66L6ku5xvcc4pbT5caJ1pw6cX5Fej49Bkbl+SHYiMYNFX05nIHSstpfgdWgOv3xm43DjAXLD3d5lGC5aYkqgJO0X5n6KjpoOGHaMZ9dn/t4O14ZX2Jl46SMSr8XQmSZoIijQyUP9AW8oUMTdSvUT/P1TLBlcPuw76MHJkij8TP2/r9ICyzXQSzhlCv0vGWAZsi1SZ8PQFv6iAtTu/2UXdvmBxdkuDx2IPwNtvC+e8GRcEYFY8ziUnWVlf7QjhaDkrcamdoAo7wErEKO1iV/hcgfKemLuIVvqkKS9Qj0rHS5wAnrfFx7WhjRa5BqCA/H4pBozgMBrdR/9lseYNu4vjMaGRYLaUhfZj1S2c7uKd+vEZI3nmCCQmBJ1qR2ih8USeZbIcrf2QMGhdKUIoFxjM9c3NabWmRNPSJIgL8N19+itb4Yz6ycs+wJyegdpJ5TCrSrHo8Tt5e/5PX604NuHtEDXpG+T/HjhccWNQ=="
}
}
HTTP status code 304
Etag matched If-None-Match header
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
Request data error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal Error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
This endpoint is used for modifying user's authorized keys lists
put /secureShell/keys/user/${username}/authorized
Console Server base authentication scheme
URI Parameters
- username: required(string)
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- keys: required(array of object)
Items: items
- keytype: required(one of ssh-rsa, ssh-ed25519, ssh-ecdsa)
- key: required(string)
The key as a base64 encoded string
- identifier: required(string)
Comment to identify the key. Usually an email address.
Example:
{
"keys": [
{
"keytype": "ssh-ed25519",
"key": "AAAAC3NzaC1lZDI1NTE5AAAAIAw5O2cMeS3LPPkNH7J846w00m7TDjuirsdnRMY2FxOM",
"identifier": "user@somehost"
}
]
}
HTTP status code 200
Successful Request
Body
Media type: application/json
Type: object
Properties- message: required(string)
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
{
"error": "Invalid Session ID"
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
HTTP status code 500
Internal Error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/nodeDescription
This endpoint is used to retrieve run-time details about the device
get /nodeDescription
Console Server base authentication scheme
Headers
- Authorization: required(string)
Example:
Token {{sessionUid}}
HTTP status code 200
Successful Request
Body
Media type: application/json
Type: object
Properties- model_number: required(string)
The model of the Node
- serial_number: required(string)
The serial number of the Node. In some cases, this may not be programatically retrievable. 'N/A' will be returned in that case
- mac_address: required(string)
The MAC address of the NET 1 interface.
- firmware_version: required(string)
The version of firmware that the Node is running
- interfaces: required(array of object)
An array of the configured interfaces
Items: items
- name: required(string)
The interface name
- ipv4_address: (string)
The first IPv4 address assigned to the interface
- ipv6_address: (string)
The first IPv6 address assigned to the interface
- name: required(string)
Example:
{
"model_number": "CM7148-2-DAC",
"serial_number": "71480485331659",
"interfaces": [
{
"name": "Network",
"ipv4_address": "192.168.82.32"
},
{
"name": "Management LAN",
"ipv4_address": "Unknown"
}
],
"mac_address": "00:13:c6:02:5a:cf",
"firmware_version": "4.0.0"
}
HTTP status code 304
Etag matched If-None-Match header
Body
Media type: application/json
Type: object
Example:
example1:
{}
HTTP status code 400
Request data error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to parse request data"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required(string)
The authentication error string
Example:
example1:
{
"error": "Invalid login credentials"
}
HTTP status code 404
Resource not found
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Resource not found"
}
HTTP status code 500
Internal Error
Body
Media type: application/json
Type: object
Properties- error: required(string)
An error string
Example:
example1:
{
"error": "Failed to open configuration handle"
}
Secured by token
Headers
- Authorization: required(string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c