Get supported REST API versions
get
/rest/api/supportedversions
Retrieve a list of the supported REST API versions for this software release.
Request
There are no request parameters for this operation.
Back to TopResponse
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
This API must not contain a version number
Examples
Examples of Accessing the API
See Authenticate for how to acquire a token.
The following example shows how to get supported REST API versions using curl.
curl -X GET \
--header "Accept: application/xml" \
--header "Authorization: Bearer $TOKEN" \
"https://${SBCIP}/rest/api/supportedversions"
The following example shows how to get supported REST API versions using Python.
import requests
headers = { "Accept":"application/xml", "Authorization":"Bearer " + token }
url = "https://" + sbcip + "/rest/api/supportedversions"
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>
<supportedVersions>
<latestVersion>v1.2</latestVersion>
<otherVersions>
<version>v1.0</version>
<version>v1.1</version>
</otherVersions>
</supportedVersions>
</data>
<messages/>
<links/>
</response>