Bmccli_180167
Nimbostratus
Jun 26, 2015User iControl Rest to retreive iRule Stats
I am currently using iControl to retrieve iRule statistics like number of execututions and CPU Cycles. My goal is to switch to iControl REST to retrieve the same information without the overhead of iControl. Most modules within the REST api allow for /stats to be placed at the end of the URL which return module stats. Here are some working examples:
curl -k https://f5.somewhere.com/mgmt/tm/ltm/virtual/myvip.somewhere.com/stats
curl -k https://f5.somewhere.com/mgmt/tm/ltm/pool/myvip-pool/statsBut, for iRules, I am unable to retrieve the stats using the following command:
curl -k https://f5.somewhere.com/mgmt/tm/ltm/rule/~Common~myirule/statsIn response, I get:
{"code":404,"message":"Object not found - /Common/myirule","errorStack":[]}F5 Version: 11.5.3.
What am I doing wrong?
Brent