commit | 5f95e6afc50087d85b67a1b62c46300c07e00a61 | [log] [tgz] |
---|---|---|
author | Jamie Hannaford <jamie.hannaford@rackspace.com> | Fri Oct 31 16:13:44 2014 +0100 |
committer | Jamie Hannaford <jamie.hannaford@rackspace.com> | Fri Nov 07 14:01:56 2014 +0100 |
tree | 79d49ff4f09d2b5e11ff3e2f93a87798768f7652 | |
parent | 1c2603311c5c8aed3c184dcbb626cbf222932588 [diff] [blame] |
Add support for deleting LBs
diff --git a/rackspace/lb/lb/requests.go b/rackspace/lb/lb/requests.go index e2c5a01..0be2d4a 100644 --- a/rackspace/lb/lb/requests.go +++ b/rackspace/lb/lb/requests.go
@@ -247,3 +247,14 @@ return res } + +func Delete(c *gophercloud.ServiceClient, id int) DeleteResult { + var res DeleteResult + + _, res.Err = perigee.Request("DELETE", resourceURL(c, id), perigee.Options{ + MoreHeaders: c.AuthenticatedHeaders(), + OkCodes: []int{202}, + }) + + return res +}