Querying Details About an EVS Disk in the Recycle Bin
Function
This API is used to query details about a single EVS disk in the recycle bin.
Calling Method
For details, see Calling APIs.
URI
GET /v3/{project_id}/recycle-bin-volumes/{volume_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition The project ID. For details, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
|
volume_id |
Yes |
String |
Definition The disk ID. You can call the Querying Details About All EVS Disks API to obtain the disk ID. Constraints N/A Range N/A Default Value N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition The user token. You can obtain it by calling the IAM API for obtaining a user token. The token is the value of X-Subject-Token in the response header. Constraints N/A Range N/A Default Value N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
volume |
recycleBinVolume object |
Definition The disk details. Range N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Definition The disk ID. Range N/A |
|
name |
String |
Definition The disk name. Range N/A |
|
description |
String |
Definition The disk description. Range N/A |
|
status |
String |
Definition The disk status. For details, see EVS Disk Status. Range N/A |
|
attachments |
Array of Attachment objects |
Definition The disk attachment information. Range N/A |
|
multiattach |
String |
Definition Whether the disk is shareable. Range
|
|
size |
Integer |
Definition The disk capacity, in GiB. Range N/A |
|
metadata |
Map<String,Object> |
Definition The disk metadata information. Callers can add or remove the metadata information. Range The keys of this parameter used in EVS are described as follows:
|
|
bootable |
String |
Definition Whether the disk is bootable. Range
|
|
tags |
Map<String,String> |
Definition The disk tags. Range N/A |
|
availability_zone |
String |
Definition The AZ to which the disk belongs. Range N/A |
|
created_at |
String |
Definition The time when the disk was created. Range Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX |
|
service_type |
String |
Definition The service to which the disk belongs. Range
|
|
updated_at |
String |
Definition The time when the disk information was updated. Range Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX |
|
volume_type |
String |
Definition The disk type. Range The value can be SATA, SAS, GPSSD, SSD, ESSD, or GPSSD2.
|
|
enterprise_project_id |
String |
Definition The enterprise project ID. Range N/A |
|
plan_delete_at |
String |
Definition The time when a deleted disk will be permanently removed from the recycle bin. Range Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX |
|
pre_deleted_at |
String |
Definition The time when a disk was moved to the recycle bin. Range Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX |
|
dedicated_storage_id |
String |
Definition The ID of the dedicated storage pool housing the disk. Range N/A |
|
dedicated_storage_name |
String |
Definition The name of the dedicated storage pool housing the disk. Range N/A |
|
volume_image_metadata |
String |
Definition The metadata of the disk image. For details about the volume_image_metadata field, see Querying Image Details (Native OpenStack API). Range N/A |
|
wwn |
String |
Definition The disk's unique identifier. Range N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
attached_at |
String |
Definition The time when the disk was attached. Range Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX |
|
attachment_id |
String |
Definition The attachment ID. Range N/A |
|
device |
String |
Definition The device name. Range N/A |
|
host_name |
String |
Definition The name of the physical host housing the cloud server to which the disk is attached. Range N/A |
|
id |
String |
Definition The ID of the attached disk. Range N/A |
|
server_id |
String |
Definition The ID of the server to which the disk is attached. Range N/A |
|
volume_id |
String |
Definition The disk ID. Range N/A |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
Error object |
Definition The error code returned if an error occurs. For details about the error code, see Error Codes. Range N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
String |
Definition The error code returned if an error occurs. Range For details about the error code, see Error Codes. |
|
message |
String |
Definition The error message returned if an error occurs. Range N/A |
Example Requests
GET https://evs.cn-north-1.myhuaweicloud.com/v3/490e121341fc481d95f946ef844cb06a/recycle-bin-volumes/55b4c5a7-a82e-4881-9463-f8fbf8730d4f
Example Responses
Status code: 200
OK
{
"volume" : {
"id" : "552f3de0-5a22-49a6-9e99-18b1e9cd6b71",
"name" : "IaaS_Universal_Tenant_Basic_Computing_BMS_503_0",
"status" : "restorable",
"size" : 10,
"metadata" : {
"hw:passthrough" : "true",
"readonly" : "False"
},
"bootable" : "false",
"tags" : { },
"wwn" : "6888603000026e18fa16988434130925",
"availability_zone" : "AZ2",
"created_at" : "2019-01-15T01:48:07.432000",
"volume_type" : "SATA",
"multiattach" : false,
"updated_at" : "2019-01-15T01:54:35.369000",
"service_type" : "EVS",
"volume_image_metadata" : { },
"enterprise_project_id" : "0",
"plan_delete_at" : "2019-01-22T01:54:30.255000",
"pre_deleted_at" : "2019-01-15T01:54:30.255000"
}
}
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot