Forum Discussion
ASM Enabled VIP
You could check whether a specific virtual has one or more ASM policies attached to it using the iControl REST interface. Use both commands below:
curl -sk -u "admin:XXXXXX" -X GET "https://localhost/mgmt/tm/asm/policies?\$filter=virtualServers%20eq%20/Common/vs_app1&\$select=name" | jq .
curl -sk -u "admin:XXXXXX" -X GET "https://localhost/mgmt/tm/asm/policies?\$filter=manualVirtualServers%20eq%20/Common/vs_app1&\$select=name" | jq .
Just change "/Common/vs_app1" for the virtual server name which you want to check for ....
The first command works when the virtual server has a single ASM policy attached to it. The second command works when the virtual server has multiple ASM policies attached to it (e.g: using LTM policies).
If there are any ASM policy attached to the virtual server you should see in the output of either commands ....
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com