Method: Fog::Compute::AWS::Real#create_security_group

Defined in:
lib/fog/compute/requests/aws/create_security_group.rb

#create_security_group(name, description) ⇒ Object

Create a new security group

Parameters

  • group_name<~String> - Name of the security group.

  • group_description<~String> - Description of group.

Returns

  • response<~Excon::Response>:

    • body<~Hash>:

      • ‘requestId’<~String> - Id of request

      • ‘return’<~Boolean> - success?

Amazon API Reference



21
22
23
24
25
26
27
28
# File 'lib/fog/compute/requests/aws/create_security_group.rb', line 21

def create_security_group(name, description)
  request(
    'Action'            => 'CreateSecurityGroup',
    'GroupName'         => name,
    'GroupDescription'  => description,
    :parser             => Fog::Parsers::Compute::AWS::Basic.new
  )
end