Forum Discussion

1 Reply

  • R_Marc's avatar
    R_Marc
    Icon for Nimbostratus rankNimbostratus

    You would need to look for "active" for the specified policy.

    The direct policy paths are based on a UUID (or some unique hash). You'd have to go in to just /policies to get those unique hashes, then you can just parse return from /policies to acquire those, but that return also tells you on each policy if they are active or not.

    For a quick and dirty example which you can run from the shell locally on your F5 or if you have a linux box handy:

    curl -sk -u admin:$PASS "Content-Type: application/json" -X GET  https://bigip1/mgmt/tm/asm/policies | python -m json.tool | egrep "\"name\"|\"active\""