cancel
Showing results for 
Search instead for 
Did you mean: 

API call from Windows

JimmyB2
Level 4

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!

1 ACCEPTED SOLUTION

Accepted Solutions

JimmyB2
Level 4

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_ser...

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.

 

View solution in original post

1 REPLY 1

JimmyB2
Level 4

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_ser...

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.

 

View solution in original post