跳到主要内容

GET – 由存储控制器管理的 StoragePool

使用 GET 方法检索服务器的 StoragePool 资源。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Systems/1/Storage/{StorageId}/StoragePools/{StoragePoolId}

响应正文

字段

类型

描述

AllocatedVolumes

链接

从此存储池分配的卷集合的引用。

Capacity

对象

容量利用率。

 

Data

对象

与用户数据相关的容量信息。

  

AllocatedBytes

整数

存储系统当前在此数据存储中为此数据类型分配的字节数。

  

ConsumedBytes

整数

此数据类型在此数据存储中占用的字节数。

CapacitySources

数组

此存储的空间分配数组。

 

CapacitySources[]

对象

此存储的空间分配的每个元素。

  

ProvidingDrives

链接

提供此空间的一个或多个硬盘。

  

Id

字符串

CapacitySource 的资源 ID。

  

Name

字符串

CapacitySource 的资源名称。

  

Description

字符串

此 CapacitySource 的描述。

Description

字符串

“This resource is used to represent StoragePool in Redfish implementation.”

EncryptionEnabled

布尔

此属性的值应为布尔值,指示是否启用了加密。

Id

字符串

卷 ID

Link

对象

已展开。

 

DedicatedSpareDrives

数组

作为此卷专用备用盘的引用数组。

MaxBlockSizeBytes

数字

最大块大小(以字节为单位)。

Name

字符串

卷信息名称

RemainingCapacityPercent

数字

卷中剩余容量的百分比。

Status

对象

此存储池的状态。

 

State

字符串

此存储池的状态。

 

Health

字符串

此存储池的运行状况。

SupportedRAIDTypes

数组

存储池支持的 RAID 类型集合。

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"@odata.context": "/redfish/v1/$metadata#StoragePool.StoragePool",
"@odata.etag": "\"021A239E\"",
"@odata.id": "/redfish/v1/Systems/1/Storage/controller_slot8/StoragePools/Pool_8_238",
"@odata.type": "#StoragePool.StoragePool",
"AllocatedVolumes": {
"@odata.id": "/redfish/v1/Systems/1/Storage/controller_slot8/StoragePools/ Pool_8_238/AllocatedVolumes"
},
"Capacity": {
"Data": {
"AllocatedBytes": 3997997989888,
"ConsumedBytes": 3997997989888
}
},
"CapacitySources": [
{
"@odata.context": "/redfish/v1/$metadata#Capacity.CapacitySource",
"@odata.id": "/redfish/v1/Systems/1/Storage/controller_slot8/StoragePools/ Pool_8_238/CapacitySources/1",
"@odata.type": "#Capacity.v1_2_0.CapacitySource",
"Description": "The resource is used to represent a capacity for a Redfish implementation.",
"Id": 1,
"Name": "CapacitySources_1",
"ProvidingDrives": {
"@odata.id": "/redfish/v1/Systems/1/Storage/controller_slot8/StoragePools/ Pool_8_238/CapacitySources/1/ProvidingDrives"
}
}
],
"Description": "This resource is used to represent a storage pool for a Redfish implementation.",
"EncryptionEnabled": false,
"Id": "Pool_8_238",
"Links": {
"DedicatedSpareDrives": []
},
"MaxBlockSizeBytes": 512,
"Name": "Pool_8_238",
"RemainingCapacityPercent": 0,
"Status": {
"Health": "OK",
"State": "Enabled"
},
"SupportedRAIDTypes": [
"RAID10"
]
}