Trying to use an API query to obtain metrics from DX O2. Running the command on windows server and encountering issue.
DX O2 SAAS
command syntex
This is an example command that should work on Windows machine.
Make sure you use the token type "user" for your environment. Also run the command from same location where the query1.json (example attached) file exist.
curl -X POST "https://apmgw.dxi-na1.saas.broadcom.com/atc/metric/queryMetric" --header "Authorization: Bearer eyJ0eXi<your-token-heer>JTF3MCQ" --header "Content-Type:application/json" -d "@"query1.json"" -o "metrics.out"