AWS EC2

List security group rules

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Describe one or more of your security group rules.

Inputs

Expand All

Champ

Type

Description

region [required]

enum

default: us-east-1

filters

[object]

One or more filters.

Name

string

The name of the filter. Filter names are case-sensitive.

Values

[string]

The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

securityGroupRuleIds

[string]

If you specify security group rule IDs, the output includes information for only the specified security group rules. If you do not specify security group rule IDs, the output includes information for all security group rules.

maxResults

number

The maximum number of results to return in a single call.

Outputs

Expand All

Champ

Type

Description

securityGroupRules

[object]

Information about security group rules.

SecurityGroupRuleId

string

The ID of the security group rule.

GroupId

string

The ID of the security group.

GroupOwnerId

string

The ID of the Amazon Web Services account that owns the security group.

IsEgress

boolean

Indicates whether the security group rule is an outbound rule.

IpProtocol

string

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers). Use -1 to specify all protocols.

FromPort

number

The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.

ToPort

number

The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.

CidrIpv4

string

The IPv4 CIDR range.

CidrIpv6

string

The IPv6 CIDR range.

PrefixListId

string

The ID of the prefix list.

ReferencedGroupInfo

object

Describes the security group that is referenced in the rule.

GroupId

string

The ID of the security group.

PeeringStatus

string

The status of a VPC peering connection, if applicable.

UserId

string

The Amazon Web Services account ID.

VpcId

string

The ID of the VPC.

VpcPeeringConnectionId

string

The ID of the VPC peering connection (if applicable).

Description

string

The security group rule description.

Tags

[object]

The tags applied to the security group rule.

Key

string

The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

Value

string

The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

amzRequestId [required]

string