JimmyB2
4 years agoLevel 4
API call from Windows
Hi all,
could you please show there the way how to run API calls from Windows OS. I guess, the right way will be using Powershell (Although, it could be used Python scripts as well).
So, what is the right syntax for gaining the token and how the simple command looks e.g. for showing running backup jobs in Powershell?
Any help will be much appreciated!
Finally, I have found the solution.
On github there is a sample script (https://github.com/VeritasOS/netbackup-api-code-samples/blob/master/recipes/powershell/admin/get_services.ps1)
Copy the script to PC and run the following command in the appropriate directory
.\get_services.ps1 -MasterServer <IP_or_hostname> -UserName <user_name> -Password <password> -Client <client_name>
I had no domain name.