Get-VBRGoogleCloudComputeSharedSubnet
Short Description
Returns subnets of Google Cloud shared VPC network.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VBRGoogleCloudComputeSharedSubnet [-Region <String>] [-Name <String>] -Account <VBRGoogleCloudComputeAccount> [<CommonParameters>] |
Detailed Description
This cmdlet returns subnets of Google Cloud shared VPC network.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Account |
Specifies a Google Cloud service account. The cmdlet will return subnets of the shared VPC network for the specified Google Cloud service account.
Accepts the |
True |
Named |
False |
|
|
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 of the shared VPC for the specified Google Cloud region.
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 of Shared VPC Network for Google Cloud Service Account
This example shows how to get subnets of the shared VPC network for the GCP service acc 1 Google Cloud service account.
|
$account = Get-VBRGoogleCloudComputeAccount -Name "GCP service acc 1" Get-VBRGoogleCloudComputeSharedSubnet -Account $account |
Perform the following steps:
- Run the
Get-VBRGoogleCloudComputeAccountReturns Google Cloud service account credentials record. cmdlet. Specify theNameparameter value. Save the result to the$accountvariable. - Run the
Get-VBRGoogleCloudComputeSharedSubnetcmdlet. Set the$accountvariable as theAccountparameter.
Related Commands
Get-VBRGoogleCloudComputeAccountReturns Google Cloud service account credentials record.