Skip to content

Latest commit

 

History

History
executable file
·
18 lines (11 loc) · 816 Bytes

File metadata and controls

executable file
·
18 lines (11 loc) · 816 Bytes

NetBackup API Code Samples for go (often referred to as golang)

This directory contains code samples to invoke NetBackup configuration REST APIs using go.

Disclaimer

These scripts are only meant to be used as a reference. If you intend to use them in production, use it at your own risk.

Pre-requisites:

  • NetBackup 8.2 or higher
  • go1.10.2 or higher

Executing the recipes using go

Use the following commands to run the go samples.

  • go run ./get_set_host_config.go -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>] -client <client>
  • go run ./manage_access_hosts.go -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>] [-accessHost <accessHost>]