Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any 2.1 API(i.e json support one) to get device vulnerability details ? #311

Closed
ni3galave opened this issue Jan 2, 2018 · 3 comments

Comments

@ni3galave
Copy link

No description provided.

@gschneider-r7
Copy link
Contributor

You can use the Asset object for this: http://www.rubydoc.info/gems/nexpose/Nexpose/Asset#vulnerabilities-instance_method

The API endpoint is /api/2.1/assets/{id} if you're trying to do this outside the gem.

Example:

asset_id = 123  # get this ID from site assets listing or something
asset = Nexpose::Asset.load(nsc, asset_id)
vulns = asset.vulnerabilities

There might be an issue with either the vulnerabilities or vulnerability_instances method, but I can't remember off the top of my head. See #200 if the results look wrong as that is likely the problem.

@gschneider-r7
Copy link
Contributor

As of today's product update, version 6.5.0 of Nexpose and InsightVM, you can now use the API V3 endpoint /api/3/assets/{id}/vulnerabilities. Full API V3 documentation is available within the security console's help menu.

@ni3galave
Copy link
Author

Thanks for the update. V3 API 👍 looks great as per earlier version( V2 ). Showing too many information at one place like for asset detail API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants