Get-VBRAmazonEC2SecurityGroup
Short Description
Returns an array of AmazonEC2 security groups.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Get-VBRAmazonEC2SecurityGroup -VPC <VBRAmazonEC2VPC> [-Name <string>] [<CommonParameters>] |
Detailed Description
This cmdlet returns an array of Amazon EC2 security groups that are configured for the specified Amazon VPC.
Parameters
Parameter | Description | Type | Required | Position | Accept |
---|---|---|---|---|---|
VPC | Specifies an Amazon VPC. | Accepts the VBRAmazonEC2VPC object. To get this object, run the Get-VBRAmazonEC2VPC cmdlet. | True | Named | False |
Name | Specifies the name of the security group. The cmdlet will return the security group with this name. | String | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Getting Amazon EC2 Security Groups for Selected VCP
This example shows how to get an array of Amazon EC2 security groups that are configured for selected Amazon VCP.
$account = Get-VBRAmazonAccount -Id "936edf7c-7cf3-4dbd-9895-c7485ef4bb2c" $region = Get-VBRAmazonEC2Region -Account $account -RegionType Global -Name "eu-west-3" $vpc = Get-VBRAmazonEC2VPC -Region $region Get-VBRAmazonEC2SecurityGroup -VPC $vpc |
Perform the following steps:
- Run the Get-VBRAmazonAccount cmdlet. Specify the Id parameter value. Save the result to the $account variable.
- Run the Get-VBRAmazonEC2Region cmdlet. Set the $account variable as the Account parameter value. Set the Global value as the RegionType parameter value. Specify the Name parameter value. Save the result to the $region variable.
- Run the Get-VBRAmazonEC2VPC cmdlet. Set the $region variable as the Region parameter value. Save the result to the $vpc variable.
- Run the Get-VBRAmazonEC2SecurityGroup cmdlet. Set the $vpc variable as the VPC parameter value.
Related Commands