Commit graph

71 commits

Author SHA1 Message Date
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
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
Alexis La Goutte
ddf1d22e18
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
2021-07-23 16:03:07 -04:00
Alexis La Goutte
01335bd225
Fix Typo and Enhance AvailableIP Example (#18)
* AvailableIP(IPAM/Address): Fix typo

* AvailableIP(IAPM/Address): Enhance Example

* NetboxPS(.psm1): Fix typo (paramters => parameters
2021-07-23 10:24:27 -04:00
Ben Claussen
68161a78b0 Remove API Definition caching and replace with Netbox version check 2021-07-22 11:52:57 -04:00
Ben Claussen
17c4d9d779 Add Get-NetboxVersion function 2021-07-22 11:52:08 -04:00
Ben Claussen
ea9f6c41bc Trim whitespaces 2021-07-22 11:39:39 -04:00
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
218114d8fe Add Get/Set timeout functions 2021-07-22 10:49:19 -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
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
5921bfee57 Update help 2021-03-31 10:23:45 -04:00
Ben Claussen
cd6dad5937 Add logic and functions to connect via HTTP instead of HTTPS 2021-03-31 10:06:41 -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
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
d6b4e69f69 File restructuring 2020-04-09 09:57:20 -04:00
Ben Claussen
9f543b8f2d Restructure files 2020-03-23 12:18:01 -04:00
Ben Claussen
bb9ff77e5c Start tenancy functions 2018-10-18 12:55:43 -04:00
Ben Claussen
113eb3585d Change IF to SWITCH for CmdletParameterName for ID, Query, Custom fields 2018-10-18 12:55:03 -04:00
Ben Claussen
839fe3e1e5 Move support functions to separate files for PSS Export functionality 2018-10-18 12:54:15 -04:00
Ben Claussen
ea05aef908 Correct Primary_IPx parameter names 2018-05-29 13:13:53 -04:00