Get-VBRAmazonEC2Region
Short Description
Returns AWS Regions and datacenters.
Applies to
Platform: VMware, Hyper-V
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Get-VBRAmazonEC2Region -Account <VBRAmazonAccount> -RegionType <VBRAmazonRegionType> {Global | Government | China}[-Name <string>] [<CommonParameters>] |
Detailed Description
This cmdlet returns an array of AWS Regions and datacenters.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
---|---|---|---|---|---|
Account | Specifies AWS credentials records. Veeam Backup & Replication will use these credentials to connect to the AWS account. Accepts the VBRAmazonAccount type. | True | Named | False |
|
RegionType | Specifies the AWS Regions type:
Veeam Backup & Replication will get an array of Amazon EC2 Regions based on the specified type. | True | Named | False |
|
Name | Specifies the AWS datacenter. The cmdlet will return the datacenter with the specified name. | False | Named | False |
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Return Type
Example
This example shows how to get an array of all AWS Regions by the specified region type.
- Run Get-VBRAmazonAccount to get Amazon EC2 credentials records. Save the result to the $account variable.
- Run Get-VBRAmazonEC2Region with the $account variable. Use the RegionType parameter to specify the region type. Specify the Name parameter value.
$account = Get-VBRAmazonAccount -Id "936edf7c-7cf3-4dbd-9895-c7485ef4bb2c" Get-VBRAmazonEC2Region -Account $account -RegionType Global -Name "eu-west-3" |
Related Commands