3.48.4. Resize server

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

Resizes a server.

Normal response codes: 202

 3.48.4.1. Request

This table shows the URI parameters for the resize 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.410. Resize server: JSON request

{
    "resize": {
        "flavorRef": "3",
        "OS-DCF:diskConfig": "AUTO"
    }
}

 

Example 3.411. Resize server: XML request

<?xml version="1.0" encoding="UTF-8"?>
<resize xmlns:OS-DCF="http://docs.openstack.org/compute/ext/disk_config/api/v1.1"
        xmlns:atom="http://www.w3.org/2005/Atom"
        xmlns="http://docs.openstack.org/compute/api/v1.1"
        OS-DCF:diskConfig="AUTO"
        flavorRef="3" />

This operation does not require a request body.

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


loading table of contents...