Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Contains code samples that demonstrate the use of NetBackup REST API

License

Notifications You must be signed in to change notification settings

SC-TechDev/netbackup-api-code-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetBackup API Code Samples

Contains code samples to invoke NetBackup REST API using different programming languages.

Disclaimer

These scripts are only meant to be used as a reference. Please do not use these in production.

Executing the snippets in PowerShell

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>

Executing the snippets in Python

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>

Executing the snippets in Perl

Pre-requisites:

  • NetBackup 8.1.1 or higher
  • See script README for perl requirements and usage

About

Contains code samples that demonstrate the use of NetBackup REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 30.6%
  • Perl 27.6%
  • Python 21.6%
  • Go 13.6%
  • Raku 3.8%
  • JavaScript 1.9%
  • Shell 0.9%