Attach disk to virtual server

Description

Attaches a disk to the specified virtual server.

Request

Header

Content-Type: application/x-www-form-urlencoded

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

Query

n/a

Body

Argument name Description
index Disk index (optional). Integer starting from 1.

If omitted, largestDiskNum + 1 will be used.

Even if the disk numbers are not consecutive, the way of assigning numbers is the same (for example, if the disk numbers are 1,3 and a disk is attached, the disk numbers become 1,3,4).

disk_type Disk type (optional).
  • "M1" (default)

    Adds standard type storage.

  • "H2"

    Adds high-performance type storage.

disk_size Disk capacity
Using GB as the unit and based on the disk type, specify values in the following ranges:
  • For standard type

    A number with up to one decimal place, in the range of 0.1 - 2047 GB

  • For high-performance

    An integer in the range of 512 - 2047 GB

Response

Status code

202 Accepted

Body

Task information