A new endpoint has been added to the Tenable.io API to allow customers to retrieve a count of the total number of active and inactive scans in their container. The endpoint accepts a boolean query parameter called
active to return only the number of active scans.
The new endpoint is described in the following table:
|GET /scans/count||Get scan count||Returns the total number of scans in your container. You can use the |
For example, to return the total number of active scans in your container, you could use the following cURL request:
curl --request GET \ --url 'https://cloud.tenable.com/scans/count?active=true' \ --header 'X-ApiKeys: accessKey=<YOURKEY>;secretKey=<YOURKEY>' \ --header 'accept: application/json'