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

using REST API to add ip to network group

Hi, does anyone has a REST call to add an ip address to a group ? 

do I need first to "Create" the ip address as a host ? (what's the call for that ?) 

what if it's already exists ? 

what if it's already exists in the group ? 

I've create a group called "blocked" and add it to a firewall rule that blocks it from accessing the network.

Now I want to be able to add ips to this group via REST api from my web server. 

Thanks !



This thread was automatically locked due to age.
Parents
  • Shalom Dani and welcome to the UTM Community!

    I'm not a REST artist, so, hopefully, one of them will show up.

    Yes, you must first create a Host object with the IP address.

    You might also be interested in #2 in Rulz (last updated 2021-02-16).

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • Shalom Dani and welcome to the UTM Community!

    I'm not a REST artist, so, hopefully, one of them will show up.

    Yes, you must first create a Host object with the IP address.

    You might also be interested in #2 in Rulz (last updated 2021-02-16).

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children