10-31-2024 10:42 AM
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.
11-04-2024 09:46 AM
Does anybody from Cisco can confirm if Cisco collector is compatible with https://apiconsole.cisco.com/ ?
11-05-2024 08:26 AM
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
11-06-2024 01:36 PM
@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 ??
11-15-2024 12:56 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide