Skip to content

nh4ttruong/websocket-nas-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

TrueNAS Websocker API

Retrieve information from one or more TrueNAS instances, including datasets, disks, and pools, using the provided API key.

Prerequisites

Before using this script, make sure you have the following prerequisites installed:

  • Python 3.6+
  • The aiotruenas_client library (install with pip install aiotruenas-client)

Usage

python websocket_api.py -H <host> -K <api_key> --type <type>

Example

  • Retrieve datasets from a TrueNAS instance
python websocket_api.py -H nas1.hostname.com -K apikey1 --type datasets
  • Retrieve all disks from a TrueNAS instance
python websocket_api.py -H nas1.hostname.com -K apikey1 --type disks
  • Retrieve all pools from a TrueNAS instance
python websocket_api.py -H nas1.hostname.com -K apikey1 --type pools

...

@nh4ttruong

About

API for get TrueNAS informations via websocket

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages