Resource: auth_info
Information that may be necessary to properly authenticate to the device.
http://{device}/api/common/1.0/auth_info
{ "login_banner": string, "specify_purpose": boolean, "supported_methods": [ string ] }
Property Name | Type | Description | Notes |
---|---|---|---|
auth_info | <object> | Information that may be necessary to properly authenticate to the device. | |
auth_info.login_banner | <string> | A free-form text string that should be displayed to the user prior to logging in, ala /etc/issue on UNIX systems | Optional; |
auth_info.specify_purpose | <boolean> | Indicates whether or not this device can make use of the purpose string when logging in | Optional; |
auth_info.supported_methods | <array of <string>> | List of supported authentication methods | Optional; |
auth_info.supported_methods[items] | <string> | A supported authentication method | Values: BASIC, COOKIE, OAUTH_2_0; |
Links
auth_info: get
GET http://{device}/api/common/1.0/auth_infoResponse Body
Returns an auth_info data object.
Resource: info
Device Info
http://{device}/api/common/1.0/info
{ "device_name": string, "hw_version": string, "mgmt_addresses": [ string ], "model": string, "serial": string, "sw_version": string }
Property Name | Type | Description | Notes |
---|---|---|---|
info | <object> | Device Info | Required properties: [device_name, model, sw_version]; |
info.device_name | <string> | Device name | |
info.hw_version | <string> | Device hardware version (if applicable) | Optional; |
info.mgmt_addresses | <array of <string>> | IP addresses configured/assigned to the management interface(s) of this device. | Optional; |
info.mgmt_addresses[items] | <string> | One management IP address | |
info.model | <string> | Device model | |
info.serial | <string> | Device serial number (if applicable) | Optional; |
info.sw_version | <string> | Device software version |
Links
Resource: ping
Safe resource for determining if the system is running.
http://{device}/api/common/1.0/ping
{ }
Property Name | Type | Description | Notes |
---|---|---|---|
ping | <object> | Safe resource for determining if the system is running. |
Links
Resource: services
Available services on this device
http://{device}/api/common/1.0/services
[ { "id": string, "versions": [ string ], <prop>: any } ]
Property Name | Type | Description | Notes |
---|---|---|---|
services | <array of <object>> | Available services on this device | |
services[items] | <object> | One service | |
services[items].id | <string> | Service identifier / namespace | Optional; |
services[items].versions | <array of <string>> | API versions supported | Optional; |
services[items].versions[items] | <string> | One service version | |
services[items].<prop> | <any> | Optional; |
Links
services: get
GET http://{device}/api/common/1.0/servicesResponse Body
Returns a services data object.
Resource: session_auth
Authentication via session-based cookies
http://{device}/api/common/1.0/login
{ }
Property Name | Type | Description | Notes |
---|---|---|---|
session_auth | <object> | Authentication via session-based cookies |
Links
session_auth: login
Log in and create a new session
POST http://{device}/api/common/1.0/loginRequest Body
Provide a request body with the following structure:
{ "password": string, "purpose": string, "username": string }
Property Name | Type | Description | Notes |
---|---|---|---|
session_auth.links.login.request | <object> | Login details | Required properties: [username, password]; |
session_auth.links.login.request. password |
<string> | Password to log in with | |
session_auth.links.login.request.purpose | <string> | Reason for logging in | Optional; |
session_auth.links.login.request. username |
<string> | Username to log in with |
On success, the server returns a response body with the following structure:
{ "session_id": string, "session_key": string }
Property Name | Type | Description | Notes |
---|---|---|---|
session_auth.links.login.response | <object> | Required properties: [session_key, session_id]; | |
session_auth.links.login.response. session_id |
<string> | Value to be used in a session cookie | |
session_auth.links.login.response. session_key |
<string> | Key to be used in a session cookie |
session_auth: logout
POST http://{device}/api/common/1.0/logoutRequest Body
Do not provide a request body.
Response BodyOn success, the server does not provide any body in the responses.