Hi I am trying to use CURL to get interface stats for a leaf port but not sure of the process with the APIC-Cookie.
curl -X GET -k https://APIC/api/node/mo/topology/pod-1/node-103/sys/phys-[eth1/1]/CDeqptIngrDropPkts5min.json --globoff
{"totalCount":"1","imdata":[{"error":{"attributes":{"code":"403","text":"Need a valid webtoken cookie (named APIC-Cookie) or a signed request with signature in the cookie APIC-Request-Signature for all REST API requests"}}}]}
Would some please tell me how I can access these stats.
The other issue I am trying to resolve is I want to run this API query from Logstash so that it can fetch the data for the interface stats. Anyone was able to do this successfully with he http_input plugin.
Thanks