Get system information

get

https://{managementIp}/rest/{version}/system/information

Retrieves various system information such as product name, build version, system uptime, serial number and other system-related information.

Request

Path Parameters
Header Parameters
  • The value in the Authorization header must be the string "Bearer {access token}", where {access token} is a valid, unexpired token received in response to a prior /rest/{version}/auth/token request.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

OK - Requested data is returned in response body
Body ()
Root Schema : response
Type: object
Show Source
Nested Schema : data
Type: object
Show Source
Nested Schema : messages
Type: object
Nested Schema : systemInformation
Type: object
Show Source
Example:
{
    "productName":"Acme Packet 3900",
    "buildVersion":"TCZ0.0.111 Alpha 17 (WS Build 93)",
    "upTimeSeconds":"3986",
    "location":"outerLab",
    "name":"dev3900",
    "serialNum":"181613000131"
}

400 Response

The request is malformed in some way or is missing required information and therefore cannot be processed.
Body ()
Root Schema : response
Type: object
Show Source
Nested Schema : data
Type: object
Nested Schema : messages
Type: array
Show Source
Nested Schema : items
Type: object
Show Source

401 Response

Unauthorized - Request lacks valid authentication credentials.
Body ()
Root Schema : response
Type: object
Show Source
Nested Schema : data
Type: object
Nested Schema : messages
Type: array
Show Source
Nested Schema : items
Type: object
Show Source

404 Response

Resource not found
Body ()
Root Schema : response
Type: object
Show Source
Nested Schema : data
Type: object
Nested Schema : messages
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Examples

Examples of Accessing the API

See Authenticate for how to acquire a token.

The following example shows how to get system information using curl.

curl -X GET \
    --header "Accept: application/xml" \
    --header "Authorization: Bearer $TOKEN" \
    "https://${SBCIP}/rest/v1.2/system/information"

The following example shows how to get system information using Python.

import requests
headers = { "Accept":"application/xml", "Authorization":"Bearer " + token }
url  = "https://" + sbcip + "/rest/v1.2/system/information"
resp = requests.get(url, headers=headers)

Example of the Response Body

The following example shows the contents of the response body in XML.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
  <data>
    <systemInformation>
      <hostName>PRIMARY</hostName>
      <productName>Acme Packet OS VM</productName>
      <buildVersion>SCZ8.3.0 GA (Build 41)</buildVersion>
      <upTimeSeconds>145636</upTimeSeconds>
      <contact/>
      <location/>
      <name/>
      <serialNum>1111111111111111</serialNum>
    </systemInformation>
  </data>
  <messages/>
  <links/>
</response>
Back to Top