Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

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

Sophos XG Firewall API - Add Host Group

Hello,
We are tying to send this GET message to the API:


<Request APIVersion="1702.1"><Login><Username>xxxx</Username><Password>xxxx</Password></Login><Set operation="add"><IPHostGroup><Name>group1</Name><IPFamily>IPv6</IPFamily><Description>xyz</Description><HostList><Host>x.x.x.x</Host></HostList></IPHostGroup></Set></Request>

However, we are getting the following answer:


<?xml version="1.0" encoding="UTF-8"?>
<Response APIVersion="1702.1" IPS_CAT_VER="1">
  <Login>
    <status>Authentication Successful</status>
  </Login>
  <IPHostGroup transactionid="">
    <Status code="501">Configuration parameters validation failed.</Status>
    <InvalidParams>
      <Params>/IPHostGroup/Name</Params>
    </InvalidParams>
  </IPHostGroup>
</Response>

Why is that?



This thread was automatically locked due to age.
  • Hi,

    Its probable that you have other object with that same name. Sophos shares names between different objects as stated below:

    Hostname across IP host, IP host group, MAC host, virtual host, FQDN host, FQDN host group, country host, country group and web server cannot be the same. Choose a different hostname

    Take care!