Add OPTIONS method validation

This commit is contained in:
Ben Claussen 2020-05-01 09:49:51 -04:00
parent dbee6fbf97
commit c9077abd51

View file

@ -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