Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Active/Standby BigIp details using BigIq REST APi

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.

0
Rate this Question
Comments on this Question
Comment made 4 weeks ago by Lalitha 57

Any help?

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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

curl -sku <user>:</pass> https://<host>/mgmt/tm/cm/traffic-group/stats

For tmsh show cm sync-status equivalent,

curl -sku <user>:</pass> https://<host>/mgmt/tm/cm/sync-status

For tmsh show cm failover-status equivalent,

curl -sku <user>:</pass> https://<host>/mgmt/tm/cm/failover-status

See also Wiki: iControlREST API Reference.

1
Comments on this Answer
Comment made 4 weeks ago by Lalitha 57

Hi Satoshi,

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?

0
Comment made 4 weeks ago by Dan Bowman 191

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.

0
Comment made 4 weeks ago by Lalitha 57

Hi Dan,

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.

https:///mgmt/tm/cm/sync-status

0
Comment made 4 weeks ago by Dan Bowman 191

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:

https://devcentral.f5.com/wiki/BIGIQ.APIRef.ashx (v5.x)

https://clouddocs.f5.com/products/big-iq/mgmt-api/v6.1.0/ApiReferences/bigiq_public_api_ref/r_public_api_references.html (v6.x)

Although I'm not aware of what (if any) API methods are available to do what you require

0
Comment made 4 weeks ago by Lalitha 57

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.

0
Comment made 4 weeks ago by Dan Bowman 191

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:

https://devcentral.f5.com/questions/big-iq-centralized-managment-50-is-rest-proxy-available-47941

0
Comment made 4 weeks ago by Lalitha 57

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.

0
Comment made 3 weeks ago by Satoshi Toyosawa

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.

0