ASM - Swagger API - Getting an error when running Get monitors
search cancel

ASM - Swagger API - Getting an error when running Get monitors

book

Article ID: 372874

calendar_today

Updated On:

Products

CA App Synthetic Monitor

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:

  1. Impersonate customer (Login as ...)
  2. Read the access token from the browser (use developer tools, usually F12, ...)
  3. 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.