Get-VBOAmazonSubnet

Short Description

Returns the Amazon archiver appliance subnet.

Syntax

Get-VBOAmazonSubnet -VPC <VBOAmazonVpc> [-Name <string>]  [<CommonParameters>]

Detailed Description

This cmdlet returns the VBOAmazonSubnet object.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Accept Wildcard Characters

VPC

Specifies the Amazon VPC.

Accepts the VBOAmazonVpc object.

To get this object, run the Get-VBOAmazonVPC cmdlet.

True

Named

False

False

Name

Specifies a name of a subnet. The cmdlet will return the subnet with this name.

String

False

Named

False

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

The cmdlet returns the VBOAmazonSubnet object.

Examples

Get-VBOAmazonSubnetExample 1. Getting Amazon Archiver Appliance Subnet

This example shows how to get the Amazon archiver appliance subnet.

$S3account = Get-VBOAmazonS3Account -AccessKey "?Iqws8NewidZydk"

$S3connection = New-VBOAmazonS3ConnectionSettings -Account $S3account -RegionType Global

$VPC = Get-VBOAmazonVPC -AmazonS3ConnectionSettings $S3connection -RegionId eu-central-1 -Name "VPCName"

Get-VBOAmazonSubnet -VPC $VPC -Name "SubnetName"

Perform the following steps:

  1. Run the Get-VBOAmazonS3Account cmdlet. Specify the AccessKey parameter value.  Save the result to the $S3account variable.
  2. Run the New-VBOAmazonS3ConnectionSettings cmdlet. Set the $S3account variable as the Account parameter value. Specify the RegionType parameter value. Save the result to the $S3connection variable.
  3. Run the Get-VBOAmazonVPC cmdlet. Set the $S3connection variable as the AmazonS3ConnectionSettings parameter value. Specify the RegionId parameter value. Specify the Name parameter value. Save the result to the $VPC variable.
  4. Run the Get-VBOAmazonSubnet cmdlet. Set the $VPC variable as the VPC parameter value. Specify the Name parameter value.

Related Commands