Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/KashinYaS/NetBoxPowerShell
- Owner: KashinYaS
- Created: 2021-07-27T09:19:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-14T06:08:54.000Z (over 2 years ago)
- Last Synced: 2024-08-03T23:21:22.536Z (4 months ago)
- Language: PowerShell
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-netbox - KashinYaS/NetBoxPowerShell - PowerShell wrapper to NetBox API. (SDKs)
README
# NetBoxPowerShell
PowerShell wrapper to NetBox APIFor 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
}
```