Querying Storage Types
Function
This API is used to query the supported storage types, including purchase increments.
URI
GET /v2/{domain_id}/storage-types
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
domain_id |
Yes |
String |
Account ID in the URI. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
zone_code |
No |
String |
Area code. |
|
name |
No |
String |
Storage types. |
|
limit |
No |
Integer |
The number of records on each page. |
|
marker |
No |
String |
Pagination marker. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
storage_types |
Array of StorageTypeOption objects |
Storage type list. |
|
page_info |
PageInfo object |
Pagination information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Storage type ID. The value is in UUID format. |
|
name |
String |
The storage type for sale. |
|
zone_code |
String |
Area code, which indicates that devices can be purchased and deployed in this area. |
|
expand_capacity_step |
Integer |
Purchase increments. If the value is 0, only the capacity in gears can be purchased. |
|
supported_capacities |
Array of integers |
Fixed purchase capacity. If this parameter is left blank, the capacity is purchased by purchase increment. |
Example Request
Querying storage types
GET https://{ies_endpoint}/v2/{domain_id}/storage-types
Example Response
Status code: 200
successful operation
{
"storage_types" : [ {
"id" : "00000000-0000-000-0000-000000000000",
"name" : "SAS",
"zone_code" : "CN",
"expand_capacity_step" : 20,
"supported_capacities" : [ 35, 70, 140 ]
} ],
"page_info" : {
"current_count" : 1
}
}
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
successful operation |
Error Codes
For details, 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