├── .gitignore ├── .vscode ├── extensions.json ├── launch.json ├── settings.json └── tasks.json ├── LICENSE ├── README.md ├── ScriptAnalyzerSettings.psd1 ├── appveyor.yml ├── debugHarness.ps1 ├── docs ├── 1.x │ ├── Connect-nbAPI.md │ ├── ConvertTo-nbID.md │ ├── Invoke-nbApi.md │ ├── New-nbAggregate.md │ ├── New-nbCircuit.md │ ├── New-nbCircuitTermination.md │ ├── New-nbCircuitType.md │ ├── New-nbCluster.md │ ├── New-nbClusterGroup.md │ ├── New-nbClusterType.md │ ├── New-nbConnectedDevice.md │ ├── New-nbConsoleConnection.md │ ├── New-nbConsolePort.md │ ├── New-nbConsolePortTemplate.md │ ├── New-nbConsoleServerPort.md │ ├── New-nbConsoleServerPortTemplate.md │ ├── New-nbDevice.md │ ├── New-nbDeviceRole.md │ ├── New-nbDeviceType.md │ ├── New-nbDevicebay.md │ ├── New-nbDevicebayTemplate.md │ ├── New-nbExportTemplate.md │ ├── New-nbGraph.md │ ├── New-nbImageAttachment.md │ ├── New-nbInterface.md │ ├── New-nbInterfaceConnection.md │ ├── New-nbInterfaceTemplate.md │ ├── New-nbInventoryItem.md │ ├── New-nbIpAddress.md │ ├── New-nbManufacturer.md │ ├── New-nbObject.md │ ├── New-nbPlatform.md │ ├── New-nbPowerConnection.md │ ├── New-nbPowerOutlet.md │ ├── New-nbPowerOutletTemplate.md │ ├── New-nbPowerPort.md │ ├── New-nbPowerPortTemplate.md │ ├── New-nbPrefix.md │ ├── New-nbProvider.md │ ├── New-nbRack.md │ ├── New-nbRackGroup.md │ ├── New-nbRackReservation.md │ ├── New-nbRackRole.md │ ├── New-nbRecentActivity.md │ ├── New-nbRegion.md │ ├── New-nbReport.md │ ├── New-nbRir.md │ ├── New-nbRole.md │ ├── New-nbService.md │ ├── New-nbSite.md │ ├── New-nbTenant.md │ ├── New-nbTenantGroup.md │ ├── New-nbTopologyMap.md │ ├── New-nbVirtualChassis.md │ ├── New-nbVirtualMachine.md │ ├── New-nbVlan.md │ ├── New-nbVlanGroup.md │ ├── New-nbVrf.md │ ├── Set-nbIpAddress.md │ ├── Set-nbObject.md │ ├── Set-nbPrefix.md │ ├── Set-nbRecentActivity.md │ ├── Set-nbVirtualChassis.md │ ├── Set-nbaggregate.md │ ├── Set-nbcircuit.md │ ├── Set-nbcircuittermination.md │ ├── Set-nbcircuittype.md │ ├── Set-nbcluster.md │ ├── Set-nbclustergroup.md │ ├── Set-nbclustertype.md │ ├── Set-nbconnecteddevice.md │ ├── Set-nbconsoleconnection.md │ ├── Set-nbconsoleport.md │ ├── Set-nbconsoleporttemplate.md │ ├── Set-nbconsoleserverport.md │ ├── Set-nbconsoleserverporttemplate.md │ ├── Set-nbdevice.md │ ├── Set-nbdevicebay.md │ ├── Set-nbdevicebaytemplate.md │ ├── Set-nbdevicerole.md │ ├── Set-nbdevicetype.md │ ├── Set-nbexporttemplate.md │ ├── Set-nbgraph.md │ ├── Set-nbimageattachment.md │ ├── Set-nbinterface.md │ ├── Set-nbinterfaceconnection.md │ ├── Set-nbinterfacetemplate.md │ ├── Set-nbinventoryitem.md │ ├── Set-nbmanufacturer.md │ ├── Set-nbplatform.md │ ├── Set-nbpowerconnection.md │ ├── Set-nbpoweroutlet.md │ ├── Set-nbpoweroutlettemplate.md │ ├── Set-nbpowerport.md │ ├── Set-nbpowerporttemplate.md │ ├── Set-nbprovider.md │ ├── Set-nbrack.md │ ├── Set-nbrackgroup.md │ ├── Set-nbrackreservation.md │ ├── Set-nbrackrole.md │ ├── Set-nbregion.md │ ├── Set-nbreport.md │ ├── Set-nbrir.md │ ├── Set-nbrole.md │ ├── Set-nbservice.md │ ├── Set-nbsite.md │ ├── Set-nbtenant.md │ ├── Set-nbtenantgroup.md │ ├── Set-nbtopologymap.md │ ├── Set-nbvirtualmachine.md │ ├── Set-nbvlan.md │ ├── Set-nbvlangroup.md │ ├── Set-nbvrf.md │ ├── powerbox.md │ └── yml │ │ ├── Connect-nbAPI.yml │ │ ├── ConvertTo-nbID.yml │ │ ├── Invoke-nbApi.yml │ │ ├── New-nbAggregate.yml │ │ ├── New-nbCircuit.yml │ │ ├── New-nbCircuitTermination.yml │ │ ├── New-nbCircuitType.yml │ │ ├── New-nbCluster.yml │ │ ├── New-nbClusterGroup.yml │ │ ├── New-nbClusterType.yml │ │ ├── New-nbConnectedDevice.yml │ │ ├── New-nbConsoleConnection.yml │ │ ├── New-nbConsolePort.yml │ │ ├── New-nbConsolePortTemplate.yml │ │ ├── New-nbConsoleServerPort.yml │ │ ├── New-nbConsoleServerPortTemplate.yml │ │ ├── New-nbDevice.yml │ │ ├── New-nbDeviceRole.yml │ │ ├── New-nbDeviceType.yml │ │ ├── New-nbDevicebay.yml │ │ ├── New-nbDevicebayTemplate.yml │ │ ├── New-nbExportTemplate.yml │ │ ├── New-nbGraph.yml │ │ ├── New-nbImageAttachment.yml │ │ ├── New-nbInterface.yml │ │ ├── New-nbInterfaceConnection.yml │ │ ├── New-nbInterfaceTemplate.yml │ │ ├── New-nbInventoryItem.yml │ │ ├── New-nbIpAddress.yml │ │ ├── New-nbManufacturer.yml │ │ ├── New-nbObject.yml │ │ ├── New-nbPlatform.yml │ │ ├── New-nbPowerConnection.yml │ │ ├── New-nbPowerOutlet.yml │ │ ├── New-nbPowerOutletTemplate.yml │ │ ├── New-nbPowerPort.yml │ │ ├── New-nbPowerPortTemplate.yml │ │ ├── New-nbPrefix.yml │ │ ├── New-nbProvider.yml │ │ ├── New-nbRack.yml │ │ ├── New-nbRackGroup.yml │ │ ├── New-nbRackReservation.yml │ │ ├── New-nbRackRole.yml │ │ ├── New-nbRecentActivity.yml │ │ ├── New-nbRegion.yml │ │ ├── New-nbReport.yml │ │ ├── New-nbRir.yml │ │ ├── New-nbRole.yml │ │ ├── New-nbService.yml │ │ ├── New-nbSite.yml │ │ ├── New-nbTenant.yml │ │ ├── New-nbTenantGroup.yml │ │ ├── New-nbTopologyMap.yml │ │ ├── New-nbVirtualChassis.yml │ │ ├── New-nbVirtualMachine.yml │ │ ├── New-nbVlan.yml │ │ ├── New-nbVlanGroup.yml │ │ ├── New-nbVrf.yml │ │ ├── Set-nbIpAddress.yml │ │ ├── Set-nbObject.yml │ │ ├── Set-nbPrefix.yml │ │ ├── Set-nbRecentActivity.yml │ │ ├── Set-nbVirtualChassis.yml │ │ ├── Set-nbaggregate.yml │ │ ├── Set-nbcircuit.yml │ │ ├── Set-nbcircuittermination.yml │ │ ├── Set-nbcircuittype.yml │ │ ├── Set-nbcluster.yml │ │ ├── Set-nbclustergroup.yml │ │ ├── Set-nbclustertype.yml │ │ ├── Set-nbconnecteddevice.yml │ │ ├── Set-nbconsoleconnection.yml │ │ ├── Set-nbconsoleport.yml │ │ ├── Set-nbconsoleporttemplate.yml │ │ ├── Set-nbconsoleserverport.yml │ │ ├── Set-nbconsoleserverporttemplate.yml │ │ ├── Set-nbdevice.yml │ │ ├── Set-nbdevicebay.yml │ │ ├── Set-nbdevicebaytemplate.yml │ │ ├── Set-nbdevicerole.yml │ │ ├── Set-nbdevicetype.yml │ │ ├── Set-nbexporttemplate.yml │ │ ├── Set-nbgraph.yml │ │ ├── Set-nbimageattachment.yml │ │ ├── Set-nbinterface.yml │ │ ├── Set-nbinterfaceconnection.yml │ │ ├── Set-nbinterfacetemplate.yml │ │ ├── Set-nbinventoryitem.yml │ │ ├── Set-nbipaddresse.yml │ │ ├── Set-nbmanufacturer.yml │ │ ├── Set-nbplatform.yml │ │ ├── Set-nbpowerconnection.yml │ │ ├── Set-nbpoweroutlet.yml │ │ ├── Set-nbpoweroutlettemplate.yml │ │ ├── Set-nbpowerport.yml │ │ ├── Set-nbpowerporttemplate.yml │ │ ├── Set-nbprefixe.yml │ │ ├── Set-nbprovider.yml │ │ ├── Set-nbrack.yml │ │ ├── Set-nbrackgroup.yml │ │ ├── Set-nbrackreservation.yml │ │ ├── Set-nbrackrole.yml │ │ ├── Set-nbrecentactivit.yml │ │ ├── Set-nbregion.yml │ │ ├── Set-nbreport.yml │ │ ├── Set-nbrir.yml │ │ ├── Set-nbrole.yml │ │ ├── Set-nbservice.yml │ │ ├── Set-nbsite.yml │ │ ├── Set-nbtenant.yml │ │ ├── Set-nbtenantgroup.yml │ │ ├── Set-nbtopologymap.yml │ │ ├── Set-nbvirtualchassi.yml │ │ ├── Set-nbvirtualmachine.yml │ │ ├── Set-nbvlan.yml │ │ ├── Set-nbvlangroup.yml │ │ └── Set-nbvrf.yml ├── 2.x │ ├── Connect-nbAPI.md │ ├── ConvertTo-nbID.md │ ├── Get-nbAggregate.md │ ├── Get-nbCircuit.md │ ├── Get-nbCircuitTermination.md │ ├── Get-nbCircuitType.md │ ├── Get-nbCluster.md │ ├── Get-nbClusterGroup.md │ ├── Get-nbClusterType.md │ ├── Get-nbConnectedDevice.md │ ├── Get-nbConsoleConnection.md │ ├── Get-nbConsolePort.md │ ├── Get-nbConsolePortTemplate.md │ ├── Get-nbConsoleServerPort.md │ ├── Get-nbConsoleServerPortTemplate.md │ ├── Get-nbDevice.md │ ├── Get-nbDeviceRole.md │ ├── Get-nbDeviceType.md │ ├── Get-nbDevicebay.md │ ├── Get-nbDevicebayTemplate.md │ ├── Get-nbExportTemplate.md │ ├── Get-nbGraph.md │ ├── Get-nbImageAttachment.md │ ├── Get-nbInterface.md │ ├── Get-nbInterfaceConnection.md │ ├── Get-nbInterfaceTemplate.md │ ├── Get-nbInventoryItem.md │ ├── Get-nbIpAddress.md │ ├── Get-nbManufacturer.md │ ├── Get-nbObject.md │ ├── Get-nbPlatform.md │ ├── Get-nbPowerConnection.md │ ├── Get-nbPowerOutlet.md │ ├── Get-nbPowerOutletTemplate.md │ ├── Get-nbPowerPort.md │ ├── Get-nbPowerPortTemplate.md │ ├── Get-nbPrefix.md │ ├── Get-nbProvider.md │ ├── Get-nbRack.md │ ├── Get-nbRackGroup.md │ ├── Get-nbRackReservation.md │ ├── Get-nbRackRole.md │ ├── Get-nbRecentActivity.md │ ├── Get-nbRegion.md │ ├── Get-nbReport.md │ ├── Get-nbRir.md │ ├── Get-nbRole.md │ ├── Get-nbService.md │ ├── Get-nbSite.md │ ├── Get-nbTenant.md │ ├── Get-nbTenantGroup.md │ ├── Get-nbTopologyMap.md │ ├── Get-nbVMInterface.md │ ├── Get-nbVirtualChassis.md │ ├── Get-nbVirtualMachine.md │ ├── Get-nbVlan.md │ ├── Get-nbVlanGroup.md │ ├── Get-nbVrf.md │ ├── Invoke-nbApi.md │ ├── New-nbAggregate.md │ ├── New-nbCircuit.md │ ├── New-nbCircuitTermination.md │ ├── New-nbCircuitType.md │ ├── New-nbCluster.md │ ├── New-nbClusterGroup.md │ ├── New-nbClusterType.md │ ├── New-nbConnectedDevice.md │ ├── New-nbConsoleConnection.md │ ├── New-nbConsolePort.md │ ├── New-nbConsolePortTemplate.md │ ├── New-nbConsoleServerPort.md │ ├── New-nbConsoleServerPortTemplate.md │ ├── New-nbDevice.md │ ├── New-nbDeviceRole.md │ ├── New-nbDeviceType.md │ ├── New-nbDevicebay.md │ ├── New-nbDevicebayTemplate.md │ ├── New-nbExportTemplate.md │ ├── New-nbGraph.md │ ├── New-nbImageAttachment.md │ ├── New-nbInterface.md │ ├── New-nbInterfaceConnection.md │ ├── New-nbInterfaceTemplate.md │ ├── New-nbInventoryItem.md │ ├── New-nbIpAddress.md │ ├── New-nbManufacturer.md │ ├── New-nbObject.md │ ├── New-nbPlatform.md │ ├── New-nbPowerConnection.md │ ├── New-nbPowerOutlet.md │ ├── New-nbPowerOutletTemplate.md │ ├── New-nbPowerPort.md │ ├── New-nbPowerPortTemplate.md │ ├── New-nbPrefix.md │ ├── New-nbProvider.md │ ├── New-nbRack.md │ ├── New-nbRackGroup.md │ ├── New-nbRackReservation.md │ ├── New-nbRackRole.md │ ├── New-nbRecentActivity.md │ ├── New-nbRegion.md │ ├── New-nbReport.md │ ├── New-nbRir.md │ ├── New-nbRole.md │ ├── New-nbService.md │ ├── New-nbSite.md │ ├── New-nbTenant.md │ ├── New-nbTenantGroup.md │ ├── New-nbTopologyMap.md │ ├── New-nbVMInterface.md │ ├── New-nbVirtualChassis.md │ ├── New-nbVirtualMachine.md │ ├── New-nbVlan.md │ ├── New-nbVlanGroup.md │ ├── New-nbVrf.md │ ├── Set-nbAggregate.md │ ├── Set-nbCircuit.md │ ├── Set-nbCircuitTermination.md │ ├── Set-nbCircuitType.md │ ├── Set-nbCluster.md │ ├── Set-nbClusterGroup.md │ ├── Set-nbClusterType.md │ ├── Set-nbConnectedDevice.md │ ├── Set-nbConsoleConnection.md │ ├── Set-nbConsolePort.md │ ├── Set-nbConsolePortTemplate.md │ ├── Set-nbConsoleServerPort.md │ ├── Set-nbConsoleServerPortTemplate.md │ ├── Set-nbDevice.md │ ├── Set-nbDeviceRole.md │ ├── Set-nbDeviceType.md │ ├── Set-nbDevicebay.md │ ├── Set-nbDevicebayTemplate.md │ ├── Set-nbExportTemplate.md │ ├── Set-nbGraph.md │ ├── Set-nbImageAttachment.md │ ├── Set-nbInterface.md │ ├── Set-nbInterfaceConnection.md │ ├── Set-nbInterfaceTemplate.md │ ├── Set-nbInventoryItem.md │ ├── Set-nbIpAddress.md │ ├── Set-nbManufacturer.md │ ├── Set-nbObject.md │ ├── Set-nbPlatform.md │ ├── Set-nbPowerConnection.md │ ├── Set-nbPowerOutlet.md │ ├── Set-nbPowerOutletTemplate.md │ ├── Set-nbPowerPort.md │ ├── Set-nbPowerPortTemplate.md │ ├── Set-nbPrefix.md │ ├── Set-nbProvider.md │ ├── Set-nbRack.md │ ├── Set-nbRackGroup.md │ ├── Set-nbRackReservation.md │ ├── Set-nbRackRole.md │ ├── Set-nbRecentActivity.md │ ├── Set-nbRegion.md │ ├── Set-nbReport.md │ ├── Set-nbRir.md │ ├── Set-nbRole.md │ ├── Set-nbService.md │ ├── Set-nbSite.md │ ├── Set-nbTenant.md │ ├── Set-nbTenantGroup.md │ ├── Set-nbTopologyMap.md │ ├── Set-nbVMInterface.md │ ├── Set-nbVirtualChassis.md │ ├── Set-nbVirtualMachine.md │ ├── Set-nbVlan.md │ ├── Set-nbVlanGroup.md │ ├── Set-nbVrf.md │ ├── powerbox.md │ └── yml │ │ ├── Connect-nbAPI.yml │ │ ├── ConvertTo-nbID.yml │ │ ├── Get-nbAggregate.yml │ │ ├── Get-nbCircuit.yml │ │ ├── Get-nbCircuitTermination.yml │ │ ├── Get-nbCircuitType.yml │ │ ├── Get-nbCluster.yml │ │ ├── Get-nbClusterGroup.yml │ │ ├── Get-nbClusterType.yml │ │ ├── Get-nbConnectedDevice.yml │ │ ├── Get-nbConsoleConnection.yml │ │ ├── Get-nbConsolePort.yml │ │ ├── Get-nbConsolePortTemplate.yml │ │ ├── Get-nbConsoleServerPort.yml │ │ ├── Get-nbConsoleServerPortTemplate.yml │ │ ├── Get-nbDevice.yml │ │ ├── Get-nbDeviceRole.yml │ │ ├── Get-nbDeviceType.yml │ │ ├── Get-nbDevicebay.yml │ │ ├── Get-nbDevicebayTemplate.yml │ │ ├── Get-nbExportTemplate.yml │ │ ├── Get-nbGraph.yml │ │ ├── Get-nbImageAttachment.yml │ │ ├── Get-nbInterface.yml │ │ ├── Get-nbInterfaceConnection.yml │ │ ├── Get-nbInterfaceTemplate.yml │ │ ├── Get-nbInventoryItem.yml │ │ ├── Get-nbIpAddress.yml │ │ ├── Get-nbManufacturer.yml │ │ ├── Get-nbObject.yml │ │ ├── Get-nbPlatform.yml │ │ ├── Get-nbPowerConnection.yml │ │ ├── Get-nbPowerOutlet.yml │ │ ├── Get-nbPowerOutletTemplate.yml │ │ ├── Get-nbPowerPort.yml │ │ ├── Get-nbPowerPortTemplate.yml │ │ ├── Get-nbPrefix.yml │ │ ├── Get-nbProvider.yml │ │ ├── Get-nbRack.yml │ │ ├── Get-nbRackGroup.yml │ │ ├── Get-nbRackReservation.yml │ │ ├── Get-nbRackRole.yml │ │ ├── Get-nbRecentActivity.yml │ │ ├── Get-nbRegion.yml │ │ ├── Get-nbReport.yml │ │ ├── Get-nbRir.yml │ │ ├── Get-nbRole.yml │ │ ├── Get-nbService.yml │ │ ├── Get-nbSite.yml │ │ ├── Get-nbTenant.yml │ │ ├── Get-nbTenantGroup.yml │ │ ├── Get-nbTopologyMap.yml │ │ ├── Get-nbVMInterface.yml │ │ ├── Get-nbVirtualChassis.yml │ │ ├── Get-nbVirtualMachine.yml │ │ ├── Get-nbVlan.yml │ │ ├── Get-nbVlanGroup.yml │ │ ├── Get-nbVrf.yml │ │ ├── Invoke-nbApi.yml │ │ ├── New-nbAggregate.yml │ │ ├── New-nbCircuit.yml │ │ ├── New-nbCircuitTermination.yml │ │ ├── New-nbCircuitType.yml │ │ ├── New-nbCluster.yml │ │ ├── New-nbClusterGroup.yml │ │ ├── New-nbClusterType.yml │ │ ├── New-nbConnectedDevice.yml │ │ ├── New-nbConsoleConnection.yml │ │ ├── New-nbConsolePort.yml │ │ ├── New-nbConsolePortTemplate.yml │ │ ├── New-nbConsoleServerPort.yml │ │ ├── New-nbConsoleServerPortTemplate.yml │ │ ├── New-nbDevice.yml │ │ ├── New-nbDeviceRole.yml │ │ ├── New-nbDeviceType.yml │ │ ├── New-nbDevicebay.yml │ │ ├── New-nbDevicebayTemplate.yml │ │ ├── New-nbExportTemplate.yml │ │ ├── New-nbGraph.yml │ │ ├── New-nbImageAttachment.yml │ │ ├── New-nbInterface.yml │ │ ├── New-nbInterfaceConnection.yml │ │ ├── New-nbInterfaceTemplate.yml │ │ ├── New-nbInventoryItem.yml │ │ ├── New-nbIpAddress.yml │ │ ├── New-nbManufacturer.yml │ │ ├── New-nbObject.yml │ │ ├── New-nbPlatform.yml │ │ ├── New-nbPowerConnection.yml │ │ ├── New-nbPowerOutlet.yml │ │ ├── New-nbPowerOutletTemplate.yml │ │ ├── New-nbPowerPort.yml │ │ ├── New-nbPowerPortTemplate.yml │ │ ├── New-nbPrefix.yml │ │ ├── New-nbProvider.yml │ │ ├── New-nbRack.yml │ │ ├── New-nbRackGroup.yml │ │ ├── New-nbRackReservation.yml │ │ ├── New-nbRackRole.yml │ │ ├── New-nbRecentActivity.yml │ │ ├── New-nbRegion.yml │ │ ├── New-nbReport.yml │ │ ├── New-nbRir.yml │ │ ├── New-nbRole.yml │ │ ├── New-nbService.yml │ │ ├── New-nbSite.yml │ │ ├── New-nbTenant.yml │ │ ├── New-nbTenantGroup.yml │ │ ├── New-nbTopologyMap.yml │ │ ├── New-nbVMInterface.yml │ │ ├── New-nbVirtualChassis.yml │ │ ├── New-nbVirtualMachine.yml │ │ ├── New-nbVlan.yml │ │ ├── New-nbVlanGroup.yml │ │ ├── New-nbVrf.yml │ │ ├── Set-nbAggregate.yml │ │ ├── Set-nbCircuit.yml │ │ ├── Set-nbCircuitTermination.yml │ │ ├── Set-nbCircuitType.yml │ │ ├── Set-nbCluster.yml │ │ ├── Set-nbClusterGroup.yml │ │ ├── Set-nbClusterType.yml │ │ ├── Set-nbConnectedDevice.yml │ │ ├── Set-nbConsoleConnection.yml │ │ ├── Set-nbConsolePort.yml │ │ ├── Set-nbConsolePortTemplate.yml │ │ ├── Set-nbConsoleServerPort.yml │ │ ├── Set-nbConsoleServerPortTemplate.yml │ │ ├── Set-nbDevice.yml │ │ ├── Set-nbDeviceRole.yml │ │ ├── Set-nbDeviceType.yml │ │ ├── Set-nbDevicebay.yml │ │ ├── Set-nbDevicebayTemplate.yml │ │ ├── Set-nbExportTemplate.yml │ │ ├── Set-nbGraph.yml │ │ ├── Set-nbImageAttachment.yml │ │ ├── Set-nbInterface.yml │ │ ├── Set-nbInterfaceConnection.yml │ │ ├── Set-nbInterfaceTemplate.yml │ │ ├── Set-nbInventoryItem.yml │ │ ├── Set-nbIpAddress.yml │ │ ├── Set-nbManufacturer.yml │ │ ├── Set-nbObject.yml │ │ ├── Set-nbPlatform.yml │ │ ├── Set-nbPowerConnection.yml │ │ ├── Set-nbPowerOutlet.yml │ │ ├── Set-nbPowerOutletTemplate.yml │ │ ├── Set-nbPowerPort.yml │ │ ├── Set-nbPowerPortTemplate.yml │ │ ├── Set-nbPrefix.yml │ │ ├── Set-nbProvider.yml │ │ ├── Set-nbRack.yml │ │ ├── Set-nbRackGroup.yml │ │ ├── Set-nbRackReservation.yml │ │ ├── Set-nbRackRole.yml │ │ ├── Set-nbRecentActivity.yml │ │ ├── Set-nbRegion.yml │ │ ├── Set-nbReport.yml │ │ ├── Set-nbRir.yml │ │ ├── Set-nbRole.yml │ │ ├── Set-nbService.yml │ │ ├── Set-nbSite.yml │ │ ├── Set-nbTenant.yml │ │ ├── Set-nbTenantGroup.yml │ │ ├── Set-nbTopologyMap.yml │ │ ├── Set-nbVMInterface.yml │ │ ├── Set-nbVirtualChassis.yml │ │ ├── Set-nbVirtualMachine.yml │ │ ├── Set-nbVlan.yml │ │ ├── Set-nbVlanGroup.yml │ │ └── Set-nbVrf.yml ├── CONTRIBUTING.md └── RELEASENOTES.md ├── module ├── Private │ ├── CreateCommands.ps1 │ ├── Get.txt │ ├── New.txt │ ├── Remove.txt │ ├── ResourceMap.ps1 │ └── Set.txt ├── Public │ ├── Connect-nbApi.ps1 │ ├── ConvertTo-nbId.ps1 │ ├── Get-nbObject.ps1 │ ├── Get-nbx.ps1 │ ├── Invoke-nbApi.ps1 │ ├── New-nbObject.ps1 │ ├── New-nbx.ps1 │ ├── Remove-nbObject.ps1 │ ├── Remove-nbx.ps1 │ ├── Set-nbObject.ps1 │ └── Set-nbx.ps1 ├── Version ├── powerbox.psd1 └── powerbox.psm1 ├── powerbox.build.ps1 └── test ├── ResourceMap.ps1 ├── nbx.tests.ps1 ├── new-nbobject.tests.ps1 ├── powerbox.Tests.ps1 ├── remove-nbobject.tests.ps1 └── set-nbobject.tests.ps1 /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "ms-vscode.PowerShell" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | //-------- Files configuration -------- 3 | 4 | // When enabled, will trim trailing whitespace when you save a file. 5 | "files.trimTrailingWhitespace": true, 6 | 7 | // When enabled, insert a final new line at the end of the file when saving it. 8 | "files.insertFinalNewline": true, 9 | 10 | "search.exclude": { 11 | "Release": true 12 | }, 13 | 14 | //-------- PowerShell Configuration -------- 15 | 16 | // Use a custom PowerShell Script Analyzer settings file for this workspace. 17 | // Relative paths for this setting are always relative to the workspace root dir. 18 | "powershell.scriptAnalysis.settingsPath": "ScriptAnalyzerSettings.psd1", 19 | "files.exclude": { 20 | "**/.git": false, 21 | "**/.svn": true, 22 | "**/.hg": true, 23 | "**/CVS": true, 24 | "**/.DS_Store": true 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Josh Cook 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # powerbox 2 | 3 | powerbox is a PowerShell module to interact with [NetBox](https://github.com/digitalocean/netbox). 4 | 5 | [![https://ci.appveyor.com/project/BatmanAMA/powerbox](https://ci.appveyor.com/api/projects/status/github/batmanama/powerbox?svg=true)](https://ci.appveyor.com/project/BatmanAMA/powerbox) 6 | 7 | ## Documentation 8 | 9 | Check out our **[documentation](https://github.com/batmanama/powerbox/tree/master/docs/)** for information about how to use this project. 10 | 11 | ## Installation 12 | 13 | ### Gallery 14 | 15 | ```powershell 16 | Install-Module powerbox -Scope CurrentUser 17 | ``` 18 | 19 | ### Source 20 | 21 | (requires invokebuild) 22 | 23 | ```powershell 24 | git clone 'https://github.com/batmanama/powerbox.git' 25 | Set-Location .\powerbox 26 | Invoke-Build -Task Install 27 | ``` 28 | 29 | ## Usage 30 | 31 | ### First example 32 | 33 | ```powershell 34 | Import-Module powerbox 35 | ``` 36 | 37 | Imports powerbox into the current session. 38 | 39 | ## Contributions Welcome! 40 | 41 | We would love to incorporate community contributions into this project. If you would like to 42 | contribute code, documentation, tests, or bug reports, please read our [Contribution Guide](https://github.com/batmanama/powerbox/tree/master/docs/CONTRIBUTING.md) to learn more. 43 | 44 | -------------------------------------------------------------------------------- /debugHarness.ps1: -------------------------------------------------------------------------------- 1 | # Use this file to debug the module. 2 | Remove-Module -Name powerbox -ErrorAction SilentlyContinue 3 | Import-Module -Name $PSScriptRoot\module\powerbox.psd1 4 | #$token = Read-Host -AsSecureString -Prompt "API Token" 5 | $apiurl = "https://netbox.contoso.com/api" 6 | #Connect-nbAPI -Token $token -APIUrl $apiurl 7 | 8 | Get-nbVirtualMachine -APIUrl $apiurl | measure 9 | #Get-nbObject -Resource virtualization/virtual-machines -APIUrl $apiurl 10 | -------------------------------------------------------------------------------- /docs/1.x/yml/Connect-nbAPI.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $Pass = Read-Host -AsSecureString 5 | postCode: >- 6 | >>Y2SSbf7aD7te~)9MYiMR~](32P7T%s^^Fi6AS6RG 7 | 8 | Connect-nbAPI -APIurl Contoso -Token $pass 9 | inputs: [] 10 | links: [] 11 | module: 12 | name: powerbox 13 | name: Connect-nbAPI 14 | notes: General notes 15 | optionalParameters: [] 16 | outputs: [] 17 | requiredParameters: 18 | - name: APIurl 19 | aliases: [] 20 | defaultValue: None 21 | description: APIurl for this API 22 | parameterValueGroup: [] 23 | pipelineInput: False 24 | position: 2 25 | type: Uri 26 | - name: Token 27 | aliases: [] 28 | defaultValue: None 29 | description: Token for this API 30 | parameterValueGroup: [] 31 | pipelineInput: False 32 | position: 1 33 | type: SecureString 34 | remarks: This command saves the relevant information to be able to use the other Netbox commands from this module without having to re-auth 35 | summary: Connects to the Netbox api for the other nb module commands 36 | syntaxes: 37 | - parameters: 38 | - Token 39 | - APIurl 40 | -------------------------------------------------------------------------------- /docs/1.x/yml/ConvertTo-nbID.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: ConvertTo-nbID -source dcim/_choices/device:status -value Active 5 | postCode: '' 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: ConvertTo-nbID 11 | notes: '' 12 | optionalParameters: [] 13 | outputs: 14 | - type: System.String 15 | description: '' 16 | requiredParameters: 17 | - name: Source 18 | aliases: [] 19 | defaultValue: None 20 | description: The resource to lookup the thing. 21 | parameterValueGroup: [] 22 | pipelineInput: False 23 | position: 1 24 | type: String 25 | - name: Value 26 | aliases: [] 27 | defaultValue: None 28 | description: The value to lookup 29 | parameterValueGroup: [] 30 | pipelineInput: False 31 | position: 2 32 | type: String 33 | remarks: Got a device type and need the ID? here's your guy. You could do it yourself, but let's face it - that's work. 34 | summary: Helper function to lookup ids for a given lookup. 35 | syntaxes: 36 | - parameters: 37 | - Source 38 | - Value 39 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbAggregate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbAggregate 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new aggregate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbCircuit.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbCircuit 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new circuit in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbCircuitTermination.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbCircuitTermination 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new circuittermination in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbCircuitType.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbCircuitType 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new circuittype in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbCluster.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbCluster 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new cluster in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbClusterGroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbClusterGroup 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new clustergroup in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbClusterType.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbClusterType 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new clustertype in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbConnectedDevice.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbConnectedDevice 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new connecteddevice in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbConsoleConnection.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbConsoleConnection 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new consoleConnection in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbConsolePort.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbConsolePort 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new consoleport in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbConsolePortTemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbConsolePortTemplate 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new consoleportTemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbConsoleServerPort.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbConsoleServerPort 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new consoleserverport in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbConsoleServerPortTemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbConsoleServerPortTemplate 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new consoleserverportTemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbDevice.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbDevice 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new device in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbDeviceRole.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbDeviceRole 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new devicerole in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbDeviceType.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbDeviceType 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new devicetype in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbDevicebay.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbDevicebay 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new devicebay in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbDevicebayTemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbDevicebayTemplate 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new devicebayTemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbExportTemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbExportTemplate 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new exportTemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbGraph.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbGraph 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new graph in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbImageAttachment.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbImageAttachment 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new imageattachment in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbInterface.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbInterface 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new interface in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbInterfaceConnection.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbInterfaceConnection 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new interfaceConnection in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbInterfaceTemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbInterfaceTemplate 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new interfaceTemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbInventoryItem.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbInventoryItem 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new inventoryitem in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbIpAddress.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbIpAddress 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new ipaddresse in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbManufacturer.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbManufacturer 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new manufacturer in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbPlatform.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbPlatform 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new platform in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbPowerConnection.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbPowerConnection 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new powerConnection in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbPowerOutlet.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbPowerOutlet 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new poweroutlet in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbPowerOutletTemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbPowerOutletTemplate 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new poweroutletTemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbPowerPort.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbPowerPort 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new powerport in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbPowerPortTemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbPowerPortTemplate 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new powerportTemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbPrefix.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbPrefix 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new prefix in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbProvider.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbProvider 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new provider in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbRack.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbRack 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new rack in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbRackGroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbRackGroup 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new rackgroup in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbRackReservation.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbRackReservation 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new rackreservation in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbRackRole.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbRackRole 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new rackrole in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbRecentActivity.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbRecentActivity 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new recentactivity in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbRegion.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbRegion 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new region in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbReport.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbReport 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new report in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbRir.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbRir 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new rir in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbRole.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbRole 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new role in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbService.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbService 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new service in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbSite.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbSite 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new site in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbTenant.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbTenant 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new tenant in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbTenantGroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbTenantGroup 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new tenantgroup in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbTopologyMap.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbTopologyMap 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new topologymap in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbVirtualChassis.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbVirtualChassis 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new virtualchassi in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbVirtualMachine.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbVirtualMachine 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new virtual machine in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbVlan.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbVlan 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new vlan in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbVlanGroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbVlanGroup 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new vlangroup in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/New-nbVrf.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbObject -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: New-nbObject -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: New-nbVrf 15 | notes: This function wraps the "New-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Creates a new vrf in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbIpAddress.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbIpAddress -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbIpAddress -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbIpAddress 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a ipaddresse in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbPrefix.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbPrefix -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbPrefix -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbPrefix 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a prefix in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbRecentActivity.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbRecentActivity -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbRecentActivity -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbRecentActivity 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a recentactivity in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbVirtualChassis.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbVirtualChassis -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbVirtualChassis -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbVirtualChassis 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a virtualchassi in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbaggregate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbaggregate -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbaggregate -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbAggregate 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a aggregate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbcircuit.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbcircuit -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbcircuit -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbCircuit 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a circuit in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbcircuittermination.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbcircuittermination -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbcircuittermination -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbCircuitTermination 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a circuittermination in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbcircuittype.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbcircuittype -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbcircuittype -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbCircuitType 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a circuittype in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbcluster.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbcluster -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbcluster -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbCluster 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a cluster in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbclustergroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbclustergroup -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbclustergroup -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbClusterGroup 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a clustergroup in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbclustertype.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbclustertype -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbclustertype -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbClusterType 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a clustertype in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbconnecteddevice.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbconnecteddevice -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbconnecteddevice -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbConnectedDevice 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a connecteddevice in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbconsoleconnection.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbconsoleconnection -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbconsoleconnection -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbConsoleConnection 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a consoleconnection in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbconsoleport.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbconsoleport -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbconsoleport -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbConsolePort 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a consoleport in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbconsoleporttemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbconsoleporttemplate -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbconsoleporttemplate -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbConsolePortTemplate 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a consoleporttemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbconsoleserverport.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbconsoleserverport -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbconsoleserverport -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbConsoleServerPort 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a consoleserverport in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbconsoleserverporttemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbconsoleserverporttemplate -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbconsoleserverporttemplate -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbConsoleServerPortTemplate 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a consoleserverporttemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbdevice.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbdevice -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbdevice -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbDevice 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a device in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbdevicebay.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbdevicebay -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbdevicebay -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbDevicebay 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a devicebay in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbdevicebaytemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbdevicebaytemplate -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbdevicebaytemplate -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbDevicebayTemplate 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a devicebaytemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbdevicerole.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbdevicerole -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbdevicerole -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbDeviceRole 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a devicerole in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbdevicetype.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbdevicetype -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbdevicetype -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbDeviceType 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a devicetype in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbexporttemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbexporttemplate -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbexporttemplate -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbExportTemplate 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a exporttemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbgraph.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbgraph -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbgraph -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbGraph 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a graph in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbimageattachment.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbimageattachment -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbimageattachment -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbImageAttachment 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a imageattachment in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbinterface.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbinterface -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbinterface -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbInterface 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a interface in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbinterfaceconnection.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbinterfaceconnection -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbinterfaceconnection -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbInterfaceConnection 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a interfaceconnection in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbinterfacetemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbinterfacetemplate -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbinterfacetemplate -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbInterfaceTemplate 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a interfacetemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbinventoryitem.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbinventoryitem -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbinventoryitem -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbInventoryItem 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a inventoryitem in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbipaddresse.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbipaddresse -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbipaddresse -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbipaddresse 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a ipaddresse in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbmanufacturer.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbmanufacturer -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbmanufacturer -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbManufacturer 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a manufacturer in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbplatform.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbplatform -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbplatform -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbPlatform 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a platform in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbpowerconnection.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbpowerconnection -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbpowerconnection -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbPowerConnection 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a powerconnection in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbpoweroutlet.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbpoweroutlet -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbpoweroutlet -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbPowerOutlet 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a poweroutlet in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbpoweroutlettemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbpoweroutlettemplate -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbpoweroutlettemplate -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbPowerOutletTemplate 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a poweroutlettemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbpowerport.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbpowerport -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbpowerport -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbPowerPort 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a powerport in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbpowerporttemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbpowerporttemplate -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbpowerporttemplate -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbPowerPortTemplate 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a powerporttemplate in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbprefixe.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbprefixe -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbprefixe -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbprefixe 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a prefixe in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbprovider.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbprovider -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbprovider -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbProvider 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a provider in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbrack.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbrack -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbrack -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbRack 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a rack in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbrackgroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbrackgroup -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbrackgroup -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbRackGroup 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a rackgroup in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbrackreservation.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbrackreservation -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbrackreservation -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbRackReservation 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a rackreservation in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbrackrole.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbrackrole -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbrackrole -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbRackRole 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a rackrole in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbrecentactivit.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbrecentactivit -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbrecentactivit -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbrecentactivit 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a recentactivit in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbregion.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbregion -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbregion -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbRegion 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a region in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbreport.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbreport -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbreport -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbReport 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a report in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbrir.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbrir -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbrir -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbRir 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a rir in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbrole.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbrole -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbrole -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbRole 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a role in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbservice.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbservice -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbservice -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbService 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a service in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbsite.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbsite -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbsite -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbSite 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a site in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbtenant.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbtenant -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbtenant -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbTenant 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a tenant in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbtenantgroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbtenantgroup -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbtenantgroup -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbTenantGroup 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a tenantgroup in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbtopologymap.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbtopologymap -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbtopologymap -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbTopologyMap 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a topologymap in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbvirtualchassi.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbvirtualchassi -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbvirtualchassi -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbvirtualchassi 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a virtualchassi in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbvirtualmachine.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbvirtualmachine -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbvirtualmachine -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbVirtualMachine 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a virtualmachine in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbvlan.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbvlan -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbvlan -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbVlan 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a vlan in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbvlangroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbvlangroup -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbvlangroup -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbVlanGroup 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a vlangroup in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/1.x/yml/Set-nbvrf.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: (note - example is generic - customize to your object type) 5 | postCode: $lookup = @{ device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } Set-nbvrf -id 22 -lookup $lookup @device 6 | - name: EXAMPLE 2 7 | preCode: '' 8 | code: Set-nbvrf -id 22 -name example2 -serial madeup -device_type dl380-gen8 -site chicago -lookup device_type 9 | postCode: '' 10 | inputs: [] 11 | links: [] 12 | module: 13 | name: powerbox 14 | name: Set-nbVrf 15 | notes: This function wraps the "Set-nbObject" function and just recalls it with the type specified 16 | optionalParameters: [] 17 | outputs: [] 18 | requiredParameters: [] 19 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 20 | summary: Sets properties on a vrf in netbox 21 | syntaxes: 22 | - parameters: [] 23 | -------------------------------------------------------------------------------- /docs/2.x/yml/Connect-nbAPI.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $Pass = Read-Host -AsSecureString 5 | postCode: >- 6 | Connect-nbAPI -APIurl Contoso -Token $pass 7 | 8 | This asks you for your token and then connects to the netbox API 9 | inputs: [] 10 | links: [] 11 | module: 12 | name: powerbox 13 | name: Connect-nbAPI 14 | notes: This command mainly takes the variable state information (APIURL and Token) and stores them in module level variables so that further calls to functions will use them. 15 | optionalParameters: [] 16 | outputs: [] 17 | requiredParameters: 18 | - name: APIurl 19 | aliases: [] 20 | defaultValue: None 21 | description: APIurl for this API 22 | parameterValueGroup: [] 23 | pipelineInput: False 24 | position: 2 25 | type: Uri 26 | - name: Token 27 | aliases: [] 28 | defaultValue: None 29 | description: Token for this API 30 | parameterValueGroup: [] 31 | pipelineInput: False 32 | position: 1 33 | type: SecureString 34 | remarks: This command saves the relevant information to be able to use the other Netbox commands from this module without having to re-auth 35 | summary: Connects to the Netbox api for the other nb module commands 36 | syntaxes: 37 | - parameters: 38 | - Token 39 | - APIurl 40 | -------------------------------------------------------------------------------- /docs/2.x/yml/ConvertTo-nbID.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: ConvertTo-nbID -source dcim/_choices/device:status -value Active 5 | postCode: '' 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: ConvertTo-nbID 11 | notes: '' 12 | optionalParameters: [] 13 | outputs: 14 | - type: System.String 15 | description: '' 16 | requiredParameters: 17 | - name: Source 18 | aliases: [] 19 | defaultValue: None 20 | description: The resource to lookup the thing. 21 | parameterValueGroup: [] 22 | pipelineInput: False 23 | position: 1 24 | type: String 25 | - name: Value 26 | aliases: [] 27 | defaultValue: None 28 | description: The value to lookup 29 | parameterValueGroup: [] 30 | pipelineInput: False 31 | position: 2 32 | type: String 33 | remarks: Got a device type and need the ID? here's your guy. You could do it yourself, but let's face it - that's work. 34 | summary: Helper function to lookup ids for a given lookup. 35 | syntaxes: 36 | - parameters: 37 | - Source 38 | - Value 39 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbAggregate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Aggregate = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbAggregate -lookup $lookup -object $Aggregate 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbAggregate 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Aggregate to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Aggregate in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbCircuit.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Circuit = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbCircuit -lookup $lookup -object $Circuit 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbCircuit 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Circuit to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Circuit in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbCircuitType.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $CircuitType = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbCircuitType -lookup $lookup -object $CircuitType 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbCircuitType 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: CircuitType to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new CircuitType in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbCluster.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Cluster = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbCluster -lookup $lookup -object $Cluster 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbCluster 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Cluster to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Cluster in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbClusterGroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $ClusterGroup = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbClusterGroup -lookup $lookup -object $ClusterGroup 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbClusterGroup 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: ClusterGroup to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new ClusterGroup in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbClusterType.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $ClusterType = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbClusterType -lookup $lookup -object $ClusterType 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbClusterType 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: ClusterType to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new ClusterType in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbConnectedDevice.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $ConnectedDevice = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbConnectedDevice -lookup $lookup -object $ConnectedDevice 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbConnectedDevice 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: ConnectedDevice to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new ConnectedDevice in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbConsolePort.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $ConsolePort = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbConsolePort -lookup $lookup -object $ConsolePort 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbConsolePort 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: ConsolePort to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new ConsolePort in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbDevice.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Device = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbDevice -lookup $lookup -object $Device 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbDevice 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Device to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Device in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbDeviceRole.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $DeviceRole = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbDeviceRole -lookup $lookup -object $DeviceRole 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbDeviceRole 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: DeviceRole to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new DeviceRole in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbDeviceType.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $DeviceType = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbDeviceType -lookup $lookup -object $DeviceType 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbDeviceType 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: DeviceType to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new DeviceType in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbDevicebay.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Devicebay = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbDevicebay -lookup $lookup -object $Devicebay 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbDevicebay 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Devicebay to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Devicebay in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbExportTemplate.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $ExportTemplate = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbExportTemplate -lookup $lookup -object $ExportTemplate 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbExportTemplate 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: ExportTemplate to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new ExportTemplate in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbGraph.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Graph = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbGraph -lookup $lookup -object $Graph 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbGraph 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Graph to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Graph in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbImageAttachment.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $ImageAttachment = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbImageAttachment -lookup $lookup -object $ImageAttachment 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbImageAttachment 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: ImageAttachment to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new ImageAttachment in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbInterface.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Interface = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbInterface -lookup $lookup -object $Interface 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbInterface 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Interface to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Interface in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbInventoryItem.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $InventoryItem = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbInventoryItem -lookup $lookup -object $InventoryItem 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbInventoryItem 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: InventoryItem to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new InventoryItem in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbIpAddress.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $IpAddress = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbIpAddress -lookup $lookup -object $IpAddress 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbIpAddress 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: IpAddress to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new IpAddress in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbManufacturer.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Manufacturer = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbManufacturer -lookup $lookup -object $Manufacturer 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbManufacturer 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Manufacturer to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Manufacturer in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbPlatform.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Platform = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbPlatform -lookup $lookup -object $Platform 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbPlatform 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Platform to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Platform in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbPowerConnection.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $PowerConnection = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbPowerConnection -lookup $lookup -object $PowerConnection 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbPowerConnection 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: PowerConnection to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new PowerConnection in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbPowerOutlet.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $PowerOutlet = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbPowerOutlet -lookup $lookup -object $PowerOutlet 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbPowerOutlet 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: PowerOutlet to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new PowerOutlet in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbPowerPort.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $PowerPort = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbPowerPort -lookup $lookup -object $PowerPort 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbPowerPort 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: PowerPort to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new PowerPort in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbPrefix.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Prefix = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbPrefix -lookup $lookup -object $Prefix 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbPrefix 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Prefix to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Prefix in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbProvider.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Provider = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbProvider -lookup $lookup -object $Provider 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbProvider 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Provider to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Provider in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbRack.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Rack = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbRack -lookup $lookup -object $Rack 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbRack 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Rack to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Rack in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbRackGroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $RackGroup = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbRackGroup -lookup $lookup -object $RackGroup 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbRackGroup 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: RackGroup to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new RackGroup in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbRackReservation.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $RackReservation = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbRackReservation -lookup $lookup -object $RackReservation 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbRackReservation 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: RackReservation to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new RackReservation in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbRackRole.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $RackRole = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbRackRole -lookup $lookup -object $RackRole 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbRackRole 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: RackRole to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new RackRole in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbRecentActivity.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $RecentActivity = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbRecentActivity -lookup $lookup -object $RecentActivity 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbRecentActivity 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: RecentActivity to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new RecentActivity in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbRegion.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Region = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbRegion -lookup $lookup -object $Region 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbRegion 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Region to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Region in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbReport.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Report = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbReport -lookup $lookup -object $Report 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbReport 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Report to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Report in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbRir.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Rir = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbRir -lookup $lookup -object $Rir 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbRir 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Rir to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Rir in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbRole.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Role = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbRole -lookup $lookup -object $Role 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbRole 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Role to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Role in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbService.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Service = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbService -lookup $lookup -object $Service 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbService 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Service to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Service in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbSite.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Site = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbSite -lookup $lookup -object $Site 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbSite 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Site to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Site in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbTenant.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Tenant = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbTenant -lookup $lookup -object $Tenant 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbTenant 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Tenant to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Tenant in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbTenantGroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $TenantGroup = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbTenantGroup -lookup $lookup -object $TenantGroup 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbTenantGroup 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: TenantGroup to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new TenantGroup in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbTopologyMap.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $TopologyMap = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbTopologyMap -lookup $lookup -object $TopologyMap 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbTopologyMap 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: TopologyMap to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new TopologyMap in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbVMInterface.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $VMInterface = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbVMInterface -lookup $lookup -object $VMInterface 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbVMInterface 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: VMInterface to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new VMInterface in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbVirtualChassis.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $VirtualChassis = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbVirtualChassis -lookup $lookup -object $VirtualChassis 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbVirtualChassis 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: VirtualChassis to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new VirtualChassis in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbVirtualMachine.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $VirtualMachine = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbVirtualMachine -lookup $lookup -object $VirtualMachine 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbVirtualMachine 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: VirtualMachine to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new VirtualMachine in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbVlan.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Vlan = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbVlan -lookup $lookup -object $Vlan 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbVlan 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Vlan to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Vlan in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbVlanGroup.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $VlanGroup = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbVlanGroup -lookup $lookup -object $VlanGroup 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbVlanGroup 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: VlanGroup to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new VlanGroup in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/2.x/yml/New-nbVrf.yml: -------------------------------------------------------------------------------- 1 | examples: 2 | - name: EXAMPLE 1 3 | preCode: '' 4 | code: $lookup = @{ 5 | postCode: device_type='dcim/device-types' device_role='dcim/device-roles' site='organization/sites' status='dcim/_choices' } $Vrf = @{ name = 'example' serial = 'aka123457' device_type = 'dl380-g9' device_role = 'oracle' site = 'chicago' status = 'active' } New-nbVrf -lookup $lookup -object $Vrf 6 | inputs: [] 7 | links: [] 8 | module: 9 | name: powerbox 10 | name: New-nbVrf 11 | notes: '' 12 | optionalParameters: 13 | - name: CustomProperties 14 | aliases: [] 15 | defaultValue: None 16 | description: List of custom properties 17 | parameterValueGroup: [] 18 | pipelineInput: False 19 | position: 2 20 | type: String[] 21 | - name: Lookup 22 | aliases: [] 23 | defaultValue: None 24 | description: List of properties to lookup 25 | parameterValueGroup: [] 26 | pipelineInput: False 27 | position: 3 28 | type: Hashtable 29 | outputs: [] 30 | requiredParameters: 31 | - name: Object 32 | aliases: [] 33 | defaultValue: None 34 | description: Vrf to create 35 | parameterValueGroup: [] 36 | pipelineInput: False 37 | position: 1 38 | type: Object 39 | remarks: This should handle mapping a simple hashtable of values and looking up any references. 40 | summary: Creates a new Vrf in netbox 41 | syntaxes: 42 | - parameters: 43 | - Object 44 | - CustomProperties 45 | - Lookup 46 | -------------------------------------------------------------------------------- /docs/RELEASENOTES.md: -------------------------------------------------------------------------------- 1 | # 1.0.0 (2018-04-25) 2 | 3 | * Initial release including 4 | * Set commands for each object type in netbox 5 | * new commands for each object type in netbox 6 | * Feature complete "invoke-nbAPI" command 7 | * Persistent connection structure (similar to PowerCLI) 8 | * Cool name 9 | -------------------------------------------------------------------------------- /module/Private/New.txt: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Creates a new |short| in netbox 4 | .DESCRIPTION 5 | This should handle mapping a simple hashtable of values and looking up any references. 6 | .EXAMPLE 7 | $lookup = @{ 8 | device_type='dcim/device-types' 9 | device_role='dcim/device-roles' 10 | site='organization/sites' 11 | status='dcim/_choices' 12 | } 13 | $|short| = @{ 14 | name = 'example' 15 | serial = 'aka123457' 16 | device_type = 'dl380-g9' 17 | device_role = 'oracle' 18 | site = 'chicago' 19 | status = 'active' 20 | } 21 | New-nb|short| -lookup $lookup -object $|short| 22 | #> 23 | Function New-nb|short| { 24 | Param ( 25 | # |short| to create 26 | [Parameter(Mandatory = $true)] 27 | $Object, 28 | 29 | # List of custom properties 30 | [Parameter()] 31 | [string[]] 32 | $CustomProperties, 33 | 34 | #List of properties to lookup 35 | [parameter()] 36 | [hashtable] 37 | $Lookup 38 | ) 39 | $forward = @{ 40 | Object=$Object 41 | CustomProperties=$CustomProperties 42 | Lookup=$lookup 43 | } 44 | New-nbObject -Resource '|long|' @forward 45 | } 46 | -------------------------------------------------------------------------------- /module/Private/Remove.txt: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Deletes a |short| in Netbox 4 | .DESCRIPTION 5 | Deletes a netbox |short| by ID or via the pipeline. 6 | .EXAMPLE 7 | # Remove the |short| by id 8 | Remove-nb|short| -id 1 9 | .EXAMPLE 10 | #Remove |short| returned from a get-nb|short| 11 | Get-Nb|short| -search mything.contoso.com -Resource 'virtualization/virtual-machines' | 12 | Remove-nb|short| -Resource 'virtualization/virtual-machines' 13 | #> 14 | Function Remove-nb|short| { 15 | Param ( 16 | # ID of the |short| to delete 17 | [Parameter()] 18 | [Int] 19 | $Id 20 | ) 21 | Remove-nbObject -Resource '|long|' -id $id 22 | } 23 | -------------------------------------------------------------------------------- /module/Public/Remove-nbObject.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Deletes an object from netbox 4 | .DESCRIPTION 5 | Deletes a netbox object by ID or via the pipeline. 6 | .EXAMPLE 7 | # Remove the object by id 8 | Remove-nbObject -id 1 -Resource 'virtualization/virtual-machines' 9 | .EXAMPLE 10 | #Remove an object from a get-nbobject 11 | Get-NbObject -search mything.contoso.com -Resource 'virtualization/virtual-machines' | 12 | Remove-nbObject -Resource 'virtualization/virtual-machines' 13 | #> 14 | function Remove-nbObject { 15 | [CmdletBinding()] 16 | param ( 17 | # Which resource to delete 18 | [Parameter(Mandatory = $true, Position = 0, ValueFromPipelineByPropertyName = $true)] 19 | [Int] 20 | $Id, 21 | # Which resource type to delete 22 | [Parameter(Mandatory = $true, Position = 1)] 23 | [String] 24 | [Alias("type")] 25 | $Resource 26 | ) 27 | 28 | 29 | process { 30 | Invoke-nbApi -Resource "$Resource/$id" -HttpVerb Delete 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /module/Version: -------------------------------------------------------------------------------- 1 | 2.3.5 2 | -------------------------------------------------------------------------------- /module/powerbox.psm1: -------------------------------------------------------------------------------- 1 | Import-LocalizedData -BindingVariable Strings -FileName Strings -ErrorAction Ignore 2 | 3 | 4 | # Include all function files. (not including $PSScriptRoot\Private\*.ps1 because those are used to build the module) 5 | Get-ChildItem $PSScriptRoot\Public\*.ps1 | ForEach-Object { 6 | . $PSItem.FullName 7 | } 8 | 9 | # Export only the functions using PowerShell standard verb-noun naming. 10 | # Be sure to list each exported functions in the FunctionsToExport field of the module manifest file. 11 | # This improves performance of command discovery in PowerShell. 12 | Export-ModuleMember -Function *-* 13 | 14 | -------------------------------------------------------------------------------- /test/powerbox.Tests.ps1: -------------------------------------------------------------------------------- 1 | $moduleName = 'powerbox' 2 | $manifestPath = "$PSScriptRoot\..\Release\$moduleName\*\$moduleName.psd1" 3 | 4 | Describe 'module manifest values' { 5 | It 'can retrieve manfiest data' { 6 | $script:manifest = Test-ModuleManifest $manifestPath 7 | } 8 | It 'has the correct name' { 9 | $script:manifest.Name | Should Be $moduleName 10 | } 11 | It 'has the correct guid' { 12 | $script:manifest.Guid | Should Be '1e8270f5-6b38-4cbb-b814-58ec2599da36' 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /test/remove-nbobject.tests.ps1: -------------------------------------------------------------------------------- 1 | Describe 'Remove object passes stuff through' { 2 | BeforeEach { 3 | $token = ConvertTo-SecureString -String "APITOKEN" -AsPlainText -Force 4 | Connect-nbAPI -APIurl 'http://example.com' -Token $token 5 | } 6 | it "should call invoke-nbApi with the proper passthrough" { 7 | $filter = [scriptblock]::Create("`$Resource -eq '$resourceName/0'") 8 | #TODO: What the hell is up with mocking when I parameter validate? 9 | #This errors if I uncomment the filter piece and it's because it actually reaches out to example.com.... 10 | Mock Invoke-nbApi -MockWith {} -ModuleName powerbox -Verifiable #-ParameterFilter $filter 11 | {Remove-nbObject -Id 0 -Resource dcim/devices} | should -not -Throw 12 | Assert-VerifiableMock 13 | } 14 | } 15 | --------------------------------------------------------------------------------