Enable root user
diff --git a/openstack/db/v1/instances/requests.go b/openstack/db/v1/instances/requests.go
index 6fe423b..b54b9fa 100644
--- a/openstack/db/v1/instances/requests.go
+++ b/openstack/db/v1/instances/requests.go
@@ -226,3 +226,18 @@
return res
}
+
+func EnableRootUser(client *gophercloud.ServiceClient, id string) UserRootResult {
+ var res UserRootResult
+
+ resp, err := perigee.Request("POST", userRootURL(client, id), perigee.Options{
+ MoreHeaders: client.AuthenticatedHeaders(),
+ Results: &res.Body,
+ OkCodes: []int{200},
+ })
+
+ res.Header = resp.HttpResponse.Header
+ res.Err = err
+
+ return res
+}