rmbolger / Posh-IBWAPI

PowerShell module for interacting with the Infoblox WAPI (REST API).
MIT License
54 stars 8 forks source link

Add the ability to retrieve all fields associated with an object #18

Closed rmbolger closed 7 years ago

rmbolger commented 7 years ago

When exploring the WAPI from the command line, it has always bugged me that there was no easy way to return all associated fields for a given object without explicitly specifying each one. But with schema queries being a thing now, it should be possible to dynamically generate a list of readable fields for a given object type and use that list to return everything during a query.

I'm thinking an optional parameter in Get-IBObject like -AllFields. It would add a round trip to the WAPI endpoint, but that should be ok. It obviously won't work for NIOS versions that don't support schema queries, so you'd throw some sort of Not Supported error for those.

rmbolger commented 7 years ago

Completed with PR #19.