Get-VBRGoogleCloudComputeSubnet

Short Description

Returns subnets for Google Cloud region.

Important

This cmdlet is available starting from Veeam Backup & Replication 11a (build 11.0.1.1261).

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
Pipeline
Input

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

VBRGoogleCloudComputeSubnet

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:

  1. Run the Get-VBRGoogleCloudComputeRegion cmdlet. Specify the Name parameter value. Save the result to the $computeregion variable.
  2. Run the Get-VBRGoogleCloudComputeAccount cmdlet. Specify the Name parameter value. Save the result to the $account variable.
  3. Run the Get-VBRGoogleCloudComputeVPC cmdlet. Set the $account variable as the Account parameter. Save the result to the $vpc variable.
  4. Run the Get-VBRGoogleCloudComputeSubnet cmdlet. Set the $computeregion variable as the Region parameter. Set the $vpc variable as the VPC parameter.

Related Commands