Help Center/ Elastic Volume Service/ API Reference/ API/ Disk Management/ Querying Details About All EVS Disks (Deprecated)
Updated on 2024-02-27 GMT+08:00

Querying Details About All EVS Disks (Deprecated)

Function

This API is used to query details about all EVS disks. Note: This API has been deprecated. Use another API.

Calling Method

For details, see Calling APIs.

URI

GET /v2/{project_id}/os-vendor-volumes/detail

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

The project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

availability_zone

No

String

The AZ information.

changessince

No

String

The time when the disk was updated, for example, 2016-01-08T09:41:18. This is an extended attribute. Only administrators can set this parameter.

dedicated_storage_id

No

String

The dedicated storage pool ID. All disks in the dedicated storage pool can be filtered by exact match.

dedicated_storage_name

No

String

The dedicated storage pool name. All disks in the dedicated storage pool can be filtered by fuzzy match.

id

No

String

The disk ID.

ids

No

Array

The disk IDs. The value is in the ids=['id1','id2',...,'idx'] format. In the response, the ids value contains valid disk IDs only. Invalid disk IDs are ignored. The details about a maximum of 60 disks can be queried. If id and ids are both specified in the request, id will be ignored.

limit

No

Integer

The maximum number of query results that can be returned. The value must be an integer greater than 0. The default value is 1000.

marker

No

String

The ID of the last record on the previous page. The returned value is the value of the item after this one.

metadata

No

String

The disk metadata.

multiattach

No

Boolean

Whether the disk is shareable.

name

No

String

The disk name.

offset

No

Integer

The query offset. All disks after this offset are queried. The value must be an integer greater than 0 but less than the number of disks.

service_type

No

String

The service type. Supported services are EVS, DSS, and DESS.

sort_dir

No

String

The result sorting order. The value can be desc (descending order) or asc (ascending order), and the default value is desc.

sort_key

No

String

The keyword based on which the returned results are sorted. The value can be id, status, size, or created_at, and the default value is created_at.

status

No

String

The disk status.

volume_type_id

No

String

The disk type ID.

root_resource_type

No

String

The root resource type.

root_resource_id

No

String

The root resource ID.

parent_resource_type

No

String

The parent resource type.

parent_resource_id

No

String

The parent resource ID.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

A token obtained from IAM is valid for 24 hours. When using a token for authentication, cache it to avoid frequently calling the API.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

count

Integer

The number of queried disks. This value is not affected by the pagination.

volumes

Array of DiskDetail objects

The list of returned disks.

volumes_links

Array of Link objects

The query position marker in the disk list. If only some disks are returned in this query, the URL of the last disk queried is returned. You can use this URL to continue to query the remaining disks in the next query.

Table 5 DiskDetail

Parameter

Type

Description

attachments

Array of DiskAttachment objects

The disk attachment information.

availability_zone

String

The AZ to which the disk belongs.

bootable

String

Whether the disk is bootable.

consistencygroup_id

String

The ID of the consistency group where the disk belongs.

count

String

The number of disks queried.

created_at

String

The time when the disk was created.

Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX

dedicated_storage_id

String

The ID of the dedicated storage pool housing the disk.

dedicated_storage_name

String

The name of the dedicated storage pool housing the disk.

description

String

The disk description.

encrypted

Boolean

Whether the disk is encrypted.

enterprise_project_id

String

The ID of the enterprise project that the disk has been added to. This field is currently not supported.

id

String

The disk ID.

links

Array of Link objects

The disk URI.

metadata

DiskMetadata object

The metadata.

multiattach

Boolean

Whether the disk is shareable.

name

String

The disk name.

os-vendor-extended:lock_check_endpoint

String

The callback URL used to check the lock validity.

os-vendor-extended:lock_scene

String

The operation or service that locks the disk.

os-vendor-extended:lock_source_id

String

The ID of resource to which the lock belongs.

os-vendor-extended:lock_source_service

String

The type of resource to which the lock belongs.

os-vol-host-attr:host

String

The host to which the disk belongs.

os-vol-mig-status-attr:migstat

String

The reserved field.

os-vol-mig-status-attr:name_id

String

The reserved field.

os-vol-tenant-attr:tenant_id

String

The ID of the tenant to which the disk belongs.

os-volume-replication:driver_data

String

The reserved field.

os-volume-replication:extended_status

String

The reserved field.

replication_status

String

The reserved field.

service_type

String

The service type. Supported services are EVS, DSS, and DESS.

shareable

String

Whether the disk is shareable.

size

Integer

The disk size.

snapshot_id

String

The snapshot ID.

source_volid

String

The source disk ID.

status

String

The disk status. For details, see EVS Disk Status.

tags

Object

The disk tags.

This field has values if the disk has tags. Or, it is left empty.

updated_at

String

The time when the disk was updated.

user_id

String

The reserved field.

volume_image_metadata

Object

The image metadata. This field has a value if the disk is created from an image. Or, null is returned.

NOTE:

For details about the volume_image_metadata field, see Querying Image Details (Native OpenStack API).

volume_type

String

The disk type.

The value can be SATA, SAS, GPSSD, or SSD.

  • SATA: the common I/O type

  • SAS: the high I/O type

  • GPSSD: the general purpose SSD type

  • SSD: the ultra-high I/O type

wwn

String

The unique identifier used when attaching the disk.

root_resource_type

String

The root resource type.

root_resource_id

String

The root resource ID.

parent_resource_type

String

The parent resource type.

parent_resource_id

String

The parent resource ID.

Table 6 DiskAttachment

Parameter

Type

Description

attached_at

String

The time when the disk was attached.

Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX

attachment_id

String

The attachment ID.

device

String

The device name.

host_name

String

The name of the physical host housing the cloud server to which the disk is attached.

id

String

The ID of the attached disk.

server_id

String

The ID of the server to which the disk is attached.

volume_id

String

The disk ID.

Table 7 DiskMetadata

Parameter

Type

Description

__system__cmkid

String

The encryption CMK ID in metadata. This parameter is used together with __system__encrypted for encryption. The length of cmkid is fixed at 36 bytes.

__system__encrypted

String

The encryption field in metadata. The value can be 0 (no encryption) or 1 (encryption). If this parameter does not appear, the disk is not encrypted.

full_clone

String

The clone method. When the disk is created from a snapshot, value 0 indicates the linked cloning method.

hw:passthrough

String

The parameter that describes the disk device type in metadata.

  • If this parameter value is true, the disk device type is SCSI, which allows ECS OSs to directly access the underlying storage media. SCSI reservation commands are supported.

  • If this parameter value is false, the disk device type is VBD, which supports only simple SCSI read/write commands.

  • If this parameter does not appear, the disk device type is VBD.

Status code: 400

Table 9 Response body parameters

Parameter

Type

Description

error

Error object

The error message returned if an error occurs. For details, seeParameters in the error field.

Table 10 Error

Parameter

Type

Description

code

String

The error code returned if an error occurs. For the error codes and their meanings, see Error Codes.

message

String

The error message returned if an error occurs.

Example Requests

GET https://{endpoint}/v2/{project_id}/os-vendor-volumes/detail

https://{endpoint}/v2/{project_id}/os-vendor-volumes/detail

Example Responses

Status code: 200

OK

{
  "count" : 1,
  "volumes" : [ {
    "attachments" : [ ],
    "availability_zone" : "xxx",
    "bootable" : "false",
    "created_at" : "2016-05-25T02:42:10.856332",
    "encrypted" : false,
    "id" : "b104b8db-170d-441b-897a-3c8ba9c5a214",
    "links" : [ {
      "href" : "https://volume.localdomain.com:8776/v2/dd14c6ac581f40059e27f5320b60bf2f/volumes/b104b8db-170d-441b-897a-3c8ba9c5a214",
      "rel" : "self"
    }, {
      "href" : "https://volume.localdomain.com:8776/dd14c6ac581f40059e27f5320b60bf2f/volumes/b104b8db-170d-441b-897a-3c8ba9c5a214",
      "rel" : "bookmark"
    } ],
    "metadata" : {
      "__openstack_region_name" : "pod01.xxx",
      "a" : "b",
      "quantityGB" : "1",
      "volInfoUrl" : "fusionstorage://172.30.64.10/0/FEFEEB07D3924CDEA93C612D4E16882D"
    },
    "name" : "zjb_u25_test",
    "os-vol-host-attr:host" : "pod01.xxx#SATA",
    "volume_image_metadata" : { },
    "os-vol-tenant-attr:tenant_id" : "dd14c6ac581f40059e27f5320b60bf2f",
    "replication_status" : "disabled",
    "multiattach" : false,
    "size" : 1,
    "status" : "available",
    "updated_at" : "2016-05-25T02:42:22.341984",
    "user_id" : "b0524e8342084ef5b74f158f78fc3049",
    "volume_type" : "SATA",
    "service_type" : "EVS",
    "wwn" : " 688860300000d136fa16f48f05992360"
  } ],
  "volumes_links" : [ {
    "href" : "https://volume.localdomain.com:8776/v2/dd14c6ac581f40059e27f5320b60bf2f/volumes/detail?limit=1&marker=b104b8db-170d-441b-897a-3c8ba9c5a214",
    "rel" : "next"
  } ]
}

Status code: 400

Bad Request

{
  "error" : {
    "message" : "XXXX",
    "code" : "XXX"
  }
}

Status Codes

Status Code

Description

200

OK

400

Bad Request

Error Codes

See Error Codes.