BatmanAMA / powerbox

Netbox powershell module
MIT License
48 stars 18 forks source link

Module does not support Netbox Instances with "Always logon" set #11

Closed RobinBeismann closed 5 years ago

RobinBeismann commented 6 years ago

The Invoke-nbApi.ps1 does not support netbox instances which require login even for reading data. This is related to line 108, which is checking "$HttpVerb -ne $get)".

Requests with "GET" HTTP Method won't get the Authorization Header attached and thus fail.

Is it possible to either include a further parameter for Connect-nbAPI or some other check?

Thanks!

BatmanAMA commented 6 years ago

Thanks for calling that out - I'll put that in the next patch which shouldn't be too far away.