Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/KashinYaS/NetBoxPowerShell

PowerShell wrapper to NetBox API
https://github.com/KashinYaS/NetBoxPowerShell

Last synced: about 1 month ago
JSON representation

PowerShell wrapper to NetBox API

Awesome Lists containing this project

README

        

# NetBoxPowerShell
PowerShell wrapper to NetBox API

For Set-NBItem 'id' of that item should be provided as object's property. That property would not be passed to API.
```
$NBPrefixToPatch = New-Object PSObject -Property @{
id = 10
prefix = '10.0.0.0/8'
vrf = 5
}
Set-NBItem -NetBox $NetBoxAddress -Token $NBToken -ItemType Prefix -Item $NBPrefixToPatch
```
will substitute "/10/" to URI and pass to API the following JSON:
```
{
"prefix": "10.0.0.0/8",
"vrf": 5
}
```