mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
Add OPTIONS method validation
This commit is contained in:
parent
dbee6fbf97
commit
c9077abd51
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ function InvokeNetboxRequest {
|
||||||
[ValidateRange(0, 60)]
|
[ValidateRange(0, 60)]
|
||||||
[uint16]$Timeout = 5,
|
[uint16]$Timeout = 5,
|
||||||
|
|
||||||
[ValidateSet('GET', 'PATCH', 'PUT', 'POST', 'DELETE', IgnoreCase = $true)]
|
[ValidateSet('GET', 'PATCH', 'PUT', 'POST', 'DELETE', 'OPTIONS', IgnoreCase = $true)]
|
||||||
[string]$Method = 'GET',
|
[string]$Method = 'GET',
|
||||||
|
|
||||||
[switch]$Raw
|
[switch]$Raw
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue