CAST HIGHLIGHT - API - How to check whether an app is available on Highlight and scan is completed?

There can be scenarios when there are many failures at the Dev environment. When the pipeline is creating applications on the go, running scan, downloading results and deleting applications, user may get information that one application has failed, and when trying to search for the applications in CAST Highlight, it might not be there.

The pipeline is usually failing while it is trying to download the results (Before delete application step)
So, it maybe necessary to make sure the application is created and the scan is completed before the result download step runs.

 

Solution

To confirm whether an app is available on Highlight and scan is completed,

when a scan result process is complete,check whether these elements are returned when below API is called:

{serverUrl}/WS/explore/companies/lastResults/{applicationId}?companySwitch={companyId}


result.status: "complete"
result.thirdPartyComplete: true

Zendesk

38949

 

Have more questions? Submit a request

Comments

Powered by Zendesk