-
Notifications
You must be signed in to change notification settings - Fork 53
Update NetBackup Documentation #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MHemavathi
wants to merge
135
commits into
create-branch
Choose a base branch
from
master
base: create-branch
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
135 commits
Select commit
Hold shift + click to select a range
04a6034
NetBackup module in go and its example
sgupta03 e57fba2
deleted binary file that was uploaded by mistake
sgupta03 8460615
go samples for netbackup image and jobs list
7889a21
change in README and rename get_nb_mappings
63e4355
NetBackup Config Management and Admin APIs code samples
santhosh-vrts e0013a8
NetBackup 8.2 API Perl scripts
srnavale 89870fb
NetBackup 8.2 API Golang scripts
srnavale 2a44f38
Update README.md (#28)
santhosh-vrts 8e678e6
Merge pull request #34 from VeritasOS/sample/configapi-pyscripts
santhosh-vrts 1ac3e5f
Update README.md
santhosh-vrts 67f1d91
Update README.md
santhosh-vrts a5f6a18
Update README.md
santhosh-vrts a9a934a
Policy API samples update
santhosh-vrts fb3a4cd
Merge pull request #35 from VeritasOS/redacted_mammoth_perl_scripts
santhosh-vrts cf7cf12
Merge pull request #36 from VeritasOS/redacted_mammoth_go_scripts
santhosh-vrts 7502e35
Merge pull request #38 from VeritasOS/policyapi-samples
santhosh-vrts 94f609a
Update README.md
santhosh-vrts 68b9819
Config and Admin API powershell scripts
kcvemula 76a663e
Sample codes to expire images (#25)
YaredE f3a4799
Added perl scripts for all GET APIs for VM server credentials and res…
aayushagrawal11 d693578
Merge pull request #29 from VeritasOS/vmserver_resource_limits_APIs
santhosh-vrts f8435b9
Recipe in Go to set up AIR relationship on MSDP or Cloud Catalyst sto…
akashvrts 944f595
Sample code for NetBackup Storage APIs (#30)
suruchimalewar 8a72764
Python script demonstrating VMware agentless restore APIs
t-r ae62d52
Condition set for adding TLS12 will always be true (#42)
poojaVeritas b60f82b
GET, POST and DELETE operation script for the AccessHost APIs.
adi-bhardwaj 8b73c6c
Python script for Cloud Assets Cleanup
sourabhedake 7441d7d
inital ansible
785f548
Merge pull request #48 from VeritasOS/feature/ism_cloud_asset_cleanup
sourabhedake-zz cd17c13
Update msdp_create.yml
ce0853a
Update vmware_resourcelimits.yml
20ceedc
Curl --data-urlencode does not encode name of the data of the form na…
e4b3562
little correction
1c017bd
removed echo
c850f79
Merge pull request #52 from VeritasOS/curl_issue_urlencode
96e0bbf
Create get_nb_vmservers.sh
gautam-shantanu bf85ec4
How to create, delete and use NetBackup API Key sample snippets
riteshopsranjan 6c0b29d
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 6294614
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 686c198
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 6a04da4
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 1d5f83d
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 6d55f70
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 7d46715
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden e906c44
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden c714ce3
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden f000ef7
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 0472325
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 9ec46c1
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 03ccb96
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 1f59504
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 96d3cca
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 232525d
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden c93d1f2
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 928c51f
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden f47fe65
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 4b3c3a0
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 53d3949
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden f8b6f8f
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden d5845ce
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 2966eba
Update Post-NB-create-cloud-storage-unit.ps1
kenogden ae00060
Revert "Update Post-NB-create-cloud-storage-unit.ps1"
kenogden 74699f3
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 8772d7f
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden 11048c8
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden d80c4b0
Changed SecurityProtocol assignment from "+=" to Bitwise OR
kenogden e09016d
Sample Perl scripts for converting rbac principals behind registered …
hungtran-veritas bf694a4
Merge pull request #31 from VeritasOS/feature/apikeys
riteshopsranjan 8947097
Create new sample Get_NB_ReissueToken
kenogden 06dca47
Create new sample Get_NB_PolicyDetails
kenogden 55e66c4
Rename Get_NB_ReissueToken to Get-NB-ReissueToken
kenogden 73ac9f0
Rename Get_NB_PolicyDetails.ps1 to Get-NB-PolicyDetails.ps1
kenogden 923df00
Update README.md
kenogden b8074f9
Rename Get-NB-ReissueToken to Get-NB-ReissueToken.ps1
kenogden cc68c60
Update README.md
kenogden 0597ba5
Updated usage for -nbpolicy param
kenogden d1f4e43
Create rbac_role_templates.pl
kyleburling-veritas c86d766
Create rbac_user_migration.pl
kyleburling-veritas b44948e
new file added for vmware asset-groups
ntbritton 762e16e
slo_post example
ntbritton b7aff31
Merge pull request #2 from ntbritton/ntbritton-slo-post
ntbritton 259213b
Merge pull request #1 from ntbritton/ntbritton-patch-1
ntbritton bdc3697
Added new sample CRUD on policies
YaredE 5cc8a88
Get VMware assets API script
santhosh-vrts bbf5ddb
Merge pull request #69 from VeritasOS/SampleAPI
YaredE 3e7fcbe
Merge pull request #60 from kenogden/Issue/AppendVsBitwiseOr
rkennedy 51ea86e
Asset service VMware assets API sample script
santhosh-vrts 52410a0
Merge pull request #62 from kenogden/feature/PowerShell-Sample-Get-Re…
jaya-korlepara 51c4ff7
Adding RBAC design change information warning users that some scripts…
jeffcjames 257d9aa
Merge pull request #56 from VeritasOS/feature/convert-principal-behin…
rkennedy fa62a51
Merge pull request #66 from kyleburling-veritas/feature/rbac_roles
rkennedy 79c8af3
Merge pull request #72 from VeritasOS/feature/rbac-design-change-warning
rkennedy 4efd392
Get VMware assets API py script enhancements. Updated script to get V…
e868a2c
Asset Service VMware Assets API script
santhosh-vrts 244a807
Added perl scripts for GET and POST notifications APIs.
aayush13890 b7a7244
Merge pull request #43 from VeritasOS/accessHostsApi_golang_scripts
rkennedy b75ce85
Merge pull request #16 from VeritasOS/feature/netbackup-go-module
rkennedy 2dd9a05
Vmware assets ps scripts
ssuresh91 04d26ca
Moving the scripts located under /recipes/perl/rbac_roles to /recipes…
jeffcjames 42f701b
Update snippets/curl/get_nb_vmservers.sh
gautam-shantanu 2c8139a
Update snippets/curl/get_nb_vmservers.sh
gautam-shantanu 2f855d1
Open source API code of single and group VM backup and restore
ashviniwaghmode a8c7c77
Removed unwanted code
ashviniwaghmode fe61c7c
ed f string format and added documentation
ashviniwaghmode 0afd2a7
curl to get assets
gautam-shantanu 4bcb9cc
Updated script
santhosh-vrts 8a0748d
Used with statement to open the file
ashviniwaghmode c2e48f9
Get VMware assets API script
santhosh-vrts 19ad33f
Sample perl script for VMware assets API
kcvemula 7cace45
Sample perl script for VMware assets API
santhosh-vrts ba583e8
Corrected the description
ashviniwaghmode df3aa18
Take stu_name as input paramer and corrected typos
ashviniwaghmode 648662a
Merge pull request #79 from ashviniwaghmode/feature/backup_restore_ap…
jaya-korlepara f00082a
Merge pull request #54 from gautam-shantanu/patch-1
rkennedy 509508e
Merge pull request #50 from ntbritton/master
rkennedy dc9911b
Modified to use Python3 print statements
jpummill 8a9e9b5
Merge pull request #82 from VeritasOS/fix_python_snippets
rkennedy 2d83610
Clientbackup script
tcsimerson fcc1cd8
Address review comments & add Python version
tcsimerson 5d5ab0c
Merge branch 'master' into feature/PowerShell-Sample-Get_NB_PolicyDet…
rkennedy 6f8283a
Merge pull request #63 from kenogden/feature/PowerShell-Sample-Get_NB…
rkennedy 5de3584
Merge pull request #81 from VeritasOS/clientbackup
rkennedy 2d886de
Mssql workload API workflow for NetBackup 8.3+
pdamodha 834904b
readme edited cosmetically
pdamodha 43fc7b0
Update README.md
pdamodha 2409a2a
Update README.md
pdamodha 113c698
Merge pull request #83 from VeritasOS/feature/mssql-dsp-api-workflow
rkennedy bb2086c
Adding in samples on how to do a restore of a singular copy of a backup
alexoelke 9287b2a
Update README.md
alexoelke 6dc77d2
Update README.md
alexoelke 8900df5
Merge pull request #84 from VeritasOS/feature/mssql_recover_from_copy…
rkennedy 1d822a4
Invoking oracle clone using NetBackup APIs.
rushmeetbahra 0f32c1c
Merge pull request #90 from rushmeetbahra/oracleclonescripts
rkennedy 7a444a1
Adding in script for Oracle RBAC work
alexoelke 29749ab
Merge pull request #91 from VeritasOS/oracleExamples
rkennedy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
inital ansible
inital work posting to github. looking to work with the community and veritas on the ansible deployments. msdp_create and vmware_resourcelimits need some assitance. although it looks right from the swagger docs, it seems to through an api error.
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| ### NetBackup API Code Samples for Ansible | ||
|
|
||
| This directory contains code samples to invoke NetBackup REST APIs using ansible. | ||
|
|
||
| #### 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.1.1 or higher | ||
| - ansible 2.x | ||
|
|
||
|
|
||
| #### Executing the snippets in ansible | ||
|
|
||
| These are tasks meant to be part of a larger playbook. I use them with the following syntax | ||
|
|
||
| tasks: | ||
| -name: name of tasks | ||
| include_task: tasklocation/taskname | ||
|
|
||
|
|
||
| Vars for ansible are defined in a inventory file for use in plays | ||
| vars created during plays are used in future ones like login.yml. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| - name: login | ||
| uri: | ||
| url: "{{baseurl}}login" | ||
| method: POST | ||
| body_format: json | ||
| status_code: 201 | ||
| headers: | ||
| content-type: application/vnd.netbackup+json;version=3.0 | ||
| body: | ||
| userName: "{{username}}" | ||
| password: "{{password}}" | ||
| validate_certs: no | ||
| return_content: yes | ||
| register: login | ||
|
|
||
| - name: set facts | ||
| set_fact: | ||
| login_token: "{{login.json.token}}" | ||
| - name: debug token | ||
| debug: | ||
| msg: "{{login_token}}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| --- | ||
| - name: Create storage server | ||
| uri: | ||
| url: "{{baseurl}}storage/storage-servers" | ||
| method: POST | ||
| body_format: json | ||
| status_code: 201, 409 | ||
| headers: | ||
| authorization: "{{login.json.token}}" | ||
| content-type: application/vnd.netbackup+json;version=3.0 | ||
| body: | ||
| data: | ||
| type: storageServer | ||
| attributes: | ||
| name: ams03nbumed01.svc.west.com | ||
| storageCategory: MSDP | ||
| mediaServerDetails: | ||
| name: ams03nbumed01.svc.west.com | ||
| encryptionEnabled: true | ||
| msdpAttributes: | ||
| storagePath: /mnt/msdp/vol0 | ||
| credentials: | ||
| userName: msdp | ||
| password: msdp | ||
| validate_certs: no | ||
| return_content: yes | ||
| register: stgsvr_create | ||
| - name: debug stgsvr_create | ||
| debug: | ||
| msg: "{{stgsvr_create}}" | ||
|
|
||
| - name: Create MSDP Disk Pool | ||
| uri: | ||
| url: "{{baseurl}}storage/disk-pools" | ||
| method: POST | ||
| body_format: json | ||
| status_code: 201 | ||
| headers: | ||
| authorization: "{{login.json.token}}" | ||
| content-type: application/vnd.netbackup+json;version=3.0 | ||
| body: | ||
| data: | ||
| type: diskPool | ||
| attributes: | ||
| name: ams03nbumed01_dpm | ||
| diskVolumes: | ||
| name: PureDiskVolume | ||
| maximumIoStreams: | ||
| limitIoStreams: true | ||
| streamsPerVolume: 75 | ||
| relationships: | ||
| storageServers: | ||
| data: | ||
| type: storageServer | ||
| id: PureDisk:ams03nbumed01.svc.west.com | ||
| validate_certs: no | ||
| return_content: yes | ||
| register: dp_create | ||
| - name: debug dp_Create | ||
| debug: | ||
| msg: "{{dp_create}}" | ||
|
|
||
| - name: Create MSDP Storage Unit | ||
| uri: | ||
| url: "{{baseurl}}storage/storage-units" | ||
| method: POST | ||
| body_format: json | ||
| status_code: 201 | ||
| headers: | ||
| authorization: "{{login.json.token}}" | ||
| content-type: application/vnd.netbackup+json;version=3.0 | ||
| body: | ||
| data: | ||
| type: storageUnit | ||
| attributes: | ||
| name: ams03nbumed01_dpm_su | ||
| useAnyAvailableMediaServer: ture | ||
| maxFragmentSizeMegabytes: 51200 | ||
| maxConcurrentJobs: 100 | ||
| onDemandOnly: true | ||
| relationships: | ||
| diskPool: | ||
| data: | ||
| type: diskPool | ||
| id: "{{dp_create.json.id}" | ||
| validate_certs: no | ||
| return_content: yes | ||
| register: stu_create | ||
| - name: debug stu_Create | ||
| debug: | ||
| msg: "{{stu_Create}}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
|
|
||
|
|
||
| --- | ||
| - name: vmware resource limits - vCenter | ||
| uri: | ||
| url: "{{baseurl}}config/resource-limits" | ||
| method: POST | ||
| body_format: json | ||
| status_code: 201 | ||
| headers: | ||
| authorization: "{{login.json.token}}" | ||
| content-type: application/vnd.netbackup+json;version=3.0 | ||
| body: | ||
| data: | ||
| type: resource-limits | ||
| attributes: | ||
| resources: | ||
| resourceType: vCenter | ||
| resourceLimit: 50 | ||
| validate_certs: no | ||
| return_content: yes | ||
| register: vmware_resource | ||
| - name: debug vmware_resource | ||
| debug: | ||
| msg: "{{vmware_resource}}" | ||
|
|
||
| - name: vmware resource limits - ESXserver | ||
| uri: | ||
| url: "{{baseurl}}config/resource-limits" | ||
| method: POST | ||
| body_format: json | ||
| status_code: 201 | ||
| headers: | ||
| authorization: "{{login.json.token}}" | ||
| content-type: application/vnd.netbackup+json;version=3.0 | ||
| body: | ||
| data: | ||
| type: resource-limits | ||
| attributes: | ||
| resources: | ||
| resourceType: ESXserver | ||
| resourceLimit: 2 | ||
| validate_certs: no | ||
| return_content: yes | ||
| register: vmware_resource | ||
| - name: debug vmware_resource | ||
| debug: | ||
| msg: "{{vmware_resource}}" | ||
|
|
||
| - name: vmware resource limits - Datastore | ||
| uri: | ||
| url: "{{baseurl}}config/resource-limits" | ||
| method: POST | ||
| body_format: json | ||
| status_code: 201 | ||
| headers: | ||
| authorization: "{{login.json.token}}" | ||
| content-type: application/vnd.netbackup+json;version=3.0 | ||
| body: | ||
| data: | ||
| type: resource-limits | ||
| attributes: | ||
| resources: | ||
| resourceType: Datastore | ||
| resourceLimit: 2 | ||
| validate_certs: no | ||
| return_content: yes | ||
| register: vmware_resource | ||
| - name: debug vmware_resource | ||
| debug: | ||
| msg: "{{vmware_resource}}" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / CodeQL
Password in configuration file