Forum Discussion
3 Replies
- jnardelloModerator
Just to cover the bases, does your API key work outside of POSTMAN ?
- kiyanLevel 6
I came across below article, it has steps for setting up API with POSTMAN and Grafana,
FlexApplianceAPIGuide (veritas.com)
I hope it is useful for you.
- meuhassanLevel 4
To set up authorization with your Flex appliance from Postman using the metrics API key, you will need to do the following:
- Create a new request in Postman.
- Select the "Authorization" tab.
- Select the "API Key" type of authorization.
- Enter your metrics API key in the "Key" field.
- Select the "Header" option from the "Add to" dropdown list.
- Click on the "Save" button.
Now, when you send the request, Postman will automatically add the metrics API key to the header of the request. This will allow you to access the metrics API on your Flex appliance.
Here is an example of a Postman request that you can use to test the authorization:
GET https://<flex-appliance-ip>/api/v1/metrics Authorization: Bearer <metrics-api-key>
Replace the <flex-appliance-ip> and <metrics-api-key> values with the actual values for your Flex appliance and metrics API key.
If you have successfully set up the authorization, you should see a response from the metrics API. The response will contain a list of metrics for your Flex appliance.
I hope this helps! Let me know if you have any other questions.
Related Content
- 4 years ago
- 10 years ago