diff --git a/.vscode/settings.json b/.vscode/settings.json
index cc82cf9..3856375 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -4,6 +4,18 @@
"files.trimTrailingWhitespace": true,
"powershell.scriptAnalysis.settingsPath": ".vscode/PSScriptAnalyzerSettings.psd1",
"powershell.codeFormatting.newLineAfterCloseBrace": false,
+ "powershell.codeFormatting.useCorrectCasing": true,
+ "powershell.codeFormatting.preset": "OTBS",
+ "powershell.codeFormatting.addWhitespaceAroundPipe": true,
+ "powershell.codeFormatting.autoCorrectAliases": true,
+ "powershell.codeFormatting.newLineAfterCloseBrace": true,
+ "powershell.codeFormatting.newLineAfterOpenBrace": true,
+ "powershell.codeFormatting.openBraceOnSameLine": true,
+ "powershell.codeFormatting.whitespaceAfterSeparator": true,
+ "powershell.codeFormatting.whitespaceAroundOperator": true,
+ "powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
+ "powershell.codeFormatting.whitespaceBeforeOpenParen": true,
+ "powershell.codeFormatting.trimWhitespaceAroundPipe": true,
"[markdown]": {
"files.trimTrailingWhitespace": false,
}
diff --git a/Functions/DCIM/Cable Terminations/Get-NetboxDCIMCableTermination.ps1 b/Functions/DCIM/Cable Terminations/Get-NetboxDCIMCableTermination.ps1
new file mode 100644
index 0000000..0052a47
--- /dev/null
+++ b/Functions/DCIM/Cable Terminations/Get-NetboxDCIMCableTermination.ps1
@@ -0,0 +1,35 @@
+function Get-NetboxDCIMCableTermination {
+ [CmdletBinding()]
+ #region Parameters
+ param
+ (
+ [uint16]$Limit,
+
+ [uint16]$Offset,
+
+ [Parameter(ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [uint16]$Cable,
+
+ [string]$Cable_End,
+
+ [string]$Termination_Type,
+
+ [uint16]$Termination_ID,
+
+ [switch]$Raw
+ )
+
+ #endregion Parameters
+
+ process {
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'cable-terminations'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters -SkipParameterByName 'Raw'
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
+
+ InvokeNetboxRequest -URI $URI -Raw:$Raw
+ }
+}
\ No newline at end of file
diff --git a/Functions/DCIM/Cables/Get-NetboxDCIMCable.ps1 b/Functions/DCIM/Cables/Get-NetboxDCIMCable.ps1
new file mode 100644
index 0000000..b62fc87
--- /dev/null
+++ b/Functions/DCIM/Cables/Get-NetboxDCIMCable.ps1
@@ -0,0 +1,55 @@
+function Get-NetboxDCIMCable {
+ [CmdletBinding()]
+ #region Parameters
+ param
+ (
+ [uint16]$Limit,
+
+ [uint16]$Offset,
+
+ [Parameter(ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [string]$Label,
+
+ [string]$Termination_A_Type,
+
+ [uint16]$Termination_A_ID,
+
+ [string]$Termination_B_Type,
+
+ [UInt16]$Termination_B_ID,
+
+ [string]$Type,
+
+ [string]$Status,
+
+ [string]$Color,
+
+ [UInt16]$Device_ID,
+
+ [string]$Device,
+
+ [uint16]$Rack_Id,
+
+ [string]$Rack,
+
+ [uint16]$Location_ID,
+
+ [string]$Location,
+
+ [switch]$Raw
+ )
+
+ #endregion Parameters
+
+ process {
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'cables'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters -SkipParameterByName 'Raw'
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
+
+ InvokeNetboxRequest -URI $URI -Raw:$Raw
+ }
+}
\ No newline at end of file
diff --git a/Functions/DCIM/FrontPorts/Add-NetboxDCIMFrontPort.ps1 b/Functions/DCIM/FrontPorts/Add-NetboxDCIMFrontPort.ps1
new file mode 100644
index 0000000..27515e8
--- /dev/null
+++ b/Functions/DCIM/FrontPorts/Add-NetboxDCIMFrontPort.ps1
@@ -0,0 +1,42 @@
+function Add-NetboxDCIMFrontPort {
+ [CmdletBinding()]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [Parameter(Mandatory = $true)]
+ [uint16]$Device,
+
+ [uint16]$Module,
+
+ [Parameter(Mandatory = $true)]
+ [string]$Name,
+
+ [string]$Label,
+
+ [Parameter(Mandatory = $true)]
+ [string]$Type,
+
+ [ValidatePattern('^[0-9a-f]{6}$')]
+ [string]$Color,
+
+ [Parameter(Mandatory = $true)]
+ [uint16]$Rear_Port,
+
+ [uint16]$Rear_Port_Position,
+
+ [string]$Description,
+
+ [bool]$Mark_Connected,
+
+ [uint16[]]$Tags
+
+ )
+
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'front-ports'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments
+
+ InvokeNetboxRequest -URI $URI -Body $URIComponents.Parameters -Method POST
+}
\ No newline at end of file
diff --git a/Functions/DCIM/FrontPorts/Get-NetboxDCIMFrontPort.ps1 b/Functions/DCIM/FrontPorts/Get-NetboxDCIMFrontPort.ps1
new file mode 100644
index 0000000..7066d70
--- /dev/null
+++ b/Functions/DCIM/FrontPorts/Get-NetboxDCIMFrontPort.ps1
@@ -0,0 +1,34 @@
+function Get-NetboxDCIMFrontPort {
+ [CmdletBinding()]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [uint16]$Limit,
+
+ [uint16]$Offset,
+
+ [Parameter(ValueFromPipelineByPropertyName = $true)]
+ [uint16]$Id,
+
+ [string]$Name,
+
+ [string]$Device,
+
+ [uint16]$Device_Id,
+
+ [string]$Type,
+
+ [switch]$Raw
+ )
+
+ process {
+
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'front-ports'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
+
+ InvokeNetboxRequest -URI $URI -Raw:$Raw
+ }
+}
\ No newline at end of file
diff --git a/Functions/DCIM/FrontPorts/Remove-NetboxDCIMFrontPort.ps1 b/Functions/DCIM/FrontPorts/Remove-NetboxDCIMFrontPort.ps1
new file mode 100644
index 0000000..53a68f7
--- /dev/null
+++ b/Functions/DCIM/FrontPorts/Remove-NetboxDCIMFrontPort.ps1
@@ -0,0 +1,35 @@
+function Remove-NetboxDCIMFrontPort {
+
+ [CmdletBinding(ConfirmImpact = 'High',
+ SupportsShouldProcess = $true)]
+ param
+ (
+ [Parameter(Mandatory = $true,
+ ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [switch]$Force
+ )
+
+ begin {
+
+ }
+
+ process {
+ foreach ($FrontPortID in $Id) {
+ $CurrentPort = Get-NetboxDCIMFrontPort -Id $FrontPortID -ErrorAction Stop
+
+ if ($Force -or $pscmdlet.ShouldProcess("Name: $($CurrentPort.Name) | ID: $($CurrentPort.Id)", "Remove")) {
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'front-ports', $CurrentPort.Id))
+
+ $URI = BuildNewURI -Segments $Segments
+
+ InvokeNetboxRequest -URI $URI -Method DELETE
+ }
+ }
+ }
+
+ end {
+
+ }
+}
\ No newline at end of file
diff --git a/Functions/DCIM/FrontPorts/Set-NetboxDCIMFrontPort.ps1 b/Functions/DCIM/FrontPorts/Set-NetboxDCIMFrontPort.ps1
new file mode 100644
index 0000000..c9812f8
--- /dev/null
+++ b/Functions/DCIM/FrontPorts/Set-NetboxDCIMFrontPort.ps1
@@ -0,0 +1,60 @@
+function Set-NetboxDCIMFrontPort {
+ [CmdletBinding(ConfirmImpact = 'Medium',
+ SupportsShouldProcess = $true)]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [Parameter(Mandatory = $true,
+ ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [uint16]$Device,
+
+ [uint16]$Module,
+
+ [string]$Name,
+
+ [string]$Label,
+
+ [string]$Type,
+
+ [ValidatePattern('^[0-9a-f]{6}$')]
+ [string]$Color,
+
+ [uint16]$Rear_Port,
+
+ [uint16]$Rear_Port_Position,
+
+ [string]$Description,
+
+ [bool]$Mark_Connected,
+
+ [uint16[]]$Tags,
+
+ [switch]$Force
+ )
+
+ begin {
+
+ }
+
+ process {
+ foreach ($FrontPortID in $Id) {
+ $CurrentPort = Get-NetboxDCIMFrontPort -Id $FrontPortID -ErrorAction Stop
+
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'front-ports', $CurrentPort.Id))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters -SkipParameterByName 'Id'
+
+ $URI = BuildNewURI -Segments $Segments
+
+ if ($Force -or $pscmdlet.ShouldProcess("Front Port ID $($CurrentPort.Id)", "Set")) {
+ InvokeNetboxRequest -URI $URI -Body $URIComponents.Parameters -Method PATCH
+ }
+ }
+ }
+
+ end {
+
+ }
+}
\ No newline at end of file
diff --git a/Functions/DCIM/Interfaces/Get-NetboxDCIMInterface.ps1 b/Functions/DCIM/Interfaces/Get-NetboxDCIMInterface.ps1
index 730e776..de7de00 100644
--- a/Functions/DCIM/Interfaces/Get-NetboxDCIMInterface.ps1
+++ b/Functions/DCIM/Interfaces/Get-NetboxDCIMInterface.ps1
@@ -1,5 +1,4 @@
-
-function Get-NetboxDCIMInterface {
+function Get-NetboxDCIMInterface {
[CmdletBinding()]
[OutputType([pscustomobject])]
param
diff --git a/Functions/DCIM/Interfaces/Remove-NetboxDCIMInterface.ps1 b/Functions/DCIM/Interfaces/Remove-NetboxDCIMInterface.ps1
index 8824b4c..1eff61d 100644
--- a/Functions/DCIM/Interfaces/Remove-NetboxDCIMInterface.ps1
+++ b/Functions/DCIM/Interfaces/Remove-NetboxDCIMInterface.ps1
@@ -1,6 +1,5 @@
-
-function Remove-NetboxDCIMInterface {
-<#
+function Remove-NetboxDCIMInterface {
+ <#
.SYNOPSIS
Removes an interface
@@ -21,11 +20,11 @@ function Remove-NetboxDCIMInterface {
#>
[CmdletBinding(ConfirmImpact = 'High',
- SupportsShouldProcess = $true)]
+ SupportsShouldProcess = $true)]
param
(
[Parameter(Mandatory = $true,
- ValueFromPipelineByPropertyName = $true)]
+ ValueFromPipelineByPropertyName = $true)]
[uint16[]]$Id,
[switch]$Force
diff --git a/Functions/DCIM/Interfaces/Set-NetboxDCIMInterface.ps1 b/Functions/DCIM/Interfaces/Set-NetboxDCIMInterface.ps1
index 566c1a0..8d7c4c1 100644
--- a/Functions/DCIM/Interfaces/Set-NetboxDCIMInterface.ps1
+++ b/Functions/DCIM/Interfaces/Set-NetboxDCIMInterface.ps1
@@ -1,5 +1,4 @@
-
-function Set-NetboxDCIMInterface {
+function Set-NetboxDCIMInterface {
[CmdletBinding(ConfirmImpact = 'Medium',
SupportsShouldProcess = $true)]
[OutputType([pscustomobject])]
@@ -37,7 +36,9 @@ function Set-NetboxDCIMInterface {
[uint16]$Untagged_VLAN,
[ValidateRange(1, 4094)]
- [uint16[]]$Tagged_VLANs
+ [uint16[]]$Tagged_VLANs,
+
+ [switch]$Force
)
begin {
diff --git a/Functions/DCIM/RearPorts/Add-NetboxDCIMRearPort.ps1 b/Functions/DCIM/RearPorts/Add-NetboxDCIMRearPort.ps1
new file mode 100644
index 0000000..aed9896
--- /dev/null
+++ b/Functions/DCIM/RearPorts/Add-NetboxDCIMRearPort.ps1
@@ -0,0 +1,48 @@
+function Add-NetboxDCIMRearPort {
+ [CmdletBinding()]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [Parameter(Mandatory = $true)]
+ [uint16]$Device,
+
+ [uint16]$Module,
+
+ [Parameter(Mandatory = $true)]
+ [string]$Name,
+
+ [string]$Label,
+
+ [Parameter(Mandatory = $true)]
+ [string]$Type,
+
+ [ValidatePattern('^[0-9a-f]{6}$')]
+ [string]$Color,
+
+ [uint16]$Positions = 1,
+
+ [string]$Description,
+
+ [bool]$Mark_Connected,
+
+ [uint16[]]$Tags
+ )
+
+ begin {
+
+ }
+
+ process {
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'rear-ports'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments
+
+ InvokeNetboxRequest -URI $URI -Body $URIComponents.Parameters -Method POST
+ }
+
+ end {
+
+ }
+}
\ No newline at end of file
diff --git a/Functions/DCIM/RearPorts/Get-NetboxDCIMRearPort.ps1 b/Functions/DCIM/RearPorts/Get-NetboxDCIMRearPort.ps1
new file mode 100644
index 0000000..b6ee23b
--- /dev/null
+++ b/Functions/DCIM/RearPorts/Get-NetboxDCIMRearPort.ps1
@@ -0,0 +1,34 @@
+function Get-NetboxDCIMRearPort {
+ [CmdletBinding()]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [uint16]$Limit,
+
+ [uint16]$Offset,
+
+ [Parameter(ValueFromPipelineByPropertyName = $true)]
+ [uint16]$Id,
+
+ [string]$Name,
+
+ [string]$Device,
+
+ [uint16]$Device_Id,
+
+ [string]$Type,
+
+ [switch]$Raw
+ )
+
+ process {
+
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'rear-ports'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
+
+ InvokeNetboxRequest -URI $URI -Raw:$Raw
+ }
+}
\ No newline at end of file
diff --git a/Functions/DCIM/RearPorts/Remove-NetboxDCIMRearPort.ps1 b/Functions/DCIM/RearPorts/Remove-NetboxDCIMRearPort.ps1
new file mode 100644
index 0000000..7a301ec
--- /dev/null
+++ b/Functions/DCIM/RearPorts/Remove-NetboxDCIMRearPort.ps1
@@ -0,0 +1,35 @@
+function Remove-NetboxDCIMRearPort {
+
+ [CmdletBinding(ConfirmImpact = 'High',
+ SupportsShouldProcess = $true)]
+ param
+ (
+ [Parameter(Mandatory = $true,
+ ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [switch]$Force
+ )
+
+ begin {
+
+ }
+
+ process {
+ foreach ($RearPortID in $Id) {
+ $CurrentPort = Get-NetboxDCIMRearPort -Id $RearPortID -ErrorAction Stop
+
+ if ($Force -or $pscmdlet.ShouldProcess("Name: $($CurrentPort.Name) | ID: $($CurrentPort.Id)", "Remove")) {
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'rear-ports', $CurrentPort.Id))
+
+ $URI = BuildNewURI -Segments $Segments
+
+ InvokeNetboxRequest -URI $URI -Method DELETE
+ }
+ }
+ }
+
+ end {
+
+ }
+}
\ No newline at end of file
diff --git a/Functions/DCIM/RearPorts/Set-NetboxDCIMRearPort.ps1 b/Functions/DCIM/RearPorts/Set-NetboxDCIMRearPort.ps1
new file mode 100644
index 0000000..a206943
--- /dev/null
+++ b/Functions/DCIM/RearPorts/Set-NetboxDCIMRearPort.ps1
@@ -0,0 +1,59 @@
+
+function Set-NetboxDCIMRearPort {
+ [CmdletBinding(ConfirmImpact = 'Medium',
+ SupportsShouldProcess = $true)]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [Parameter(Mandatory = $true,
+ ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [uint16]$Device,
+
+ [uint16]$Module,
+
+ [string]$Name,
+
+ [string]$Label,
+
+ [string]$Type,
+
+ [ValidatePattern('^[0-9a-f]{6}$')]
+ [string]$Color,
+
+ [uint16]$Positions,
+
+ [string]$Description,
+
+ [bool]$Mark_Connected,
+
+ [uint16[]]$Tags,
+
+ [switch]$Force
+ )
+
+ begin {
+
+ }
+
+ process {
+ foreach ($RearPortID in $Id) {
+ $CurrentPort = Get-NetboxDCIMRearPort -Id $RearPortID -ErrorAction Stop
+
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'rear-ports', $CurrentPort.Id))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters -SkipParameterByName 'Id'
+
+ $URI = BuildNewURI -Segments $Segments
+
+ if ($Force -or $pscmdlet.ShouldProcess("Rear Port ID $($CurrentPort.Id)", "Set")) {
+ InvokeNetboxRequest -URI $URI -Body $URIComponents.Parameters -Method PATCH
+ }
+ }
+ }
+
+ end {
+
+ }
+}
\ No newline at end of file
diff --git a/Functions/Extras/Get-NetboxTag.ps1 b/Functions/Extras/Get-NetboxTag.ps1
new file mode 100644
index 0000000..5ea4225
--- /dev/null
+++ b/Functions/Extras/Get-NetboxTag.ps1
@@ -0,0 +1,31 @@
+
+function Get-NetboxTag {
+ [CmdletBinding()]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [uint16]$Limit,
+
+ [uint16]$Offset,
+
+ [Parameter(ValueFromPipelineByPropertyName = $true)]
+ [uint16]$Id,
+
+ [string]$Name,
+
+ [string]$Slug,
+
+ [switch]$Raw
+ )
+
+ process {
+
+ $Segments = [System.Collections.ArrayList]::new(@('extras', 'tags'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
+
+ InvokeNetboxRequest -URI $URI -Raw:$Raw
+ }
+}
\ No newline at end of file
diff --git a/NetboxPS.psd1 b/NetboxPS.psd1
index fd772d7..b9c80d4 100644
--- a/NetboxPS.psd1
+++ b/NetboxPS.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Ben Claussen
#
-# Generated on: 2023-03-13
+# Generated on: 2023-03-17
#
@{
@@ -12,7 +12,7 @@
RootModule = 'NetboxPS.psm1'
# Version number of this module.
-ModuleVersion = '1.7.3'
+ModuleVersion = '1.8.0'
# Supported PSEditions
# CompatiblePSEditions = @()
@@ -69,36 +69,41 @@ CLRVersion = '2.0.50727'
NestedModules = @()
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
-FunctionsToExport = 'Add-NetboxDCIMInterface', 'Add-NetboxDCIMInterfaceConnection',
+FunctionsToExport = 'Add-NetboxDCIMFrontPort', 'Add-NetboxDCIMInterface',
+ 'Add-NetboxDCIMInterfaceConnection', 'Add-NetboxDCIMRearPort',
'Add-NetboxVirtualMachineInterface', 'Clear-NetboxCredential',
'Connect-NetboxAPI', 'Get-ModelDefinition', 'Get-NetboxAPIDefinition',
'Get-NetboxCircuit', 'Get-NetboxCircuitProvider',
'Get-NetboxCircuitTermination', 'Get-NetboxCircuitType',
'Get-NetboxContact', 'Get-NetboxContactAssignment',
'Get-NetboxContactRole', 'Get-NetboxContentType',
- 'Get-NetboxCredential', 'Get-NetboxDCIMDevice',
+ 'Get-NetboxCredential', 'Get-NetboxDCIMCable',
+ 'Get-NetboxDCIMCableTermination', 'Get-NetboxDCIMDevice',
'Get-NetboxDCIMDeviceRole', 'Get-NetboxDCIMDeviceType',
- 'Get-NetboxDCIMInterface', 'Get-NetboxDCIMInterfaceConnection',
- 'Get-NetboxDCIMPlatform', 'Get-NetboxDCIMSite', 'Get-NetboxHostname',
+ 'Get-NetboxDCIMFrontPort', 'Get-NetboxDCIMInterface',
+ 'Get-NetboxDCIMInterfaceConnection', 'Get-NetboxDCIMPlatform',
+ 'Get-NetboxDCIMRearPort', 'Get-NetboxDCIMSite', 'Get-NetboxHostname',
'Get-NetboxHostPort', 'Get-NetboxHostScheme',
'Get-NetboxInvokeParams', 'Get-NetboxIPAMAddress',
'Get-NetboxIPAMAggregate', 'Get-NetboxIPAMAvailableIP',
'Get-NetboxIPAMPrefix', 'Get-NetboxIPAMRole', 'Get-NetboxIPAMVLAN',
- 'Get-NetboxTenant', 'Get-NetboxTimeout', 'Get-NetboxVersion',
- 'Get-NetboxVirtualizationCluster',
+ 'Get-NetboxTag', 'Get-NetboxTenant', 'Get-NetboxTimeout',
+ 'Get-NetboxVersion', 'Get-NetboxVirtualizationCluster',
'Get-NetboxVirtualizationClusterGroup', 'Get-NetboxVirtualMachine',
'Get-NetboxVirtualMachineInterface', 'New-NetboxCircuit',
'New-NetboxContact', 'New-NetboxContactAssignment',
'New-NetboxContactRole', 'New-NetboxDCIMDevice', 'New-NetboxDCIMSite',
'New-NetboxIPAMAddress', 'New-NetboxIPAMPrefix', 'New-NetboxIPAMVLAN',
'New-NetboxTenant', 'New-NetboxVirtualMachine',
- 'Remove-NetboxDCIMDevice', 'Remove-NetboxDCIMInterface',
- 'Remove-NetboxDCIMInterfaceConnection', 'Remove-NetboxDCIMSite',
- 'Remove-NetboxIPAMAddress', 'Remove-NetboxVirtualMachine',
- 'Set-NetboxCipherSSL', 'Set-NetboxContact', 'Set-NetboxCredential',
- 'Set-NetboxDCIMDevice', 'Set-NetboxDCIMInterface',
- 'Set-NetboxDCIMInterfaceConnection', 'Set-NetboxHostName',
- 'Set-NetboxHostPort', 'Set-NetboxHostScheme',
+ 'Remove-NetboxDCIMDevice', 'Remove-NetboxDCIMFrontPort',
+ 'Remove-NetboxDCIMInterface',
+ 'Remove-NetboxDCIMInterfaceConnection', 'Remove-NetboxDCIMRearPort',
+ 'Remove-NetboxDCIMSite', 'Remove-NetboxIPAMAddress',
+ 'Remove-NetboxVirtualMachine', 'Set-NetboxCipherSSL',
+ 'Set-NetboxContact', 'Set-NetboxCredential', 'Set-NetboxDCIMDevice',
+ 'Set-NetboxDCIMFrontPort', 'Set-NetboxDCIMInterface',
+ 'Set-NetboxDCIMInterfaceConnection', 'Set-NetboxDCIMRearPort',
+ 'Set-NetboxHostName', 'Set-NetboxHostPort', 'Set-NetboxHostScheme',
'Set-NetboxInvokeParams', 'Set-NetboxIPAMAddress',
'Set-NetboxIPAMPrefix', 'Set-NetboxTimeout',
'Set-NetboxUnstrustedSSL', 'Set-NetboxVirtualMachine',
diff --git a/NetboxPS.psproj b/NetboxPS.psproj
index 206b44e..6d988d1 100644
--- a/NetboxPS.psproj
+++ b/NetboxPS.psproj
@@ -34,6 +34,10 @@
Functions\Tenancy\Tenants
Functions\Tenancy\ContactRoles
Functions\Tenancy\ContactAssignment
+ Functions\DCIM\Cable Terminations
+ Functions\DCIM\Cables
+ Functions\DCIM\FrontPorts
+ Functions\DCIM\RearPorts
NetboxPS.psd1
@@ -126,10 +130,22 @@
Functions\Tenancy\ContactRoles\New-NetboxContactRole.ps1
Functions\Tenancy\Tenants\New-NetboxTenant.ps1
Functions\Tenancy\ContactAssignment\Get-NetboxContactAssignment.ps1
- Functions\Setup\Support\Get-NetboxContentType.ps1
+ Functions\Setup\Support\Get-NetboxContentType.ps1
Functions\Tenancy\ContactAssignment\New-NetboxContactAssignment.ps1
- Functions\Tenancy\Contacts\Set-NetboxContact.ps1
- Functions\Setup\Support\Test-NetboxAPIConnected.ps1
+ Functions\Tenancy\Contacts\Set-NetboxContact.ps1
+ Functions\Setup\Support\Test-NetboxAPIConnected.ps1
+ Functions\DCIM\Cable Terminations\Get-NetboxDCIMCableTermination.ps1
+ Functions\DCIM\Cables\Get-NetboxDCIMCable.ps1
+ Functions\DCIM\FrontPorts\Add-NetboxDCIMFrontPort.ps1
+ Functions\DCIM\FrontPorts\Get-NetboxDCIMFrontPort.ps1
+ Functions\DCIM\FrontPorts\Remove-NetboxDCIMFrontPort.ps1
+ Functions\DCIM\FrontPorts\Set-NetboxDCIMFrontPort.ps1
+ Functions\DCIM\RearPorts\Add-NetboxDCIMRearPort.ps1
+ Functions\DCIM\RearPorts\Get-NetboxDCIMRearPort.ps1
+ Functions\DCIM\RearPorts\Remove-NetboxDCIMRearPort.ps1
+ Functions\DCIM\RearPorts\Set-NetboxDCIMRearPort.ps1
+ Functions\DCIM\Sites\New-NetboxDCIMSite.ps1
+ Functions\DCIM\Sites\Remove-NetboxDCIMSite.ps1
R:\Netbox\NetboxPS\Test-Module.ps1
\ No newline at end of file
diff --git a/NetboxPS/NetboxPS.psd1 b/NetboxPS/NetboxPS.psd1
index fd772d7..b9c80d4 100644
--- a/NetboxPS/NetboxPS.psd1
+++ b/NetboxPS/NetboxPS.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Ben Claussen
#
-# Generated on: 2023-03-13
+# Generated on: 2023-03-17
#
@{
@@ -12,7 +12,7 @@
RootModule = 'NetboxPS.psm1'
# Version number of this module.
-ModuleVersion = '1.7.3'
+ModuleVersion = '1.8.0'
# Supported PSEditions
# CompatiblePSEditions = @()
@@ -69,36 +69,41 @@ CLRVersion = '2.0.50727'
NestedModules = @()
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
-FunctionsToExport = 'Add-NetboxDCIMInterface', 'Add-NetboxDCIMInterfaceConnection',
+FunctionsToExport = 'Add-NetboxDCIMFrontPort', 'Add-NetboxDCIMInterface',
+ 'Add-NetboxDCIMInterfaceConnection', 'Add-NetboxDCIMRearPort',
'Add-NetboxVirtualMachineInterface', 'Clear-NetboxCredential',
'Connect-NetboxAPI', 'Get-ModelDefinition', 'Get-NetboxAPIDefinition',
'Get-NetboxCircuit', 'Get-NetboxCircuitProvider',
'Get-NetboxCircuitTermination', 'Get-NetboxCircuitType',
'Get-NetboxContact', 'Get-NetboxContactAssignment',
'Get-NetboxContactRole', 'Get-NetboxContentType',
- 'Get-NetboxCredential', 'Get-NetboxDCIMDevice',
+ 'Get-NetboxCredential', 'Get-NetboxDCIMCable',
+ 'Get-NetboxDCIMCableTermination', 'Get-NetboxDCIMDevice',
'Get-NetboxDCIMDeviceRole', 'Get-NetboxDCIMDeviceType',
- 'Get-NetboxDCIMInterface', 'Get-NetboxDCIMInterfaceConnection',
- 'Get-NetboxDCIMPlatform', 'Get-NetboxDCIMSite', 'Get-NetboxHostname',
+ 'Get-NetboxDCIMFrontPort', 'Get-NetboxDCIMInterface',
+ 'Get-NetboxDCIMInterfaceConnection', 'Get-NetboxDCIMPlatform',
+ 'Get-NetboxDCIMRearPort', 'Get-NetboxDCIMSite', 'Get-NetboxHostname',
'Get-NetboxHostPort', 'Get-NetboxHostScheme',
'Get-NetboxInvokeParams', 'Get-NetboxIPAMAddress',
'Get-NetboxIPAMAggregate', 'Get-NetboxIPAMAvailableIP',
'Get-NetboxIPAMPrefix', 'Get-NetboxIPAMRole', 'Get-NetboxIPAMVLAN',
- 'Get-NetboxTenant', 'Get-NetboxTimeout', 'Get-NetboxVersion',
- 'Get-NetboxVirtualizationCluster',
+ 'Get-NetboxTag', 'Get-NetboxTenant', 'Get-NetboxTimeout',
+ 'Get-NetboxVersion', 'Get-NetboxVirtualizationCluster',
'Get-NetboxVirtualizationClusterGroup', 'Get-NetboxVirtualMachine',
'Get-NetboxVirtualMachineInterface', 'New-NetboxCircuit',
'New-NetboxContact', 'New-NetboxContactAssignment',
'New-NetboxContactRole', 'New-NetboxDCIMDevice', 'New-NetboxDCIMSite',
'New-NetboxIPAMAddress', 'New-NetboxIPAMPrefix', 'New-NetboxIPAMVLAN',
'New-NetboxTenant', 'New-NetboxVirtualMachine',
- 'Remove-NetboxDCIMDevice', 'Remove-NetboxDCIMInterface',
- 'Remove-NetboxDCIMInterfaceConnection', 'Remove-NetboxDCIMSite',
- 'Remove-NetboxIPAMAddress', 'Remove-NetboxVirtualMachine',
- 'Set-NetboxCipherSSL', 'Set-NetboxContact', 'Set-NetboxCredential',
- 'Set-NetboxDCIMDevice', 'Set-NetboxDCIMInterface',
- 'Set-NetboxDCIMInterfaceConnection', 'Set-NetboxHostName',
- 'Set-NetboxHostPort', 'Set-NetboxHostScheme',
+ 'Remove-NetboxDCIMDevice', 'Remove-NetboxDCIMFrontPort',
+ 'Remove-NetboxDCIMInterface',
+ 'Remove-NetboxDCIMInterfaceConnection', 'Remove-NetboxDCIMRearPort',
+ 'Remove-NetboxDCIMSite', 'Remove-NetboxIPAMAddress',
+ 'Remove-NetboxVirtualMachine', 'Set-NetboxCipherSSL',
+ 'Set-NetboxContact', 'Set-NetboxCredential', 'Set-NetboxDCIMDevice',
+ 'Set-NetboxDCIMFrontPort', 'Set-NetboxDCIMInterface',
+ 'Set-NetboxDCIMInterfaceConnection', 'Set-NetboxDCIMRearPort',
+ 'Set-NetboxHostName', 'Set-NetboxHostPort', 'Set-NetboxHostScheme',
'Set-NetboxInvokeParams', 'Set-NetboxIPAMAddress',
'Set-NetboxIPAMPrefix', 'Set-NetboxTimeout',
'Set-NetboxUnstrustedSSL', 'Set-NetboxVirtualMachine',
diff --git a/NetboxPS/NetboxPS.psm1 b/NetboxPS/NetboxPS.psm1
index d1f1bda..87e5c9f 100644
--- a/NetboxPS/NetboxPS.psm1
+++ b/NetboxPS/NetboxPS.psm1
@@ -1,5 +1,52 @@
+#region File Add-NetboxDCIMFrontPort.ps1
+
+function Add-NetboxDCIMFrontPort {
+ [CmdletBinding()]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [Parameter(Mandatory = $true)]
+ [uint16]$Device,
+
+ [uint16]$Module,
+
+ [Parameter(Mandatory = $true)]
+ [string]$Name,
+
+ [string]$Label,
+
+ [Parameter(Mandatory = $true)]
+ [string]$Type,
+
+ [ValidatePattern('^[0-9a-f]{6}$')]
+ [string]$Color,
+
+ [Parameter(Mandatory = $true)]
+ [uint16]$Rear_Port,
+
+ [uint16]$Rear_Port_Position,
+
+ [string]$Description,
+
+ [bool]$Mark_Connected,
+
+ [uint16[]]$Tags
+
+ )
+
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'front-ports'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments
+
+ InvokeNetboxRequest -URI $URI -Body $URIComponents.Parameters -Method POST
+}
+
+#endregion
+
#region File Add-NetboxDCIMInterface.ps1
@@ -130,6 +177,59 @@ function Add-NetboxDCIMInterfaceConnection {
#endregion
+#region File Add-NetboxDCIMRearPort.ps1
+
+function Add-NetboxDCIMRearPort {
+ [CmdletBinding()]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [Parameter(Mandatory = $true)]
+ [uint16]$Device,
+
+ [uint16]$Module,
+
+ [Parameter(Mandatory = $true)]
+ [string]$Name,
+
+ [string]$Label,
+
+ [Parameter(Mandatory = $true)]
+ [string]$Type,
+
+ [ValidatePattern('^[0-9a-f]{6}$')]
+ [string]$Color,
+
+ [uint16]$Positions = 1,
+
+ [string]$Description,
+
+ [bool]$Mark_Connected,
+
+ [uint16[]]$Tags
+ )
+
+ begin {
+
+ }
+
+ process {
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'rear-ports'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments
+
+ InvokeNetboxRequest -URI $URI -Body $URIComponents.Parameters -Method POST
+ }
+
+ end {
+
+ }
+}
+
+#endregion
+
#region File Add-NetboxVirtualMachineInterface.ps1
@@ -1415,6 +1515,106 @@ function Get-NetboxCredential {
#endregion
+#region File Get-NetboxDCIMCable.ps1
+
+function Get-NetboxDCIMCable {
+ [CmdletBinding()]
+ #region Parameters
+ param
+ (
+ [uint16]$Limit,
+
+ [uint16]$Offset,
+
+ [Parameter(ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [string]$Label,
+
+ [string]$Termination_A_Type,
+
+ [uint16]$Termination_A_ID,
+
+ [string]$Termination_B_Type,
+
+ [UInt16]$Termination_B_ID,
+
+ [string]$Type,
+
+ [string]$Status,
+
+ [string]$Color,
+
+ [UInt16]$Device_ID,
+
+ [string]$Device,
+
+ [uint16]$Rack_Id,
+
+ [string]$Rack,
+
+ [uint16]$Location_ID,
+
+ [string]$Location,
+
+ [switch]$Raw
+ )
+
+ #endregion Parameters
+
+ process {
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'cables'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters -SkipParameterByName 'Raw'
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
+
+ InvokeNetboxRequest -URI $URI -Raw:$Raw
+ }
+}
+
+#endregion
+
+#region File Get-NetboxDCIMCableTermination.ps1
+
+function Get-NetboxDCIMCableTermination {
+ [CmdletBinding()]
+ #region Parameters
+ param
+ (
+ [uint16]$Limit,
+
+ [uint16]$Offset,
+
+ [Parameter(ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [uint16]$Cable,
+
+ [string]$Cable_End,
+
+ [string]$Termination_Type,
+
+ [uint16]$Termination_ID,
+
+ [switch]$Raw
+ )
+
+ #endregion Parameters
+
+ process {
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'cable-terminations'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters -SkipParameterByName 'Raw'
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
+
+ InvokeNetboxRequest -URI $URI -Raw:$Raw
+ }
+}
+
+#endregion
+
#region File Get-NetboxDCIMDevice.ps1
@@ -1611,8 +1811,46 @@ function Get-NetboxDCIMDeviceType {
#endregion
-#region File Get-NetboxDCIMInterface.ps1
+#region File Get-NetboxDCIMFrontPort.ps1
+function Get-NetboxDCIMFrontPort {
+ [CmdletBinding()]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [uint16]$Limit,
+
+ [uint16]$Offset,
+
+ [Parameter(ValueFromPipelineByPropertyName = $true)]
+ [uint16]$Id,
+
+ [string]$Name,
+
+ [string]$Device,
+
+ [uint16]$Device_Id,
+
+ [string]$Type,
+
+ [switch]$Raw
+ )
+
+ process {
+
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'front-ports'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
+
+ InvokeNetboxRequest -URI $URI -Raw:$Raw
+ }
+}
+
+#endregion
+
+#region File Get-NetboxDCIMInterface.ps1
function Get-NetboxDCIMInterface {
[CmdletBinding()]
@@ -1752,6 +1990,45 @@ function Get-NetboxDCIMPlatform {
#endregion
+#region File Get-NetboxDCIMRearPort.ps1
+
+function Get-NetboxDCIMRearPort {
+ [CmdletBinding()]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [uint16]$Limit,
+
+ [uint16]$Offset,
+
+ [Parameter(ValueFromPipelineByPropertyName = $true)]
+ [uint16]$Id,
+
+ [string]$Name,
+
+ [string]$Device,
+
+ [uint16]$Device_Id,
+
+ [string]$Type,
+
+ [switch]$Raw
+ )
+
+ process {
+
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'rear-ports'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
+
+ InvokeNetboxRequest -URI $URI -Raw:$Raw
+ }
+}
+
+#endregion
+
#region File Get-NetboxDCIMSite.ps1
@@ -2547,6 +2824,42 @@ function Get-NetboxIPAMVLAN {
+#endregion
+
+#region File Get-NetboxTag.ps1
+
+
+function Get-NetboxTag {
+ [CmdletBinding()]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [uint16]$Limit,
+
+ [uint16]$Offset,
+
+ [Parameter(ValueFromPipelineByPropertyName = $true)]
+ [uint16]$Id,
+
+ [string]$Name,
+
+ [string]$Slug,
+
+ [switch]$Raw
+ )
+
+ process {
+
+ $Segments = [System.Collections.ArrayList]::new(@('extras', 'tags'))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters
+
+ $URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters
+
+ InvokeNetboxRequest -URI $URI -Raw:$Raw
+ }
+}
+
#endregion
#region File Get-NetboxTenant.ps1
@@ -4141,11 +4454,50 @@ function Remove-NetboxDCIMDevice {
#endregion
+#region File Remove-NetboxDCIMFrontPort.ps1
+
+function Remove-NetboxDCIMFrontPort {
+
+ [CmdletBinding(ConfirmImpact = 'High',
+ SupportsShouldProcess = $true)]
+ param
+ (
+ [Parameter(Mandatory = $true,
+ ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [switch]$Force
+ )
+
+ begin {
+
+ }
+
+ process {
+ foreach ($FrontPortID in $Id) {
+ $CurrentPort = Get-NetboxDCIMFrontPort -Id $FrontPortID -ErrorAction Stop
+
+ if ($Force -or $pscmdlet.ShouldProcess("Name: $($CurrentPort.Name) | ID: $($CurrentPort.Id)", "Remove")) {
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'front-ports', $CurrentPort.Id))
+
+ $URI = BuildNewURI -Segments $Segments
+
+ InvokeNetboxRequest -URI $URI -Method DELETE
+ }
+ }
+ }
+
+ end {
+
+ }
+}
+
+#endregion
+
#region File Remove-NetboxDCIMInterface.ps1
-
function Remove-NetboxDCIMInterface {
-<#
+ <#
.SYNOPSIS
Removes an interface
@@ -4166,11 +4518,11 @@ function Remove-NetboxDCIMInterface {
#>
[CmdletBinding(ConfirmImpact = 'High',
- SupportsShouldProcess = $true)]
+ SupportsShouldProcess = $true)]
param
(
[Parameter(Mandatory = $true,
- ValueFromPipelineByPropertyName = $true)]
+ ValueFromPipelineByPropertyName = $true)]
[uint16[]]$Id,
[switch]$Force
@@ -4244,6 +4596,46 @@ function Remove-NetboxDCIMInterfaceConnection {
#endregion
+#region File Remove-NetboxDCIMRearPort.ps1
+
+function Remove-NetboxDCIMRearPort {
+
+ [CmdletBinding(ConfirmImpact = 'High',
+ SupportsShouldProcess = $true)]
+ param
+ (
+ [Parameter(Mandatory = $true,
+ ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [switch]$Force
+ )
+
+ begin {
+
+ }
+
+ process {
+ foreach ($RearPortID in $Id) {
+ $CurrentPort = Get-NetboxDCIMRearPort -Id $RearPortID -ErrorAction Stop
+
+ if ($Force -or $pscmdlet.ShouldProcess("Name: $($CurrentPort.Name) | ID: $($CurrentPort.Id)", "Remove")) {
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'rear-ports', $CurrentPort.Id))
+
+ $URI = BuildNewURI -Segments $Segments
+
+ InvokeNetboxRequest -URI $URI -Method DELETE
+ }
+ }
+ }
+
+ end {
+
+ }
+}
+
+#endregion
+
#region File Remove-NetboxDCIMSite.ps1
<#
@@ -4681,8 +5073,72 @@ function Set-NetboxDCIMDevice {
#endregion
-#region File Set-NetboxDCIMInterface.ps1
+#region File Set-NetboxDCIMFrontPort.ps1
+function Set-NetboxDCIMFrontPort {
+ [CmdletBinding(ConfirmImpact = 'Medium',
+ SupportsShouldProcess = $true)]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [Parameter(Mandatory = $true,
+ ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [uint16]$Device,
+
+ [uint16]$Module,
+
+ [string]$Name,
+
+ [string]$Label,
+
+ [string]$Type,
+
+ [ValidatePattern('^[0-9a-f]{6}$')]
+ [string]$Color,
+
+ [uint16]$Rear_Port,
+
+ [uint16]$Rear_Port_Position,
+
+ [string]$Description,
+
+ [bool]$Mark_Connected,
+
+ [uint16[]]$Tags,
+
+ [switch]$Force
+ )
+
+ begin {
+
+ }
+
+ process {
+ foreach ($FrontPortID in $Id) {
+ $CurrentPort = Get-NetboxDCIMFrontPort -Id $FrontPortID -ErrorAction Stop
+
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'front-ports', $CurrentPort.Id))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters -SkipParameterByName 'Id'
+
+ $URI = BuildNewURI -Segments $Segments
+
+ if ($Force -or $pscmdlet.ShouldProcess("Front Port ID $($CurrentPort.Id)", "Set")) {
+ InvokeNetboxRequest -URI $URI -Body $URIComponents.Parameters -Method PATCH
+ }
+ }
+ }
+
+ end {
+
+ }
+}
+
+#endregion
+
+#region File Set-NetboxDCIMInterface.ps1
function Set-NetboxDCIMInterface {
[CmdletBinding(ConfirmImpact = 'Medium',
@@ -4722,7 +5178,9 @@ function Set-NetboxDCIMInterface {
[uint16]$Untagged_VLAN,
[ValidateRange(1, 4094)]
- [uint16[]]$Tagged_VLANs
+ [uint16[]]$Tagged_VLANs,
+
+ [switch]$Force
)
begin {
@@ -4853,6 +5311,70 @@ function Set-NetboxDCIMInterfaceConnection {
#endregion
+#region File Set-NetboxDCIMRearPort.ps1
+
+
+function Set-NetboxDCIMRearPort {
+ [CmdletBinding(ConfirmImpact = 'Medium',
+ SupportsShouldProcess = $true)]
+ [OutputType([pscustomobject])]
+ param
+ (
+ [Parameter(Mandatory = $true,
+ ValueFromPipelineByPropertyName = $true)]
+ [uint16[]]$Id,
+
+ [uint16]$Device,
+
+ [uint16]$Module,
+
+ [string]$Name,
+
+ [string]$Label,
+
+ [string]$Type,
+
+ [ValidatePattern('^[0-9a-f]{6}$')]
+ [string]$Color,
+
+ [uint16]$Positions,
+
+ [string]$Description,
+
+ [bool]$Mark_Connected,
+
+ [uint16[]]$Tags,
+
+ [switch]$Force
+ )
+
+ begin {
+
+ }
+
+ process {
+ foreach ($RearPortID in $Id) {
+ $CurrentPort = Get-NetboxDCIMRearPort -Id $RearPortID -ErrorAction Stop
+
+ $Segments = [System.Collections.ArrayList]::new(@('dcim', 'rear-ports', $CurrentPort.Id))
+
+ $URIComponents = BuildURIComponents -URISegments $Segments.Clone() -ParametersDictionary $PSBoundParameters -SkipParameterByName 'Id'
+
+ $URI = BuildNewURI -Segments $Segments
+
+ if ($Force -or $pscmdlet.ShouldProcess("Rear Port ID $($CurrentPort.Id)", "Set")) {
+ InvokeNetboxRequest -URI $URI -Body $URIComponents.Parameters -Method PATCH
+ }
+ }
+ }
+
+ end {
+
+ }
+}
+
+#endregion
+
#region File Set-NetboxHostName.ps1
function Set-NetboxHostName {
diff --git a/Postman/Netbox.postman_collection.json b/Postman/Netbox.postman_collection.json
index 427c372..fe3f429 100644
--- a/Postman/Netbox.postman_collection.json
+++ b/Postman/Netbox.postman_collection.json
@@ -1,1129 +1,64580 @@
{
"info": {
- "_postman_id": "eba3e2e2-fd8e-5304-be69-4aebe1237cfc",
- "name": "Netbox",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+ "_postman_id": "f123f199-5259-4fdc-adf7-14d1cd83f194",
+ "name": "NetBox API",
+ "description": "API to access NetBox",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
+ "_exporter_id": "3598702"
},
"item": [
{
- "name": "IPAM",
+ "name": "circuits",
"item": [
{
- "name": "Role",
+ "name": "circuit-terminations",
"item": [
{
- "name": "Get-NetboxIPAMRole",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{SCHEME}}://{{HOSTNAME}}:{{PORT}}/api/ipam/roles?brief=0",
- "protocol": "{{SCHEME}}",
- "host": [
- "{{HOSTNAME}}"
- ],
- "port": "{{PORT}}",
- "path": [
- "api",
- "ipam",
- "roles"
- ],
- "query": [
+ "name": "{id}",
+ "item": [
+ {
+ "name": "circuits circuit-terminations read",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id",
+ "value": "",
+ "description": "(Required) A unique integer value identifying this circuit termination."
+ }
+ ]
+ }
+ },
+ "response": [
{
- "key": "brief",
- "value": "0"
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "GET",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"circuit\": {\n \"cid\": \"ulla\",\n \"id\": 4429167,\n \"url\": \"https://MPnQjLpnFyMiNBBQmnnHSza.lalqc.xViX,CaOfKAn8P8vFGQ6Btx.T3,\"\n },\n \"term_side\": \"A\",\n \"site\": {\n \"name\": \"sito\",\n \"slug\": \"8QJE\",\n \"id\": 74938480,\n \"url\": \"https://GhEycZQINxUKKoYVTbzjg.rflyV08-1hPLgFyWNy1jOe.Lm9JqqmublYfU217RPPyDdPwU\"\n },\n \"id\": 30756269,\n \"url\": \"https://WJRceEyoYEVrOUH.arqWonXSno5UiTSCZI90Z+YvYR,h\",\n \"port_speed\": 1021635631,\n \"upstream_speed\": 1373185864,\n \"xconnect_id\": \"Lo\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -21469561,\n \"url\": \"http://GbnZMBTZQKyeSQVIyJHrxW.pdlOIthbt,hDUbgi67igo0IR.AjMUgeM7WRB5nJu6em.syK.U-i\",\n \"label\": \"ut \"\n },\n \"cable_peer\": {},\n \"cable_peer_type\": \"sed adipisicing\",\n \"connected_endpoint\": {},\n \"connected_endpoint_type\": \"est in adipisicing Excepteur aliqua\",\n \"connected_endpoint_reachable\": false\n}"
+ }
+ ]
+ },
+ {
+ "name": "circuits circuit-terminations update",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"circuit\": \"\",\n \"term_side\": \"\",\n \"site\": \"\",\n \"port_speed\": \"\",\n \"upstream_speed\": \"\",\n \"xconnect_id\": \"\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -96538495,\n \"url\": \"https://nMgdjcpGMckqWcSWnTPrtTaEWA.iodubZTPAOrxX\",\n \"label\": \"ven\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id",
+ "value": "",
+ "description": "(Required) A unique integer value identifying this circuit termination."
+ }
+ ]
+ }
+ },
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"circuit\": {\n \"cid\": \"ulla\",\n \"id\": 4429167,\n \"url\": \"https://MPnQjLpnFyMiNBBQmnnHSza.lalqc.xViX,CaOfKAn8P8vFGQ6Btx.T3,\"\n },\n \"term_side\": \"A\",\n \"site\": {\n \"name\": \"sito\",\n \"slug\": \"8QJE\",\n \"id\": 74938480,\n \"url\": \"https://GhEycZQINxUKKoYVTbzjg.rflyV08-1hPLgFyWNy1jOe.Lm9JqqmublYfU217RPPyDdPwU\"\n },\n \"id\": 30756269,\n \"url\": \"https://WJRceEyoYEVrOUH.arqWonXSno5UiTSCZI90Z+YvYR,h\",\n \"port_speed\": 1021635631,\n \"upstream_speed\": 1373185864,\n \"xconnect_id\": \"Lo\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -21469561,\n \"url\": \"http://GbnZMBTZQKyeSQVIyJHrxW.pdlOIthbt,hDUbgi67igo0IR.AjMUgeM7WRB5nJu6em.syK.U-i\",\n \"label\": \"ut \"\n },\n \"cable_peer\": {},\n \"cable_peer_type\": \"sed adipisicing\",\n \"connected_endpoint\": {},\n \"connected_endpoint_type\": \"est in adipisicing Excepteur aliqua\",\n \"connected_endpoint_reachable\": false\n}"
+ }
+ ]
+ },
+ {
+ "name": "circuits circuit-terminations partial update",
+ "request": {
+ "method": "PATCH",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"circuit\": \"\",\n \"term_side\": \"\",\n \"site\": \"\",\n \"port_speed\": \"\",\n \"upstream_speed\": \"\",\n \"xconnect_id\": \"\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -96538495,\n \"url\": \"https://nMgdjcpGMckqWcSWnTPrtTaEWA.iodubZTPAOrxX\",\n \"label\": \"ven\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id",
+ "value": "",
+ "description": "(Required) A unique integer value identifying this circuit termination."
+ }
+ ]
+ }
+ },
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "PATCH",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"circuit\": {\n \"cid\": \"ulla\",\n \"id\": 4429167,\n \"url\": \"https://MPnQjLpnFyMiNBBQmnnHSza.lalqc.xViX,CaOfKAn8P8vFGQ6Btx.T3,\"\n },\n \"term_side\": \"A\",\n \"site\": {\n \"name\": \"sito\",\n \"slug\": \"8QJE\",\n \"id\": 74938480,\n \"url\": \"https://GhEycZQINxUKKoYVTbzjg.rflyV08-1hPLgFyWNy1jOe.Lm9JqqmublYfU217RPPyDdPwU\"\n },\n \"id\": 30756269,\n \"url\": \"https://WJRceEyoYEVrOUH.arqWonXSno5UiTSCZI90Z+YvYR,h\",\n \"port_speed\": 1021635631,\n \"upstream_speed\": 1373185864,\n \"xconnect_id\": \"Lo\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -21469561,\n \"url\": \"http://GbnZMBTZQKyeSQVIyJHrxW.pdlOIthbt,hDUbgi67igo0IR.AjMUgeM7WRB5nJu6em.syK.U-i\",\n \"label\": \"ut \"\n },\n \"cable_peer\": {},\n \"cable_peer_type\": \"sed adipisicing\",\n \"connected_endpoint\": {},\n \"connected_endpoint_type\": \"est in adipisicing Excepteur aliqua\",\n \"connected_endpoint_reachable\": false\n}"
+ }
+ ]
+ },
+ {
+ "name": "circuits circuit-terminations delete",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id",
+ "value": "",
+ "description": "(Required) A unique integer value identifying this circuit termination."
+ }
+ ]
+ }
+ },
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "circuits circuit-terminations trace",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/:id/trace/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ":id",
+ "trace",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id",
+ "value": "",
+ "description": "(Required) A unique integer value identifying this circuit termination."
+ }
+ ]
+ },
+ "description": "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination)."
+ },
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "GET",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/:id/trace/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ":id",
+ "trace",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"circuit\": {\n \"cid\": \"ulla\",\n \"id\": 4429167,\n \"url\": \"https://MPnQjLpnFyMiNBBQmnnHSza.lalqc.xViX,CaOfKAn8P8vFGQ6Btx.T3,\"\n },\n \"term_side\": \"A\",\n \"site\": {\n \"name\": \"sito\",\n \"slug\": \"8QJE\",\n \"id\": 74938480,\n \"url\": \"https://GhEycZQINxUKKoYVTbzjg.rflyV08-1hPLgFyWNy1jOe.Lm9JqqmublYfU217RPPyDdPwU\"\n },\n \"id\": 30756269,\n \"url\": \"https://WJRceEyoYEVrOUH.arqWonXSno5UiTSCZI90Z+YvYR,h\",\n \"port_speed\": 1021635631,\n \"upstream_speed\": 1373185864,\n \"xconnect_id\": \"Lo\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -21469561,\n \"url\": \"http://GbnZMBTZQKyeSQVIyJHrxW.pdlOIthbt,hDUbgi67igo0IR.AjMUgeM7WRB5nJu6em.syK.U-i\",\n \"label\": \"ut \"\n },\n \"cable_peer\": {},\n \"cable_peer_type\": \"sed adipisicing\",\n \"connected_endpoint\": {},\n \"connected_endpoint_type\": \"est in adipisicing Excepteur aliqua\",\n \"connected_endpoint_reachable\": false\n}"
}
]
}
- },
- "response": []
- }
- ]
- },
- {
- "name": "Prefix",
- "item": [
+ ]
+ },
{
- "name": "Get Prefixes",
+ "name": "circuits circuit-terminations list",
"request": {
"method": "GET",
"header": [],
"url": {
- "raw": "{{SCHEME}}://{{HOSTNAME}}:{{PORT}}/api/ipam/prefixes/?prefix",
- "protocol": "{{SCHEME}}",
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/?term_side=&port_speed=&upstream_speed=&xconnect_id=&cabled=&connected=&q=&circuit_id=&site_id=&site=&term_side__n=&port_speed__n=&port_speed__lte=&port_speed__lt=&port_speed__gte=&port_speed__gt=&upstream_speed__n=&upstream_speed__lte=&upstream_speed__lt=&upstream_speed__gte=&upstream_speed__gt=&xconnect_id__n=&xconnect_id__ic=&xconnect_id__nic=&xconnect_id__iew=&xconnect_id__niew=&xconnect_id__isw=&xconnect_id__nisw=&xconnect_id__ie=&xconnect_id__nie=&circuit_id__n=&site_id__n=&site__n=&limit=&offset=",
"host": [
- "{{HOSTNAME}}"
+ "{{baseUrl}}"
],
- "port": "{{PORT}}",
"path": [
- "api",
- "ipam",
- "prefixes",
+ "circuits",
+ "circuit-terminations",
""
],
"query": [
{
- "key": "id",
- "value": null,
- "disabled": true
+ "key": "term_side",
+ "value": ""
},
{
- "key": "prefix",
- "value": null
+ "key": "port_speed",
+ "value": ""
+ },
+ {
+ "key": "upstream_speed",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id",
+ "value": ""
+ },
+ {
+ "key": "cabled",
+ "value": ""
+ },
+ {
+ "key": "connected",
+ "value": ""
},
{
"key": "q",
- "value": null,
- "disabled": true
+ "value": ""
},
{
- "key": "is_pool",
- "value": null,
- "disabled": true
+ "key": "circuit_id",
+ "value": ""
},
{
- "key": "tenant_group_id",
- "value": null,
- "disabled": true
+ "key": "site_id",
+ "value": ""
},
{
- "key": "tenant_group",
- "value": null,
- "disabled": true
+ "key": "site",
+ "value": ""
},
{
- "key": "tenant_id",
- "value": null,
- "disabled": true
+ "key": "term_side__n",
+ "value": ""
},
{
- "key": "tenant",
- "value": null,
- "disabled": true
+ "key": "port_speed__n",
+ "value": ""
},
{
- "key": "family",
- "value": null,
- "disabled": true
+ "key": "port_speed__lte",
+ "value": ""
},
{
- "key": "within",
- "value": null,
- "disabled": true
+ "key": "port_speed__lt",
+ "value": ""
},
{
- "key": "mask_length",
- "value": null,
- "disabled": true
+ "key": "port_speed__gte",
+ "value": ""
},
{
- "key": "region",
- "value": null,
- "disabled": true
+ "key": "port_speed__gt",
+ "value": ""
},
{
- "key": "region_id",
- "value": null,
- "disabled": true
+ "key": "upstream_speed__n",
+ "value": ""
},
{
- "key": "status",
- "value": null,
- "disabled": true
+ "key": "upstream_speed__lte",
+ "value": ""
+ },
+ {
+ "key": "upstream_speed__lt",
+ "value": ""
+ },
+ {
+ "key": "upstream_speed__gte",
+ "value": ""
+ },
+ {
+ "key": "upstream_speed__gt",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__n",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__ic",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__nic",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__iew",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__niew",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__isw",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__nisw",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__ie",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__nie",
+ "value": ""
+ },
+ {
+ "key": "circuit_id__n",
+ "value": ""
+ },
+ {
+ "key": "site_id__n",
+ "value": ""
+ },
+ {
+ "key": "site__n",
+ "value": ""
},
{
"key": "limit",
- "value": null,
- "disabled": true
+ "value": "",
+ "description": "Number of results to return per page."
},
{
"key": "offset",
- "value": null,
- "disabled": true
+ "value": "",
+ "description": "The initial index from which to return the results."
}
]
}
},
- "response": []
- }
- ]
- },
- {
- "name": "IP Address",
- "item": [
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "GET",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/?term_side=&port_speed=&upstream_speed=&xconnect_id=&cabled=&connected=&q=&circuit_id=&site_id=&site=&term_side__n=&port_speed__n=&port_speed__lte=&port_speed__lt=&port_speed__gte=&port_speed__gt=&upstream_speed__n=&upstream_speed__lte=&upstream_speed__lt=&upstream_speed__gte=&upstream_speed__gt=&xconnect_id__n=&xconnect_id__ic=&xconnect_id__nic=&xconnect_id__iew=&xconnect_id__niew=&xconnect_id__isw=&xconnect_id__nisw=&xconnect_id__ie=&xconnect_id__nie=&circuit_id__n=&site_id__n=&site__n=&limit=&offset=",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ""
+ ],
+ "query": [
+ {
+ "key": "term_side",
+ "value": ""
+ },
+ {
+ "key": "port_speed",
+ "value": ""
+ },
+ {
+ "key": "upstream_speed",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id",
+ "value": ""
+ },
+ {
+ "key": "cabled",
+ "value": ""
+ },
+ {
+ "key": "connected",
+ "value": ""
+ },
+ {
+ "key": "q",
+ "value": ""
+ },
+ {
+ "key": "circuit_id",
+ "value": ""
+ },
+ {
+ "key": "site_id",
+ "value": ""
+ },
+ {
+ "key": "site",
+ "value": ""
+ },
+ {
+ "key": "term_side__n",
+ "value": ""
+ },
+ {
+ "key": "port_speed__n",
+ "value": ""
+ },
+ {
+ "key": "port_speed__lte",
+ "value": ""
+ },
+ {
+ "key": "port_speed__lt",
+ "value": ""
+ },
+ {
+ "key": "port_speed__gte",
+ "value": ""
+ },
+ {
+ "key": "port_speed__gt",
+ "value": ""
+ },
+ {
+ "key": "upstream_speed__n",
+ "value": ""
+ },
+ {
+ "key": "upstream_speed__lte",
+ "value": ""
+ },
+ {
+ "key": "upstream_speed__lt",
+ "value": ""
+ },
+ {
+ "key": "upstream_speed__gte",
+ "value": ""
+ },
+ {
+ "key": "upstream_speed__gt",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__n",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__ic",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__nic",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__iew",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__niew",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__isw",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__nisw",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__ie",
+ "value": ""
+ },
+ {
+ "key": "xconnect_id__nie",
+ "value": ""
+ },
+ {
+ "key": "circuit_id__n",
+ "value": ""
+ },
+ {
+ "key": "site_id__n",
+ "value": ""
+ },
+ {
+ "key": "site__n",
+ "value": ""
+ },
+ {
+ "key": "limit",
+ "value": ""
+ },
+ {
+ "key": "offset",
+ "value": ""
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"count\": 35208207,\n \"results\": [\n {\n \"circuit\": {\n \"cid\": \"amet\",\n \"id\": -96201450,\n \"url\": \"http://PhewxEFqMQkBgBZMEOij.vypgaJW4I6jDlCeeUgRlk8Db0y\"\n },\n \"term_side\": \"Z\",\n \"site\": {\n \"name\": \"do l\",\n \"slug\": \"p p \",\n \"id\": -61654284,\n \"url\": \"https://PcsasYiyEf.rspcmFBMkhsPmtV.u2tq6rZRk1a0kvxx7WHj-4JbW1hu,ZE.+LKnVE15MdARVwqB--\"\n },\n \"id\": 75710630,\n \"url\": \"http://iVhcpoCVcpefpoOVhnyE.wtbA9OqREtlwS.B.a6eH62awjy1fIu5Q0zrp\",\n \"port_speed\": 1413621431,\n \"upstream_speed\": 477449713,\n \"xconnect_id\": \"mag\",\n \"pp_info\": \"ni\",\n \"description\": \"exe\",\n \"cable\": {\n \"id\": 11447114,\n \"url\": \"https://cVxYKfiWJ.sgrxKcMbhWKiMsOC-VwoRPftQxgZnDa93MPOu\",\n \"label\": \"do\"\n },\n \"cable_peer\": {},\n \"cable_peer_type\": \"enim ipsum Duis qui\",\n \"connected_endpoint\": {},\n \"connected_endpoint_type\": \"ea reprehenderit cupidatat\",\n \"connected_endpoint_reachable\": true\n },\n {\n \"circuit\": {\n \"cid\": \"ut e\",\n \"id\": -89750051,\n \"url\": \"https://Nwk.rhkZyCSPaGQ4Hx.84dxI6uBSLMemCFu+\"\n },\n \"term_side\": \"A\",\n \"site\": {\n \"name\": \"cons\",\n \"slug\": \"LlCl\",\n \"id\": -1277238,\n \"url\": \"http://dRnHEqv.rzVVPCZOD0TGDyDERagxdHHAl\"\n },\n \"id\": -45715089,\n \"url\": \"http://zfUnKnJpXCPfXTSSR.kqpbKqhlQ8LM7ewxbWGPbfbZ3DuEvzjY3+4UJxZ6Yv0Ex8-fcrH+yW5LXR.jE-Wc-E+f,\",\n \"port_speed\": 1745502137,\n \"upstream_speed\": 1911733464,\n \"xconnect_id\": \"pr\",\n \"pp_info\": \"su\",\n \"description\": \"\",\n \"cable\": {\n \"id\": 52540309,\n \"url\": \"https://sLPhsWakX.kiyoiyUWsjrLFnzclfZUlNVm,IIZcrWR57tgxWlMicWn\",\n \"label\": \"iru\"\n },\n \"cable_peer\": {},\n \"cable_peer_type\": \"exercitation sint\",\n \"connected_endpoint\": {},\n \"connected_endpoint_type\": \"incididunt magna velit commodo\",\n \"connected_endpoint_reachable\": true\n }\n ],\n \"next\": \"https://bvpwTOdXAxDFMWsySnrjoY.poukmpSJJ17wpGU16GXfulwOcSbkxS,e,hF,cBJAW.CuruVw6\",\n \"previous\": \"https://iVpSqUQrNxwzqUvFppSjCcNvLClfV.hcdU-lqJILmAq7PkYPwTZeWM-1hDRDrIfBH2vcYEdmPNwmZO3icZ0\"\n}"
+ }
+ ]
+ },
{
- "name": "Create New IP Address",
+ "name": "circuits circuit-terminations create",
"request": {
"method": "POST",
- "header": [],
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
"body": {
"mode": "raw",
- "raw": "{\r\n \"status\": 3,\r\n \"description\": \"TEST API CALL DELETE ME\",\r\n \"tenant\": \"2\",\r\n \"address\": \"1.2.3.4/5\"\r\n}",
- "options": {
- "raw": {
- "language": "json"
- }
- }
+ "raw": "{\n \"circuit\": \"\",\n \"term_side\": \"\",\n \"site\": \"\",\n \"port_speed\": \"\",\n \"upstream_speed\": \"\",\n \"xconnect_id\": \"\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -96538495,\n \"url\": \"https://nMgdjcpGMckqWcSWnTPrtTaEWA.iodubZTPAOrxX\",\n \"label\": \"ven\"\n }\n}"
},
"url": {
- "raw": "{{SCHEME}}://{{HOSTNAME}}:{{PORT}}/api/ipam/ip-addresses/",
- "protocol": "{{SCHEME}}",
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/",
"host": [
- "{{HOSTNAME}}"
+ "{{baseUrl}}"
],
- "port": "{{PORT}}",
"path": [
- "api",
- "ipam",
- "ip-addresses",
+ "circuits",
+ "circuit-terminations",
""
]
}
},
- "response": []
- },
- {
- "name": "Get Available IP",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{SCHEME}}://{{HOSTNAME}}:{{PORT}}/api/ipam/prefixes/PREFIX_DATABASE_ID/available-ips",
- "protocol": "{{SCHEME}}",
- "host": [
- "{{HOSTNAME}}"
- ],
- "port": "{{PORT}}",
- "path": [
- "api",
- "ipam",
- "prefixes",
- "PREFIX_DATABASE_ID",
- "available-ips"
- ]
- }
- },
- "response": []
- },
- {
- "name": "Get IP Addresses By Query",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{SCHEME}}://{{HOSTNAME}}:{{PORT}}/api/ipam/ip-addresses/?q=1.2.3.4",
- "protocol": "{{SCHEME}}",
- "host": [
- "{{HOSTNAME}}"
- ],
- "port": "{{PORT}}",
- "path": [
- "api",
- "ipam",
- "ip-addresses",
- ""
- ],
- "query": [
- {
- "key": "q",
- "value": "1.2.3.4"
- },
- {
- "key": "id",
- "value": null,
- "disabled": true
- },
- {
- "key": "dns_name",
- "value": null,
- "disabled": true
- },
- {
- "key": "tenant_group_id",
- "value": null,
- "disabled": true
- },
- {
- "key": "tenant_group",
- "value": null,
- "disabled": true
- },
- {
- "key": "tenant_id",
- "value": null,
- "disabled": true
- },
- {
- "key": "tenant",
- "value": null,
- "disabled": true
- },
- {
- "key": "family",
- "value": null,
- "disabled": true
- },
- {
- "key": "parent",
- "value": null,
- "disabled": true
- },
- {
- "key": "address",
- "value": null,
- "disabled": true
- },
- {
- "key": "mask_length",
- "value": null,
- "disabled": true
- },
- {
- "key": "virtual_machine",
- "value": null,
- "disabled": true
- },
- {
- "key": "virtual_machine_id",
- "value": null,
- "disabled": true
- },
- {
- "key": "status",
- "value": null,
- "disabled": true
- },
- {
- "key": "limit",
- "value": null,
- "disabled": true
- },
- {
- "key": "offset",
- "value": null,
- "disabled": true
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "POST",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ""
+ ]
+ }
+ },
+ "status": "Created",
+ "code": 201,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
}
- ]
- }
- },
- "response": []
- },
- {
- "name": "Get IP Address By ID",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{SCHEME}}://{{HOSTNAME}}:{{PORT}}/api/ipam/ip-addresses/DATABASEID",
- "protocol": "{{SCHEME}}",
- "host": [
- "{{HOSTNAME}}"
],
- "port": "{{PORT}}",
+ "cookie": [],
+ "body": "{\n \"circuit\": {\n \"cid\": \"ulla\",\n \"id\": 4429167,\n \"url\": \"https://MPnQjLpnFyMiNBBQmnnHSza.lalqc.xViX,CaOfKAn8P8vFGQ6Btx.T3,\"\n },\n \"term_side\": \"A\",\n \"site\": {\n \"name\": \"sito\",\n \"slug\": \"8QJE\",\n \"id\": 74938480,\n \"url\": \"https://GhEycZQINxUKKoYVTbzjg.rflyV08-1hPLgFyWNy1jOe.Lm9JqqmublYfU217RPPyDdPwU\"\n },\n \"id\": 30756269,\n \"url\": \"https://WJRceEyoYEVrOUH.arqWonXSno5UiTSCZI90Z+YvYR,h\",\n \"port_speed\": 1021635631,\n \"upstream_speed\": 1373185864,\n \"xconnect_id\": \"Lo\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -21469561,\n \"url\": \"http://GbnZMBTZQKyeSQVIyJHrxW.pdlOIthbt,hDUbgi67igo0IR.AjMUgeM7WRB5nJu6em.syK.U-i\",\n \"label\": \"ut \"\n },\n \"cable_peer\": {},\n \"cable_peer_type\": \"sed adipisicing\",\n \"connected_endpoint\": {},\n \"connected_endpoint_type\": \"est in adipisicing Excepteur aliqua\",\n \"connected_endpoint_reachable\": false\n}"
+ }
+ ]
+ },
+ {
+ "name": "circuits circuit-terminations bulk update",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"circuit\": \"\",\n \"term_side\": \"\",\n \"site\": \"\",\n \"port_speed\": \"\",\n \"upstream_speed\": \"\",\n \"xconnect_id\": \"\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -96538495,\n \"url\": \"https://nMgdjcpGMckqWcSWnTPrtTaEWA.iodubZTPAOrxX\",\n \"label\": \"ven\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/",
+ "host": [
+ "{{baseUrl}}"
+ ],
"path": [
- "api",
- "ipam",
- "ip-addresses",
- "DATABASEID"
+ "circuits",
+ "circuit-terminations",
+ ""
]
}
},
- "response": []
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ""
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"circuit\": {\n \"cid\": \"ulla\",\n \"id\": 4429167,\n \"url\": \"https://MPnQjLpnFyMiNBBQmnnHSza.lalqc.xViX,CaOfKAn8P8vFGQ6Btx.T3,\"\n },\n \"term_side\": \"A\",\n \"site\": {\n \"name\": \"sito\",\n \"slug\": \"8QJE\",\n \"id\": 74938480,\n \"url\": \"https://GhEycZQINxUKKoYVTbzjg.rflyV08-1hPLgFyWNy1jOe.Lm9JqqmublYfU217RPPyDdPwU\"\n },\n \"id\": 30756269,\n \"url\": \"https://WJRceEyoYEVrOUH.arqWonXSno5UiTSCZI90Z+YvYR,h\",\n \"port_speed\": 1021635631,\n \"upstream_speed\": 1373185864,\n \"xconnect_id\": \"Lo\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -21469561,\n \"url\": \"http://GbnZMBTZQKyeSQVIyJHrxW.pdlOIthbt,hDUbgi67igo0IR.AjMUgeM7WRB5nJu6em.syK.U-i\",\n \"label\": \"ut \"\n },\n \"cable_peer\": {},\n \"cable_peer_type\": \"sed adipisicing\",\n \"connected_endpoint\": {},\n \"connected_endpoint_type\": \"est in adipisicing Excepteur aliqua\",\n \"connected_endpoint_reachable\": false\n}"
+ }
+ ]
},
{
- "name": "Remove IP",
+ "name": "circuits circuit-terminations bulk partial update",
+ "request": {
+ "method": "PATCH",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"circuit\": \"\",\n \"term_side\": \"\",\n \"site\": \"\",\n \"port_speed\": \"\",\n \"upstream_speed\": \"\",\n \"xconnect_id\": \"\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -96538495,\n \"url\": \"https://nMgdjcpGMckqWcSWnTPrtTaEWA.iodubZTPAOrxX\",\n \"label\": \"ven\"\n }\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ""
+ ]
+ }
+ },
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "PATCH",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ""
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"circuit\": {\n \"cid\": \"ulla\",\n \"id\": 4429167,\n \"url\": \"https://MPnQjLpnFyMiNBBQmnnHSza.lalqc.xViX,CaOfKAn8P8vFGQ6Btx.T3,\"\n },\n \"term_side\": \"A\",\n \"site\": {\n \"name\": \"sito\",\n \"slug\": \"8QJE\",\n \"id\": 74938480,\n \"url\": \"https://GhEycZQINxUKKoYVTbzjg.rflyV08-1hPLgFyWNy1jOe.Lm9JqqmublYfU217RPPyDdPwU\"\n },\n \"id\": 30756269,\n \"url\": \"https://WJRceEyoYEVrOUH.arqWonXSno5UiTSCZI90Z+YvYR,h\",\n \"port_speed\": 1021635631,\n \"upstream_speed\": 1373185864,\n \"xconnect_id\": \"Lo\",\n \"pp_info\": \"\",\n \"description\": \"\",\n \"cable\": {\n \"id\": -21469561,\n \"url\": \"http://GbnZMBTZQKyeSQVIyJHrxW.pdlOIthbt,hDUbgi67igo0IR.AjMUgeM7WRB5nJu6em.syK.U-i\",\n \"label\": \"ut \"\n },\n \"cable_peer\": {},\n \"cable_peer_type\": \"sed adipisicing\",\n \"connected_endpoint\": {},\n \"connected_endpoint_type\": \"est in adipisicing Excepteur aliqua\",\n \"connected_endpoint_reachable\": false\n}"
+ }
+ ]
+ },
+ {
+ "name": "circuits circuit-terminations bulk delete",
"request": {
"method": "DELETE",
"header": [],
- "body": {
- "mode": "formdata",
- "formdata": []
- },
"url": {
- "raw": "{{SCHEME}}://{{HOSTNAME}}:{{PORT}}/api/ipam/ip-addresses/4110/",
- "protocol": "{{SCHEME}}",
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/",
"host": [
- "{{HOSTNAME}}"
+ "{{baseUrl}}"
],
- "port": "{{PORT}}",
"path": [
- "api",
- "ipam",
- "ip-addresses",
- "4110",
+ "circuits",
+ "circuit-terminations",
""
]
}
},
- "response": []
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-terminations/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-terminations",
+ ""
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
}
]
},
{
- "name": "VLAN",
+ "name": "circuit-types",
"item": [
{
- "name": "New-VLAN",
+ "name": "{id}",
+ "item": [
+ {
+ "name": "circuits circuit-types read",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-types/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-types",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id",
+ "value": "",
+ "description": "(Required) A unique integer value identifying this circuit type."
+ }
+ ]
+ }
+ },
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "GET",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-types/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-types",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"name\": \"\",\n \"slug\": \"\",\n \"id\": 5644111,\n \"url\": \"https://cBMhqZRo.vizlNcQAGxPvro6Ws,POUpPubJ3Di6Xb1LO\",\n \"description\": \"\",\n \"circuit_count\": -90766301\n}"
+ }
+ ]
+ },
+ {
+ "name": "circuits circuit-types update",
+ "request": {
+ "method": "PUT",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"name\": \"\",\n \"slug\": \"\",\n \"description\": \"\"\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-types/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-types",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id",
+ "value": "",
+ "description": "(Required) A unique integer value identifying this circuit type."
+ }
+ ]
+ }
+ },
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "PUT",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-types/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-types",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"name\": \"\",\n \"slug\": \"\",\n \"id\": 5644111,\n \"url\": \"https://cBMhqZRo.vizlNcQAGxPvro6Ws,POUpPubJ3Di6Xb1LO\",\n \"description\": \"\",\n \"circuit_count\": -90766301\n}"
+ }
+ ]
+ },
+ {
+ "name": "circuits circuit-types partial update",
+ "request": {
+ "method": "PATCH",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"name\": \"\",\n \"slug\": \"\",\n \"description\": \"\"\n}"
+ },
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-types/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-types",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id",
+ "value": "",
+ "description": "(Required) A unique integer value identifying this circuit type."
+ }
+ ]
+ }
+ },
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "PATCH",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-types/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-types",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id"
+ }
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ }
+ ],
+ "cookie": [],
+ "body": "{\n \"name\": \"\",\n \"slug\": \"\",\n \"id\": 5644111,\n \"url\": \"https://cBMhqZRo.vizlNcQAGxPvro6Ws,POUpPubJ3Di6Xb1LO\",\n \"description\": \"\",\n \"circuit_count\": -90766301\n}"
+ }
+ ]
+ },
+ {
+ "name": "circuits circuit-types delete",
+ "request": {
+ "method": "DELETE",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-types/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-types",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id",
+ "value": "",
+ "description": "(Required) A unique integer value identifying this circuit type."
+ }
+ ]
+ }
+ },
+ "response": [
+ {
+ "name": "Untitled Response",
+ "originalRequest": {
+ "method": "DELETE",
+ "header": [
+ {
+ "description": "Added as a part of security scheme: apikey",
+ "key": "Authorization",
+ "value": ""
+ }
+ ],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-types/:id/",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-types",
+ ":id",
+ ""
+ ],
+ "variable": [
+ {
+ "key": "id"
+ }
+ ]
+ }
+ },
+ "status": "No Content",
+ "code": 204,
+ "_postman_previewlanguage": "text",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "text/plain"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "circuits circuit-types list",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "url": {
+ "raw": "{{baseUrl}}/circuits/circuit-types/?id=&name=&slug=&q=&id__n=&id__lte=&id__lt=&id__gte=&id__gt=&name__n=&name__ic=&name__nic=&name__iew=&name__niew=&name__isw=&name__nisw=&name__ie=&name__nie=&slug__n=&slug__ic=&slug__nic=&slug__iew=&slug__niew=&slug__isw=&slug__nisw=&slug__ie=&slug__nie=&limit=&offset=",
+ "host": [
+ "{{baseUrl}}"
+ ],
+ "path": [
+ "circuits",
+ "circuit-types",
+ ""
+ ],
+ "query": [
+ {
+ "key": "id",
+ "value": ""
+ },
+ {
+ "key": "name",
+ "value": ""
+ },
+ {
+ "key": "slug",
+ "value": ""
+ },
+ {
+ "key": "q",
+ "value": ""
+ },
+ {
+ "key": "id__n",
+ "value": ""
+ },
+ {
+ "key": "id__lte",
+ "value": ""
+ },
+ {
+ "key": "id__lt",
+ "value": ""
+ },
+ {
+ "key": "id__gte",
+ "value": "