Commit graph

208 commits

Author SHA1 Message Date
Ben Claussen
22607fde48 Add TimeoutSeconds parameter and logic to Connect-NetboxAPI
- Updated `InvokeNetboxRequest` to use `NetboxConfig.Timeout`
- Updated `Get-NetboxAPIDefinition` to use `NetboxConfig.Timeout`
2021-07-22 11:06:13 -04:00
Ben Claussen
802ab317f6 Merge branch 'dev' of github.com:benclaussen/NetboxPS into dev 2021-07-22 10:49:39 -04:00
Ben Claussen
218114d8fe Add Get/Set timeout functions 2021-07-22 10:49:19 -04:00
Ben Claussen
c48bfe78ad Add Get/Set timeout functions 2021-07-22 10:48:41 -04:00
Ben Claussen
06d758d7b3 Correct brace formatting 2021-07-22 10:28:22 -04:00
Ben Claussen
989c5eaac2 Correct typo 2021-07-22 10:27:58 -04:00
Ben Claussen
6122fd2301 Update psproj 2021-07-22 10:22:19 -04:00
Ben Claussen
1f66348205
Merge pull request #12 from alagoutte/enhance-connect
Enhance Connection (Support -SkipCertificateCheck, Cipher options)
Indentation fixes

Fixes #8
2021-07-22 10:16:00 -04:00
Alexis La Goutte
fcbb25c088
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...)
2021-07-22 09:23:15 -04:00
Alexis La Goutte
4800cc6564 Connect: Add SkipCertificateCheck parameter (for PS5 and Core)
Also enable TLS 1.1 and 1.2 for PS5
2021-07-21 23:08:11 +02:00
Alexis La Goutte
1a2484db2c InvokeNetboxRequest: Add to Splat NetboxInvokeParams 2021-07-21 23:06:17 +02:00
Alexis La Goutte
254a2798ac Add Get/Set netboxInvokeParms for Get and Set Invoke Params (array)
Like -SkipCertificate, Timeout...
2021-07-21 23:06:17 +02:00
Alexis La Goutte
c8233ab572 Add Set-NetboxUnstrustedSSL for disable SSL chain test (for PS 5.0
From PowerAruba/FortiPwoer Module :)
2021-07-21 23:06:17 +02:00
Alexis La Goutte
c8c6d48ee4 Add Set-netboxCipherSSL for enable TLS1.1 and TLS1.2 (for PS 5.0)
From PowerAruba/FortiPower Module :)
2021-07-21 23:06:17 +02:00
Alexis La Goutte
2bf4ed6f6f InvokeNetboxRequest(Helpers): Fix indent (using Visual Code Formatter) 2021-07-21 23:06:17 +02:00
Alexis La Goutte
4ad0562466 Support(Setup): Fix indent (using Visual Code Formatter) 2021-07-21 23:06:17 +02:00
Alexis La Goutte
5b1ee45769 Setup(Functions): Fix indent (using Visual Code Formatter) 2021-07-21 23:06:17 +02:00
Alexis La Goutte
b164ffe0b4 Connect(Setup): Fix indent (using Visual code Formatter) 2021-07-21 23:06:17 +02: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