Commit graph

92 commits

Author SHA1 Message Date
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
739f5e98e2
Version 1.4 (#14)
* 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

Co-authored-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Co-authored-by: Ben Claussen <claussen@neonet.org>
2021-07-22 12:00:12 -04:00
Ben Claussen
1f89363cbd
v1.3.3
v1.3.3
2021-03-31 10:37:34 -04:00
Ben Claussen
7436f53f54 Update version to 1.3.3 2021-03-31 10:24:08 -04:00
Ben Claussen
5921bfee57 Update help 2021-03-31 10:23:45 -04:00
Ben Claussen
214d5615e7
Merge pull request #7 from benclaussen/connect_http
Add logic and functions to connect via HTTP instead of HTTPS
2021-03-31 10:09:22 -04:00
Ben Claussen
cd6dad5937 Add logic and functions to connect via HTTP instead of HTTPS 2021-03-31 10:06:41 -04:00
Ben Claussen
ef03cc5467 Merge branch 'dev' 2021-03-30 11:32:22 -04:00
Ben Claussen
13b00d4fc9
v1.3.2 (#6)
* Add `OPTIONS` method validation

* Remove parameter validation as workaround for CHOICES API endpoint until further testing

* Add help block for Get-NetboxTenant

* SkipConnectedCheck for Get-NetboxAPIDefinition

* Correct help block for New-NetboxIPAMAddress

* Add parameter position 0 for 'Address' in Get-NetboxIPAMAddress

* Allow pipeline input for Address parameter in New-NetboxIPAMAddress

* Update parameter types

* Add parameter sets and logic for ID/Query searches

* Add Get-NetboxDCIMSite

* Update psproj

* Update deploy.ps1

* Move Get-NetboxCircuit

* Add Circuit cmdlets
- New-NetboxCircuit
- Get-NetboxCircuitProvider
- Get-NetboxCircuitTermination
- Get-NetboxCircuitType

* Update deploy script output path

* Update Set-NetboxIPAMAddress
- Replace Interface parameter with Assigned_Object_Type and Assigned_Object_Id
- Add validation logic for Assigned_Object_ parameters
- Change Status parameter to string

* Add Get-ModelDefinition function

* Update psproj

* Update deploy.ps1 variables

* Update exported files

* Remove references to `_choices` API calls

* Add Postman collection

* Add Postman collection

* Update deploy.ps1

* Add Set-NetboxIPAMPrefix function

* Increment version to 1.3.0

* Increment version to 1.3.2

Co-authored-by: Ben Claussen <claussen@neonet.org>
2021-03-30 11:02:26 -04:00
Ben Claussen
5a23e75512 Increment version to 1.3.2 2021-03-30 11:00:53 -04:00
Ben Claussen
5fc0a8e9fa Merge branch 'master' into dev
# Conflicts:
#	Functions/IPAM/Address/Get-NetboxIPAMAddress.ps1
#	Functions/IPAM/Address/New-NetboxIPAMAddress.ps1
#	Functions/IPAM/Address/Remove-NetboxIPAMAddress.ps1
#	Functions/IPAM/Address/Set-NetboxIPAMAddress.ps1
2021-03-30 10:58:08 -04:00
Alexis La Goutte
83944e0a45
Update readme (#5)
* README(.md): module is now on NetboxPS folder

* README(.md): enhance connect example

* README(.md): Update url of netbox github
2021-03-30 10:34:51 -04:00
Alexis La Goutte
2595c58eaa
(WIP) Enhance IPAM Address (#4)
* Address(IPAM): Fix trailing whitespace (with Visual Code Formater)

* Address(IPAM): Fix PSSA about Command accepts pipeline input but not defined a process block

* Address(IPAM): Add dns_name parameter to Add and Set

* Address(IPAM): all integer are [int] (not uint16)
2021-03-30 10:34:25 -04:00
Ben Claussen
cfb53cf933
Version 1.3.0 (#3)
* Add `OPTIONS` method validation

* Remove parameter validation as workaround for CHOICES API endpoint until further testing

* Add help block for Get-NetboxTenant

* SkipConnectedCheck for Get-NetboxAPIDefinition

* Correct help block for New-NetboxIPAMAddress

* Add parameter position 0 for 'Address' in Get-NetboxIPAMAddress

* Allow pipeline input for Address parameter in New-NetboxIPAMAddress

* Update parameter types

* Add parameter sets and logic for ID/Query searches

* Add Get-NetboxDCIMSite

* Update psproj

* Update deploy.ps1

* Move Get-NetboxCircuit

* Add Circuit cmdlets
- New-NetboxCircuit
- Get-NetboxCircuitProvider
- Get-NetboxCircuitTermination
- Get-NetboxCircuitType

* Update deploy script output path

* Update Set-NetboxIPAMAddress
- Replace Interface parameter with Assigned_Object_Type and Assigned_Object_Id
- Add validation logic for Assigned_Object_ parameters
- Change Status parameter to string

* Add Get-ModelDefinition function

* Update psproj

* Update deploy.ps1 variables

* Update exported files

* Remove references to `_choices` API calls

* Add Postman collection

* Add Postman collection

* Update deploy.ps1

* Add Set-NetboxIPAMPrefix function

* Increment version to 1.3.0

Co-authored-by: Ben Claussen <claussen@neonet.org>
2021-03-25 16:52:08 -04:00
Ben Claussen
6d00855644 Increment version to 1.3.0 2021-03-25 16:45:40 -04:00
Ben Claussen
ad4c80e4f6 Add Set-NetboxIPAMPrefix function 2021-03-23 14:39:46 -04:00
Ben Claussen
e11dfe726b Update deploy.ps1 2021-03-23 14:32:20 -04:00
Ben Claussen
af5315d43a Fix logic for bound parameters 2021-02-16 15:11:16 -05:00
Ben Claussen
d087ff8eed Add Postman collection 2021-02-12 16:01:23 -05:00
Ben Claussen
3a4f8d9152 Add Postman collection 2021-02-12 15:35:15 -05:00
Ben Claussen
acbbb284d3 Remove references to _choices API calls 2020-12-08 12:11:44 -05:00
Ben Claussen
f29701ad2f Update exported files 2020-12-08 12:00:26 -05:00
Ben Claussen
7badb7cda8 Update deploy.ps1 variables 2020-12-08 11:45:20 -05:00
Ben Claussen
55510e5f03 Set theme jekyll-theme-slate 2020-12-08 09:29:51 -05:00
Ben Claussen
3b82f91fc0 Update psproj 2020-11-13 12:20:35 -05:00
Ben Claussen
ae9371e883 Add Get-ModelDefinition function 2020-11-13 12:20:15 -05:00
Ben Claussen
cc52fdc844 Update Set-NetboxIPAMAddress
- Replace Interface parameter with Assigned_Object_Type and Assigned_Object_Id
- Add validation logic for Assigned_Object_ parameters
- Change Status parameter to string
2020-11-13 12:19:46 -05:00
Ben Claussen
b4803a5697 Update deploy script output path 2020-11-13 12:18:23 -05:00
Ben Claussen
c844322e48 Add Circuit cmdlets
- New-NetboxCircuit
- Get-NetboxCircuitProvider
- Get-NetboxCircuitTermination
- Get-NetboxCircuitType
2020-11-13 12:17:49 -05:00
Ben Claussen
6636fe74d8 Move Get-NetboxCircuit 2020-11-13 12:16:56 -05:00
Ben Claussen
de9b616093 Update deploy.ps1 2020-10-05 10:44:33 -04:00
Ben Claussen
43b628a736 Update psproj 2020-10-05 10:44:23 -04:00
Ben Claussen
a6b3d31d44 Add Get-NetboxDCIMSite 2020-10-05 10:43:35 -04:00
Ben Claussen
18852aa990 Add parameter sets and logic for ID/Query searches 2020-10-05 10:43:22 -04:00
Ben Claussen
b72684709a Update parameter types 2020-10-05 10:42:29 -04:00
Ben Claussen
9649237394 Allow pipeline input for Address parameter in New-NetboxIPAMAddress 2020-10-02 15:49:46 -04:00
Ben Claussen
a905a8d598 Add parameter position 0 for 'Address' in Get-NetboxIPAMAddress 2020-10-02 10:38:49 -04:00
Ben Claussen
ee7ba72450 Correct help block for New-NetboxIPAMAddress 2020-10-02 10:38:22 -04:00
Ben Claussen
b36632cb9a SkipConnectedCheck for Get-NetboxAPIDefinition 2020-10-02 10:37:52 -04:00
Ben Claussen
a98495e5f4 Add help block for Get-NetboxTenant 2020-10-02 10:37:27 -04:00
Ben Claussen
657a8405bc Remove parameter validation as workaround for CHOICES API endpoint until further testing 2020-05-04 12:39:00 -04:00
Ben Claussen
c9077abd51 Add OPTIONS method validation 2020-05-01 09:49:51 -04:00
Ben Claussen
5a3487b6d4
Merge pull request #1 from benclaussen/dev 2020-04-09 16:35:07 -04:00
Ben Claussen
dbee6fbf97 Update version 2020-04-09 16:33:10 -04:00
Ben Claussen
bf8cbb41cc Correct New-NetboxIPAMVLAN function copied from Net-NetboxIPAMAddress 2020-04-09 16:19:36 -04:00
Ben Claussen
909cd73327 Add prefix parameter 2020-04-09 09:58:52 -04:00
Ben Claussen
4fdc9bb833 Add address parameter 2020-04-09 09:58:36 -04:00
Ben Claussen
0b095e7280 Add deploy.ps1 for PSS deploy workaround 2020-04-09 09:57:59 -04:00
Ben Claussen
d6b4e69f69 File restructuring 2020-04-09 09:57:20 -04:00
Ben Claussen
9f543b8f2d Restructure files 2020-03-23 12:18:01 -04:00