Set-VpcIpBlock Command | Vmware PowerCLI Reference

Set-VpcIpBlock

This cmdlet modifies the configuration of the IP Address Blocks.

Syntax

Set-VpcIpBlock
-IpBlock < IpBlock[] >
[-AddCidr < String[] > ]
[-AddIpRange < String[] > ]
[-AddReservedIp < String[] > ]
[-Description < String > ]
[-Name < String > ]
[-RemoveCidr < String[] > ]
[-RemoveIpRange < String[] > ]
[-RemoveReservedIp < String[] > ]
[-Visibility < IpBlockVisibility > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
IpBlock IpBlock[] named
  • pipeline
  • wildcards
Specifies the name of the IP Address Block which you want to configure.
optional AddCidr String[] named
Adds the Cidrs into the list of cidrs for the IP Address Block which you want to configure.
optional AddIpRange String[] named
Adds the IP address ranges into the list of IP address ranges for the IP Address Block which you want to configure.
optional AddReservedIp String[] named
Adds the reserved IP addresses into the list of reserved IP addresses for the IP Address Block which you want to configure.
optional Description String named
The description of the VPC Service Profile.
optional Name String named
Modifies the name of the IP Address Block which you want to configure.
optional RemoveCidr String[] named
Removes the Cidrs from the list of cidrs for the IP Address Block which you want to configure.
optional RemoveIpRange String[] named
Removes the IP address ranges from the list of IP address ranges for the IP Address Block which you want to configure.
optional RemoveReservedIp String[] named
Removes the reserved IP addresses from the list of reserved IP addresses for the IP Address Block which you want to configure.
optional Visibility IpBlockVisibility named
Specifies the Visibility of IpAddressBlock.

Output

VMware.VimAutomation.Vpc.Types.V1.IpBlock

Examples

Example 1

Set-VpcIpBlock -IpBlock old-block -Name new-block -AddCidr 30.2.1.0/24,30.3.1.0/24 -RemoveCidr 30.1.1.0/24 -AddIpRange 40.2.1.3-40.2.1.25,40.3.1.3-40.3.1.25 -RemoveIpRange 40.1.1.3-40.1.1.25 -AddReservedIp 40.2.1.6-40.2.1.10,40.3.1.6-40.3.1.10 -RemoveReservedIp 40.1.1.6-40.1.1.10 -Visibility External -Description "edited by cli"

Configure the IP Address Block named "old-block", with Name "new-block",adding Cidr "30.2.1.0/24,30.3.1.0/24", removing Cidr "30.1.1.0/24", adding IpRange "40.2.1.3-40.2.1.25,40.3.1.3-40.3.1.25", removing IpRange "40.1.1.3-40.1.1.25", adding ReservedIp "40.2.1.6-40.2.1.10,40.3.1.6-40.3.1.10", removing ReservedIp"40.1.1.6-40.1.1.10", Visibility "External" and Description "edited by powercli"

Example 2

Get-VpcIpBlock -Name old-block | Set-VpcIpBlock -Name new-block -AddCidr 30.2.1.0/24,30.3.1.0/24 -RemoveCidr 30.1.1.0/24 -AddIpRange 40.2.1.3-40.2.1.25,40.3.1.3-40.3.1.25 -RemoveIpRange 40.1.1.3-40.1.1.25 -AddReservedIp 40.2.1.6-40.2.1.10,40.3.1.6-40.3.1.10 -RemoveReservedIp 40.1.1.6-40.1.1.10 -Visibility External -Description "edited by cli"

Configure the IP Address Block named "old-block", with Name "new-block",adding Cidr "30.2.1.0/24,30.3.1.0/24", removing Cidr "30.1.1.0/24", adding IpRange "40.2.1.3-40.2.1.25,40.3.1.3-40.3.1.25", removing IpRange "40.1.1.3-40.1.1.25", adding ReservedIp "40.2.1.6-40.2.1.10,40.3.1.6-40.3.1.10", removing ReservedIp"40.1.1.6-40.1.1.10", Visibility "External" and Description "edited by powercli"

Related Commands

Vpc

This cmdlet retrieves Virtual Private Clouds.

This cmdlet creates Virtual Private Clouds.

This cmdlet removes Virtual Private Clouds.

This cmdlet modifies the configuration of the Virtual Private Clouds.

VpcAlarm

This cmdlet retrieves Virtual Private Clouds Alarm.

VpcConnectivityPolicy

This cmdlet retrieves Connectivity Policies from Transit Gateways.

This cmdlet creates Connectivity Policy.

This cmdlet removes Connectivity Policies.

This cmdlet modifies the configuration of the Connectivity Policies.

VpcConnectivityProfile

This cmdlet retrieves Virtual Private Cloud Connectivity Profiles.

This cmdlet creates VPC Connectivity Profiles.

This cmdlet removes Virtual Private Cloud Connectivity Profiles.

This cmdlet modifies the configuration of the VPC Connectivity Profiles.

VpcDhcpClasslessStaticRoute

This cmdlet creates Dynamic Host Configuration Protocol classless static route option.

VpcDhcpGenericOption

This cmdlet creates Dynamic Host Configuration Protocol generic option.

VpcDhcpStaticBinding

This cmdlet retrieves the DHCP static bindings for Virtual Private Cloud Subnet.

This cmdlet creates the DHCP static binding for Virtual Private Cloud Subnet.

This cmdlet removes the DHCP static bindings for VPC Subnet.

This cmdlet modifies the DHCP static binding configurations for the Virtual Private Cloud Subnet.

VpcEdgeCluster

This cmdlet retrieves Edge Clusters.

VpcExternalConnection

This cmdlet retrieves External Connections.

This cmdlet creates External Connections.

This cmdlet removes External Connections.

This cmdlet modifies the configuration of the External Connections.

VpcGroup

This cmdlet retrieves VPC Groups.

This cmdlet creates VPC Groups.

This cmdlet removes VPC Groups.

This cmdlet modifies the configuration of the VPC Groups.

VpcIpBlock

This cmdlet retrieves Virtual Private Clouds Ip Address Block.

This cmdlet creates IP Address Block.

This cmdlet removes IP Address Blocks.

This cmdlet modifies the configuration of the IP Address Blocks.

VpcNatRule

This cmdlet retrieves NAT Rules from Virtual Private Clouds.

VpcNatRuleStatistics

This cmdlet retrieves NAT Rule statistics from Virtual Private Clouds.

VpcProject

This cmdlet retrieves Virtual Private Clouds Projects.

VpcServiceCluster

This cmdlet retrieves Service Clusters.

VpcServiceProfile

This cmdlet retrieves Virtual Private Cloud Service Profiles.

This cmdlet modifies the configuration of the VPC Service Profiles.

VpcSpan

This cmdlet retrieves Spans.

This cmdlet creates Spans.

This cmdlet removes Spans.

This cmdlet modifies the configuration of the Spans.

VpcStatistics

This cmdlet retrieves Virtual Private Clouds statistics.

VpcSubnet

This cmdlet retrieves Virtual Private Cloud Subnet.

This cmdlet creates Virtual Private Cloud (VPC) subnet.

This cmdlet removes Virtual Private Clouds Subnet.

This cmdlet configures Virtual Private Cloud (VPC) subnet.

VpcSubnetDhcpServerStatistics

This cmdlet retrieves Virtual Private Clouds Subnet dhcp server statistics.

VpcSubnetDhcpServerStatus

This cmdlet retrieves Virtual Private Clouds Subnet dhcp server status.

VpcSubnetStatistics

This cmdlet retrieves Virtual Private Cloud Subnet statistics.

VpcSubnetStatus

This cmdlet retrieves Virtual Private Cloud Subnet status.

VpcTransitGateway

This cmdlet retrieves Transit Gateways.

This cmdlet creates Transit Gateways.

This cmdlet removes Transit Gateways.

This cmdlet modifies the configuration of the Transit Gateways.

VpcVcCluster

This cmdlet retrieves VC Clusters.