GithubHelp home page GithubHelp logo

nw-ps-apitoolkit's Introduction

NWPSRestToolKit

Powershell Toolkit for Networker Rest API ###about the Goal of the Networker Powershell Toolkit is to make a Networker Admin´s live on windows easier
teh Toolkit should support Pielining of commands, and combine the value of Powershell with the strength of the RestAPI

###requirements in order to run the commands, you need to unrestrict executionpolicy. also, make sure to unblock the zipfile if you download the modules as zip and not via git ( unblock-file or right click in explorer ) open a powershell as admin and run

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Notice

! all commands ending with an "s" represent a plural and derived from the api. however, in my process of object re-writes i will also switch to singular commands without trailing "s" if there are examples with the plural, they might change to singular ( eg. clients to client ! )

installation

The Modules are loaded via Import-Module NWPSRestToolKit The Module sudirectories are based on the methods and functions , eg GET,PUT,POST..., errors.

use this Automatic downloader to install NWPSRestToolKit:
(COPY TEXT INTO A POWERSHELL)

$Uri="https://gist.githubusercontent.com/bottkars/a555ee59c63b65dbb38f027a547030ba/raw/install-nwpsresttoolkit.ps1"
$DownloadLocation = "$Env:USERPROFILE\Downloads"
$File = Split-Path -Leaf $Uri
$OutFile = Join-Path $DownloadLocation $File
Invoke-WebRequest -Uri $Uri -OutFile $OutFile
Unblock-File -Path $Outfile
Set-Location $DownloadLocation
.\install-NWPSRestToolKit.ps1 -Installpath [replacewithyourdestination]

alternative installation

if not using the Downloader, i Recommend cloning into the modules using and do regular pulls for update rather tan downloading the zip. this also eliminates the need for unblocking the zip archive !!! )

consider https://desktop.github.com/ for windows

import the modules

import-module \path-to-moduledir\NWPSRestToolKit.psd1

test the commnds from the module :-)
##Test try to connect to your Networker Server image

the cmdlet shall Respond with the servername and operating sytem of the server

Examples

View Vbackups of a Client Using ressourceID od the Client

image

View Backups of a Client using Pipeline Support image

Getting Workflows from a Policy image

Starting a Workflow from Pipeline image

nw-ps-apitoolkit's People

Contributors

bottkars avatar

Watchers

James Cloos avatar  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.