Closed ClayHostDE closed 3 years ago
You get a normal response from this method, so you should just get the password by using:
$response = $server->resetRootPassword()
var_dump($response->getResponsePart('root_password'));
ok thank you very much.
Can i set a custom password with this method?
No, actually please read the documentation of the Hetzner Cloud API. This SDK is just a wrapper for the API calls.
I developed a Module and use the function $server->resetRootPassword();.
How to Print the Password?