cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
424
Views
0
Helpful
1
Replies

Cisco PSIRT openvul asa version query issue.

4T2
Level 1
Level 1

Receiving a 406 not acceptable when querying for the following versions.
9.16.4.18
9.12.4.56

{
    "errorCode""VERSION_ID_IS_MANDATORY",
    "errorMessage""Version ID is mandatory"
}
 
It works fine with many other versions.
1 Reply 1

Paul Zimmerman
Cisco Employee
Cisco Employee

I am not an expert here, but one of my colleagues says to widen your search criteria.
It looks like you are narrowly looking for a major.minor.patch.hotfix (9.16.4.18) and you should widen the scope to just major versions like 9... so the call may look like something like this: GET "https://apix.cisco.com/security/advisories/v2/OSType/asa?version=9"

It will return anything that starts with 9.x.x.x. Then you can look at the replies to make sure you are formatting the version in the manner the API is expecting it.

On another product, you can see a 'w' in the version https://developer.cisco.com/docs/psirt/#!obtain-advisory-by-software/3-retrieve-all-advisories-impacting-a-specific-version-of-cisco-network-operating-system

If you search without the 'w', it would fail. It has to be exactly like the API wants it. And you'll know how the API wants it by doing a wider search, look at the reply, and see how the API formatted it.