Get-VBRGoogleCloudComputeSubnet
Short Description
Returns subnets for Google Cloud region.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Get-VBRGoogleCloudComputeSubnet -Region <VBRGoogleCloudComputeRegion> [-VPC <VBRGoogleCloudComputeVPC>] [-Name <string>] [<CommonParameters>] |
Detailed Description
This cmdlet returns subnets for Google Cloud region.
Parameters
Parameter | Description | Type | Required | Position | Accept |
---|---|---|---|---|---|
Region | Specifies a Google Cloud region. The cmdlet will return subnets for the specified Google Cloud region. | Accepts the VBRGoogleCloudComputeRegion object. To get this object, run the Get-VBRGoogleCloudComputeRegion cmdlet. | True | Named | False |
VPC | Specifies a Google Cloud VPC network. The cmdlet will return subnets for the specified Google Cloud VPC network. | Accepts the VBRGoogleCloudComputeVPC object. To get this object, run the Get-VBRGoogleCloudComputeVPC cmdlet. | False | Named | False |
Name | Specifies a name of the subnet. The cmdlet will return the subnet with the specified name. | String | 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-VBRGoogleCloudComputeRegion cmdlet. Specify the Name parameter value. Save the result to the $computeregion variable.
- Run the Get-VBRGoogleCloudComputeAccount cmdlet. Specify the Name parameter value. Save the result to the $account variable.
- Run the Get-VBRGoogleCloudComputeVPC cmdlet. Set the $account variable as the Account parameter. Save the result to the $vpc variable.
- Run the Get-VBRGoogleCloudComputeSubnet cmdlet. Set the $computeregion variable as the Region parameter. Set the $vpc variable as the VPC parameter.
Related Commands