Method: Fog::Rackspace::AutoScale::Real#create_group

Defined in:
lib/fog/rackspace/requests/auto_scale/create_group.rb

#create_group(launch_config, group_config, policies) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/rackspace/requests/auto_scale/create_group.rb', line 5

def create_group(launch_config, group_config, policies)
  body = {
    'launchConfiguration' => launch_config,
    'groupConfiguration' => group_config,
    'scalingPolicies' => policies
  }

  request(
    :expects => [201],
    :method => 'POST',
    :path => 'groups',
    :body => Fog::JSON.encode(body)
  )
end