Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

BIQ-IQ API endpoint to get specific virtual server connection count

Bryan-00
Altocumulus
Altocumulus

Hello,

We are trying to get virtual server stats via BIG-IQ using below endpoint. We did get some result but it did not return connection related information.

https://{BIG-IQ}/mgmt/cm/adc-core/working-config/ltm/virtual/{OBJ_ID}/stats

Found this documentation: 

https://clouddocs.f5.com/products/big-iq/mgmt-api/v0.0/ApiReferences/bigiq_public_api_ref/r_analytic...

Attempted to use below BODY but it always return zero client connections.

 

{
    "kind": "ap:query:stats:byTime",
    "module": "bigip-virtual-stat",
    "timeRange": {
            "from": "-30s",
            "to": "now"
    },
    "timeGranularity": {
            "duration": 30,
            "unit": "SECONDS"
    },
    "aggregations": {
            "client-connections$sum": {
                    "metricSet": "client-connections",
                    "metric": "sum"
            }
    },
    "dimension": {
            "type": "eq",
            "dimension": "virtual",
            "value": "/Common/{VIP_NAME}"
    }
}
 
RESPONSE:
 
{
    "result": {
        "source": "bigip",
        "module": "bigip-virtual-stat",
        "timeRange": {
            "from": "1651307760000",
            "to": "1651307790000",
            "timezone": "Universal",
            "durationInMillis": 30000,
            "durationInSec": 30
        },
        "timeGranularity": {
            "duration": 30,
            "unit": "SECONDS"
        },
        "result": [
            {
                "timeMillis": 1651307790000,
                "count": 1,
                "client-connections$sum": 0.0
            }
        ],
        "totalPoints": 1
    },
    "requestDurationInMillis": 138
}
2 REPLIES 2

Is the Virtual server part of AS3 application https://techdocs.f5.com/kb/en-us/products/big-iq-centralized-mgmt/manuals/product/big-iq-centralized...  or have you added it as a legacy application https://clouddocs.f5.com/training/community/big-iq-cloud-edition/html/class1/module6/module6.html .

 

I have not used this REST-API function on BIG-IQ to see virtual server connections not directly from the F5 BIG-IP but the BIG-IQ but maybe as I mentioned the Big-IQ should first collect more info for the Virtual server.

Thanks for the feedback!

The virtual server is already present on the BIG-IP that was onboarded. It is not part of AS3 and I believe its not added as a legacy application as well.