GithubHelp home page GithubHelp logo

psphpipam's Introduction

Powershell REST Client Module For PHPIPAM

Build status

this powershell module using PHPIPAM rest api to operate PHPIPAM tasks ,powershell version suggest 3.0 or above.

this module works on powershell core 6.0 and above now ,and the test environment is mainly on linux and powershell core

# if you just want to use it , install PSPHPIPAM module

Install-Module -Name PSPHPIPAM

# list command this module provide 

get-command -module PSPHPIPAM

# get help for a command

get-help Get-PhpIpamSubnet -full

# just get example of a command

get-help Get-PhpIpamSubnet -examples

# if you want to extend the module functions, read Docs\* and Tests\* under this project to gain idears.

Alerts

No support and test with PHPIPAM 'encryped' Application security mode.

用于PHPIPAM 的Powershell REST API 客户端

该powershell 模组使用PHPIPAM REST API来操作PHPIPAM的一些任务。建议powershell 3.0 或者更高版本,目前已经支持powershell core 6.0,最新的测试环境已经移到linux 环境,并且主要使用powershell core 6.x 进行测试.

该模块的主要结构和文件说明

  • Docs 目录放置说明还有截图,而且模块的每个内置的函数也尽量包含了example 和说明,你可以使用get-help command 来获取帮助

  • Tests 目录放置pester 测试文件,该测试文件针对vagrant 搭建的phpipam 开发环境进行测试.

  • PSPHPIPAM 目录放置该模块的主要的函数\包括基础模块函数还有其他扩展的函数.如果你要扩充模块,请添加命令到Functions\Public ,参考其他的函数命令,比如Functions\Public|TestIdears

  • Nginx 是PhpIpam 测试开发环境使用的nginx 配置文件及证书,我会使用vagrant 来创建一个PHPipam 的环境,其使用docker 搭建了一个可用的Phpipam环境

- buildenv.* 可以用来创建PHPIPAM 开发测试环境,需要安装vagrant,virtualbox 参考 也可以直接使用docker-compose

Examples

Read the docs:

How to Debug

The functions in this module mainly used powershell advanced function feature (the function which contains [cmdletbinding()], so when you encounter errors ,you can add the -debug switch to see what's goging on there,you can add your write-debug expression to the function to see more information if you want.

Debug like this

New-PhpIpamSession -useCredAuth -PhpIpamApiUrl http://127.0.0.1/api -AppID script2 -userName admin -password password -debug

psphpipam's People

Contributors

yoke88 avatar mrieder avatar galipolix avatar shiso89 avatar danubie avatar evkogan1 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.