ASM - Swagger API - Getting an error when running Get monitors
book
Article ID: 372874
calendar_today
Updated On:
Products
CA App Synthetic Monitor
Show More
Show Less
Issue/Introduction
API - Monitors Get (Get all monitor details) without using any filters. On clicking, Execute, it just spins and eventually times out.
Resolution
1. UserName filtered query in Swagger UI worked
2. Using the Swagger UI on a computer with a lot of memory when querying all monitors.
3. Use curl and the GET /monitors request:
Impersonate customer (Login as ...)
Read the access token from the browser (use developer tools, usually F12, ...)
Use the token (e.g. <token>) to run the API request: curl -X 'GET' 'https://api.asm.saas.broadcom.com/v3/monitors' -H 'accept: application/json' -H 'Authorization: Bearer <bearer token>'
If you use the APIv3 UI for this call, it can take much more time to display because browser injects the result to the page DOM. It can also consume big amount of memory.
Feedback
thumb_up
Yes
thumb_down
No