Example: Traceroute operations using REST APIs
Example method and URI:
GET "https://192.0.2.5/rest/v1/traceroute?
ip=192.0.2.10&
is_ipv4=true&
timeout=3&
destination_port=33434&
max_ttl=30&
min_ttl=1&
probes=3&
mgmt=false"
Example curl command:
$ curl -k --noproxy 192.0.2.5 GET \ -b /tmp/primary_auth_cookie \ "https://192.0.2.5/rest/v1/traceroute? ip=192.0.2.10& is_ipv4=true& timeout=3& destination_port=33434& max_ttl=30& min_ttl=1& probes=3& mgmt=false"
On successful completion, the switch returns response code 200 OK and a response body containing the output string produced by the traceroute operation.