Get instance :rocket:
diff --git a/openstack/db/v1/instances/requests.go b/openstack/db/v1/instances/requests.go
index eb60342..d5709b3 100644
--- a/openstack/db/v1/instances/requests.go
+++ b/openstack/db/v1/instances/requests.go
@@ -197,3 +197,18 @@
return pagination.NewPager(client, baseURL(client), createPageFn)
}
+
+func Get(client *gophercloud.ServiceClient, id string) GetResult {
+ var res GetResult
+
+ resp, err := perigee.Request("GET", resourceURL(client, id), perigee.Options{
+ MoreHeaders: client.AuthenticatedHeaders(),
+ Results: &res.Body,
+ OkCodes: []int{200},
+ })
+
+ res.Header = resp.HttpResponse.Header
+ res.Err = err
+
+ return res
+}