The following table describes the request parameters for CreateSecurityGroup. Parameter names are
case sensitive.
Element Name Definition Re-
quired?
Type
groupName Name for the new security group. Yes xsd:string
groupDescrip-
tion
Description of the new security group. Yes xsd:string
Response Tags
The following table describes the default response tags included in CreateSecurityGroup responses.
Element Name Definition
return true if call succeeded.
Sample Request
<CreateSecurityGroup xmlns="http://ec2.amazonaws.com/doc/2006-06-26">
<groupName>WebServers</groupName>
<groupDescription>Web</groupDescription>
</CreateSecurityGroup>
Sample Response
<CreateSecurityGroupResponse xmlns="">
<return>true</return>
</CreateSecurityGroupResponse>
Related Operations
RunInstances
DescribeSecurityGroups
AuthorizeSecurityGroupIngress
RevokeSecurityGroupIngress
DeleteSecurityGroup
DescribeSecurityGroups
The DescribeSecurityGroups operation returns information about security groups owned by the
user making the request.
An optional list of security group names may be provided to request information for those security
groups only. If no security group names are provided, information of all security groups will be
returned. If a group is specified that does not exist a fault is returned.
Amazon EC2
Developer Guide
67
Request Parameters
The following table describes the request parameters for DescribeSecurityGroups. Parameter
names are case sensitive.
Element Name Definition Re-
quired?
Type
securityGroup-
Set
List of security groups to describe. Yes xsd:string[]
Response Tags
The following table describes the default response tags included in DescribeSecurityGroups
responses.
Element Name Definition
securityGroupInfo Information about security groups.
Sample Request
<DescribeSecurityGroups xmlns="http://ec2.amazonaws.com/doc/2006-06-26">
<securityGroupSet>
<item>
<groupName>WebServers</groupName>
</item>
<item>
<groupName>RangedPortsBySource</groupName>
</item>
</securityGroupSet>
</DescribeSecurityGroups>
Sample Response
<DescribeSecurityGroupsResponse xm-
lns="http://ec2.amazonaws.com/doc/2006-06-26">
<securityGroupInfo>
<item>
<ownerId>UYY3TLBUXIEON5NQVUUX6OMPWBZIQNFM</ownerId>
<groupName>WebServers</groupName>
<groupDescription>Web</groupDescription>
<ipPermissions>
<item>
<ipProtocol>tcp</ipProtocol>
<fromPort>80</fromPort>
<toPort>80</toPort>
<groups/>
<ipRanges>
<item>
<cidrIp>0.0.0.0/0</cidrIp>
</item>
</ipRanges>
</item>
</ipPermissions>
</item>
<item>
Amazon EC2
Developer Guide
68
Previous Page Next Page