Skip to main content
Element Software
12.5 and 12.7
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

ListDrives

贡献者

您可以使用 ListDrives 方法列出集群活动节点中的驱动器。此方法将返回已添加为卷元数据或块驱动器的驱动器,以及尚未添加且可用的驱动器。

Parameters

此方法没有输入参数。

返回值

此方法具有以下返回值:

Name Description Type

驱动器

集群中的驱动器列表。

驱动器 数组

请求示例

此方法的请求类似于以下示例:

{
   "method": "ListDrives",
   "params": {},
   "id" : 1
}

响应示例

此方法返回类似于以下示例的响应:

{
   "id" : 1,
   "result" : {
     "drives" : [
       {
         "attributes" : {},
         "capacity" : 299917139968,
         "driveID" : 35,
         "nodeID" : 5,
         "serial" : "scsi-SATA_INTEL_SSDSA2CW6CVPR141502R3600FGN-part2",
         "slot" : 0,
         "status" : "active",
         "type" : "volume"
       },
       {
         "attributes" : {},
         "capacity" : 600127266816,
         "driveID" : 36,
         "nodeID" : 5,
         "serial" : "scsi-SATA_INTEL_SSDSA2CW6CVPR1415037R600FGN",
         "slot" : 6,
         "status" : "active",
         "type" : "block"
       }
     }
   ]
}

自版本以来的新增功能

9.6