Skip to content

ntbritton/netbackup-api-code-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 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 for different programming languages

The snippets folder contains code samples to invoke NetBackup REST API using different programming languages.

Pre-requisites:

  • NetBackup 8.1.1 or higher
  • See the script's README for the corresponding requirements and usage

Executing the recipes in Python

Pre-requisites:

  • NetBackup 8.1.2 or higher
  • python 3.5 or higher
  • python modules: requests

Use the following commands to run the python samples.

  • python -W ignore create_policy_step_by_step.py -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>]
  • python -W ignore create_policy_in_one_step.py -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>]
  • python -W ignore rbac_filtering_in_policy.py -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>]

Tools

The tools folder contains utilities that have proven useful in the development of projects using NetBackup REST APIs, but do not provide any API usage examples. Again, these tools are not for production use, but they may be of some use in your work.

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

  • Perl 30.6%
  • Python 27.5%
  • PowerShell 26.6%
  • Go 11.5%
  • Shell 2.5%
  • JavaScript 1.3%