func (c context) restartInstance() { id := c.instanceID err := instances.Restart(c.client, id).ExtractErr() c.AssertNoErr(err) c.Logf("Restarting %s. Waiting...", id) c.WaitUntilActive(id) c.Logf("Restarted %s", id) }
// Restart will restart only the MySQL Instance. Restarting MySQL will // erase any dynamic configuration settings that you have made within MySQL. // The MySQL service will be unavailable until the instance restarts. func Restart(client *gophercloud.ServiceClient, id string) os.ActionResult { return os.Restart(client, id) }