Git Product home page Git Product logo

Comments (2)

VMVan avatar VMVan commented on July 17, 2024

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.

SteveMcGrath avatar SteveMcGrath commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.