Method: Fog::Rackspace::AutoScale::Real#create_webhook

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

#create_webhook(group_id, policy_id, options) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/fog/rackspace/requests/auto_scale/create_webhook.rb', line 5

def create_webhook(group_id, policy_id, options)
  body = [options]

  request(
    :method => 'POST',
    :body => Fog::JSON.encode(body),
    :path => "groups/#{group_id}/policies/#{policy_id}/webhooks",
    :expects => 201
  )
end