Using an API key
Once an API key is created, you can use it while you access RESTful APIs or run commands:
See Creating API keys.
Using an API key while accessing NetBackup RESTful APIs
- Pass the API key in the API request header to access other NetBackup APIs.
Using an API key while you run NetBackup commands
- Do one of the following:
Run the following command:
bpnbat -Login -LoginType APIKEY
You can run NetBackup commands that require authentication for the next 24 hours without requiring to run bpnbat -Login.
Set a new environment variable called NETBACKUP_APIKEY for the API key.
See Setting an API key environment variable to run NetBackup commands.
You can run NetBackup commands that require authentication until the API key is valid and the environment variable is set.
- Run a command such as nbcertcmd -createToken.
For more details on NetBackup commands, refer to the NetBackup Commands Reference Guide.