Querying Storage Billing Tiers
Function
This API returns only the supported storage billing tiers. You can specify the actual storage capacity.
URI
GET /v2/{domain_id}/storage-gears
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
domain_id |
Yes |
String |
Account ID in the URI. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
zone_code |
No |
String |
Area code. |
|
pay_mode |
No |
Array of strings |
Billing mode. |
|
period_num |
No |
Array of integers |
Purchase duration. |
|
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_gears |
Array of StorageGearV2 objects |
List of supported storage tiers. |
|
page_info |
PageInfo object |
Pagination information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Storage tier ID. |
|
gear |
Integer |
Storage tier, for example, 35 TB. |
|
storage_type |
String |
Storage type (SAS: high I/O; SSD: ultra-high I/O). |
|
product_info |
ProductInfo object |
Attribute information about the product to which the offering belongs. |
|
zone_code |
String |
Deployment area. |
|
sale_cycles |
Array of SaleCycle objects |
Objects of the sales cycle. |
|
Parameter |
Type |
Description |
|---|---|---|
|
cloud_service_type |
String |
Cloud service type. |
|
resource_type |
String |
Resource type. |
|
resource_spec_code |
String |
Resource code. |
Example Request
Querying storage billing tiers
GET https://{ies_endpoint}/v2/{domain_id}/storage-gears
Example Response
Status code: 200
successful operation
{
"storage_gears" : [ {
"id" : "00000000-0000-000-0000-000000000000",
"gear" : 35,
"storage_type" : "SAS",
"product_info" : {
"cloud_service_type" : "hws.service.type.ies",
"resource_type" : "hws.resource.type.iesvolume",
"resource_spec_code" : "ies.blockstorage.gear1"
},
"zone_code" : "CN",
"sale_cycles" : [ {
"pay_mode" : "FULL",
"period_type" : "year",
"period_num" : 3
} ]
} ],
"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