mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-12 17:32:29 +00:00
Revert "Start work on Front and Rear ports"
This reverts commit 257709fe2af5af5fbe4496b2d5b68481d80bf101.
This commit is contained in:
parent
15a2e98662
commit
4f6625af2d
3 changed files with 0 additions and 118 deletions
|
|
@ -1,37 +0,0 @@
|
|||
|
||||
function Get-NetboxDCIMFrontPort
|
||||
{
|
||||
[CmdletBinding()]
|
||||
[OutputType([pscustomobject])]
|
||||
param
|
||||
(
|
||||
[uint16]$Limit,
|
||||
|
||||
[uint16]$Offset,
|
||||
|
||||
[Parameter(ValueFromPipelineByPropertyName = $true)]
|
||||
[uint16]$Id,
|
||||
|
||||
[uint16]$Name,
|
||||
|
||||
[string]$Device,
|
||||
|
||||
[uint16]$Device_Id,
|
||||
|
||||
[uint16]$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
|
||||
}
|
||||
}
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
|
||||
function Get-NetboxDCIMRearPort
|
||||
{
|
||||
[CmdletBinding()]
|
||||
[OutputType([pscustomobject])]
|
||||
param
|
||||
(
|
||||
[uint16]$Limit,
|
||||
|
||||
[uint16]$Offset,
|
||||
|
||||
[Parameter(ValueFromPipelineByPropertyName = $true)]
|
||||
[uint16]$Id,
|
||||
|
||||
[uint16]$Name,
|
||||
|
||||
[string]$Device,
|
||||
|
||||
[uint16]$Device_Id,
|
||||
|
||||
[uint16]$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
|
||||
}
|
||||
}
|
||||
|
|
@ -953,50 +953,6 @@
|
|||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Get Device Rear Ports",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "{{SCHEME}}://{{HOSTNAME}}:{{PORT}}/api/dcim/rear-ports/",
|
||||
"protocol": "{{SCHEME}}",
|
||||
"host": [
|
||||
"{{HOSTNAME}}"
|
||||
],
|
||||
"port": "{{PORT}}",
|
||||
"path": [
|
||||
"api",
|
||||
"dcim",
|
||||
"rear-ports",
|
||||
""
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Get Device Front Ports",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "{{SCHEME}}://{{HOSTNAME}}:{{PORT}}/api/dcim/front-ports/",
|
||||
"protocol": "{{SCHEME}}",
|
||||
"host": [
|
||||
"{{HOSTNAME}}"
|
||||
],
|
||||
"port": "{{PORT}}",
|
||||
"path": [
|
||||
"api",
|
||||
"dcim",
|
||||
"rear-ports",
|
||||
""
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Add Interface",
|
||||
"request": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue