Getting the REST API versions on the switch
Procedure
To get information about the latest and all available REST API versions on a switch, execute a GET request to the following URI:
"https://<IP-ADDR>/rest"
<IP-ADDR>
is the IP address or hostname of your switch.
Example method and URI:
GET "https://192.0.2.5/rest"
Example curl command:
$ curl -k GET \ -b /tmp/auth_cookie \ "https://192.0.2.5/rest"
Example response body:
{
"latest": {
"version": "v10.04",
"prefix": "/rest/v10.04",
"doc": "/api/v10.04"
},
"v10.04": {
"version": "v10.04",
"prefix": "/rest/v10.04",
"doc": "/api/v10.04"
},
"v1": {
"version": "v1",
"prefix": "/rest/v1",
"doc": "/api/v1"
}
}