@@ -6,15 +6,6 @@ Contains code samples to invoke NetBackup REST API using different programming l
66These scripts are only meant to be used as a reference. Please do not use these in production.
77
88#### Executing the snippets for different programming languages
9- #### Executing the snippets in PowerShell
10- Pre-requisites:
11- - NetBackup 8.1.1 or higher
12- - Powershell 5.0 or higher
13-
14- Use the following commands to run the powershell samples.
15- - ` .\Get-NB-Images.ps1 -nbmaster <masterServer> -username <username> -password <password> `
16- - ` .\Get-NB-Jobs.ps1 -nbmaster <masterServer> -username <username> -password <password> `
17- - ` .\New-Policy-StepByStep.ps1 -nbmaster <masterServer> -username <username> -password <password> `
189
1910The ` snippets ` folder contains code samples to invoke NetBackup REST API using different programming languages.
2011
@@ -23,49 +14,17 @@ Pre-requisites:
2314- NetBackup 8.1.1 or higher
2415- See the script's README for the corresponding requirements and usage
2516
26- #### Executing the recipes in Perl
2717
28- Pre-requisites:
29- - NetBackup 8.1.2 or higher
30- - Perl 5.20.2 or higher
18+ #### Executing the recipes for different programming languages
3119
32- Use the following commands to run the perl samples.
33- - ` perl create_policy_step_by_step.pl -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>] `
34- - ` perl create_policy_in_one_step.pl -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>] `
35- - ` perl rbac_filtering_in_policy.pl -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>] `
36- - ` perl api_requests_images.pl -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>] `
37- - ` perl api_requests_image_contents.pl -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>] `
38-
39- #### Executing the recipes in Python
20+ The ` recipes ` folder contains code samples to invoke NetBackup REST API using different programming languages.
4021
4122Pre-requisites:
42- - NetBackup 8.1.2 or higher
43- - python 3.5 or higher
44- - python modules: ` requests `
45-
46- Use the following commands to run the python samples.
47- - ` python -W ignore create_policy_step_by_step.py -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>] `
48- - ` python -W ignore create_policy_in_one_step.py -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>] `
49- - ` python -W ignore rbac_filtering_in_policy.py -nbmaster <masterServer> -username <username> -password <password> [-domainName <domainName>] [-domainType <domainType>] `
50-
5123
52- #### Tools
53- The ` tools ` folder contains utilities that have proven useful in the development of projects using
54- NetBackup REST APIs, but do not provide any API usage examples. Again, these tools are not for
55- production use, but they may be of some use in your work.
56-
57- Use the following commands to run the curl samples.
58- - ` ./get_nb_jobs.sh -master <master_server> -username <username> -password <password> `
59- - ` ./get_nb_images.sh -master <master_server> -username <username> -password <password> `
60-
61- #### Executing the recipes using go (often referred to as golang)
62- Pre-requisites:
6324- NetBackup 8.1.2 or higher
64- - go1.10.2 or higher
25+ - See the script's README for the corresponding requirements and usage
26+
6527
66- Use the following commands to run the go samples.
67- - ` go run ./create_policy_step_by_step.go -nbmaster <master_server> -username <username> -password <password> `
68- - ` go run ./create_policy_in_one_step.go -nbmaster <master_server> -username <username> -password <password> `
6928
7029#### Tools
7130The ` tools ` folder contains utilities that have proven useful in the development of projects using
0 commit comments