cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
619
Views
0
Helpful
4
Replies

API documentation for CSPC

rloyola22
Level 1
Level 1

I would like to perform API calls from a MuleSoft application to our Cisco PSS Collector. However, I have only found limited documentation regarding the built-in XML API Console from the GUI.

Could you please provide the necessary requirements to enable API access on the Cisco collector? Additionally, I would appreciate it if you could share any available documentation that could assist us in making API calls from remote appliances.

4 Replies 4

rloyola22
Level 1
Level 1

Does anybody from Cisco can confirm if Cisco collector is compatible with https://apiconsole.cisco.com/ ? 

manuwidmer
Cisco Employee
Cisco Employee

Hi @rloyola22  please have a look at  https://github.com/lumean/cisco-cspc   I built a small python client to interact with the CSPC collector.
Basically you can use the same XML API as in the built in GUI console - you can look at the source code to see how to call the API from remote.

You need to HTTP POST  to  "https://<CSPC IP>:8001/cspc/xml"    it you can supply your credentials using basic Auth, see

https://github.com/lumean/cisco-cspc/blob/main/src/cspc_api/cspc_api.py#L44
and
https://github.com/lumean/cisco-cspc/blob/main/src/cspc_api/cspc_api.py#L67

 

 

rloyola22
Level 1
Level 1

@manuwidmer, My company want to get contract, alerts, EoS, etc informtion via API. Is this feasible using your script?

Also, Can you confirm is Cisco collector can be managed via  https://apiconsole.cisco.com/ API ??

manuwidmer
Cisco Employee
Cisco Employee

Hi @rloyola22 , no that is not possible with my script.   My script is for interacting with the CSPC VM that runs locally in your enterprise network, so you could automate inventory management (adding/removing devices to the seed file, trigger discovery, etc.).  The CSPC VM doesn't have EoX information, it is just responsible for inventory/telemetry collection.

If you need PSIRT, EOX  etc information please checkout the support-APIs or the  PSIRT openVuln API:

- https://developer.cisco.com/docs/support-apis/user-onboarding-process
- https://developer.cisco.com/docs/psirt/introduction/

If you need automated notifications please check these:
- https://www.cisco.com/c/en/us/support/web/tools/cns/notifications.html
- https://cway.cisco.com/mynotifications