tenable / pyTenable

Python Library for interfacing into Tenable's platform APIs
https://pytenable.readthedocs.io
MIT License
343 stars 172 forks source link

Assets->Host Assets functions #614

Open MAngel666 opened 2 years ago

MAngel666 commented 2 years ago

The new "view" Host Assets should be accessible as function with all informations.

dandamudi1414 commented 2 years ago

Host Assets data Function is already available in the pyTenable ( search_host)

assets = tio.v3.explore.assets.search_host();

Wiki : https://pytenable.readthedocs.io/en/stable/api/io/v3/explore/assets.html.

MAngel666 commented 2 years ago

AttributeError: 'TenableSC' object has no attribute 'assets'

MAngel666 commented 2 years ago

It was a question to Tenable.SC not Tenable.IO

MAngel666 commented 1 year ago

Hi does it mean it is solved?

inayathulla commented 1 year ago

@MAngel666, Kindly elaborate, what exactly you are looking into. Is there any specific end point you are able to access in API and not being exposed in pyTenable ?

Moreover, you can find pyTenable exposed methods here and Tenable.SC API exposed methods here

MAngel666 commented 1 year ago

@inayathulla there is a "Host Assets" List in Tenable.SC. Pretty new feature, not more marked as beta since last version of SC (5.23.1). You can reach it with /#hosts I can see there a host/asset the findings and installed software. It would be cool to get these informations via API/pyTenable.

SteveMcGrath commented 1 year ago

The "Assets" API in Tenable.sc is located under the (more correct) "asset_lists" module. As for the "hosts" API, its still marked as beta and may change, hence why it isnt in the lib yet. It isn't considered stable enough for general use: https://docs.tenable.com/tenablesc/api/Hosts.htm

MAngel666 commented 1 year ago

aha so if it would be stable in API you will implement it in pyTenable? Until then, it ist possible to get these informations about a host? (installed software, findings etc) I get some informations with repositories.device_info but not all...

MAngel666 commented 1 year ago

where can I get answers for my questions? Is there a mailing group or forum for pyTenable?

aseemsavio commented 9 months ago

This API is stable now. Will share the plan for adding the item to pyTenable shortly.