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

Help needed with Sophos XG API

Hi,

after reading the "API Documentation" provided by Sophos i tried to do one simple request (which i took from the APIs example section):

fwurl/.../APIController

to which i get the following response:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Status code="529">Input request file is Invalid</Status>
</Response>

Anybody knows why this doesnt work?



This thread was automatically locked due to age.
Parents
  • I just met strange bahaviour. I have two users : one of them is AD based and authenticated against AD. Second one is local.

    I am using this form of file for read of Sophos Connect Clinet list :

    <Request>
    <Login>
    <Username>USERNAME</Username>
    <Password>PASSWORD</Password>
    </Login>
    <Get>
    <CISCOVPNClient transactionid="">
    <AllowedUsers/>
    </CISCOVPNClient>
    </Get>
    </Request>

    In case when I use there AD based user (administrator; it works well via browser) I get this message :

    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
    <Status code="529">Input request file is Invalid</Status>
    </Response>

    In case when I use localy defined user it works well.

    And another thing : normal form of file name is :

    curl -k 192.168.2.1:4444/.../APIController -F "reqxml=<readOfUserList.xml"

    I made mistake and forgot < sign in name of file :

    curl -k 192.168.2.1:4444/.../APIController -F "reqxml=readOfUserList.xml"

    Result is the same :

    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
    <Status code="529">Input request file is Invalid</Status>
    </Response>

     

    thats all; hope it can help other people ...

     

Reply
  • I just met strange bahaviour. I have two users : one of them is AD based and authenticated against AD. Second one is local.

    I am using this form of file for read of Sophos Connect Clinet list :

    <Request>
    <Login>
    <Username>USERNAME</Username>
    <Password>PASSWORD</Password>
    </Login>
    <Get>
    <CISCOVPNClient transactionid="">
    <AllowedUsers/>
    </CISCOVPNClient>
    </Get>
    </Request>

    In case when I use there AD based user (administrator; it works well via browser) I get this message :

    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
    <Status code="529">Input request file is Invalid</Status>
    </Response>

    In case when I use localy defined user it works well.

    And another thing : normal form of file name is :

    curl -k 192.168.2.1:4444/.../APIController -F "reqxml=<readOfUserList.xml"

    I made mistake and forgot < sign in name of file :

    curl -k 192.168.2.1:4444/.../APIController -F "reqxml=readOfUserList.xml"

    Result is the same :

    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
    <Status code="529">Input request file is Invalid</Status>
    </Response>

     

    thats all; hope it can help other people ...

     

Children
No Data