Get-VBRGoogleCloudComputeSubnet
Short Description
Returns subnets for Google Cloud region.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VBRGoogleCloudComputeSubnet [-VPC <VBRGoogleCloudComputeVPC>] -Region <VBRGoogleCloudComputeRegion> [-Name <String>] [<CommonParameters>] |
Detailed Description
This cmdlet returns subnets for Google Cloud region.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Name |
Specifies a name of the subnet. The cmdlet will return the subnet with the specified name. |
|
False |
Named |
False |
|
Region |
Specifies a Google Cloud region. The cmdlet will return subnets for the specified Google Cloud region.
Accepts the |
True |
Named |
False |
|
|
VPC |
Specifies a Google Cloud VPC network. The cmdlet will return subnets for the specified Google Cloud VPC network.
Accepts the |
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Getting Subnets for Google Cloud Region
This example shows how to get subnets for the Europe-west1 Google Cloud region and VPC network of the GCP service account 1 Google Cloud service account.
|
$computeregion = Get-VBRGoogleCloudComputeRegion -Name "Europe-west1" $account = Get-VBRGoogleCloudComputeAccount -Name "GCP service account 1" $vpc = Get-VBRGoogleCloudComputeVPC -Account $account Get-VBRGoogleCloudComputeSubnet -Region $computeregion -VPC $vpc |
Perform the following steps:
- Run the
Get-VBRGoogleCloudComputeRegionReturns Google Cloud regions. cmdlet. Specify theNameparameter value. Save the result to the$computeregionvariable. - Run the
Get-VBRGoogleCloudComputeAccountReturns Google Cloud service account credentials record. cmdlet. Specify theNameparameter value. Save the result to the$accountvariable. - Run the
Get-VBRGoogleCloudComputeVPCReturns Virtual Private Cloud (VPC) networks. cmdlet. Set the$accountvariable as theAccountparameter. Save the result to the$vpcvariable. - Run the
Get-VBRGoogleCloudComputeSubnetcmdlet. Set the$computeregionvariable as theRegionparameter. Set the$vpcvariable as theVPCparameter.
Related Commands
Get-VBRGoogleCloudComputeRegionReturns Google Cloud regions.Get-VBRGoogleCloudComputeAccountReturns Google Cloud service account credentials record.Get-VBRGoogleCloudComputeVPCReturns Virtual Private Cloud (VPC) networks.