CreateSecurityGroup
The CreateSecurityGroup
operation creates a
new security group.
Every instance is launched in a security group. If no security group is specified during launch, the instances are launched in the default security group. Instances within the same security group have unrestricted network access to each other. Instances will reject network access attempts from other instances in a different security group. As the owner of instances you can grant or revoke specific permissions using the AuthorizeSecurityGroupIngress and RevokeSecurityGroupIngress operations.
Request Parameters
The following table describes the request parameters for
CreateSecurityGroup
. Parameter names are case
sensitive.
Name | Description | Required |
---|---|---|
|
Name of the new security group. Type: String |
Yes |
|
Description of the new security group. Type: String |
Yes |
Response Elements
The following table describes the default response tags included
in CreateSecurityGroup
responses.
Name | Description |
---|---|
|
Type: xsd:boolean |
Sample Request
https://ec2.amazonaws.com/ ?Action==CreateSecurityGroup &GroupName=WebServers &GroupDescription=Web &...auth parameters...
Sample Response
<CreateSecurityGroupResponse xmlns="http://ec2.amazonaws.com/doc/2008-08-08"> <return>true</return> </CreateSecurityGroupResponse>