SCA API pull checklists for an endpoint

Hello,
I’m trying to build a webpage where users can type in an endpoint name and it will display all checklists results for that system. I have found some documentation regarding the SCA API, but it isn’t that great. Does anyone know where to find good documentation on using the Security and Compliance API and preferably are there any good examples out there?

Regards,
Raul

Yes you are right that I have not seen many good examples.
I assume you have seen the online API help accessible via the main screen at the top right corner.

I have found that I am able to get working URLs after following and playing with the API notes.

Maybe you can start asking the questions and we can all put some examples here?!

Hi Lee, thank you for your help with this. So I’m now getting what I wanted (thanks for the help regarding the criteria parameter). Here is how I’m pulling the data.

I’m doing 2 separate calls.

The first call I do is to pull information regarding the endpoint:

https://BIGFIXSERVER:8080/api/scm/computers?token=YOURTOKEN&criteria={%20"and":%20[%20["name",%20"begins_with",%20"ENDPOINTNAME"]%20]%20}

This will return the ID for the system. now that I have the ID I pass it to a call that will return the checklists results for the endpoint:

https://BIGFIXSERVER:8080/api/scm/computers/ENDPOINTID/check_results/?token=YOURTOKEN

Now I have all the data (and then some) that I need to display the results for the checklists for an endpoint.

Sounds good, thanks for closing the loop on this issue that we worked on off thread.

1 Like