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 Rule Group Endpoint

I've been working with the Sophos XG Firewall XML API and so far I've been unable to access the firewall rule group endpoint that is defined in the docs.

My request xmlreq parameter looks like this:

<Request>
<Login>
<Username>admin</Username>
<Password>sadfjiojO8AUOFDSJ!</Password>
</Login>
<Get>
<FirewallRuleGroup>
</FirewallRuleGroup>
</Get>
</Request>

This is the response I got:

<?xml version="1.0" encoding="UTF-8"?>
<Response APIVersion="1702.1" IPS_CAT_VER="1">
<Login>
<status>Authentication Successful</status>
</Login>
<RuleGroup>
<Status code="529">Input request module is Invalid</Status>
</RuleGroup>
</Response>


Process finished with exit code 0



This thread was automatically locked due to age.
Parents
  • Which version of SFOS are you trying this on? I think you need the APIVersion in your request.


    <Request APIVersion="1800.1">

    <Login>

    <Username>admin</Username>

    <Password>secretsquirrel</Password>

    </Login>

    <Get>

    <FirewallRuleGroup>

    </FirewallRuleGroup>

    </Get>

    </Request>

    <?xml version="1.0" encoding="UTF-8"?>
    <Response APIVersion="1800.1" IPS_CAT_VER="1">
    <Login>
    <status>Authentication Successful</status>
    </Login>
    <FirewallRuleGroup transactionid="">
    <Status>No. of records Zero.</Status>
    </FirewallRuleGroup>
    </Response>
  • I am using SFOS 17_5_14_714

    Whenever I put quotation marks around the APIVersion number I get the following response:
    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
    <Status code="529">There is no API Version</Status>
    </Response>

    Whenever I don't I get the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
    <Status code="529">Input request file is Invalid</Status>
    </Response>


Reply
  • I am using SFOS 17_5_14_714

    Whenever I put quotation marks around the APIVersion number I get the following response:
    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
    <Status code="529">There is no API Version</Status>
    </Response>

    Whenever I don't I get the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
    <Status code="529">Input request file is Invalid</Status>
    </Response>


Children
No Data