Skip to content

"api" command

Casey Reid edited this page Aug 19, 2022 · 5 revisions

Purpose

In many cases, it is useful to see the data behind an api endpoint either to plan for automation and development or for troubleshooting an issue. Using the 'api' command allows you to send a 'GET' request to Tenable.io and return json data using the pprint.

Command Options

Explore the Tenable.io API - navi api

Enter in a API endpoint and get a pretty print json output. Try some of the below endpoints:

  • /scans
  • /scanners
  • /users

Options

* -raw              Return raw Json
* --limit INTEGER   Change API Request Limit
* --offset INTEGER  Change API Request Offset

#Examples

navi api /scans 

navi api /scanners

navi api /users

navi api /workbenches/assets

navi api /scans -raw
Clone this wiki locally