Get system version information

get

/rest/{version}/system/version

Retrieves the current system software version. This includes product name, build version, build date, and other relevant information.

Request

Path Parameters
  • REST API version string.
    Available values: v1.2
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.
Back to Top

Response

200 Response

OK - Requested data is returned in response body

400 Response

The request is malformed in some way or is missing required information and therefore cannot be processed.

401 Response

Unauthorized - Request lacks valid authentication credentials.

404 Response

Resource not found
Back to Top

Examples

Example of Accessing the API with cURL

The following example shows how to get system version information by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

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

Example of Accessing the API with Python

The following example shows how to get system version information by submitting a GET request on the REST resource using Python. This example assumes you have a valid token stored in the token variable. For an example of authenticating with Python, see Authenticate.

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

Example of the Response Headers

The following shows an example of the response headers.

HTTP/1.1 200
Server: nginx/1.14.1
Date: Thu, 02 Apr 2020 15:31:53 GMT
Content-Type: application/xml
Transfer-Encoding: chunked
Connection: keep-alive

Example of the Response Body

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

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
  <data>
    <systemVersionInfo>
      <productName>Acme Packet OS VM</productName>
      <buildVersion>TCZ0.0.111 Alpha 24 (WS Build 141)</buildVersion>
      <oracleLinuxInfo>branches-7/el7-u6 {2019-01-03T07:00:00+0000}</oracleLinuxInfo>
      <buildDate>2019-01-12</buildDate>
      <buildView>/home/acme/cc/RESTLESS_WS_integration</buildView>
      <buildCycle>70</buildCycle>
      <user>WSbuilder</user>
      <host>maverick</host>
    </systemVersionInfo>
  </data>
  <messages/>
  <links/>
</response>
Back to Top