Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

API 19.5 like not working

The like filter works in all versions prior to SFOS 19.5.0 GA-Build197 and not only in IPHost search. It works in IPHostGroup, Services and other object searches. example is as follows.

<Request>
    <Login>
        <Username>admin</Username>
        <Password>adminpassword</Password>
    </Login>
    <Get>
        <IPHost>
            <Filter>
                <key name="Name" criteria="like">test-</key>
            </Filter>
        </IPHost>
    </Get>
</Request>

i think there is a bug



This thread was automatically locked due to age.
Parents Reply Children
  • Still broken in 19.5.1 MR-1-Build278.

    Went ahead upgraded our XG300's to the latest build and API still broken when using like.

    <Get>
            <IPHost>
                    <Filter>
                            <key name="Name" criteria="like">LAN-Prod</key>
                    </Filter>
            </IPHost>
    </Get>

    My Query results still encounter the same "Successful" with 0 results

    <?xml version="1.0" encoding="UTF-8"?>
    <Response APIVersion="1905.1" IPS_CAT_VER="1">
      <Login>
        <status>Authentication Successful</status>
      </Login>
      <IPHost transactionid="">
        <Status>No. of records Zero.</Status>
      </IPHost>
    </Response>
    

  • Let us have a look and get back to you.

    Regards,

    Sanket Shah

    Senior Development Manager, Sophos Firewall

  • Hello Mahir & Caorda,

    I checked internally with the team about this issue.

    NC-111090 had other UI/API related issues fixed but this specific API import/export issue was not fixed.
    NC-115118 is raised to track this fix in 19.5-MR2.
    Sorry for the inconvenience caused.

    Regards,

    Sanket Shah

    Senior Development Manager, Sophos Firewall