Querying Details About an EVS Disk Type
Function
This API is used to query details about an EVS disk type.
Calling Method
For details, see Calling APIs.
URI
GET /v3/{project_id}/types/{type_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
The project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
type_id |
Yes |
String |
The disk type ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
The user token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
volume_type |
VolumeType object |
The returned disk type. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
The disk type ID. |
name |
String |
The disk type name. |
extra_specs |
VolumeTypeExtraSpecs object |
The disk type flavor. |
description |
String |
The disk type description. |
qos_specs_id |
String |
The reserved field. |
is_public |
Boolean |
The reserved field. |
Parameter |
Type |
Description |
---|---|---|
RESKEY:availability_zones |
String |
The list of AZs where the disk type is supported. Elements in the list are separated by commas (,). If this parameter is not specified, the disk type is supported in all AZs. |
availability-zone |
String |
The reserved field. |
os-vendor-extended:sold_out_availability_zones |
String |
The list of AZs where the disk type has been sold out. Elements in the list are separated by commas (,). |
volume_backend_name |
String |
The reserved field. |
HW:availability_zone |
String |
The reserved field. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
The error message returned if an error occurs. |
Parameter |
Type |
Description |
---|---|---|
code |
String |
The error code returned if an error occurs. For details about error codes and their meanings, see Error Codes. |
message |
String |
The error message returned if an error occurs. |
Example Requests
GET https://{endpoint}/v3/{project_id}/types/{type_id}
Example Responses
Status code: 200
OK
{ "volume_type" : { "extra_specs" : { "volume_backend_name" : "SATA", "availability-zone" : "az-dc-1", "RESKEY:availability_zones" : "az-dc-1,az-dc-2", "os-vendor-extended:sold_out_availability_zones" : "az-dc-2" }, "name" : "SATA", "qos_specs_id" : null, "is_public" : true, "id" : "ea6e3c13-aac5-46e0-b280-745ed272e662", "description" : null } }
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