Contains code samples to invoke NetBackup REST API using different programming languages.
These scripts are only meant to be used as a reference. Please do not use these in production.
Pre-requisites:
- NetBackup 8.1.1 or higher
- Powershell 5.0 or higher
Use the following commands to run the powershell samples.
.\Get-NB-Images.ps1 -nbmaster <masterServer> -username <username> -password <password>
.\Get-NB-Jobs.ps1 -nbmaster <masterServer> -username <username> -password <password>
Pre-requisites:
- NetBackup 8.1.1 or higher
- python 3.5 or higher
- python modules:
requests, texttable
Use the following commands to run the python samples.
python -W ignore get_nb_images.py -nbmaster <masterServer> -username <username> -password <password>
python -W ignore get_nb_jobs.py -nbmaster <masterServer> -username <username> -password <password>
Pre-requisites:
- NetBackup 8.1.1 or higher
- See script README for perl requirements and usage