3.1.13. Evacuate server

 
MethodURIDescription
POST/v2/{tenant_id}/servers/{server_id}/action

Evacuates a server from failed host.

Normal response codes: 200

 3.1.13.1. Request

This table shows the URI parameters for the evacuate server request:

NameTypeDescription

{tenant_id}

​String

The ID for the tenant or account in a multi-tenancy cloud.

{server_id}

​U​U​ID

The UUID for the server of interest to you.

 

Example 3.25. Evacuate server: JSON request

{
    "evacuate": {
        "host": "TargetHost",
        "adminPass": "MySecretPass",
        "onSharedStorage": "True"
    }
}

 

Example 3.26. Evacuate server: XML request

<?xml version="1.0" encoding="UTF-8"?>
<evacuate xmlns="http://docs.openstack.org/compute/api/v2"
    host="TargetHost"
    adminPass="MySecretPass"
    onSharedStorage="True"/>

This operation does not require a request body.

 3.1.13.2. Response

 

Example 3.27. Evacuate server: JSON response

{
    "adminPass": "MySecretPass"
}

 

Example 3.28. Evacuate server: XML response

<?xml version='1.0' encoding='UTF-8'?>
<adminPass>MySecretPass</adminPass>

This operation does not return a response body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...