pyTenable | Python Library for interfacing into Tenable 's platform APIs | REST library
kandi X-RAY | pyTenable Summary
kandi X-RAY | pyTenable Summary
Python Library for interfacing into Tenable's platform APIs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create a new instance
- Construct constructor
- Upload files to Vault
- Internal helper
- Export a scan
- Return a cached value from the API
- Normalize filters
- List of available scan filters
- Get the details of a group
- Export vulns
- List networks
- Retrieve a list of access groups
- Lists access groups
- Create a new alert
- Edit a tag value
- List agents
- Edit an Asset
- Create a new user
- Edit a credential
- Create a scheduling rule
- Create a TimeSeries instance
- Create a scanner
- Create a new asset
- Edit a exclusion
- Export a workbench report
- Create a new domain
pyTenable Key Features
pyTenable Examples and Code Snippets
Community Discussions
Trending Discussions on pyTenable
QUESTION
I'm currently using a python module that helps with the tenable API to export asset data from tenable. The export function returns an "ExportIterator" type object to walk through the results of the export.
Essentially this returns too much data per asset, and I'm having difficulty figuring out how to filter out the data being returned so I can use it.
The module shows the following function as an example to pull asset information:
...ANSWER
Answered 2020-Dec-09 at 17:15Asset should already be a single json object here. Json objects are translated into dictionaries in most Python json parsing libraries, so you could do soemthing like:
QUESTION
Currently working on a script to query some asset information from an online environment asset list. here is the script that outputs a ton of JSON object data. Ignore some of the unused imports.
(Note the method for tenableIO
is part of the pyTenable package, but just know it returns JSON objects, so I don't necessarily need to use the json.load
function.)
ANSWER
Answered 2020-Aug-22 at 04:03If writing the output to a csv is what you want, you can achieve that the python csv module
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyTenable
You can use pyTenable like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page