Listing Storage Pools
Function
This API is used to list storage pools.
-
This API supports fine-grained permissions for enterprise projects. For details, see ies:storagePool:list.
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 /v1/{domain_id}/storage-pools
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
domain_id |
Yes |
String |
Account ID in the path. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
limit |
No |
Integer |
Page size. |
|
marker |
No |
String |
Pagination identifier. |
|
sort_key |
No |
Array of strings |
Sorting field. |
|
sort_dir |
No |
Array of strings |
Sorting order. The options are as follows:
|
|
edge_site_id |
No |
String |
Edge site ID |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
storage_pools |
Array of StoragePool objects |
Storage pool list |
|
page_info |
PageInfo object |
Pagination information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Storage pool ID. |
|
name |
String |
Storage pool name |
|
edge_site_id |
String |
Edge site ID |
|
storage_type |
String |
Storage type.
|
|
status |
String |
Storage pool statuses:
|
|
assigned_size |
Integer |
Storage pool size Purchased storage capacity |
|
resource_spec_code |
String |
Resource specifications code |
|
product_info |
ProductInfo object |
Attribute information about the product to which the offering belongs. |
|
capacity |
Integer |
Total capacity |
|
market_options |
MarketOptions object |
Billing |
|
created_at |
String |
Time when the storage pool was created |
|
updated_at |
String |
Time when the storage pool was updated |
|
effected_at |
String |
Time when the storage pool took effect |
|
Parameter |
Type |
Description |
|---|---|---|
|
cloud_service_type |
String |
Cloud service type. |
|
resource_type |
String |
Resource type. |
|
resource_spec_code |
String |
Resource code. |
|
Parameter |
Type |
Description |
|---|---|---|
|
charge_mode |
String |
Billing mode.
|
|
prepaid_options |
PrepaidOptions object |
Yearly/Monthly billing. |
|
strategies |
Array of Strategy objects |
The list of sales policies. |
|
Parameter |
Type |
Description |
|---|---|---|
|
order_id |
String |
Order ID |
|
product_id |
String |
Product ID |
|
pay_mode |
String |
Yearly/Monthly payment.
|
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
String |
O&M status:
|
|
scene |
String |
Resource operations status:
POLICE: public security. ILLEGAL: violation scenario. VERIFY: The resource is frozen because the user fails to pass the real-name authentication. |
|
effect |
String |
Resource operations: DELETABLE: deletable UNDELETABLE: unable to delete |
Example Requests
Listing storage pools
GET https://{ies_endpoint}/v1/{domain_id}/storage-pools
Example Responses
Status code: 200
successful operation
{
"storage_pools" : [ {
"id" : "d70a8f73-edef-4b71-beb3-7dbc22f0365e",
"name" : "SAS-ojoiv",
"edge_site_id" : "a4a36874-c41b-4295-9fd5-6823864fd564",
"storage_type" : "SAS",
"status" : "AVAILABLE",
"assigned_size" : 36,
"resource_spec_code" : "ies.blockstorage.gear1",
"product_info" : {
"cloud_service_type" : "hws.service.type.ies",
"resource_type" : "hws.resource.type.iesvolume",
"resource_spec_code" : "ies.blockstorage.gear1"
},
"capacity" : 144,
"market_options" : {
"charge_mode" : "prepaid",
"prepaid_options" : {
"order_id" : "CS2201181056V3SK6",
"product_id" : "OFFI644832402269233154",
"pay_mode" : "FULL"
}
},
"created_at" : "2022-01-18T02:56:02.76091Z",
"updated_at" : "2022-01-18T02:59:56.5601Z",
"effected_at" : "2022-01-19T02:59:25Z"
} ],
"page_info" : {
"current_count" : 1
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
successful operation |
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