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://
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:
{“最新”:{“版本”:“v10.04”、“公关efix": "/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" } }