CreateSecurityGroup
The CreateSecurityGroup
operation creates a
new security group.
Every instance is launched in a security group. If none is specified as part of the launch request then instances are launched in the default security group. Instances within the same security group have unrestricted network access to one another. Instances will reject network access attempts from other instances in a different security group. As the owner of instances you may grant or revoke specific permissions using the AuthorizeSecurityGroupIngress and RevokeSecurityGroupIngress operations.
The following table describes the request parameters for
CreateSecurityGroup
. Parameter names are case
sensitive.
Element Name | Definition | Required? | Type |
---|---|---|---|
GroupName
|
Name for the new security group. | Yes |
string
|
GroupDescription
|
Description of the new security group. | Yes |
string
|
The following table describes the default response tags included
in CreateSecurityGroup
responses.
Element Name | Definition | Type |
---|---|---|
return
|
true if call succeeded.
|
xsd:boolean
|
https://ec2.amazonaws.com/ ?Action==CreateSecurityGroup &GroupName=WebServers &GroupDescription=Web &...auth parameters...
<CreateSecurityGroupResponse xmlns="http://ec2.amazonaws.com/doc/2007-01-03"> <return>true</return> </CreateSecurityGroupResponse>