blob: a0ffcad7f4dd20c4eaa47c46a0e93ac44502f9df [file] [log] [blame]
Jamie Hannaford936a5472015-02-10 14:38:28 +01001package instances
2
3import (
4 "github.com/racker/perigee"
5 "github.com/rackspace/gophercloud"
6)
7
8func GetDefaultConfig(client *gophercloud.ServiceClient, id string) ConfigResult {
9 var res ConfigResult
10
11 resp, err := perigee.Request("GET", configURL(client, id), perigee.Options{
12 MoreHeaders: client.AuthenticatedHeaders(),
13 Results: &res.Body,
14 OkCodes: []int{200},
15 })
16
17 res.Header = resp.HttpResponse.Header
18 res.Err = err
19
20 return res
21}