I was trying to find if there is an easy way to query the the Polices that are assigned to the Virtual Server under the Resources section using the iControl API. I have been reviewing the Docs and I am just not finding it.
if you are using 11.5/11.6 you need to look for policiesReference in the LTM virtual uri.
then check if this ltm policy is referencing an asm policy
an alternative would be to look asm policies and filter for associated virtual : /mgmt/tm/asm/policies?$select=virtualServers