Giter Site home page Giter Site logo

00mjk / netbackup-api-code-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from veritasos/netbackup-api-code-samples

0.0 0.0 0.0 2.64 MB

Contains code samples that demonstrate the use of NetBackup REST API

License: MIT License

PowerShell 25.63% Python 28.24% Perl 30.82% Shell 2.49% JavaScript 1.26% Go 11.55%

netbackup-api-code-samples's Introduction

NetBackup API Code Samples

Contains code samples of using NetBackup REST APIs in different scripting/programming languages.

Disclaimer

These samples are only meant to be used as a reference. Please do not use these in production.

Executing the 'snippets'

The snippets folder contains code samples to invoke NetBackup APIs using different scripting/programming languages. These are usually simple examples that demonstrate specific API.

Pre-requisites:

  • NetBackup 8.1.1 or higher
  • See the script's README for the corresponding requirements and usage
Executing the 'recipes'

The recipes folder contains code samples to invoke NetBackup APIs using different scripting/programming languages. These are usually examples of usage of multiple APIs covering specific use-cases.

Pre-requisites:

  • NetBackup 8.1.2 or higher
  • See the script's README for the corresponding requirements and usage
Tools

The tools folder contains utilities that have proven useful in the development of projects using NetBackup APIs, but do not provide any API usage examples. Again, these tools are not for production use, but they may be of some use in your work.

NetBackup 8.3 RBAC Design Shift

NetBackup 8.3 introduced a major change in its RBAC configuration and enforcement design.

RBAC was introduced to NetBackup in the 8.1.2 release, offering access control for a limited number of security settings and workloads. That access control configuration was based on a dynamic object-level enforcement model using “Access Rules”.

With the NetBackup 8.3 release, RBAC has moved away from the dynamic access rule design.
The new RBAC allows more granular permissions, improved flexibility and greater control. The RBAC design is now based on Access Control Lists (ACLs) and closely follows the ANSI INCITS 359-2004. While the earlier design of RBAC enforcement was dynamic in nature, the new RBAC is static in its configuration.

The system-defined roles shipped with NetBackup also changed from 8.1.2 to the 8.3 release. In 8.1.2, there were three system-defined roles available for RBAC configuration. In the 8.3 release, this was simplified to offer a single “Administrator” role which has all privileges for RBAC.

Due to the significant design shift, automatic upgrade conversion of 8.1.2 RBAC roles to the new 8.3 roles is not feasible. However, tools are available to migrate the Backup administrator role and create a new Security administrator role for the users that had the old RBAC Security administrator role. Other roles must be reconfigured manually. There is also a script in this repository available to generate templated NetBackup roles. See /recipes/perl/access-control/rbac_role_templates.pl

Any API keys in use prior to upgrade will still be valid, however, the underlying access granted those API keys must be reconfigured using the new RBAC configuration, after which any active user sessions must be removed. A utility script exists in this repository to help convert active API keys after upgrade to NetBackup 8.3.
See /recipes/perl/access-control/access_control_api_requests.pl

Most of the API examples in this repository assume a valid JWT (Json Web Token) or API Key issued by NetBackup and do not incorporate role configuration as part of the script. However, there may be some examples which do configure RBAC as part of the script and have not yet been updated to use the RBAC design.

netbackup-api-code-samples's People

Contributors

adi-bhardwaj avatar akumar91 avatar alexoelke avatar ashutosh1211 avatar ashviniwaghmode avatar awesomeamyg avatar gautam-shantanu avatar hungtran-veritas avatar jaya-korlepara avatar jeffcjames avatar joshfenlason avatar jpummill avatar kcvemula avatar kenogden avatar krishnakant-iitr avatar kyleburling-veritas avatar malhotrag avatar ntbritton avatar pdamodha avatar rahulrsharma999 avatar riteshopsranjan avatar rkennedy avatar santhosh-vrts avatar sgupta03 avatar shreyas-agnihotri avatar sourabhedake avatar srnavale avatar t-r avatar tcsimerson avatar yarede avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.