Forum Discussion

john_124672's avatar
john_124672
Icon for Nimbostratus rankNimbostratus
Apr 13, 2016

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_81884's avatar
    Seth_81884
    Historic 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.

     

    • Seth_81884's avatar
      Seth_81884
      Historic F5 Account
      It 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's avatar
      Wand_97484
      Icon for Nimbostratus rankNimbostratus

      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}