Comments (2)
Further update from Tenable Elite Support:
The analysis/download endpoint is only for CSV data download, not json data.
Hence, this is not an appropriate solution. There is nothing missing from SecurityCenter analysis for downloading json data.
However, the comments about the funky lastSeen=n:m still applies according to Tenable Elite support.
If you have any scan that completes in between calls to analysis endpoint, you will skip it and not download it.
from pysecuritycenter.
First, sorry for the delay. Between travel and whatnot, I haven't had the time to get back to you on this one.
As for the Analysis call, /analysis is for JSON, /analysis/download is for the CSV report of the same data. I'd highly recommend using /analysis for programmatic purposes and then work your way through the pages (take a look at how the analysis endpoint is constructed in pySC). pySC isn't really receiving any more improvements however, as all current work is being focused on the pyTenable library that's more encompassing. If I can ask you to file an issue on the pytenable library covering the lastSeen filter oddities, I'll add it to the list of things that need to be done.
As for how the data is downloaded, pySC does make multiple calls behind the scenes and will stitch the data together into a singular list be default. If you want to overload this behavior, pass a page function to the call and it will feed the data to that function for every call thats made. This behavior predates my undertanding on iterators in python, and pyTenable is using an iterator instead to make this much easier to work with.
from pysecuritycenter.
Related Issues (20)
- Trying to update existing assets HOT 2
- Getting AttributError and ImportError while running code HOT 4
- sc5.py line 105 HOT 1
- header value wrong type HOT 4
- need some guidance HOT 2
- Trying to install
- Release Token HOT 1
- downloader.py HOT 2
- An advert for Tenable.io SDK HOT 1
- from securitycenter import SecurityCenter5 fails for py3 HOT 9
- report_downloader.py args issue HOT 1
- Data Cleanup HOT 3
- downloader.py issue HOT 1
- ConnectionError with Python 3 HOT 1
- Release v3.0.3? HOT 1
- sc.upload() not returning filename HOT 3
- ERROR - 'module' object has no attribute 'SecurityCenter5'
- Having an issue pulling data from vulndetails HOT 1
- API documentation changed on Tenable's site HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysecuritycenter.