Get-VBRAmazonEC2SecurityGroup

In this article

    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

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    VPC

    Specifies an Amazon VPC.

    Accepts the VBRAmazonEC2VPC type.

    True

    Named

    False

     

    Name

    Specifies the name of the security group. The cmdlet will return the security group with this name.

    False

    Named

    False

     

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    Return Type

    Example

    This example shows how to get an array of Amazon EC2 security groups that are configured for selected Amazon VCP.

    1. Run Get-VBRAmazonAccount to get AWS credentials records. Save the result to the $account variable.
    2. Run Get-VBRAmazonEC2Region with the $account variable to get the AWS region. Use the RegionType parameter to specify the AWS region type. Save the result to the $region variable.
    3. Run Get-VBRAmazonEC2VPC with the $region variable to get the Amazon VPC. Save the result to the $vpc variable.
    4. Run Get-VBRAmazonEC2SecurityGroup with the $vpc variable.

    $account = Get-VBRAmazonAccount -Id "936edf7c-7cf3-4dbd-9895-c7485ef4bb2c"

    $region = Get-VBRAmazonEC2Region -Account $account -RegionType Global

    $vpc = Get-VBRAmazonEC2VPC -Region $region

    Get-VBRAmazonEC2SecurityGroup -VPC $vpc

    Related Commands

    Get-VBRAmazonAccount

    Get-VBRAmazonEC2Region

    Get-VBRAmazonEC2VPC

    I want to report a typo

    There is a misspelling right here:

     

    I want to let the Veeam Documentation Team know about that.