• 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 a Disk Attached to a BMS (Native OpenStack API)

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

Function

This interface is used to query information about a single disk attached to a BMS based on the disk ID.

URI

GET /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.

volume_id

Yes

Specifies the disk ID.

Request Message

N/A

Response Message

  • Response parameters

    Parameter

    Type

    Description

    volumeAttachment

    Dictionary data structure [1]

    Specifies information about the EVS disk attached to a BMS.

    [1] volumeAttachment field data structure description

    Parameter

    Type

    Description

    device

    String

    Specifies the directory to which the disk is mounted.

    id

    String

    Specifies the ID of the attached resource.

    serverId

    String

    Specifies the ID of the BMS to which the disk is attached.

    volumeId

    String

    Specifies the ID of the disk 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.