• Bare Metal Server

bms
  1. Help Center
  2. Bare Metal Server
  3. API Reference
  4. API
  5. BMS Disk Management (Native OpenStack APIs)
  6. Detaching an EVS Disk from a BMS (Native OpenStack API)

Detaching an EVS Disk from a BMS (Native OpenStack API)

Function

This interface is used to detach an EVS disk from a BMS.

Constraints

If a BMS is stopped, disks can be detached from it without any limitation on the OS. If a BMS is in running state, the constraints are as follows:

  • Before detaching an EVS disk from a Linux BMS, log in to the BMS, run the unmount command to disassociate the disk to be detached from the file system, and ensure that no program is reading data from or writing data to the disk. Otherwise, the disk will fail to be detached.
  • Before detaching an EVS disk from a running Windows BMS, ensure that no program is reading data from or writing data to the disk. Otherwise, data will be lost.

URI

DELETE /v2.1/{project_id}/servers/{server_id}/os-volume_attachments/{volume_id}

Table 1 lists the parameters.

Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

server_id

Yes

Specifies the BMS ID.

volume_id

Yes

Specifies the ID of the EVS disk attached to the BMS.

Request Message

N/A

Response Message

N/A

Returned Values

See section Common Returned Values.