Operations Manager REST API documentation version v2
https://{appliancehost}/api/v2
- appliancehost: required (string)
Operations Manager REST API
This API allows control and inspection of an Opengear Operations Manager appliance.
/sessions
The sessions endpoint is used to authenticate the user and create a session token for accessing all other Operations Manager 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: object
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: object
Example:
{
"error": [
{
"type": 4,
"code": 40,
"text": "Required field 'username' was not provided in the request",
"args": {
"param": "username"
},
"level": 1
},
{
"type": 4,
"code": 40,
"text": "Required field 'password' was not provided in the request",
"args": {
"param": "password"
},
"level": 1
}
]
}
HTTP status code 401
Authentication failed due to invalid credentials or session.
Body
Media type: application/json
Type: object
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.
Operations Manager 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 400
Session does not exist
Body
Media type: application/json
Type: object
Properties- state: required (string)
- session: required (string)
- user: (string)
- last_challenge: (string)
Example:
{
"state": "unknown",
"session": "4cf7ff89791062c2eddcbb7778d532a"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
HTTP status code 404
Session does not exist
Body
Media type: application/json
Type: object
Example:
{
"state": "unknown",
"session": "4cf7ff89791062c2eddcbb7778d532a"
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /sessions/{sessionUid}
Apply a challenge response to a session
Operations Manager 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 (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 4,
"code": 39,
"text": "Invalid request body",
"args": {},
"level": 1
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
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 (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
delete /sessions/{sessionUid}
Log out of and delete a session
Operations Manager 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 (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Session did not exist
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/ports
Configuring and viewing ports information
Gets ports attached to this appliance. Any number of search query parameters can be provided to perform an ANDed search on the ports.
get /ports
Gets ports attached to this appliance. Any number of search query parameters can be provided to perform an ANDed search on the ports.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Query Parameters
- searchparameters: (string)
Extra optional parameters that can be included inside the request
- json: (string)
One or more json URL encoded search parameters.
Example %7B%22type%22%3A1%2C%22items%22%3A%5B%7B%22datatype%22%3A4 %2C%22type%22%3A3%2C%22oper%22%3A1%2C%22fieldname%22%3A%22 config%3Aname%22%2C%22value%22%3A%22test%22%7D%5D%7D
which is the URL encoded json
{type:1,items:[{"datatype":4,type:3,"oper":1,"fieldname":"config:name","value":"test"}]}
- jb64: (string)
one or more base64 encoded json search parameters.
Ensure that any trailing = padding is URL encoded to %3D
- operator: (string - default: AND)
Operator applied between all searchparameters, json and jb64 query parameters.
AND or OR
- searchId: (string)
The Operations Manager appliance maintains search results for a limited timespan. The searchId is returned in meta data of a normal search and can then be used as a parameter to retrieve the same results. When searchId is used, no other search parameter may be included.
HTTP status code 200
The array of ports, either a full array or as requested by parameters
Body
Media type: application/json
Type: object
Properties- ports: required (array of getPortListResponseSingle)
Items: getPortListResponseSingle
- parity: required (string)
- label: required (string)
- id: required (string)
- stopbits: required (string)
- pinout: required (one of X1, X2)
- ip_alias: (array of getPortIpAliasListSingle)
Items: getPortIpAliasListSingle
- id: required (string)
- port: required (string)
- ipaddress: required (string)
- interface: required (string)
- baudrate: required (string)
- mode: required (one of disabled, consoleServer)
- logging_level: required (one of disabled, eventsOnly, eventsAndReceivedCharacters, eventsAndAllCharacters)
- databits: required (string)
- meta: required (object)
- searchId: (string)
- total_pages: (string)
Example:
{
"ports": [
{
"parity": "none",
"label": "Port-1",
"id": "ports-1",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [
{
"id": "ipalias-1",
"port": "ports-1",
"ipaddress": "192.168.33.201/24",
"interface": "system_net_physifs-1"
}
],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
},
{
"parity": "none",
"label": "Port-2",
"id": "ports-2",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
},
{
"parity": "none",
"label": "Port-3",
"id": "ports-3",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [
{
"id": "ipalias-1",
"port": "ports-3",
"ipaddress": "192.168.33.11/24",
"interface": "system_net_physifs-1"
}
],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
},
{
"parity": "none",
"label": "Port-4",
"id": "ports-4",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
},
{
"parity": "none",
"label": "Port-5",
"id": "ports-5",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
},
{
"parity": "none",
"label": "Port-6",
"id": "ports-6",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
},
{
"parity": "none",
"label": "Port-7",
"id": "ports-7",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
},
{
"parity": "none",
"label": "Port-8",
"id": "ports-8",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
},
{
"parity": "none",
"label": "Port-9",
"id": "ports-9",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
},
{
"parity": "none",
"label": "Port-10",
"id": "ports-10",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
}
],
"meta": {
"searchId": "{49ec4c2-5f78-11e8-899f-97417ae8617}"
}
}
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 4,
"code": 39,
"level": 1,
"text": "Invalid request body",
"args": {}
},
{
"type": 4,
"code": 48,
"level": 1,
"text": "Invalid parameter 'config:nam' was provided",
"args": {
"param": "config:nam"
}
},
{
"type": 2,
"code": 49,
"level": 1,
"text": "Invalid json '{\"type\":1,\"items\":{\"datatype\":4,\"type\":3,\"oper\":1,\"fieldname\":\"config:name\",\"value\":\"test\"}]}' for parameter 'json'",
"args": {
"line": "1",
"position": "92",
"value": "{\"type\":1,\"items\":{\"datatype\":4,\"type\":3,\"oper\":1,\"fieldname\":\"config:name\",\"value\":\"test\"}]}",
"column": "92",
"error": "'}' expected near ']'",
"param": "json"
}
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
HTTP status code 404
Invalid request, Incomplete data, Port not found, Failure during retrieval of ports
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Failed to read ports.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve a single port by ID. For example, GET ports/ports-1
Update properties for a single port. For example, PUT ports/port-1
get /ports/{id}
Retrieve a single port by ID. For example, GET ports/ports-1
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Port has been updated.
Body
Media type: application/json
Type: object
Properties- port: required (object)
- parity: required (string)
- label: required (string)
- id: required (string)
- stopbits: required (string)
- pinout: required (one of X1, X2)
- ip_alias: (array of getPortIpAliasListSingle)
Items: getPortIpAliasListSingle
- id: required (string)
- port: required (string)
- ipaddress: required (string)
- interface: required (string)
- baudrate: required (string)
- mode: required (one of disabled, consoleServer)
- logging_level: required (one of disabled, eventsOnly, eventsAndReceivedCharacters, eventsAndAllCharacters)
- databits: required (string)
Examples:
port_with_ipaliases:
{
"port": {
"parity": "none",
"label": "Port-1",
"id": "ports-1",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [
{
"id": "ipalias-1",
"port": "ports-1",
"ipaddress": "192.168.33.201/24",
"interface": "system_net_physifs-1"
},
{
"id": "ipalias-2",
"port": "ports-1",
"ipaddress": "192.168.33.9/24",
"interface": "system_net_physifs-1"
}
],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
}
}
port_without_ipaliases:
{
"port": {
"parity": "none",
"label": "Port-3",
"id": "ports-3",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /ports/{id}
Update properties for a single port. For example, PUT ports/port-1
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- port: required (object)
- parity: required (string)
- label: required (string)
- stopbits: required (string)
- pinout: required (one of X1, X2)
- ip_alias: (array of putPortIpAliasListSingle)
Items: putPortIpAliasListSingle
- ipaddress: required (string)
- interface: required (string)
- baudrate: required (string)
- mode: required (one of disabled, consoleServer)
- logging_level: required (one of disabled, eventsOnly, eventsAndReceivedCharacters, eventsAndAllCharacters)
- databits: required (string)
Examples:
port_with_ipaliases:
{
"port": {
"parity": "none",
"label": "Port-1",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [
{
"ipaddress": "192.168.33.201/24",
"interface": "system_net_physifs-1"
},
{
"ipaddress": "192.168.33.9/24",
"interface": "system_net_physifs-1"
}
],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
}
}
port_without_ipaliases:
{
"port": {
"parity": "none",
"label": "Port-1",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
}
}
HTTP status code 200
Port has been updated.
Body
Media type: application/json
Type: object
Properties- port: required (object)
- parity: required (string)
- label: required (string)
- id: required (string)
- stopbits: required (string)
- pinout: required (one of X1, X2)
- ip_alias: (array of getPortIpAliasListSingle)
Items: getPortIpAliasListSingle
- id: required (string)
- port: required (string)
- ipaddress: required (string)
- interface: required (string)
- baudrate: required (string)
- mode: required (one of disabled, consoleServer)
- logging_level: required (one of disabled, eventsOnly, eventsAndReceivedCharacters, eventsAndAllCharacters)
- databits: required (string)
Example:
{
"port": {
"parity": "none",
"label": "Port-1",
"id": "ports-1",
"stopbits": "1",
"pinout": "X2",
"ip_alias": [
{
"id": "ipalias-1",
"port": "ports-1",
"ipaddress": "192.168.33.201/24",
"interface": "system_net_physifs-1"
},
{
"id": "ipalias-2",
"port": "ports-1",
"ipaddress": "192.168.33.9/24",
"interface": "system_net_physifs-1"
}
],
"baudrate": "9600",
"mode": "consoleServer",
"logging_level": "disabled",
"databits": "8"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/managementports
Used for working with local management console information.
Gets the local management console ports attached to this appliance. Any number of search query parameters can be provided to perform an ANDed search on the management ports.
get /managementports
Gets the local management console ports attached to this appliance. Any number of search query parameters can be provided to perform an ANDed search on the management ports.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Query Parameters
- searchparameters: (string)
One or more search fields
- json: (string)
One or more json URL encoded search parameters.
Example %7B%22type%22%3A1%2C%22items%22%3A%5B%7B%22datatype%22%3A4 %2C%22type%22%3A3%2C%22oper%22%3A1%2C%22fieldname%22%3A%22 config%3Aname%22%2C%22value%22%3A%22test%22%7D%5D%7D
which is the URL encoded json
{type:1,items:[{"datatype":4,type:3,"oper":1,"fieldname":"config:name","value":"test"}]}
- jb64: (string)
one or more base64 encoded json search parameters.
Ensure that any trailing = padding is URL encoded to %3D
- operator: (string - default: AND)
Operator applied between all searchparameters, json and jb64 query parameters.
AND or OR
- searchId: (string)
The Operations Manager appliance maintains search results for a limited timespan. The searchId is returned in meta data of a normal search and can then be used as a parameter to retrieve the same results. When searchId is used, no other search parameter may be included.
HTTP status code 200
The array of management ports, either a full array or as requested by parameters
Body
Media type: application/json
Type: object
Properties- managementports: required (array of getMgmtPortListResponseSingle)
Items: getMgmtPortListResponseSingle
- parity: required (string)
- baud: required (string)
- kerneldebug: required (boolean)
- stopbits: required (string)
- id: required (string)
- device: required (string)
- termemulation: required (one of vt100, vt102, vt220, linux, ansi)
- databits: required (string)
- enabled: required (boolean)
- meta: required (object)
- searchId: (string)
- total_pages: (string)
Example:
{
"managementports": [
{
"id": "mgmtPorts-1",
"device": "ttyS0",
"enabled": true,
"kerneldebug": false,
"termemulation": "vt100",
"baud": "115200",
"databits": "8",
"parity": "none",
"stopbits": "1"
},
{
"id": "mgmtPorts-2",
"device": "ttyS1",
"enabled": true,
"kerneldebug": true,
"termemulation": "vt100",
"baud": "115200",
"databits": "8",
"parity": "none",
"stopbits": "1"
}
],
"meta": {
"searchId": "{49ec4c2-5f78-11e8-899f-97417ae8617}"
}
}
HTTP status code 400
Invalid request, missing or incorrect page/per_page
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 4,
"code": 39,
"level": 1,
"text": "Invalid request body",
"args": {}
},
{
"type": 4,
"code": 48,
"level": 1,
"text": "Invalid parameter 'config:nam' was provided",
"args": {
"param": "config:nam"
}
},
{
"type": 2,
"code": 49,
"level": 1,
"text": "Invalid json '{\"type\":1,\"items\":{\"datatype\":4,\"type\":3,\"oper\":1,\"fieldname\":\"config:name\",\"value\":\"test\"}]}' for parameter 'json'",
"args": {
"line": "1",
"position": "92",
"value": "{\"type\":1,\"items\":{\"datatype\":4,\"type\":3,\"oper\":1,\"fieldname\":\"config:name\",\"value\":\"test\"}]}",
"column": "92",
"error": "'}' expected near ']'",
"param": "json"
}
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
HTTP status code 404
Invalid request, Incomplete data, management port not found, Failure during retrieval of management ports
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Failed to read management ports.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve a single local management console port by ID. For example, GET managementports/mgmtPorts-1
Update properties for a single local management colsole port. For example, PUT managementports/mgmtPorts-1
get /managementports/{id}
Retrieve a single local management console port by ID. For example, GET managementports/mgmtPorts-1
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
management port has been updated.
Body
Media type: application/json
Type: object
Properties- managementport: required (object)
- parity: required (string)
- baud: required (string)
- kerneldebug: required (boolean)
- stopbits: required (string)
- id: required (string)
- device: required (string)
- termemulation: required (one of vt100, vt102, vt220, linux, ansi)
- databits: required (string)
- enabled: required (boolean)
Example:
{
"managementport": {
"id": "mgmtPorts-1",
"device": "ttyS0",
"enabled": true,
"kerneldebug": false,
"termemulation": "vt100",
"baud": "115200",
"databits": "8",
"parity": "none",
"stopbits": "1"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /managementports/{id}
Update properties for a single local management colsole port. For example, PUT managementports/mgmtPorts-1
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- managementport: required (object)
- device: required (string)
- enabled: required (boolean)
- kerneldebug: required (boolean)
- termemulation: required (one of vt100, vt102, vt220, linux, ansi)
- baud: required (string)
- databits: required (string)
- parity: required (string)
- stopbits: required (string)
Example:
{
"managementport": {
"device": "ttyS0",
"enabled": true,
"kerneldebug": false,
"termemulation": "vt100",
"baud": "115200",
"databits": "8",
"parity": "none",
"stopbits": "1"
}
}
HTTP status code 200
Management Port has been updated.
Body
Media type: application/json
Type: object
Properties- managementport: required (object)
- parity: required (string)
- baud: required (string)
- kerneldebug: required (boolean)
- stopbits: required (string)
- id: required (string)
- device: required (string)
- termemulation: required (one of vt100, vt102, vt220, linux, ansi)
- databits: required (string)
- enabled: required (boolean)
Example:
{
"managementport": {
"id": "mgmtPorts-1",
"device": "ttyS0",
"enabled": true,
"kerneldebug": false,
"termemulation": "vt100",
"baud": "115200",
"databits": "8",
"parity": "none",
"stopbits": "1"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/search
Used to perform searches on ports on the system.
Creating a search ID for ports from the given query parameters.
Gets a search ID for searching ports attached to this Operations Manager appliance. Any number of search query parameters can be provided to perform an ANDed search on the ports. The list provided is dynamic.
get /search/ports
Gets a search ID for searching ports attached to this Operations Manager appliance. Any number of search query parameters can be provided to perform an ANDed search on the ports. The list provided is dynamic.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Query Parameters
- json: (string)
One or more json URL encoded search parameters. Example %7B%22type%22%3A1%2C%22items%22%3A%5B%7B%22datatype%22%3A4 %2C%22type%22%3A3%2C%22oper%22%3A1%2C%22fieldname%22%3A%22 config%3Aname%22%2C%22value%22%3A%22test%22%7D%5D%7D which is the URL encoded json {type:1,items:[{"datatype":4,type:3,"oper":1,"fieldname":"config:label","value":"test"}]}
- jb64: (string)
one or more base64 encoded json search parameters. Ensure that any trailing = padding is URL encoded to %3D
- searchparameters: (string)
One or more search fields. For example, config:label=*test*, will search for ports with labels containing test. Allowed operators are: =value, >value, >=value, <value, <=value, !value (not), *value (ends in), value* (starts with), *value* (contains). Reserved characters to be URl encoded, e.g. = as %3D
- operator: (string - default: AND)
Operator applied between all searchparameters, json and jb64 query parameters. AND or OR
HTTP status code 200
The search ID, as defined by given parameters
Body
Media type: application/json
Type: object
Properties- search: required (object)
- id: required (string)
Example:
{
"search": {
"id": "{268daae-5555-11e7-8af6-b7116753aa5}"
}
}
HTTP status code 400
Invalid request, missing or incorrect search parameters.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 4,
"code": 39,
"level": 1,
"text": "Invalid request body",
"args": {}
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
HTTP status code 404
Invalid request, Incomplete data.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Failed to retrieve a search ID.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/logs
Used for working with the logs on the system.
Fetch last n log lines in syslog. For example, GET logs/syslog/?logLines=10
get /logs/syslog
Fetch last n log lines in syslog. For example, GET logs/syslog/?logLines=10
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Query Parameters
- logLines: (integer - default: 100)
The number of lines to fetch - max 1000, min 10.
HTTP status code 200
Returns the last n lines in the syslog
Body
Media type: application/json
Type: object
Properties- syslog: required (object)
- id: required (string)
- no_of_log_lines: required (integer)
- log_lines: required (array of )
Example:
{
"syslog": {
"id": "3fe0c4281c994a34225db3224b0cf4b4",
"log_lines": [
"2018-04-23T16:49:35.285554+00:00 qemux86-64 sshd[20111]: Disconnected from 192.168.33.101",
"2018-04-23T16:49:35.285625+00:00 qemux86-64 sshd[20111]: pam_unix(sshd:session): session closed for user root",
"2018-04-23T16:49:35.379184+00:00 qemux86-64 sshd[20139]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.33.101 user=root",
"2018-04-23T16:49:37.937315+00:00 qemux86-64 sshd[20139]: Accepted publickey for root from 192.168.33.101 port 57058 ssh2: RSA SHA256:6ED9MiX/6QXhSLN5g25V4T0okuO9o0aQl0ONT9BCxKE",
"2018-04-23T16:49:37.938147+00:00 qemux86-64 sshd[20139]: pam_unix(sshd:session): session opened for user root by (uid=0)",
"2018-04-23T16:49:43.308764+00:00 qemux86-64 sshd[20139]: Received disconnect from 192.168.33.101: 11: disconnected by user",
"2018-04-23T16:49:43.308798+00:00 qemux86-64 sshd[20139]: Disconnected from 192.168.33.101",
"2018-04-23T16:49:43.308887+00:00 qemux86-64 sshd[20139]: pam_unix(sshd:session): session closed for user root",
"2018-04-23T17:20:51.938418+00:00 qemux86-64 udhcpc[1660]: Sending renew...",
"2018-04-23T17:20:51.941182+00:00 qemux86-64 udhcpc[1660]: Lease of 192.168.33.207 obtained, lease time 7200"
],
"no_of_log_lines": 10
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Fetch last n log lines in portlog. For example, GET logs/portlog/ports-1?logLines=20
get /logs/portlog/{id}
Fetch last n log lines in portlog. For example, GET logs/portlog/ports-1?logLines=20
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Query Parameters
- logLines: (integer - default: 100 - minimum: 10 - maximum: 1000)
The number of lines to fetch - max 1000, min 10.
HTTP status code 200
Returns the last n lines in the portlog
Body
Media type: application/json
Type: object
Properties- portlog: required (object)
- id: required (string)
- no_of_log_lines: required (integer)
- log_lines: required (array of )
Example:
{
"portlog": {
"id": "portlogports-1771bed6129488a69764d064ed7e6086d",
"log_lines": [
"2018-04-19T21:59:42.475157+00:00 TXDATA ",
"2018-04-19T21:59:43.720286+00:00 TXDATA ^C",
"2018-04-19T21:59:44.004623+00:00 TXDATA ^C",
"2018-04-19T21:59:49.053138+00:00 TXDATA ^C",
"2018-04-19T21:59:49.739765+00:00 TXDATA ^C",
"2018-04-19T21:59:50.349753+00:00 LOGOUT root",
"2018-04-19T21:59:50.373627+00:00 RXDATA ",
"2018-04-19T21:59:50.402295+00:00 RXDATA asdfasdf",
"2018-04-19T22:00:18.216623+00:00 LOGIN root",
"2018-04-19T22:00:21.386050+00:00 TXDATA rootrootakjdfaksjdf",
"2018-04-19T22:00:25.145561+00:00 TXDATA rootrootakjdfaksjdfkjasdkjfakdjf",
"2018-04-19T22:00:26.473879+00:00 TXDATA rootrootakjdfaksjdfkjasdkjfakdjf ",
"2018-04-19T22:00:42.660939+00:00 TXDATA rootrootakjdfaksjdfkjasdkjfakdjf ^C",
"2018-04-19T22:00:45.472921+00:00 TXDATA rootrootakjdfaksjdfkjasdkjfakdjf ^C~",
"2018-04-19T22:00:46.456493+00:00 TXDATA rootrootakjdfaksjdfkjasdkjfakdjf ^C~.",
"2018-04-19T22:00:46.887685+00:00 TXDATA rootrootakjdfaksjdfkjasdkjfakdjf ^C~.",
"2018-04-19T22:00:47.057797+00:00 TXDATA ",
"2018-04-19T22:00:47.236891+00:00 TXDATA ",
"2018-04-19T22:00:47.413115+00:00 TXDATA ",
"2018-04-19T22:00:48.328447+00:00 LOGOUT root"
],
"no_of_log_lines": 20
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/services
Used for working with the properties of the various services running on the system.
Provides access to the SSL certificate used by web services on the device.
Fetch HTTPS certificate details, or a CSR file if the zip flag is set.
Update HTTPS details. A certificate matching the CSR can be uploaded by setting the https.cert field, a CSR can be cancelled by sending through no https.csr body, and a new csr can be created by sending through a https.csr body with a csr value of "new".
get /services/https
Fetch HTTPS certificate details, or a CSR file if the zip flag is set.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Query Parameters
- zip: (boolean - default: false)
A flag to download the CSR instead of view the details
HTTP status code 200
Returns the certificate currently in use by the server, as well as details about any current CSR.
Body
Media type: application/json
Type: object
Example:
{
"https": {
"valid_from": "Sep 21 00:39:03 2016 GMT",
"valid_to": "Sep 21 00:39:03 2016 GMT",
"common_name": "CName",
"country": "AU",
"locality": "Toowong",
"org_unit": "OU",
"email": "bob@bob.com",
"organization": "Internet Widgits Pty Ltd",
"key_length": 2048,
"cert": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----",
"csr": {
"country": "AU",
"challenge_password": "aaa",
"common_name": "aa",
"state": "ee",
"locality": "dd",
"email": "bob@bob.com",
"key_length": 512
},
"key": "-----BEGIN PRIVATE KEY-----..."
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /services/https
Update HTTPS details. A certificate matching the CSR can be uploaded by setting the https.cert field, a CSR can be cancelled by sending through no https.csr body, and a new csr can be created by sending through a https.csr body with a csr value of "new".
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Example:
{
"https": {
"key_length": 2048,
"cert": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----",
"csr": {
"country": "AU",
"challenge_password": "aaa",
"common_name": "aa",
"state": "ee",
"locality": "dd",
"key_length": 2048,
"email": "bob@bob.com"
},
"key": "-----BEGIN PRIVATE KEY-----..."
}
}
HTTP status code 200
Returns the updated HTTPS server details
Body
Media type: application/json
Type: object
Example:
{
"https": {
"valid_from": "Sep 21 00:39:03 2016 GMT",
"valid_to": "Sep 21 00:39:03 2016 GMT",
"common_name": "CName",
"country": "AU",
"locality": "Toowong",
"org_unit": "OU",
"email": "bob@bob.com",
"organization": "Internet Widgits Pty Ltd",
"key_length": 2048,
"cert": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----",
"csr": {
"country": "AU",
"challenge_password": "aaa",
"common_name": "aa",
"state": "ee",
"locality": "dd",
"email": "bob@bob.com",
"key_length": 512
},
"key": "-----BEGIN PRIVATE KEY-----..."
}
}
HTTP status code 400
Returns an error after the operation failed due to invalid user input.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 2,
"code": 14,
"text": " String did not conform to the expected format.",
"args": {
"uuid": "root-1-services_https_csr_email"
},
"level": 1
},
{
"type": 1,
"code": 33,
"text": "Push command failed",
"args": {},
"level": 1
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Returns an error after the operation failed.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 2,
"code": 14,
"text": " String did not conform to the expected format.",
"args": {
"uuid": "root-1-services_https_csr_email"
},
"level": 1
},
{
"type": 1,
"code": 33,
"text": "Push command failed",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Provides access to the NTP client configuration on the system.
Fetch NTP client configuration.
Update NTP client configuration, including enabling/disabling the NTP service.
get /services/ntp
Fetch NTP client configuration.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Returns the current NTP configuration.
Body
Media type: application/json
Type: object
Example:
{
"ntp": {
"enabled": true,
"servers": [
{
"id": "services_ntp_servers-1",
"value": "0.au.pool.ntp.org"
},
{
"id": "services_ntp_servers-2",
"value": "1.au.pool.ntp.org"
}
],
"id": "root-1-services_ntp"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /services/ntp
Update NTP client configuration, including enabling/disabling the NTP service.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Example:
{
"ntp": {
"enabled": true,
"servers": [
{
"value": "0.au.pool.ntp.org"
},
{
"value": "2.au.pool.ntp.org"
},
{
"value": "3.au.pool.ntp.org"
}
]
}
}
HTTP status code 200
Returns the updated NTP configuration.
Body
Media type: application/json
Type: object
Example:
{
"ntp": {
"enabled": true,
"servers": [
{
"id": "services_ntp_servers-1",
"value": "0.au.pool.ntp.org"
},
{
"id": "services_ntp_servers-2",
"value": "2.au.pool.ntp.org"
},
{
"id": "services_ntp_servers-3",
"value": "3.au.pool.ntp.org"
}
],
"id": "root-1-services_ntp"
}
}
HTTP status code 400
Returns an error after the operation failed due to invalid request.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 4,
"code": 40,
"text": "Required field 'server-1' was not provided in the request",
"args": {
"param": "server-1"
},
"level": 1
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Error saving NTP configuration.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 2,
"code": 25,
"text": "'' is not a valid hostname",
"args": {
"address": "",
"uuid": "services_ntp_servers-0"
},
"level": 1
},
{
"type": 1,
"code": 33,
"text": "Push command failed",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Provides access to the remote syslog server configuration.
Fetch remote syslog server configuration list.
Create a new syslog server data in the configuration.
get /services/syslog
Fetch remote syslog server configuration list.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Returns the current syslog server configuration.
Body
Media type: application/json
Type: object
Properties- syslogServers: required (array of getSyslogServerResponseSingle)
Items: getSyslogServerResponseSingle
- id: required (string)
- port: required (integer)
- protocol: required (string)
- address: required (string)
Example:
{
"syslogServers": [
{
"id": "services_syslog_servers-31",
"port": 601,
"protocol": "UDP",
"address": "0.au.pool.rsyslog.org"
},
{
"id": "services_syslog_servers-32",
"port": 602,
"protocol": "UDP",
"address": "192.168.220.45"
}
]
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
post /services/syslog
Create a new syslog server data in the configuration.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- syslogServer: required (object)
- port: (integer)
- protocol: (string)
- address: required (string)
Example:
{
"syslogServer": {
"port": 1000,
"protocol": "UDP",
"address": "192.168.33.199"
}
}
HTTP status code 200
Created syslog server configuration
Body
Media type: application/json
Type: object
Properties- syslogServer: required (object)
- id: required (string)
- port: required (integer)
- protocol: required (string)
- address: required (string)
Example:
{
"syslogServer": {
"id": "{services_syslog_servers-2}",
"port": 1000,
"protocol": "UDP",
"address": "192.168.33.199"
}
}
HTTP status code 400
Failed to initiate syslog server creation due to error in post body.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 2,
"code": 22,
"text": "Element [protocol] is of the wrong type",
"args": {
"uuid": "protocol"
},
"level": 1
}
]
}
HTTP status code 401
Authentication failed due to invalid session.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"text": "Invalid session ID",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Fetch a configured syslog server by id such as GET services_syslog_servers-1
Update syslog server configuration
Delete a syslog server; e.g. DELETE /services/syslog/{syslog_server_id}
get /services/syslog/{syslog_server_id}
Fetch a configured syslog server by id such as GET services_syslog_servers-1
Operations Manager base authentication scheme
URI Parameters
- syslog_server_id: required (string)
unique identifier for syslog servers
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Returns the requested syslog server configuration.
Body
Media type: application/json
Type: object
Properties- syslogServer: required (object)
- id: required (string)
- port: required (integer)
- protocol: required (string)
- address: required (string)
Example:
{
"syslogServer": {
"id": "services_syslog_servers-1",
"port": 705,
"protocol": "UDP",
"address": "192.168.33.200"
}
}
HTTP status code 400
Returns an error after the operation failed due to invalid request.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 4,
"code": 40,
"text": "Required field 'services_syslog-1' was not provided in the request",
"args": {
"param": "server-1"
},
"level": 1
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
HTTP status code 500
Error saving syslog configuration.
Body
Media type: application/json
Type: object
Example:
{
"error": [
{
"type": 2,
"code": 25,
"text": "'' is not a valid hostname",
"args": {
"address": "",
"uuid": "services_syslog_servers-1"
},
"level": 1
},
{
"type": 1,
"code": 33,
"text": "Push command failed",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /services/syslog/{syslog_server_id}
Update syslog server configuration
Operations Manager base authentication scheme
URI Parameters
- syslog_server_id: required (string)
unique identifier for syslog servers
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- syslogServer: required (object)
- port: (integer)
- protocol: (string)
- address: required (string)
Example:
{
"syslogServer": {
"address": "192.168.33.199",
"port": 1000,
"protocol": "UDP"
}
}
HTTP status code 200
Returns the updated syslog server configuration.
Body
Media type: application/json
Type: object
Properties- syslogServer: required (object)
- id: required (string)
- port: required (integer)
- protocol: required (string)
- address: required (string)
Example:
{
"syslogServer": {
"id": "services_syslog_servers-1",
"port": 705,
"protocol": "UDP",
"address": "192.168.33.200"
}
}
HTTP status code 400
Returns an error after the operation failed due to invalid request.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 4,
"code": 40,
"text": "Required field 'services_syslog-1' was not provided in the request",
"args": {
"param": "server-1"
},
"level": 1
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Error saving syslog configuration.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 2,
"code": 25,
"text": "'' is not a valid hostname",
"args": {
"address": "",
"uuid": "services_syslog_servers-1"
},
"level": 1
},
{
"type": 1,
"code": 33,
"text": "Push command failed",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
delete /services/syslog/{syslog_server_id}
Delete a syslog server; e.g. DELETE /services/syslog/{syslog_server_id}
Operations Manager base authentication scheme
URI Parameters
- syslog_server_id: required (string)
unique identifier for syslog servers
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
syslog server deleted
HTTP status code 400
Returns an error after the operation failed due to invalid request.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 4,
"code": 40,
"text": "Required field 'services_syslog-1' was not provided in the request",
"args": {
"param": "server-1"
},
"level": 1
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
syslog server does not exist
Body
Media type: application/json
Type: object
Example:
{
"error": [
{
"type": 5,
"code": 29,
"text": "Could not find element with UUID 'services_syslog_servers-2'",
"args": {
"uuid": "services_syslog_servers-2"
},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Fetch the current ssh delimiter. For example, GET services/ssh
Update config parameters related to the SSH service.
get /services/ssh
Fetch the current ssh delimiter. For example, GET services/ssh
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- ssh: required (object)
- ssh_url_delimiter: required (string)
Example:
{
"ssh": {
"ssh_url_delimiter": "+"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /services/ssh
Update config parameters related to the SSH service.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- ssh: required (object)
- ssh_url_delimiter: required (string)
Example:
{
"ssh": {
"ssh_url_delimiter": "+"
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- ssh: required (object)
- ssh_url_delimiter: required (string)
Example:
{
"ssh": {
"ssh_url_delimiter": "+"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/physifs
Read and manipulate the network physical interfaces on the Operations Manager appliance.
Get a list of the network interfaces on the Operations Manager appliance: GET physifs
get /physifs
Get a list of the network interfaces on the Operations Manager appliance: GET physifs
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- physifs: required (array of physifItemSingle)
Items: physifItemSingle
- enabled: required (boolean)
- description: required (string)
- media: required (string)
- id: required (string)
- ethernet_setting: required (object)
- link_speed: required (string)
- id: required (string)
- runtime_status: required (object)
- status: required (string)
- id: required (string)
Example:
{
"physifs": [
{
"enabled": true,
"description": "Auto-detected ethernet device",
"media": "ethernet",
"id": "system_net_physifs-1",
"ethernet_setting": {
"id": "system_net_physifs-1",
"link_speed": "auto"
},
"runtime_status": {
"status": "running",
"id": "system_net_physifs-1"
}
},
{
"enabled": true,
"description": "Auto-detected ethernet device",
"media": "ethernet",
"id": "system_net_physifs-2",
"ethernet_setting": {
"id": "system_net_physifs-1",
"link_speed": "auto"
},
"runtime_status": {
"status": "running",
"id": "system_net_physifs-2"
}
}
]
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Get a network interface on the Operations Manager appliance, by id: GET physifs/id
Update settings for a network interface on the Operations Manager appliance, by id: PUT physifs/id
get /physifs/{id}
Get a network interface on the Operations Manager appliance, by id: GET physifs/id
Operations Manager 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- physif: required (object)
- enabled: required (boolean)
- description: required (string)
- media: required (string)
- id: required (string)
- ethernet_setting: required (object)
- link_speed: required (string)
- id: required (string)
- runtime_status: required (object)
- status: required (string)
- id: required (string)
Example:
{
"physif": {
"enabled": true,
"description": "Auto-detected ethernet device",
"media": "ethernet",
"id": "system_net_physifs-1",
"ethernet_setting": {
"id": "system_net_physifs-1",
"link_speed": "auto"
},
"runtime_status": {
"status": "running",
"id": "system_net_physifs-1"
}
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /physifs/{id}
Update settings for a network interface on the Operations Manager appliance, by id: PUT physifs/id
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- physif: required (object)
- enabled: required (boolean)
- description: (string)
- media: required (string)
- ethernet_setting: required (object)
- link_speed: required (string)
Example:
{
"physif": {
"enabled": true,
"description": "NET1 - 1G Copper/SFP",
"media": "ethernet",
"ethernet_setting": {
"link_speed": "auto"
}
}
}
HTTP status code 200
The physif {id} settings was updated.
Body
Media type: application/json
Type: object
Properties- physif: required (object)
- enabled: required (boolean)
- description: required (string)
- media: required (string)
- id: required (string)
- ethernet_setting: required (object)
- link_speed: required (string)
- id: required (string)
- runtime_status: required (object)
- status: required (string)
- id: required (string)
Example:
{
"physif": {
"enabled": true,
"description": "NET1 - 1G Copper/SFP",
"media": "ethernet",
"id": "system_net_physifs-1",
"ethernet_setting": {
"id": "system_net_physifs-1",
"link_speed": "auto"
},
"runtime_status": {
"status": "running",
"id": "system_net_physifs-1"
}
}
}
HTTP status code 400
Invalid request: body is not json or does not conform to required json schema. Incomplete data: physif id parameter missing.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
physif {id} does not exist. Attempted to change read only fields. Attempted to change unknown fields.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/conns
Read and manipulate the network connections on the Operations Manager appliance.
Get a list of the network connections on the server.
Add a new network connection to the Operations Manager appliance.
get /conns
Get a list of the network connections on the server.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- conns: required (array of items)
Items: items
- id: (string)
- description: required (string)
- physif: required (string)
- name: required (string)
- mode: required (string)
- runtime_status: (object)
- status: required (string)
- last_status_change: required (number)
- id: required (string)
- addresses: required (array of (conn_return_status_ipv4_address | conn_return_status_ipv6_address))
- gateway: required (string)
- dns1: required (string)
- dns2: required (string)
- ipv4_static_settings: (object)
- id: required (string)
- netmask: required (string)
- address: required (string)
- broadcast: (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
- ipv6_static_settings: (object)
- id: required (string)
- prefix_length: required (string)
- address: required (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
Example:
{
"conns": [
{
"name": "default-conn-1",
"description": "IPv4 static network connection",
"physif": "net1",
"mode": "static",
"ipv4_static_settings": {
"id": "system_net_conns-1",
"netmask": "255.255.255.0",
"address": "192.168.87.156",
"gateway": "192.168.87.100",
"broadcast": "192.168.87.255",
"dns1": "192.168.87.100",
"dns2": "192.168.87.100"
},
"runtime_status": {
"status": "running",
"last_status_change": 1471506633,
"id": "system_net_conns-1",
"addresses": [
{
"id": "system_net_conns-address-1",
"address": "192.168.87.156",
"netmask": "255.255.255.0"
}
],
"gateway": "192.168.87.254",
"dns1": "8.8.8.8",
"dns2": "192.168.33.254"
},
"id": "system_net_conns-1"
},
{
"name": "default-conn-2",
"description": "IPv6 static network connection",
"physif": "net1",
"mode": "ipv6_static",
"ipv6_static_settings": {
"id": "system_net_conns-1",
"address": "2001:b:c:d::8329",
"prefix_length": "64",
"gateway": "2001:b:c:d::254",
"dns1": "DDDD:0002:3008:8CFD:00AB:0002:3008:AAAA",
"dns2": "DDDD:0002:3008:8CFD:00AB:0002:3008:BBBB"
},
"runtime_status": {
"status": "running",
"last_status_change": 1471506633,
"id": "system_net_conns-2",
"addresses": [
{
"id": "system_net_conns-2-address-1",
"address": "2001:b:c:d::8329",
"prefix_length": 64
},
{
"id": "system_net_conns-2-address-2",
"address": "2001:b:c:d::8320",
"netmask": "64"
}
],
"gateway": "192.168.87.254",
"dns1": "DDDD:0002:3008:8CFD:00AB:0002:3008:AAAA",
"dns2": "DDDD:0002:3008:8CFD:00AB:0002:3008:BBBB"
},
"id": "system_net_conns-3"
}
]
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
post /conns
Add a new network connection to the Operations Manager appliance.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- conn: required (object)
- id: (string)
- description: (string)
- name: (string)
- mode: required (string)
- physif: required (string)
- ipv4_static_settings: (object)
- netmask: required (string)
- address: required (string)
- broadcast: (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
- ipv6_static_settings: (object)
- prefix_length: required (string)
- address: required (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
Example:
{
"conn": {
"ipv4_static_settings": {
"netmask": "255.255.255.0",
"address": "192.168.87.156",
"gateway": "192.168.87.100",
"broadcast": "192.168.87.255",
"dns1": "192.168.87.100",
"dns2": "192.168.87.100"
},
"mode": "static",
"physif": "system_net_physifs-1"
}
}
HTTP status code 200
The conn {id} settings was updated.
Body
Media type: application/json
Type: object
Properties- conn: required (object)
- name: (string)
- ipv4_static_settings: (object)
- id: (string)
- netmask: required (string)
- address: required (string)
- broadcast: (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
- ipv6_static_settings: (object)
- id: required (string)
- prefix_length: required (number)
- address: required (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
- id: (string)
- mode: required (string)
- description: (string)
- physif: required (string)
- runtime_status: (object)
- status: required (string)
- addresses: required (array of (conn_return_status_ipv4_address | conn_return_status_ipv6_address))
- last_status_change: required (number)
- id: required (string)
Example:
{
"conn": {
"name": "conn-2",
"ipv4_static_settings": {
"netmask": "255.255.255.0",
"address": "192.168.87.156",
"gateway": "192.168.87.100",
"broadcast": "192.168.87.255",
"dns1": "192.168.87.100",
"dns2": "192.168.87.100"
},
"id": "system_net_conns-9",
"mode": "static",
"physif": "system_net_physifs-1",
"runtime_status": {
"status": "reloading",
"addresses": [
{
"id": "system_net_conns-9"
}
],
"last_status_change": 1536209633,
"id": "system_net_conns-9"
}
}
}
HTTP status code 400
Invalid request: body is not json or does not conform to required json schema. Incomplete data: conn id parameter missing.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Conn {id} does not exist. Attempted to change read only fields. Attempted to change unknown fields.
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Get the configuration of a network connection on the Operations Manager appliance: GET /conns/{id}
Update settings for a network connection on the Operations Manager appliance: PUT /conns/{id}
Delete a network connection on the Operations Manager appliance: DELETE /conns/{id}
get /conns/{id}
Get the configuration of a network connection on the Operations Manager appliance: GET /conns/{id}
Operations Manager 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- conn: required (object)
- name: (string)
- ipv4_static_settings: (object)
- id: (string)
- netmask: required (string)
- address: required (string)
- broadcast: (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
- ipv6_static_settings: (object)
- id: required (string)
- prefix_length: required (number)
- address: required (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
- id: (string)
- mode: required (string)
- description: (string)
- physif: required (string)
- runtime_status: (object)
- status: required (string)
- addresses: required (array of (conn_return_status_ipv4_address | conn_return_status_ipv6_address))
- last_status_change: required (number)
- id: required (string)
Example:
{
"conn": {
"name": "default-conn-1",
"ipv4_static_settings": {
"id": "system_net_conns-1",
"netmask": "255.255.255.0",
"address": "192.168.87.156",
"gateway": "192.168.87.100",
"broadcast": "192.168.87.255",
"dns1": "192.168.87.100",
"dns2": "192.168.87.100"
},
"id": "system_net_conns-1",
"mode": "static",
"description": "Default static network connection",
"physif": "system_net_physifs-1",
"runtime_status": {
"status": "reloading",
"addresses": [
{
"id": "system_net_conns-1"
}
],
"last_status_change": 1536210047,
"id": "system_net_conns-2"
}
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /conns/{id}
Update settings for a network connection on the Operations Manager appliance: PUT /conns/{id}
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- conn: required (object)
- id: (string)
- description: (string)
- name: (string)
- mode: required (string)
- physif: required (string)
- ipv4_static_settings: (object)
- netmask: required (string)
- address: required (string)
- broadcast: (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
- ipv6_static_settings: (object)
- prefix_length: required (string)
- address: required (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
Example:
{
"conn": {
"ipv4_static_settings": {
"netmask": "255.255.255.0",
"address": "192.168.87.156",
"gateway": "192.168.87.100",
"broadcast": "192.168.87.255",
"dns1": "192.168.87.100",
"dns2": "192.168.87.100"
},
"mode": "static",
"physif": "system_net_physifs-1"
}
}
HTTP status code 200
The conn settings were updated.
Body
Media type: application/json
Type: object
Properties- conn: required (object)
- name: (string)
- ipv4_static_settings: (object)
- id: (string)
- netmask: required (string)
- address: required (string)
- broadcast: (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
- ipv6_static_settings: (object)
- id: required (string)
- prefix_length: required (number)
- address: required (string)
- gateway: (string)
- dns1: (string)
- dns2: (string)
- id: (string)
- mode: required (string)
- description: (string)
- physif: required (string)
- runtime_status: (object)
- status: required (string)
- addresses: required (array of (conn_return_status_ipv4_address | conn_return_status_ipv6_address))
- last_status_change: required (number)
- id: required (string)
Example:
{
"conn": {
"name": "conn-2",
"ipv4_static_settings": {
"broadcast": "192.168.87.255",
"gateway": "192.168.87.100",
"address": "192.168.87.156",
"id": "system_net_conns-2",
"dns2": "192.168.87.100",
"dns1": "192.168.87.100",
"netmask": "255.255.255.0"
},
"id": "system_net_conns-2",
"mode": "static",
"physif": "system_net_physifs-1",
"runtime_status": {
"status": "reloading",
"addresses": [
{
"id": "system_net_conns-2"
}
],
"last_status_change": 1536210052,
"id": "system_net_conns-2"
}
}
}
HTTP status code 400
Invalid request: body is not json or does not conform to required json schema. Incomplete data: conn id parameter missing.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Conn {id} does not exist. Attempted to change read only fields. Attempted to change unknown fields.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
delete /conns/{id}
Delete a network connection on the Operations Manager appliance: DELETE /conns/{id}
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Conn deleted
HTTP status code 400
Incomplete data
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
User did not exist
Body
Media type: application/json
Type: object
Example:
{
"error": [
{
"type": 5,
"code": 29,
"text": "Could not find element with UUID 'system_net_conns-1'",
"args": {
"uuid": "system_net_conns-1"
},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/lighthouse_enrollments
View and control enrollment to a lighthouse
Get the information about the lighthouse enrollments
Create a new lighthouse enrollment
get /lighthouse_enrollments
Get the information about the lighthouse enrollments
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- lighthouse-enrollments: required (array of items)
Items: items
- port: (integer)
- address: required (string)
- id: required (string)
- bundle: (string)
- status: required (string)
Example:
{
"lighthouse-enrollments": [
{
"port": 443,
"address": "192.168.0.1",
"id": "lighthouse_enrollments-1",
"bundle": "bundle",
"status": "Enrolling"
}
]
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
post /lighthouse_enrollments
Create a new lighthouse enrollment
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- lighthouse_enrollment: required (object)
- address: required (string)
- port: (integer)
- bundle: (string)
- token: required (string)
Example:
{
"lighthouse_enrollment": {
"address": "192.168.0.1",
"token": "password",
"bundle": "bundle-1",
"port": 8443
}
}
HTTP status code 201
The new lighthouse enrollment was successfully created and callhome enrollment was started.
Body
Media type: application/json
Type: object
Properties- lighthouse_enrollment: required (object)
- port: (integer)
- address: required (string)
- id: required (string)
- bundle: (string)
- status: required (string)
Example:
{
"lighthouse_enrollment": {
"id": "lighthouse_enrollments-1",
"port": 8443,
"status": "Enrolling",
"address": "192.168.0.1"
}
}
HTTP status code 400
Invalid request: body is not json or doesn not conform to required json schema.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Get lighthouse-enrollment information by id.
Delete lighthouse enrollment object and begin unenrollment
get /lighthouse_enrollments/{id}
Get lighthouse-enrollment information by id.
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
ID of the lighthouse-enrollment to fetch
Example:
lighthouse_enrollment-2
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- lighthouse_enrollment: required (object)
- port: (integer)
- address: required (string)
- id: required (string)
- bundle: (string)
- status: required (string)
Example:
{
"lighthouse_enrollment": {
"id": "lighthouse_enrollments-2",
"port": 443,
"status": "Connected",
"address": "192.168.0.1"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
HTTP status code 404
The lighthouse-enrollment doesn't exist.
Body
Media type: application/json
Type: object
Example:
{
"error": [
{
"type": 5,
"code": 29,
"text": "Could not find element with UUID 'lighthouse_enrollments-6'",
"args": {
"uuid": "lighthouse_enrollments-6"
},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
delete /lighthouse_enrollments/{id}
Delete lighthouse enrollment object and begin unenrollment
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
ID of the lighthouse-enrollment to fetch
Example:
lighthouse_enrollment-2
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Example:
{
"message": "OK"
}
HTTP status code 400
Incomplete data
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Body
Media type: application/json
Type: object
Example:
{
"error": [
{
"type": 5,
"code": 29,
"text": "Could not find element with UUID 'lighthouse_enrollments-20'",
"args": {
"uuid": "lighthouse_enrollments-20"
},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/registration
Registration endpoint accessed by a Lighthouse to start Lighthouse driven enrollment
Initial contact from Lighthouse to start the Enrollment process
Delete all lhvpn_tunnels.
post /registration
Initial contact from Lighthouse to start the Enrollment process
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- id: required (string)
- package_password: required (string)
- server: required (string)
- server_api_port: (integer)
- lh_ext_eps: (array of items)
Items: items
- server: required (string)
- server_api_port: (integer)
- server_vpn_port: (integer)
Example:
{
"id": "nodes-1",
"server": "192.168.0.1",
"server_api_port": 8443,
"package_password": "password",
"lh_ext_eps": [
{
"server": "162.168.0.1",
"server_api_port": 8443,
"server_vpn_port": 1121
},
{
"server": "162.168.0.2",
"server_api_port": 601,
"server_vpn_port": 1121
}
]
}
HTTP status code 201
Body
Media type: application/json
Type: object
Example:
{
"message": "OK"
}
HTTP status code 400
Invalid request: body is not json or doesn not conform to required json schema.
Body
Media type: application/json
Type: object
Example:
{
"message": [
{
"type": 4,
"code": 39,
"text": "Invalid request body",
"args": {},
"level": 1
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
delete /registration
Delete all lhvpn_tunnels.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Example:
{
"message": "OK"
}
HTTP status code 400
Incomplete data
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 500
Internal Server Error
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Update the lhvpn_tunnel server address
put /registration/{id}/server_address
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
The ID of the node as seen by the lighthouse
Example:
lighthouse_enrollment-2
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- address: required (string)
Example:
{
"address": "192.168.0.1"
}
HTTP status code 200
Body
Media type: application/json
Type: object
Example:
{
"message": "OK"
}
HTTP status code 400
Invalid request: body is not json or doesn not conform to required json schema.
Body
Media type: application/json
Type: object
Example:
{
"message": [
{
"type": 4,
"code": 39,
"text": "Invalid request body",
"args": {},
"level": 1
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Example:
{
"message": [
{
"type": 5,
"code": 29,
"text": "Could not find element with UUID 'nodes-1'",
"args": {
"uuid": "nodes-1"
},
"level": 1
}
]
}
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/system
System endpoints are related to configuring and accessing information about the Operations Manager appliance itself.
Retrieve or change the Operations Manager appliance system's hostname.
Get the Operations Manager appliance hostname.
Update the Operations Manager appliance hostname.
get /system/hostname
Get the Operations Manager appliance hostname.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- system_hostname: required (object)
- hostname: required (string)
Example:
{
"system_hostname": {
"hostname": "OM2000"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /system/hostname
Update the Operations Manager appliance hostname.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- system_hostname: required (object)
- hostname: required (string)
Example:
{
"system_hostname": {
"hostname": "OM2000"
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- system_hostname: required (object)
- hostname: required (string)
Example:
{
"system_hostname": {
"hostname": "OM2000"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve or update the Lighthouse server's global enrollment token.
Retrieve the Lighthouse's global enrollment token.
Update the Lighthouse's global enrollment token.
get /system/global_enrollment_token
Retrieve the Lighthouse's global enrollment token.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- system_global_enrollment_token: required (object)
- token: required (string)
Example:
{
"system_global_enrollment_token": {
"token": "mySomewhatSecret"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /system/global_enrollment_token
Update the Lighthouse's global enrollment token.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- system_global_enrollment_token: required (object)
- token: required (string)
Example:
{
"system_global_enrollment_token": {
"token": "mySomewhatSecret"
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- system_global_enrollment_token: required (object)
- token: required (string)
Example:
{
"system_global_enrollment_token": {
"token": "mySomewhatSecret"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve or change the Operations Manager appliance WebUI session timeout.
Retrieve the WebUI session timeout (in minutes).
Update the WebUI session timeout (in minutes).
get /system/webui_session_timeout
Retrieve the WebUI session timeout (in minutes).
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Example:
{
"system_webui_session_timeout": {
"timeout": 20
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /system/webui_session_timeout
Update the WebUI session timeout (in minutes).
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Example:
{
"system_webui_session_timeout": {
"timeout": 20
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Example:
{
"system_webui_session_timeout": {
"timeout": 20
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve or change the Operations Manager appliance CLI
Retrieve the CLI session timeout (in minutes).
Update the CLI session timeout (in minutes).
get /system/cli_session_timeout
Retrieve the CLI session timeout (in minutes).
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Example:
{
"system_cli_session_timeout": {
"timeout": 0
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /system/cli_session_timeout
Update the CLI session timeout (in minutes).
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Example:
{
"system_cli_session_timeout": {
"timeout": 20
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Example:
{
"system_cli_session_timeout": {
"timeout": 20
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
The SSH port used in Direct SSH links.
Retrieve the system SSH port.
Update the system SSH port.
get /system/ssh_port
Retrieve the system SSH port.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- system_ssh_port: required (object)
- port: required (number)
Example:
{
"system_ssh_port": {
"port": 22
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /system/ssh_port
Update the system SSH port.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- system_ssh_port: required (object)
- port: required (number)
Example:
{
"system_ssh_port": {
"port": 22
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- system_ssh_port: required (object)
- port: required (number)
Example:
{
"system_ssh_port": {
"port": 22
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve and update the system's timezone.
Retrieves the system timezone.
Update the system timezone.
get /system/timezone
Retrieves the system timezone.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- system_timezone: required (object)
- timezone: required (string)
Example:
{
"system_timezone": {
"timezone": "Australia/Brisbane"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /system/timezone
Update the system timezone.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- system_timezone: required (object)
- timezone: required (string)
Example:
{
"system_timezone": {
"timezone": "Australia/Brisbane"
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- system_timezone: required (object)
- timezone: required (string)
Example:
{
"system_timezone": {
"timezone": "Australia/Brisbane"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve and update the Operations Manager's time.
Retrieve the Operations Manager current time.
Update the Operations Manager current time.
get /system/time
Retrieve the Operations Manager current time.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- time: required (object)
- time: required (string)
Example:
{
"time": {
"time": "16:22 Sep 23, 2016"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /system/time
Update the Operations Manager current time.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- time: required (object)
- time: required (string)
Example:
{
"time": {
"time": "16:22 Sep 23, 2016"
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- time: required (object)
- time: required (string)
Example:
{
"time": {
"time": "16:22 Sep 23, 2016"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Delete the configuration effectively performing a system reset. The will reset to factory settings and reboot. The user will need to access the device via the console to set the root password before the network will be available.
delete /system/config
Delete the configuration effectively performing a system reset. The will reset to factory settings and reboot. The user will need to access the device via the console to set the root password before the network will be available.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
The factory reset process was started successfuly.
HTTP status code 400
Incomplete data
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Upgrade the system firmware either by uploading a file or providing a url to download the file from. This endpoint will always return success if the firmware upgrade job was started - it occurs in the background and the state of which should be retrieved from the GET /system/firmware_upgrade_status endpoint. At least 'file' or 'firmware_url' are required.
post /system/firmware_upgrade
Upgrade the system firmware either by uploading a file or providing a url to download the file from. This endpoint will always return success if the firmware upgrade job was started - it occurs in the background and the state of which should be retrieved from the GET /system/firmware_upgrade_status endpoint. At least 'file' or 'firmware_url' are required.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: multipart/form-data
Type: object
Properties- file: (file)
The file to be uploaded.
- firmware_url: (string)
A url for the file to download.
- firmware_options: (string)
Options for the firmware upgrade tool.
HTTP status code 200
The firmware upgrade process was started.
Body
Media type: application/json
Type: object
Properties- system_firmware_upgrade_status: required (object)
- state: required (one of pending, running, error, finished)
- error_message: (one of format_error, download_error, version_error, runtime_error)
Example:
{
"system_firmware_upgrade_status":
{
"state": "running"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve the status of the most recent firmware upgrade job.
get /system/firmware_upgrade_status
Retrieve the status of the most recent firmware upgrade job.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
The factory reset process was started successfuly.
Body
Media type: application/json
Type: object
Properties- system_firmware_upgrade_status: required (object)
- state: required (one of pending, running, error, finished)
- error_message: (one of format_error, download_error, version_error, runtime_error)
Example:
{
"system_firmware_upgrade_status":
{
"state": "error",
"error_message": "download_error"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve the Operations Manager's most recent firmware and REST API version.
Get the version information.
get /system/version
Get the version information.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- system_version: required (object)
- rest_api_version: required (string)
- firmware_version: required (string)
Example:
{
"system_version": {
"rest_api_version": "v2",
"firmware_version": "18.Q3.0"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve the Operations Manager appliance's Serial Number.
Get the Serial Number information.
get /system/serial_number
Get the Serial Number information.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- system_serial_number: required (object)
- serial_number: required (string)
Example:
{
"system_serial_number": {
"serial_number": "409155v03.0001"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/support_report
A report which will provide information about the state of the Operations Manager appliance. This information can be used to help analyse and understand the state of the system. The report is large and may take in the order of a minute to obtain.
Retrieve the support report data.
get /support_report
Retrieve the support report data.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
System report was successfully generated and returned including a url to a corresponding zip file.
Body
Media type: application/json
Type: object
Properties- support_report: required (object)
- contents: required (string)
A new line delimited dump of the current state of the system.
- zip_file: required (string)
url to a zip file which contains the system report.
- contents: required (string)
Example:
{
"support_report": {
"contents": "*** System time ***\nMon Aug 22 11:27:29 2016\n\n\n*** Firmware Version ***\n$ sysflash_info\nsysflash info\ncurrent copy name: 'root1'\ncurrent config dev: '/dev/sda6'\ncurrent root dev: '/dev/sda5'\ncurrent boot dev: '/dev/sda2'\nother (upgradable) copy name: 'root2'\nother (upgradable) config dev: '/dev/sda8'\nother (upgradable) root dev: '/dev/sda7'\nother (upgradable) boot dev: '/dev/sda3'\nboard name: 'OM-2000'\nboard rev: '1.0'\ncurrent software vendor: 'opengear'\ncurrent software product: 'operations manager'\ncurrent software version: '1.0.0'\ncurrent software variant: 'dev'\n\n*** Uptime ***\n359140.57 715606.84\n\n*** IP Configuration ***\n$ ifconfig\nnet1 Link encap:Ethernet HWaddr 08:00:27:d7:1c:38 \n ",
"zip_file": "/api/v2/support_report?zip=1"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/auth
Configure remote authentication, authorization, accounting (AAA) servers.
Retrieve information on AAA servers.
Update the AAA config.
get /auth
Retrieve information on AAA servers.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
A JSON object containing the AAA config is returned.
Body
Media type: application/json
Type: object
Example:
{
"auth": {
"mode": "tacacs",
"radiusPassword": "hunter2",
"radiusAuthenticationServers": [
{
"id": "auth_radius_authenticationServers-2",
"hostname": "192.168.250.1.2"
}
],
"radiusAccountingServers": [
{
"id": "auth_radius_accountingServers-1",
"hostname": "192.168.250.1.2"
}
],
"tacacsService": "raccess",
"tacacsMethod": "pap",
"tacacsPassword": "hunter2",
"tacacsAuthenticationServers": [
{
"hostname": "192.168.1.2",
"id": "auth_tacacs_authenticationServers-2"
}
],
"ldapAuthenticationServers": [
{
"id": "auth_ldap_authenticationServers-1",
"hostname": "192.168.1.2"
}
],
"ldapBaseDN": "cn=Users,dc=example,dc=com",
"ldapBindDN": "cn=Administrator,cn=Users,dc=example,dc=com",
"ldapUsernameAttribute": "sAMAccountName",
"ldapBindPassword": "hunter2"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /auth
Update the AAA config.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Example:
{
"auth": {
"mode": "radius",
"radiusPassword": "hunter2",
"radiusAuthenticationServers": [
{
"hostname": "192.168.250.2"
}
],
"radiusAccountingServers": [
{
"hostname": "192.168.250.2"
}
],
"tacacsAuthenticationServers": [],
"ldapAuthenticationServers": []
}
}
HTTP status code 200
A JSON object containing the AAA config is returned.
Body
Media type: application/json
Type: object
Example:
{
"auth": {
"tacacsAuthenticationServers": [],
"ldapAuthenticationServers": [],
"ldapIgnoreReferrals": false,
"mode": "radius",
"radiusPassword": "hunter2",
"radiusAuthenticationServers": [
{
"id": "auth_radius_authenticationServers-1",
"port": 1812,
"hostname": "192.168.250.2"
}
],
"radiusAccountingServers": [
{
"id": "auth_radius_accountingServers-1",
"port": 1813,
"hostname": "192.168.250.2"
}
]
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/users
Retrieve and update user information.
Retrieve a list of users.
Create a new User data in the config.
get /users
Retrieve a list of users.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
A JSON object containing Users Config is returned.
Body
Media type: application/json
Type: object
Properties- users: required (array of getUserResponseSingle)
Items: getUserResponseSingle
- username: required (string)
- description: (string)
- enabled: required (boolean)
- id: required (string)
- no_password: required (boolean)
- rights: required (object)
- delete: required (boolean)
- modify: required (boolean)
- groups: required (array of )
A list of groups
- meta: required (object)
- searchId: (string)
- total_pages: (string)
Example:
{
"users": [
{
"username": "root",
"description": "System wide SuperUser account",
"enabled": true,
"id": "users-1",
"no_password": false,
"rights": {
"delete": true,
"modify": true
},
"groups": [
"groups-1"
]
},
{
"username": "tu0",
"description": "",
"enabled": true,
"id": "users-2",
"no_password": false,
"rights": {
"delete": true,
"modify": true
},
"groups": [
"groups-1"
]
}
],
"meta": {
"total_pages": "1"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
post /users
Create a new User data in the config.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- user: required (object)
- username: required (string)
- description: (string)
- enabled: required (boolean)
- no_password: required (boolean)
- groups: required (array of )
A list of groups
Example:
{
"user": {
"username": "tu1",
"description": "testupdated",
"enabled": true,
"no_password": true,
"groups": [
"groups-2"
]
}
}
HTTP status code 200
Body
Media type: application/json
Type: object
Properties- user: required (object)
- username: required (string)
- description: (string)
- enabled: required (boolean)
- id: required (string)
- no_password: required (boolean)
- rights: required (object)
- delete: required (boolean)
- modify: required (boolean)
- groups: required (array of )
A list of groups
Example:
{
"user": {
"username": "tu1",
"description": "testupdated",
"enabled": true,
"id": "users-5",
"no_password": true,
"rights": {
"delete": true,
"modify": true
},
"groups": [
"groups-2"
]
}
}
HTTP status code 400
Failed to initiate user creation due to error in post body.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 2,
"code": 12,
"text": "Element is below the minimum allowed length of 1 character(s)",
"args": {
"min": "1",
"uuid": "{60e2b0a-aafa-11e6-aca7-cb7fd0646002"
},
"level": 1
},
{
"type": 1,
"code": 33,
"text": "Push command failed",
"args": {},
"level": 1
}
]
}
HTTP status code 401
Authentication failed due to invalid session.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"text": "Invalid session ID",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve the User information by ID.
Update a User data in the config.
Delete a User
get /users/{id}
Retrieve the User information by ID.
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
User exists
Body
Media type: application/json
Type: object
Properties- user: required (object)
- username: required (string)
- description: (string)
- enabled: required (boolean)
- id: required (string)
- no_password: required (boolean)
- rights: required (object)
- delete: required (boolean)
- modify: required (boolean)
- groups: required (array of )
A list of groups
Example:
{
"user": {
"username": "tu0",
"description": "",
"enabled": true,
"id": "users-2",
"no_password": false,
"rights": {
"delete": true,
"modify": true
},
"groups": [
"groups-1"
]
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failed due to invalid session.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
{
"error": [
{
"type": 7,
"code": 42,
"text": "Invalid session ID",
"args": {},
"level": 1
}
]
}
HTTP status code 404
User does not exist. User Not Found.
Body
Media type: application/json
Type: object
Example:
{
"error": [
{
"type": 5,
"code": 29,
"text": "Could not find element with UUID 'users-2'",
"args": {
"uuid": "users-2"
},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /users/{id}
Update a User data in the config.
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- user: required (object)
- username: required (string)
- description: (string)
- enabled: required (boolean)
- no_password: required (boolean)
- groups: required (array of )
A list of groups
Example:
{
"user": {
"username": "tu1",
"description": "testupdated",
"enabled": true,
"no_password": true,
"groups": [
"groups-2"
]
}
}
HTTP status code 200
User has been Updated.
Body
Media type: application/json
Type: object
Properties- user: required (object)
- username: required (string)
- description: (string)
- enabled: required (boolean)
- id: required (string)
- no_password: required (boolean)
- rights: required (object)
- delete: required (boolean)
- modify: required (boolean)
- groups: required (array of )
A list of groups
Example:
{
"user": {
"username": "tu1",
"description": "testupdated",
"enabled": true,
"no_password": true,
"id": "users-5",
"rights": {
"delete": true,
"modify": true
},
"groups": [
"groups-2"
]
}
}
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 4,
"code": 39,
"text": "Invalid request body",
"args": {},
"level": 1
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
delete /users/{id}
Delete a User
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
User deleted
HTTP status code 400
Incomplete data
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
User did not exist
Body
Media type: application/json
Type: object
Example:
{
"error": [
{
"type": 5,
"code": 29,
"text": "Could not find element with UUID 'users-2'",
"args": {
"uuid": "users-2"
},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
/groups
Retrieve or update group information.
Retrieve a list of groups.
Create a new Group in the config.
get /groups
Retrieve a list of groups.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
A JSON object containing Groups config is returned.
Body
Media type: application/json
Type: object
Properties- groups: required (array of getGroupResponseSingle)
Items: getGroupResponseSingle
- id: required (string)
- enabled: required (boolean)
- groupname: required (string)
- mode: required (string)
- role: required (string)
- description: (string)
- members: required (array of items)
- ports: (array of items)
- rights: required (object)
- delete: required (boolean)
- modify: required (boolean)
- meta: required (object)
- searchId: (string)
- total_pages: (string)
Example:
{
"groups": [
{
"id": "groups-1",
"enabled": true,
"groupname": "usergrp",
"mode": "scoped",
"role": "ConsoleUser",
"description": "The ConsoleUser group",
"members": [
"users-1",
"users-2"
],
"ports": [
"ports-1",
"ports-2",
"ports-3"
],
"rights": {
"delete": true,
"modify": false
}
},
{
"id": "groups-2",
"enabled": true,
"groupname": "admin",
"mode": "global",
"role": "Administrator",
"description": "Administrator",
"members": [
"users-1",
"users-2"
],
"rights": {
"delete": true,
"modify": true
}
}
],
"meta": {
"total_pages": "1"
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
post /groups
Create a new Group in the config.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- group: required (object)
- groupname: required (string)
- enabled: required (boolean)
- mode: required (string)
- role: required (string)
- description: (string)
- ports: (array of items)
Examples:
group_for_admin:
{
"group": {
"groupname": "local_admin",
"enabled": true,
"mode": "global",
"role": "Administrator"
}
}
group_for_users:
{
"group": {
"groupname": "my_group",
"enabled": true,
"mode": "scoped",
"role": "ConsoleUser",
"ports": [
"ports-1",
"ports-2",
"ports-3"
]
}
}
HTTP status code 201
Body
Media type: application/json
Type: object
Properties- group: required (object)
- id: required (string)
- enabled: required (boolean)
- groupname: required (string)
- mode: required (string)
- role: required (string)
- description: (string)
- members: required (array of items)
- ports: required (array of items)
- rights: required (object)
- delete: required (boolean)
- modify: required (boolean)
Examples:
admin_group:
{
"group": {
"id": "groups-1",
"enabled": true,
"groupname": "local-admin",
"mode": "global",
"role": "Administrator",
"members": [],
"ports": [],
"rights": {
"delete": true,
"modify": true
}
}
}
ConsoleUser_group:
{
"group": {
"id": "groups-3",
"enabled": true,
"groupname": "my_group",
"mode": "scoped",
"role": "ConsoleUser",
"description": "Group for ConsoleUser",
"members": [],
"ports": [
"ports-1",
"ports-2",
"ports-3"
],
"rights": {
"delete": true,
"modify": false
}
}
}
HTTP status code 400
Failed to initiate group creation due to error in post body.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 2,
"code": 26,
"level": 1,
"text": "Duplicate 'groupname' fields with value 'netgrp'",
"args": {
"value": "netgrp",
"uuid": "root-1-@groups",
"field": "groupname"
}
},
{
"type": 1,
"code": 33,
"level": 1,
"text": "Push command failed",
"args": {}
}
]
}
HTTP status code 401
Authentication failed due to invalid session.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"text": "Invalid session ID",
"args": {},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
Retrieve the Group information by ID.
Update a Group data in the config.
Delete a Group
get /groups/{id}
Retrieve the Group information by ID.
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 200
Group exists
Body
Media type: application/json
Type: object
Properties- group: required (object)
- id: required (string)
- enabled: required (boolean)
- groupname: required (string)
- mode: required (string)
- role: required (string)
- description: (string)
- members: required (array of items)
- ports: required (array of items)
- rights: required (object)
- delete: required (boolean)
- modify: required (boolean)
Example:
{
"group": {
"id": "groups-6",
"enabled": true,
"groupname": "netgrp2",
"mode": "scoped",
"role": "ConsoleUser",
"members": [
"users-1",
"users-2"
],
"ports": [
"ports-1",
"ports-2",
"ports-3"
],
"rights": {
"delete": true,
"modify": false
}
}
}
HTTP status code 400
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failed due to invalid session.
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
{
"error": [
{
"type": 7,
"code": 42,
"text": "Invalid session ID",
"args": {},
"level": 1
}
]
}
HTTP status code 404
Group does not exist. Group Not Found.
Body
Media type: application/json
Type: object
Example:
{
"error": [
{
"type": 5,
"code": 29,
"text": "Could not find element with UUID 'groups-59'",
"args": {
"uuid": "groups-59"
},
"level": 1
}
]
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
put /groups/{id}
Update a Group data in the config.
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Body
Media type: application/json
Type: object
Properties- group: required (object)
- enabled: required (boolean)
- groupname: required (string)
- mode: required (string)
- role: required (string)
- description: (string)
- members: required (array of items)
- ports: (array of items)
Example:
{
"group": {
"enabled": true,
"groupname": "netgrp2",
"mode": "scoped",
"role": "ConsoleUser",
"description": "Group for ConsoleUser role",
"members": [
"users-1",
"users-2"
],
"ports": [
"ports-1",
"ports-2",
"ports-3"
]
}
}
HTTP status code 200
Group has been updated.
Body
Media type: application/json
Type: object
Properties- group: required (object)
- id: required (string)
- enabled: required (boolean)
- groupname: required (string)
- mode: required (string)
- role: required (string)
- description: (string)
- members: required (array of items)
- ports: required (array of items)
- rights: required (object)
- delete: required (boolean)
- modify: required (boolean)
Example:
{
"group": {
"id": "groups-6",
"enabled": true,
"groupname": "netgrp2",
"mode": "scoped",
"role": "ConsoleUser",
"description": "Group for ConsoleUser role",
"members": [
"users-1",
"users-2"
],
"ports": [
"ports-1",
"ports-2",
"ports-3"
],
"rights": {
"delete": true,
"modify": false
}
}
}
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 4,
"code": 39,
"text": "Invalid request body",
"args": {},
"level": 1
}
]
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 500
Internal error
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c
delete /groups/{id}
Delete a Group
Operations Manager base authentication scheme
URI Parameters
- id: required (string)
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
HTTP status code 204
Group deleted
HTTP status code 400
Incomplete data
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
HTTP status code 404
Group did not exist
Body
Media type: application/json
Type: object
Example:
{
"error": [
{
"type": 5,
"code": 29,
"text": "Could not find element with UUID 'groups-6'",
"args": {
"uuid": "groups-6"
},
"level": 1
}
]
}
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 appliance 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, as in GET /scripts?execution_id={id}, where id is the value for execution_id returned in the 200 response to the POST /scripts request.
post /scripts
Upload a shell script to be executed on the node
Operations Manager 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
- 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- info: required (string)
- execution_id: required (integer)
Example:
{
"info": "Script execution started successfully",
"execution_id": 23
}
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Example:
{
"error": "Invalid script metadata"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Example:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
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, as in GET /scripts?execution_id={id}, where id is the value for execution_id returned in the 200 response to the POST /scripts request.
Operations Manager base authentication scheme
Headers
- Authorization: required (string)
Example:
Token {{sessionUid}}
Query Parameters
- execution_id: required (string)
The execution_id returned from a /scripts POST request
HTTP status code 200
Successful request
Body
Media type: application/json
Type: object
Properties- script_status: required (one of in_progress, timed_out, completed)
Example:
{
"script_status": "in_progress"
}
HTTP status code 400
Invalid request
Body
Media type: application/json
Type: object
Example:
{
"error": "Script execution ID not provided"
}
HTTP status code 401
Authentication failure
Body
Media type: application/json
Type: object
Properties- error: required (array of items)
A list of errors
Items: items
- type: required (integer)
- code: required (integer)
- level: required (integer)
- text: required (string)
- args: required (object)
Examples:
example1:
{
"error": [
{
"type": 7,
"code": 42,
"level": 1,
"text": "Invalid session ID",
"args": {}
}
]
}
example2:
{
"error": [
{
"type": 7,
"code": 46,
"text": "Permission denied",
"args": {},
"level": 1
}
]
}
HTTP status code 500
Unexpected error
Body
Media type: application/json
Type: object
Example:
{
"error": "Script exit code not found"
}
Secured by token
Headers
- Authorization: required (string)
authorization session token
Example:
Token 521a00e57d4a461b3e4bb0c55166f97c