• Bare Metal Server

bms
  1. Help Center
  2. Bare Metal Server
  3. API Reference
  4. API
  5. BMS Disk Management (Native OpenStack APIs)
  6. Querying Information About the Disks Attached to a BMS (Native OpenStack API)

Querying Information About the Disks Attached to a BMS (Native OpenStack API)

Function

This interface is used to query information about the Elastic Volume Service (EVS) disks attached to a BMS.

URI

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

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.

Request Message

N/A

Response Message

  • Response parameters

    Parameter

    Type

    Description

    volumeAttachments

    List data structure [1]

    Specifies information about EVS disks attached to a BMS.

    [1] volumeAttachments field data structure description

    Parameter

    Type

    Description

    device

    String

    Specifies the directory to which the disks are mounted.

    id

    String

    Specifies the ID of the attached resource.

    serverId

    String

    Specifies the ID of the BMS to which the disks are attached.

    volumeId

    String

    Specifies the IDs of the EVS disks attached to the BMS.

  • Example response
    {
        "volumeAttachment": {
            "device": "/dev/vdb",
            "serverId": "820abbd0-2d8e-4bc5-ae46-69cacfd4fbaa",
            "id": "b53f23bd-ee8f-49ec-9420-d1acfeaf91d6",
            "volumeId": "b53f23bd-ee8f-49ec-9420-d1acfeaf91d6"
        }
    }

Returned Values

See section Common Returned Values.