Amazon Relational Database Service
Command Line Interface Reference (API Version 2012-04-23)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

rds-describe-db-security-groups

Description

Returns information about all database security groups for an account if no database security group name is supplied, or displays information about a specific named database security group.

Syntax

rds-describe-db-security-groups [DBSecurityGroupName ]

[--max-records value ]

[General Options]

Options

NameDescriptionRequired

DBSecurityGroupName

Database security group name. This value can also be supplied using the --db-security-group-name parameter.

Type: String

Default: None

No

Output

The command returns the following information:

  • Name—Security group name

  • Description—Description of the database security group

  • EC2 Group Name—EC2 Security Group name

  • EC2 Owner Id—EC2 Security Group owner

  • Status—Status of security group authorization. Valid values: adding | active | removing

  • IP Range—the CIDR IP range allowed access to the security group

  • Status—Status of authorization for the IP Range. Valid values: authorizing | authorized | revoking

Examples

Get a Description of All Security Groups

This example returns a description of all database security groups for the account, with column headers.

PROMPT> rds-describe-db-security-groups -H
                    
                    
SECGROUP  Name     Description       
SECGROUP  Default  Default    
    EC2-SECGROUP  EC2 Group Name  EC2 Owner Id  Status    
    EC2-SECGROUP  mytestgroup     210987654321  authorized
    IP-RANGE  IP Range         Status    
    IP-RANGE  12.23.34.45/30   authorized
    IP-RANGE  1.2.3.4/32       authorized