I'm new to the API so go easy on me, but I can't seem to get an advisory based on the cve number. I can return the latest 10 with advisories/cvrf/latest/10, or look them up by advisory number, but as I understand from the getting started guide I should also be able to query based on the CVE number? When I try the following I get a 404 error message. I've tried several CVE numbers to no avail. Anyone else have any luck?
https://api.cisco.com/security/advisories/cvrf/cve-id/CVE-2015-6432
Thanks,
Tom
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Thomas,
Thank you for reaching out...
/advisories/cvrf/cve-id/<cve-id>
Should be changed to:
/advisories/cvrf/cve/<cve-id>
(i.e., /cve/<cve-id> instead of /cve-id/<cve-id> )
I just noticed a problem in our documentation and working with the team to fix this.
The following is an example using curl.
curl -X GET -s -k -H "Accept: application/json" -H "Authorization: Bearer XXXXXX" https://api.cisco.com/security/advisories/cvrf/cve/CVE-2015-0292
XXXX is the actual token of course...
Hope this helps.
Regards,
Omar
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Omar,
That did the trick, thank you much!
Regards,
Tom
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FYI, we updated the Getting Started page :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.