Querying EVS Disks (Deprecated)
Function
This API is used to query all EVS disks. This API has been deprecated. Use another API.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
GET /v2/{project_id}/cloudvolumes
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
The project ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
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. The ID of the last record on the previous page. The returned value is the value of the item after this one. |
|
name |
No |
String |
The disk name. |
|
status |
No |
String |
The disk status. For details, see EVS Disk Status. |
|
limit |
No |
Integer |
The maximum number of query results that can be returned. The default value is 1000. |
|
availability_zone |
No |
String |
The AZ information. |
|
sort_key |
No |
String |
Definition The keyword based on which the returned results are sorted. Constraints N/A Range
-size: The disk capacity, in GiB. Default Value created_at |
|
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. |
Request 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
|
Parameter |
Type |
Description |
|---|---|---|
|
volumes |
Array of DiskSummary objects |
The list of returned disks. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
The disk ID. |
|
links |
Array of Link objects |
The disk URI. |
|
name |
String |
The disk name. You can enter up to 85 characters. |
|
Parameter |
Type |
Description |
|---|---|---|
|
href |
String |
Definition The corresponding shortcut link. Range N/A |
|
rel |
String |
Definition The shortcut link marker name. 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
None
Example Responses
Status code: 200
OK
{
"volumes" : [ {
"id" : "e6cf4401-15f6-44bd-ae2b-cff4dc9523e6",
"links" : [ {
"href" : "https://volume.az0.dc1.domainname.com/v2/cd631140887d4b6e9c786b67a6dd4c02/volumes/e6cf4401-15f6-44bd-ae2b-cff4dc9523e6",
"rel" : "self"
}, {
"href" : "https://volume.az0.dc1.domainname.com/cd631140887d4b6e9c786b67a6dd4c02/volumes/e6cf4401-15f6-44bd-ae2b-cff4dc9523e6",
"rel" : "bookmark"
} ],
"name" : "hallo5"
}, {
"id" : "4c5e8203-f70e-4717-90cd-4a8f636888d1",
"links" : [ {
"href" : "https://volume.az0.dc1.domainname.com/v2/cd631140887d4b6e9c786b67a6dd4c02/volumes/4c5e8203-f70e-4717-90cd-4a8f636888d1",
"rel" : "self"
}, {
"href" : "https://volume.az0.dc1.domainname.com/cd631140887d4b6e9c786b67a6dd4c02/volumes/4c5e8203-f70e-4717-90cd-4a8f636888d1",
"rel" : "bookmark"
} ],
"name" : "hallo4"
} ]
}
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