I would like to view Active and Standby details of clustered BIGIP using BIGIQ REST API. Like viewing DSC group details in BIGIQ, need to view the same using BIGIQ REST API. Please let me know how we can view the details using REST API.
You can use tm cm class iControl REST endpoints to retrieve cluster status. For example,
To get the tmsh show cm traffic-group equivalent output, run
tmsh show cm traffic-group
curl -sku <user>:</pass> https://<host>/mgmt/tm/cm/traffic-group/stats
For tmsh show cm sync-status equivalent,
tmsh show cm sync-status
curl -sku <user>:</pass> https://<host>/mgmt/tm/cm/sync-status
For tmsh show cm failover-status equivalent,
tmsh show cm failover-status
curl -sku <user>:</pass> https://<host>/mgmt/tm/cm/failover-status
See also Wiki: iControlREST API Reference.
In these I just get details of Big-IQ and none of the BigIp details are getting listed. Should I do something to get the BigIp data?
Those are iControl REST calls - you'd need to target the BIG-IP's IP address/hostname in the parts above to get the data back from the devices.
You mean to say that in this URL we should substitute Bigip Hostname in URL?I want to fetch details from Big-IQ so that I could manage the devices centrally. For example, to do any automation around Big-IP from Big-IQ.
Yes those examples from Satoshi were BIG-IP specific I think.
If BIG-IQ-centric is a requirement then there is an API reference available:
Although I'm not aware of what (if any) API methods are available to do what you require
Thanks Dan. What Satoshi gave works on Big-IQ. Just that I don't get details of any Big-Ip managed by Big-IQ, whereas getting details of Big-IQ alone.
Is it REST-proxying that you require here? i.e. proxy the above calls via your BIG-IQ
If so then looks like some steps are required per Jon Calalang's reply here:
No. Not looking for REST Proxy. If we are able to view the DSC group details under BigIP Cluster in Big-IQ gui, should be able to view the same details through REST API. The Rest API end points mentioned by Satoshi is not displaying details for BigIP whereas just gives details of BigIQ Server Failover and Sync details.
The endpoints are indeed for BIG-IP. If you need to retrieve the state information from all the BIG-IP boxes, you should iterate the same command(s). For BIG-IQ endpoints, the clouddoc that Dan mentioned would help.