Retrieving organization networks
If you create virtual appliances or virtual machines, you probably want to connect them to a network. The Get-OrgVdcNetwork
cmdlet will retrieve available organization vDC networks. The syntax of the Get-OrgVdcNetwork
cmdlet is given here. The first parameter set is the default:
Get-OrgVdcNetwork [[-Name] <String[]>] [-OrgVdc <OrgVdc[]>]
[-Server <CIServer[]>] [<CommonParameters>]
The second parameter set is to retrieve organization vDC networks by ID:
Get-OrgVdcNetwork -Id <String[]> [-Server <CIServer[]>]
[<CommonParameters>]
The -Id
parameter is required.
The Get-OrgVdcNetwork
cmdlet without parameters will retrieve all of the organization vDC networks, as shown in the following example:
PowerCLI C:\> Get-OrgVdcNetwork Name OrgVdc DefaultGateway NetworkType ---- ------ -------------- ----------- student501-IsolatedNetwork student501 192.16.50.1 ...