Rackspace Auto Scale: Add webhooks Get()
diff --git a/rackspace/autoscale/v1/webhooks/requests.go b/rackspace/autoscale/v1/webhooks/requests.go
index 5bcc3da..38aa4a7 100644
--- a/rackspace/autoscale/v1/webhooks/requests.go
+++ b/rackspace/autoscale/v1/webhooks/requests.go
@@ -84,3 +84,12 @@
pr := pagination.PageResultFromParsed(resp, res.Body)
return CreateResult{pagination.SinglePageBase(pr)}
}
+
+// Get requests the details of a single webhook with the given ID.
+func Get(client *gophercloud.ServiceClient, groupID, policyID, webhookID string) GetResult {
+ var result GetResult
+
+ _, result.Err = client.Get(getURL(client, groupID, policyID, webhookID), &result.Body, nil)
+
+ return result
+}