评审背景
bmc当前不支持查看硬盘是否系统盘,web页面存储管理需要新增字段表示当前硬盘是否为系统盘
方案介绍
根据BMA上报的系统盘标志在web界面进行显示
决策点
web rest接口新增属性硬盘是否为系统盘
详细描述
Uri:/UI/Rest/System/Storage/Drives/diskid
变化类型:新增属性
操作类型:Get
应用场景:判断当前硬盘是否为系统盘
详细描述:
在/UI/Rest/System/Storage/Drives/diskid接口,新增IsBootDevice字段
| 属性名称 | 取值类型 | 取值范围 | 默认值 | 操作权限 | 约束 |
|---|---|---|---|---|---|
| IsBootDevice | bool | true,false,null | null | ReadOnly | 无 |
响应示例:
{
“Revision”: “SY0J0022”,
“Name”: “M.2 Disk0”,
“CapacityBytes”: 480103104512.0,
“Protocol”: “SATA”,
“MediaType”: “SSD”,
“IndicatorLED”: “Off”,
“EstimatedRemainingLifespan”: null,
“HotspareType”: null,
“PowerState”: null,
“PatrolState”: null,
“NegotiatedSpeedGbs”: 6,
“PredictedMediaLifeLeftPercent”: null,
“IsBootDevice”: null,
“SASAddress”: ,
“BootEnabled”: false,
“Model”: “RSBE3836N-480G”,
“BootPriority”: “None”,
“CapableSpeedGbs”: 6,
“FirmwareStatus”: “Active”,
“RotationSpeedRPM”: null,
“HoursOfPoweredUp”: null,
“RebuildState”: “DoneOrNotRebuilt”,
“ID”: “MainboardM.2Disk0”,
“AssociatedResource”: null,
“TemperatureCelsius”: null,
“Health”: “Informational”,
“IsEPD”: false,
“Manufacturer”: “ATA”,
“SerialNumber”: “PGAH921600125”
}