Forum Discussion

jeromeb's avatar
jeromeb
Icon for Altostratus rankAltostratus
Apr 10, 2020
Solved

BIG-IP API - WAF suggestions - issue in selecting properties

Hello there, I'm currently working on a Python application (web + API) retrieving policies and suggestions from F5 via F5's REST API. I have a usecase in which I want to know, for one given suggest...
  • Ivan_Chernenkii's avatar
    Ivan_Chernenkii
    Apr 14, 2020

    Hello Jerome,

    Yes, it looks you don't have requestStatus.

    Most probably we don't have it in version 13.1.0, while we have it in further versions.

    In such case you can use next request - /mgmt/tm/asm/policies/6224t7jz2UltQZsOfifTog/suggestions/cMuuspF_0p5Me-nAYZyWRg?$expand=requestReferences&$filter=requests/enforcementState/isBlocked eq true and requests/enforcementState/isUnblocked eq false. This request will give you 404 response in case of no blocked requests for suggestion and 200 response in case of blocked requests exist.

    As I understand, you don't need to use $select and you need to use $filter.

    Thanks, Ivan