Function scaleway_api_rs::apis::servers_api::server_action [−][src]
pub async fn server_action(
configuration: &Configuration,
zone: &str,
server_id: &str,
inline_object15: InlineObject15
) -> Result<ScalewayInstanceV1ServerActionResponse, Error<ServerActionError>>
Expand description
Perform power related actions on a server. Be wary that when terminating a server, all the attached volumes (local and block storage) are deleted. So, if you want to keep your local volumes, you must use the archive
action instead of terminate
. And if you want to keep block-storage volumes, you must detach it beforehand you issue the terminate
call. For more information, read the Volumes documentation.