Forum Discussion
Dec 20, 2016
iControl REST Select from subcollections
Hi!
I'm making a REST query against /mgmt/tm/ltm/pool?expandSubcollections=true&$select=membersReference and would like to be able to go further into the data and select ie. only session, state...
Michael_Jenkins
Cirrostratus
Dec 22, 2016tl;dr -
/mgmt/tm/ltm/pool?expandSubcollections=true&$select=fullPath,membersReference/items/session,membersReference/items/state,membersReference/items/fullPath
Since iControlRest is using odata, you can use the same (at least the parts that are implemented) format as other odata implementations. So, to get a nested item, you would delimiter each level with a
/ (forward slash), thus getting something like membersReference/items/state.
There is the
$expand option, but I don't know if it's implemented here (at least not in 11.5.3 from my experience)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
