#REST API equivalent of ONTAP CLI 'qos statistics latency show -node <node name>'
1 messages · Page 1 of 1 (latest)
See the section: Using the private CLI passthrough with the ONTAP REST API
Probably it will look something like this: https://endpoint/api/private/cli/qos/latency/show?node=node_name
Thanks Varun, that works if I use a POST but looks like I'd need to parse the cli_output field and also make sure 'iteration' is 1 to avoid hitting the five session limit.
I wonder if there is a better way?
@clever palm in the past you've suggested something along these lines when dealing with /private/cli...
curl -s -k -u user:pass 'https://cluster_ip/api/private/cli'
--header 'Content-Type: application/json'
--data '{ "input": "set -showseparator "!" -showallfields true -rows 0 diagnostic -confirmations off; statistics show -object workload_detail_volume -raw -counter resource_name|service_time|instance_name|wait_time" }'
Is there a modified version of the above to suite my needs?