< Back

Remove-NsxIpSetMember

Sat Jan 18, 2020 9:23 pm

NAME Remove-NsxIpSetMember



SYNOPSIS

Removes a member from an existing IP Set.





SYNTAX

Remove-NsxIpSetMember [-IPSet] <XmlElement> -IPAddress <String[]> [-Connection <PSObject>] [<CommonParameters>]





DESCRIPTION

An NSX IPSet is a grouping construct that allows for grouping of

IP adresses, ranges and/or subnets in a sigle container that can

be used either in DFW Firewall Rules or as members of a security

group.



This cmdlet adds removes a member IPAddress from the specified IP Set.



IPAddress is a collection of strings, each of which can contain 1 only of

the following



IP address: (eg, 1.2.3.4)

IP Range: (eg, 1.2.3.4-1.2.3.10)

IP Subnet: (eg, 1.2.3.0/24)





PARAMETERS

-IPSet <XmlElement>

Existing IPSet PowerNSX object to be modified.



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-IPAddress <String[]>

Collection of ip addresses/ranges and/or CIDR's to be removed from the ipset.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? named

Default value $defaultNSXConnection

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-NsxIpset Test-IPSet | Remove-NsxIpSetMember -IPAddress 3.3.3.3



Removes the address 3.3.3.3 and 3.3.3.3/32 from the given NSX IPSet









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-NsxIpset Test-IPSet | Remove-NsxIpSetMember -IPAddress 3.3.3.3/32



Removes the address 3.3.3.3 and 3.3.3.3/32 from the given NSX IPSet









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-NsxIpset Test-IPSet | Remove-NsxIpSetMember -IPAddress 10.0.0.0/8



Removes the network 10.0.0.0/8 from the given NSX IPSet









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Get-NsxIpset Test-IPSet | Remove-NsxIpSetMember



-IPAddress 192.168.1.1-192.168.1.254



Removes the range 192.168.1.1-192.168.1.254 from the given NSX IPSet









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>Get-NsxIpset Test-IPSet | Remove-NsxIpSetMember



-IPAddress 3.3.3.3,10.0.0.0/8,192.168.1.1-192.168.1.254



Removes the given IP Addresses, Networks and Ranges from the NSX IPSet











RELATED LINKS