Change virtual server

Description

Changes the registration information of the specified virtual server.

It is possible to make changes to the name and server specs (number of CPUs, CPU performance, and memory).

To downsize CPU or memory, it is necessary to stop the virtual server first.

Request

Header

Content-Type: application/xml

Accept: application/xml

X-Auth-Token: Keystone token (*1)

X-VA-Project-Id: ID of the project that owns the resource (*2)

X-VA-Domain-Id: ID of the domain that owns the resource (*2)

*1: The scope specified for the token is ignored when this API is executed by the system administrator.

*2: Mandatory when this API is executed by the system administrator. ignored when executed by other users.

Method

PUT

Path

/l_servers/virtualServerResourceId

Query

n/a

Body

The content will be changed if it is different to the current settings.

For a detailed explanation of the elements to configure, refer to the explanation of the body of the creation API given in "Create virtual server".


       <Resources>
        <LServer name="virtualServerName">
         <TemplateLink name="virtualServerTemplName"/>
        </LServer>
       </Resources>
     

Response

Status code

202 Accepted

Body

Task information