Skip to content

IGOR10S/gz-endpoint-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

GravityZone Endpoints Inventory Exporter

This Python script allows you to query the Bitdefender GravityZone platform to get the complete inventory of endpoints present in the network.

Requirements

  • Python 3.7+
  • Python modules:
    • requests
    • base64 (standard library)
    • uuid (standard library)
    • csv (standard library)
  • Valid API Key for Bitdefender GravityZone
  • API Access: https://cloudgz.gravityzone.bitdefender.com/api/v1.0/jsonrpc/network

Dependency Installation:

pip install requests

Features

  • Full endpoint recovery from GravityZone via JSON-RPC API
  • Automatic pagination management
  • Endpoint classification:
    • Managed
    • Unmanaged
    • Unknown
  • Export data to CSV format
  • API Error Handling
  • Console-readable output with summary statistics
  • Configurable timeout support

Description

Using the getNetworkInventoryItems API method, the script:

  • Make paginated requests to retrieve all available endpoints
  • Aggregate results until completion
  • Analyze each endpoint to determine its management status (isManaged)
  • Extract key information:
    • Endpoint name
    • IP address
    • Operating System
    • Status (Managed / Unmanaged / None)
  • The data is finally exported to a CSV file (endpoints.csv), ready for analysis or integration into other systems

Note

Authentication is handled via Basic Auth, using a Base64-encoded Key API.

Example

Enter your own API Key:

API_KEY = "YOUR_API_KEY"

Run the script

python gz-endpoint-exporter.py

Console output

Endpoints retrieval from GravityZone...

====================[*] Total entities found: 250

====================[+] Managed endpoints: 180

====================[-] Unmanaged endpoints: 60

====================[?] Unknown Endpoints: 10

Export completed: endpoints.csv

Generated report (endpoints.csv)

Endpoint Name IP OS Managed Status
PC-01 192.168.1.10 Windows 10 Managed
PC-02 10.50.0.11 Ubuntu 22.04 Unmanaged
Computers and Groups None None Unknown
... ... ... ...

About

This Python script allows you to query the Bitdefender GravityZone platform via internal API to get a CSV export of the complete inventory of endpoints present in your network

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages