Detach disk from virtual server

Description

Detaches the specified disk from the specified virtual server.

Stop (power off) the virtual server before detaching the disk.

Note that the disk number of the remaining disks will remain unchanged after detachment (for example: if the disk numbers are 0,1,2 and 1 is detached, the disk numbers become 0,2).

Request

Header

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/detach

Query

n/a

Body

Argument name Description
disk_rid Resource ID of the disk to be detached.

Response

Status code

202 Accepted

Body

Task information