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

How to remove specific Iphost from specific Iphost Group using API

1) I'm using this API to add IPhost to a group, and it appears to be working fine.

Request Body

ip:port/.../APIController
<Request>
    <Login>
        <Username>{username}</Username>
        <Password passwordform="plain">{password}</Password>
    </Login>
    <Set operation="add">
        <IPHost>
            <Name>name</Name>
            <IPFamily>IPv4</IPFamily>
            <HostType>IP</HostType>
            <IPAddress>Ip</IPAddress>
            <HostGroupList>
                <HostGroup>groupname</HostGroup>
            </HostGroupList>
        </IPHost>
    </Set>
</Request>

2)And how can we remove simply a certain IPHost address from the Iphost group? is there any Ip pls?



This thread was automatically locked due to age.
Parents
  • these api-request add an IP-Host and add them to the group.

    The other way is less simple .... you have to api-read the group, parse the result and repost the group without the host.


    Dirk

    Systema Gesellschaft für angewandte Datentechnik mbH  // Sophos Platinum Partner
    Sophos Solution Partner since 2003
    If a post solves your question, click the 'Verify Answer' link at this post.

Reply
  • these api-request add an IP-Host and add them to the group.

    The other way is less simple .... you have to api-read the group, parse the result and repost the group without the host.


    Dirk

    Systema Gesellschaft für angewandte Datentechnik mbH  // Sophos Platinum Partner
    Sophos Solution Partner since 2003
    If a post solves your question, click the 'Verify Answer' link at this post.

Children
Share Feedback
×

Submitted a Tech Support Case lately from the Support Portal?