Vpc Category | Vmware PowerCLI Reference

Vpc Category

Cmdlets are usually implemented around resource operations. The four basic operations are CREATE, READ, UPDATE and DELETE. This set of operations is known as CRUD. Most of the cmdlets support CRUD which are respectively cmdlets that start with the New/Get/Set/Remove cmdlet verbs but they also may have additional operations

Step 1: Retrieve a object by running a Get command

You can READ objects by using Get-Vpc cmdlet. See example below:

# Retrieves all Virtual Private Clouds in the specified project.

Get-VpcProject -Name Default | Get-Vpc

Step 2 : Run commands from the CRUD group

You can CREATE objects by using New-Vpc cmdlet. See example below:

# Creates a new Virtual Private Clouds named "clivpc", with ipv4 CIDR "192.168.100.0/24" and description "created by powercli".

New-Vpc -Name clivpc -PrivateIp 192.168.100.0/24 -Description "created by powercli"
You can UPDATE objects by using Set-Vpc cmdlet. See example below:

# Configure the Virtual Private Clouds named "clivpc", with ipv4 CIDR "192.168.100.0/24".

Set-Vpc -Vpc clivpc -PrivateIp 192.168.100.0/24
You can REMOVE objects by using Remove-Vpc cmdlet. See example below:

# Remove Virtual Private Clouds with name "clivpc".

Remove-Vpc -Vpc clivpc

Step 3: Explore More Related Commands:


Get-VpcConnectivityProfile This cmdlet retrieves Virtual Private Cloud Connectivity Profiles.
Get-VpcDhcpStaticBinding This cmdlet retrieves the DHCP static bindings for Virtual Private Cloud Subnet.
Get-VpcIpBlock This cmdlet retrieves Virtual Private Clouds Ip Address Block.
Get-VpcProject This cmdlet retrieves Virtual Private Clouds Projects.
Get-VpcServiceProfile This cmdlet retrieves Virtual Private Cloud Service Profiles.
Get-VpcStatistics This cmdlet retrieves Virtual Private Clouds statistics.
Get-VpcSubnet This cmdlet retrieves Virtual Private Cloud Subnet.
Get-VpcSubnetDhcpServerStatistics This cmdlet retrieves Virtual Private Clouds Subnet dhcp server statistics.
Get-VpcSubnetDhcpServerStatus This cmdlet retrieves Virtual Private Clouds Subnet dhcp server status.
Get-VpcSubnetStatistics This cmdlet retrieves Virtual Private Cloud Subnet statistics.
Get-VpcSubnetStatus This cmdlet retrieves Virtual Private Cloud Subnet status.
New-VpcDhcpClasslessStaticRoute This cmdlet creates Dynamic Host Configuration Protocol classless static route option.
New-VpcDhcpGenericOption This cmdlet creates Dynamic Host Configuration Protocol generic option.
New-VpcDhcpStaticBinding This cmdlet creates the DHCP static binding for Virtual Private Cloud Subnet.
New-VpcSubnet This cmdlet creates Virtual Private Cloud (VPC) subnet.
Remove-VpcDhcpStaticBinding This cmdlet removes the DHCP static bindings for VPC Subnet.
Remove-VpcSubnet This cmdlet removes Virtual Private Clouds Subnet.
Set-VpcDhcpStaticBinding This cmdlet modifies the DHCP static binding configurations for the Virtual Private Cloud Subnet.
Set-VpcSubnet This cmdlet configures Virtual Private Cloud (VPC) subnet.