Get-VBOAmazonVPC
Short Description
Returns the Amazon Virtual Private Cloud (Amazon VPC).
Syntax
|
Get-VBOAmazonVPC -AmazonS3ConnectionSettings <VBOAmazonS3ConnectionSettings> [-Name <String>] -RegionId <String> [<CommonParameters>] |
Detailed Description
This cmdlet returns the VBOAmazonVPC object.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AmazonS3ConnectionSettings |
Specifies an active session with Amazon S3 object storage repository.
Accepts the
To create this object, run the |
True |
Named |
False |
|
|
Name |
Specifies a name of the Amazon VPC. The cmdlet will return the Amazon VPC with this name. |
|
False |
Named |
False |
|
RegionId |
Specifies a region of Amazon S3 object storage repository. For example, us-east-1. For more information, see this Amazon article. |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VBOAmazonVPC object.
Examples
Getting Amazon VPC
This example shows how to get the Amazon Virtual Private Cloud (Amazon VPC).
|
$S3account = Get-VBOAmazonS3Account -AccessKey "?Iqws8NewidZydk" $S3connection = New-VBOAmazonS3ConnectionSettings -Account $S3account -RegionType Global Get-VBOAmazonVPC -AmazonS3ConnectionSettings $S3connection -RegionId eu-central-1 -Name "VPCName" |
Perform the following steps:
- Run the
Get-VBOAmazonS3AccountReturns Amazon S3 storage account credentials. cmdlet. Specify theAccessKeyparameter value. Save the result to the$S3accountvariable. - Run the
New-VBOAmazonS3ConnectionSettingsDefines connection settings to Amazon S3 object storage repository. cmdlet. Set the$S3accountvariable as theAccountparameter value. Specify theRegionTypeparameter value. Save the result to the$S3connectionvariable. - Run the
Get-VBOAmazonVPCcmdlet. Specify the following settings:- Set the
$S3connectionvariable as theAmazonS3ConnectionSettingsparameter value. - Specify the
RegionIdparameter value. - Specify the
Nameparameter value.
- Set the
Related Commands
New-VBOAmazonS3ConnectionSettingsDefines connection settings to Amazon S3 object storage repository.Get-VBOAmazonS3AccountReturns Amazon S3 storage account credentials.