BatmanAMA / powerbox

Netbox powershell module
MIT License
47 stars 18 forks source link

Just a question #32

Closed Twisted64 closed 4 years ago

Twisted64 commented 4 years ago

I'm sorry if this appears extremely silly, but I seem to be receiving flattened html when I run queries like Get-nbIPAddress (in fact any of the powerbox queries). It's certainly html from the correct response page on our netbox server.

Is that actually what I should be expecting? I've been using python and pynetbox, so perhaps I've been corrupted/spoilt, but I was hoping for some kind of PowerShell object...?

Thanks in advance, Oliver

Twisted64 commented 4 years ago

If that doesn't make any sense, here's a query after connecting.

> Get-nbIpAddress -Query @{ipaddress="10.40.19.9/30"} 

_lookups _CustomProperties Length
-------- ----------------- ------
{}       {}                 80829
Twisted64 commented 4 years ago

It's because I didn't include /api on the end of the APIurl! All better now.