Skip to content

KashinYaS/NetBoxPowerShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

PowerShell wrapper to NetBox API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published