I don't see a way to do this, I only know of the SSH way.
How to clear cache during our DevOps auto-deploys using AXAPI?
We have V3 AXAPI on our A10.
If you know how to do it from the CLI, then you have a way to do it from aXAPI:
curl --request POST https://{Thunder IP or FQDN}/axapi/v3/clideploy \
--header 'Content-Type: text/plain' \
--header 'Authorization: A10 617ca097d2934201019da3051f31b9' \
--data-raw 'sh run'
You put your CLI command in the payload, and it will run it from a CLI process and return any output.
Comments
If you know how to do it from the CLI, then you have a way to do it from aXAPI:
curl --request POST https://{Thunder IP or FQDN}/axapi/v3/clideploy \
--header 'Content-Type: text/plain' \
--header 'Authorization: A10 617ca097d2934201019da3051f31b9' \
--data-raw 'sh run'
You put your CLI command in the payload, and it will run it from a CLI process and return any output.