Commit graph

103 commits

Author SHA1 Message Date
Ben Claussen
59a28faff5 Correct variable references in ShouldProcess 2023-11-09 12:04:05 -05:00
Ben Claussen
b441e02e2b Update New-NetboxContactAssignment Content_Type parameter values and validation 2023-11-09 12:03:21 -05:00
Ben Claussen
40c7aac059 Add Set-NetboxContactRole and Assignment functions 2023-11-09 12:01:50 -05:00
Ben Claussen
bf01b354bd Move Get-NetboxTag file 2023-11-09 11:20:31 -05:00
Ben Claussen
cceb8fe765 Update Get-NetboxAPIDefinition for new path
- Add $Format parameter for json or yaml
2023-11-09 11:07:43 -05:00
Ben Claussen
8326e3eb29 Update New-NetboxContactAssignment name 2023-11-09 11:06:35 -05:00
Ben Claussen
88647882cc Update version to 1.8.4 2023-11-07 10:20:23 -05:00
Ben Claussen
2233de974d Remove incorrect parameter 2023-11-07 10:19:03 -05:00
Ben Claussen
9e00636fbe Add Set-NetboxIPAMAddressRange 2023-11-07 10:16:45 -05:00
Ben Claussen
4897d6b71f Remove whitespaces 2023-11-07 09:57:42 -05:00
Ben Claussen
383ca2b002 Move limit/offset parameters to end of list 2023-11-07 09:38:19 -05:00
Ben Claussen
985f920900 Add IPAMAddressRange functions 2023-11-07 09:37:47 -05:00
Ben Claussen
a63478a8d6 [uint64] updates 2023-11-07 09:37:01 -05:00
Ben Claussen
080d655f8d More uint64 updates for #49 2023-07-28 16:17:23 -04:00
Ben Claussen
58fbbeb0cd Update uint16 to uint64 where applicable for #49 2023-07-28 15:38:16 -04:00
Ben Claussen
c2a3dc285b Update version 1.8.0 2023-03-17 16:00:24 -04:00
Ben Claussen
0049ba4985 Fix braces 2023-03-17 15:37:09 -04:00
James Beck
d441a1ddac
Device port support (#44)
* Fixing #41

* Correct for OTBS

* Start work on Front and Rear ports

* Revert "Start work on Front and Rear ports"

This reverts commit 257709fe2af5af5fbe4496b2d5b68481d80bf101.

* Fixing #41

* Add-NetboxDCIMRearPort function

* Revert "Revert "Start work on Front and Rear ports""

This reverts commit 4f6625af2d.

* Fix incorrect parameter variable types

* Parameter type adjustments

* Create function to get tag information

* Added Mark_Connected parameter

* Add Set-NetboxDCIMRearPort function

* Added Remove-NetboxDCIMRearPort function

* Added validate pattern for Color parameter

* Added Add-NetboxDCIMFrontPort function

* Fixed param list missing Force parameter

* Added Set-NetboxDCIMFrontPort function

* Added Remove-NetboxDCIMFrontPort function

* Init. functions for cables and cable terminations

* Reformatting using OTBS
Also working on defining tags by slug as an extra parameter, which appears
only in Add-NetboxDCIMRearPort currently

* Remove Tags_Slug parameter
In hindsight implementing would create extra work that could be hard to
maintain. Can be easily achieved outside of the function.
2023-03-17 15:27:55 -04:00
SheffSix
a4c1886a23
Fixing Interface Type parameter (#42)
* Fixing #41
2023-03-13 09:26:25 -04:00
Ben Claussen
e2a5157790 Remove whitespace 2023-03-10 14:37:49 -05:00
Ben Claussen
27209d6917 Remove references to ValidateDCIMChoice for #40 2023-03-10 14:37:35 -05:00
Ben Claussen
6965f61e6e Add Test-NetboxAPIConnected 2023-03-10 12:20:14 -05:00
Ben Claussen
ddf0a081b4 Remove whitespace 2023-02-24 15:14:04 -05:00
Ben Claussen
d09e20baee Fix conflicts for #38 2023-02-24 13:26:38 -05:00
Ben Claussen
3e0d817267 Fix order of operations for Connect-NetboxAPI
- Move successful connection boolean declaration before call to Get-NetboxContentType
2023-02-24 12:12:54 -05:00
Ben Claussen
5b7f0c658b Merge branch 'contact_functions' into dev 2023-02-24 11:42:39 -05:00
Ben Claussen
5333d10ce0 Merge commit '356bd71ac852c3ab0ecf945e5322a0d5157ed7a8' into dev 2023-02-24 11:41:53 -05:00
Ben Claussen
1fed2d27e6 Fix #28
- Set DefaultParameterSetName = Query
2023-02-24 10:28:16 -05:00
Ben Claussen
6654f798b0 Add Set-NetboxContact 2023-02-24 10:23:10 -05:00
Ben Claussen
35916a5ab7 Add New-NetboxContactAssignment 2023-02-16 09:47:00 -05:00
Ben Claussen
c47d787447 Add Get-NetboxContactAssignment 2023-02-16 09:46:27 -05:00
Ben Claussen
1ec38d3da2 Add call to Get-NetboxContentType in Connect-NetboxAPI and NetboxConfigVariable storage 2023-02-16 09:45:51 -05:00
Ben Claussen
4a0bd1d2d0 Add Get-NetboxContentType 2023-02-16 09:44:29 -05:00
Ben Claussen
b720c03851 Add New-NetboxTenant function 2023-02-15 15:49:49 -05:00
Ben Claussen
c0e18ec134 Move Get-NetboxTenant file to Tenancy/Tenants folder 2023-02-15 15:49:29 -05:00
Ben Claussen
c91d5fd32c Add New-NetboxContactRole function 2023-02-15 15:42:37 -05:00
Ben Claussen
458a4ae7c2 Add New-NetboxContact function 2023-02-15 15:42:09 -05:00
Ben Claussen
6dd82ee688 Add Get-NetboxContactRole function 2023-02-15 15:40:59 -05:00
Ben Claussen
d85f675469 Add Get-NetboxContact function 2023-02-15 15:39:36 -05:00
Claussen
c3621f237e Remove unnecessary file headers 2022-12-06 13:34:52 -05:00
Ben Claussen
cd0d6383e6 Update parent parameter type to string 2022-11-29 11:28:11 -05:00
Ben Claussen
7aedcf8338 Add Site parameter and validation logic 2022-11-28 15:45:19 -05:00
Alexis La Goutte
e29299022e Clear-NetboxCredential: Fix PSSA (trailing whitespace) 2022-06-29 07:59:13 +02:00
Ben Claussen
9dd6bc2b0e Remove old ThrowNetboxRESTError function 2021-09-10 12:44:48 -04:00
Ben Claussen
3e03e1e3ad Add Clear-NetboxCredential
- Grants ability to clear the stored credentials in `$Netboxconfig` variable
2021-09-10 12:43:34 -04:00
Alexis La Goutte
e8a5fdf15d
Enhance (DCIM) Site (#25)
* Site(DCIM): Fix Get without parameter

* Site(DCIM): Fix indent (use 4 spaces for header)

* Site(DCIM): Add New-NetboxDCIMSite for Add DCIM Site

* Site(DCIM): Add Remove-NetboxDCIMSite for Remove DCIM Site
2021-09-10 11:34:37 -04:00
Alexis La Goutte
e162c05900
Fix Publish on PSGallery (with PS Core) (#24)
* Connect: Add System.Web to Type (Assembly) for PS 5.0

* NetboxPS(.psd1): Remove Required Assemblies (System.web) requirement
2021-09-10 11:31:15 -04:00
Ben Claussen
26c7ccfdd0
v1.5.0 (#22)
* Connect(Setup): Fix indent (using Visual code Formatter)

* Setup(Functions): Fix indent (using Visual Code Formatter)

* Support(Setup): Fix indent (using Visual Code Formatter)

* InvokeNetboxRequest(Helpers): Fix indent (using Visual Code Formatter)

* Add Set-netboxCipherSSL for enable TLS1.1 and TLS1.2 (for PS 5.0)

From PowerAruba/FortiPower Module :)

* Add Set-NetboxUnstrustedSSL for disable SSL chain test (for PS 5.0

From PowerAruba/FortiPwoer Module :)

* Add Get/Set netboxInvokeParms for Get and Set Invoke Params (array)

Like -SkipCertificate, Timeout...

* InvokeNetboxRequest: Add to Splat NetboxInvokeParams

* Connect: Add SkipCertificateCheck parameter (for PS5 and Core)

Also enable TLS 1.1 and 1.2 for PS5

* PSSA: Add Github Actions for launch PSSA (PowerShell Script Analyzer) when launch PR (#11)

Add also vscode/PSScriptAnalyzerSettings.psd1 for Settings for PSSA (can be reuse also for vscode...)

* Update psproj

* Correct typo

* Correct brace formatting

* Add Get/Set timeout functions

* Add Get/Set timeout functions

* Add TimeoutSeconds parameter and logic to Connect-NetboxAPI
- Updated `InvokeNetboxRequest` to use `NetboxConfig.Timeout`
- Updated `Get-NetboxAPIDefinition` to use `NetboxConfig.Timeout`

* Trim whitespaces

* Add Get-NetboxVersion function

* Remove API Definition caching and replace with Netbox version check

* Increment version to 1.4

* Fix Typo and Enhance AvailableIP Example (#18)

* AvailableIP(IPAM/Address): Fix typo

* AvailableIP(IAPM/Address): Enhance Example

* NetboxPS(.psm1): Fix typo (paramters => parameters

* Update deployment files

* Add Assigned Object (Type and ID) to New IPAM Address (#19)

* IPAMAddress(New): Remove tab (use 4 spaces)

* IPAMAddress(New): Remove not longer needed code about value validation

* IPAMAddress(New): Add Assigned Object Type and ID

Fix #17

* IPAMAddress(New): add Parameter example

* IPAMAddress(New): Add Validate for Assigned Object Type

Can be only dcim.interface or virtualization.vminterface

* IPAMAddress(New): Fix Example (it is New and not Create Verb !)

* IPAMAddress(New): Remove -Force parameter, use -Confirm if you want a confirmation

it is the standard with ShouldProcess

* Fix PSSA Warning (#20)

* Fix trailing white space

using Invoke-ScriptAnalyzer -Fix -Path . -Recurse

* add settings.json for configure Visual Code (Formatter)

* PSSA: Fix Command accepts pipeline input but has not defined a process block

* PSSA: Fix PSUseDeclaredVarsMoreThanAssignments

The variable 'I_B' is assigned but never used
The variable 'I_A' is assigned but never used

* PSSA: Fix PSUseShouldProcessForStateChangingFunctions

Function New-/Set-... has verb that could change system state. Therefore, the function has to support 'ShouldProcess'

* Add release.(yml) Github Actions (#21)

It will push on PSGallery module when release a new version !

* Update deploy.ps1 docs

* Update readme

* Remove unused files

* Increment version to 1.5.0

Co-authored-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Co-authored-by: Ben Claussen <claussen@neonet.org>
2021-07-23 16:24:34 -04:00
Ben Claussen
c11680a20e Remove unused files 2021-07-23 16:16:13 -04:00
Alexis La Goutte
8167b0dbf0
Fix PSSA Warning (#20)
* Fix trailing white space

using Invoke-ScriptAnalyzer -Fix -Path . -Recurse

* add settings.json for configure Visual Code (Formatter)

* PSSA: Fix Command accepts pipeline input but has not defined a process block

* PSSA: Fix PSUseDeclaredVarsMoreThanAssignments

The variable 'I_B' is assigned but never used
The variable 'I_A' is assigned but never used

* PSSA: Fix PSUseShouldProcessForStateChangingFunctions

Function New-/Set-... has verb that could change system state. Therefore, the function has to support 'ShouldProcess'
2021-07-23 16:06:42 -04:00