Forum Discussion
Big-IQ REST API to query list of devices
Hi, I've searched for reference documents for Big-IQ REST APIs to figure out how one can get the list of all the devices in the inventory. I found several Big-IQ related pdf documents for REST reference and implementation. However, I haven't found anything related to Big-IQ Centralized Management component. Is there a reference document for this component (Big-IQ Centralized Management)?
Thanks.
4 Replies
- Seth_81884Historic F5 Account
Hello John,
For BIG-IQ version 4.6.0, give this a try:
curl -sk -u admin:admin GET https:///mgmt/shared/resolver/device-groups/cm-autodeploy-group-manager-autodeployment/devices | jq .
In my case it will list the BIG-IPs I have added in the Devices panel.
- JG
Cumulonimbus
What is "jq"? - Seth_81884Historic F5 AccountIt formats the JSON output making it easier to read. https://devcentral.f5.com/s/articles/working-with-icontrol-rest-data-on-the-command-line
- Wand_97484
Nimbostratus
Just an example to find a http profile by name:
curl -k "https:///mgmt/cm/adc-core/working-config/ltm/profile/http/?%24filter=name%20eq%20%27http-default%27" -H "Content-Type: application/json" -H "X-F5-Auth-Token: xxxxxxxx"
{"selfLink":"https://localhost/mgmt/cm/adc-core/working-config/ltm/profile/http","totalItems":1,"items":[{"proxyType":"reverse","enforcement":{"unknownMethod":"allow"},"defaultsFromReference":{"link":"https://localhost/mgmt/cm/adc-core/working-config/ltm/profile/http/ad348aed-0309-36d5-b5cd-c5b9e00cbb26","id":"ad348aed-0309-36d5-b5cd-c5b9e00cbb26","partition":"Common","name":"http","kind":"cm:adc-core:working-config:ltm:profile:http:adcprofilehttpstate"},"partition":"Common","name":"http-default","id":"8439e3e3-f42c-37f8-a972-feea11ddde2f","generation":1.0,"lastUpdateMicros":1.535981661487916E15,"kind":"cm:adc-core:working-config:ltm:profile:http:adcprofilehttpstate","selfLink":"https://localhost/mgmt/cm/adc-core/working-config/ltm/profile/http/8439e3e3-f42c-37f8-a972-feea11ddde2f"}],"generation":5,"kind":"cm:adc-core:working-config:ltm:profile:http:adcprofilehttpcollectionstate","lastUpdateMicros":1538742184641864}
Recent Discussions
Related Content
* 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