Storages
更新时间: 2026/06/26
在Gitcode上查看源码

ResourceDefinition

uris

  • /redfish/v1/Systems/system_id/Storages/storage_id

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-指定存储资源模型的OData描述信息
@odata.idstringtrue-指定存储资源的访问路径
@odata.typestringtrue-指定存储资源的类型
Idstringtrue-指定存储资源的ID
Namestringtrue-指定存储资源的名称
StorageControllers@odata.countnumbertrue-存储控制器个数
MemberIdstringtrue-指定控制器标识
@odata.idstringtrue-指定存储控制器的访问路径
@odata.typestringtrue-指定存储控制器的资源类型
Namestringtrue-指定存储控制器的名称
Descriptionstringtrue-指定存储控制器的描述信息
Statusobjecttrue-指定存储控制器的状态, 包括:
● State:存储控制器使能状态
● Health:存储控制器健康状态
● Severity:存储控制器的自定义健康状态
● FaultDetails:指定存储控制器的故障信息
SpeedGbpsnumbertrue-指定存储控制器的接口速率
SerialNumberstringtrue-指定存储控制器的序列号
FirmwareVersionstringtrue-指定存储控制器的固件版本
SupportedDeviceProtocolsarraytrue-指定存储控制器支持的协议类型
● SPI
● PCIe
● AHCI
● UHCI
● SAS
● SATA
● USB
● NVMe
● FC
● iSCSI
● FCoE
● NVMeOverFabrics
● SMB
● NFSv3
● NFSv4
● HTTP
● HTTPS
● FTP
● SFTP
Manufacturerstringtrue-指定存储控制器生产厂商
Modelstringtrue-指定存储控制器型号
CacheSummaryobjecttrue-指定存储控制器缓存概要信息
TotalCacheSizeMiBnumbertrue-指定存储控制器缓存大小
SupportedRAIDTypesarraytrue-指定存储控制器支持的RAID级别
● RAID0
● RAID1
● RAID5
● RAID6
● RAID10
● RAID50
● RAID60
● RAID1(ADM)
● RAID10(ADM)
● RAID1Triple
● RAID10Triple
AssociatedCardobjecttrue-指定存储控制器所关联的卡的资源导航
Modestringfalse-指定存储控制器的模式
● RAID
● HBA
● JBOD
● Mixed
CachePinnedStatebooleantrue-指定存储驱动Cache Pinned使能状态
SupportedRAIDLevelsarraytrue-指定存储控制器支持的RAID级别
● RAID0
● RAID1
● RAID5
● RAID6
● RAID10
● RAID50
● RAID60
● RAID1(ADM)
● RAID10(ADM)
● RAID1Triple
● RAID10Triple
VolumeSupportedbooleantrue-指定存储控制器是否支持组逻辑盘
ReadPolicyobjecttrue-指定存储控制器组逻辑盘时读策略选项
Configurablebooleantrue-指定策略是否支持自定义
SupportedPolicyarraytrue-指定策略的自定义选项
WritePolicyobjecttrue-指定存储控制器组逻辑盘时写策略选项
CachePolicyobjecttrue-指定存储控制器组逻辑盘时IO策略选项
AccessPolicyobjecttrue-指定存储控制器组逻辑盘时访问策略选项
DriveCachePolicyobjecttrue-指定存储控制器组逻辑盘时物理盘缓存策略选项
Typestringtrue-指定存储控制器的类型
JbodStateSupportedbooleantrue-指定控制器是否支持JBOD模式
EpdSupportedbooleantrue-指定控制器是否支持EPD模式
SASAddressstringtrue-指定存储控制器地址
ConfigurationVersionstringtrue-指定存储控制器配置版本
PCIeLinkWidthstringtrue-PCIe带宽
ReadCachePercentnumberfalse-读缓存比例百分比
SpareActivationModestringtrue-热备激活模式
● Failure:硬盘故障时激活热备盘
● Predictive:硬盘预故障时激活热备盘
NoBatteryWriteCacheEnabledbooleanfalse-无电池写缓存使能状态
BootDevicesarrayfalse-指定存储器启动盘的资源ID。长度为2的固定数组, 每个成员分别对应第一、 第二优先级的存储器启动盘资源ID,对应优先级未设置时值为“None”
WriteCachePolicyobjectfalse-硬盘写缓存策略
ConfiguredDrivestringfalse-RAID/Mixed模式下RAID组成员盘的写缓存策略
● Default:将硬盘的写缓存保持为默认状态
● Enabled:打开硬盘的写缓存功能
● Disabled:关闭硬盘的写缓存功能 说明
UnconfiguredDrivestringfalse-RAID/Mixed模式下非RAID组成员盘的写缓存策略
● Default:将硬盘的写缓存保持为默认状态
● Enabled:打开硬盘的写缓存功能
● Disabled:关闭硬盘的写缓存功能
HBADrivestringfalse-HBA模式下硬盘的写缓存策略
● Default:将硬盘的写缓存保持为默认状态
● Enabled:打开硬盘的写缓存功能
● Disabled:关闭硬盘的写缓存功能
MemorySizeMiBnumbertrue-指定存储控制器内存容量
MaintainPDFailHistorybooleanfalse-指定存储驱动器故障记录功能的使能状态
CopyBackStatebooleanfalse-指定存储控制器回拷功能使能状态
SmarterCopyBackStatebooleanfalse-指定存储控制器SMART错误回拷功能的使能状态
JBODStatebooleanfalse-驱动器直通功能的使能状态
Enabledbooleanfalse-一致性检验功能使能状态
PeriodOfHoursnumberfalse-一致性校验周期(单位: 小时)
Ratestringfalse-一致性校验速率,包括:
● Low
● Medium
● High
AutoRepairEnabledbooleanfalse-一致性校验自动修复功能使能状态
RunningStatusstringtrue-一致性校验功能运行状态
TotalVolumeCountsnumbertrue-需要进行一致性校验的逻辑盘总数
CompletedVolumeCountsnumbertrue-已完成一致性校验的逻辑盘总数
DelayToStartnumberfalse-本次一致性校验推迟多长时间启动(单位:小时)
OOBSupportbooleantrue-控制器是否支持带外管理
CapacitanceNamestringtrue-指定存储控制器BBU名称
CapacitanceStatusobjecttrue-指定存储控制器电容 (BBU)状态,包括:
● Health:存储控制器健康状态
● State:存储控制器使能状态
● Severity:存储控制器的自定义健康状态
● FaultDetails:存储控制器电容故障信息
DDRECCCountnumbertrue-指定存储控制器内存可纠错的错误计数
MinStripeSizeBytesnumbertrue-控制器支持最小条带值
MaxStripeSizeBytesnumbertrue-控制器支持最大条带值
DriveInfoobjecttrue-指定控制器驱动信息
DriverNamestringtrue-指定控制器驱动名称
DriverVersionstringtrue-指定控制器驱动版本
PHYStatusobjecttrue-指定控制器物理层误码状态
PhyIdnumbertrue-PHY索引编号
InvalidDwordCountnumbertrue-无效DWORD数
LossDwordSyncCountnumbertrue-丢失DWORD同步数
PhyResetProblemCountnumbertrue-PHY重启问题数
RunningDisparityErrorCountnumbertrue-连续不均衡性错误数
BDFstringtrue-BDF值:
● Bus
● Device
● Function
● null
VenderIDnumbertrue-厂商ID
DeviceIDnumbertrue-设备ID
SubsystemVenderIDnumbertrue-厂商子ID
SubsystemDeviceIDnumbertrue-设备子ID
Drives@odata.countnumbertrue-存储控制器管理的驱动器个数
@odata.idstringtrue-指定驱动器的访问路径
Idstringtrue-指定驱动器的Id
Namestringtrue-指定驱动器的名称
MediaTypestringtrue-指定驱动器的介质类型
CapacityBytesnumbertrue-指定驱动器的容量(单位:B)
DriveIDnumbertrue-创建逻辑盘时指定的驱动器的ID
FirmwareStatusstringtrue-指定驱动器的固件状态
RelatedArrayInfoobjecttrue-指定驱动器上的驱动器阵列信息
Membersarraytrue-指定驱动器阵列的成员
FreeSpaceMiBPerDrivenumbertrue-指定驱动器阵列中每个驱动器的剩余容量(单位: MB)
TotalFreeSpaceMiBnumbertrue-指定驱动器阵列中总的剩余容量(单位:MB)
FreeBlocksSpaceMibarraytrue-指定驱动器阵列中的剩余容量(单位:MB)
NumDrivePerSpannumbertrue-指定驱动器阵列中每个Span的成员的个数
VolumeRaidLevelstringtrue-指定驱动器阵列组成的虚拟磁盘的级别
@odata.idstringtrue-虚拟磁盘集合资源的访问路径
#Storage.RestoreStorageControllerDefaultSettingsobjecttrue-控制器可执行的恢复默认设置操作
#Storage.ImportForeignConfigobjecttrue-导入Foreign配置(导入foreign磁盘包含的RAID配置信息,无需输入配置文件)
targetstringtrue-控制器可执行的恢复默认设置操作路径
@Redfish.ActionInfostringtrue-控制器可执行的恢复默认设置操作信息查询路径

supported_methods

  • GET
  • PATCH
  • POST

HTTP methods

GET

命令功能

查询指定存储资源信息

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id

请求头:


X-Auth-Token: 123456789***********************

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
system_id系统资源的ID参见源文件参数说明
auth_value请求消息的鉴权参数可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id

X-Auth-Token: 123456789***********************

请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#systems/Members/1/Storages/Members/$entity",
  "@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0",
  "@odata.type": "#Storage.v1_7_0.Storage",
  "Id": "RAIDStorage0",
  "Name": "RAIDStorage0",
  "StorageControllers@odata.count": 1,
  "StorageControllers": [
    {
      "MemberId": "0",
      "@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0#/StorageControllers/0",
      "@odata.type": "#Storage.v1_7_0.StorageController",
      "Name": "RAID Card1 Controller",
      "Description": "RAID Controller",
      "Status": {
        "Health": "OK",
        "Oem": {
          "Public": {
            "Severity": "Informational",
            "FaultDetails": "Memory correctable errors"
          }
        },
        "State": "Enabled"
      },
      "SpeedGbps": 12,
      "FirmwareVersion": "5.060.00-2139",
      "SupportedDeviceProtocols": [
        "SAS"
      ],
      "SerialNumber": "2102313XXFFSN7000454",
      "Manufacturer": "LSI",
      "Model""SAS3508",

      "CacheSummary": {
        "TotalCacheSizeMiB": 2048
      },
      "SupportedRAIDTypes": [
        "RAID0",
        "RAID1",
        "RAID5",
        "RAID6",
        "RAID10",
        "RAID50",
        "RAID60"
      ],
      "Oem": {
        "Public": {
          "AssociatedCard": {
            "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/PCIeCard6"
          },
          "Mode": "RAID",
          "CachePinnedState": true,
          "SupportedRAIDLevels": [
            "RAID0",
            "RAID1",
            "RAID5",
            "RAID6",
            "RAID10",
            "RAID50",
            "RAID60"
          ],
          "VolumeSupported": true,
          "ReadPolicy": {
            "Configurable": true,
            "SupportedPolicy": [
              "NoReadAhead",
              "ReadAhead"
            ]
          },
          "WritePolicy": {
            "Configurable": true,
            "SupportedPolicy": [
              "WriteThrough",
              "WriteBackWithBBU",
              "WriteBack"
            ]
          },
          "CachePolicy": {
            "Configurable": true,
            "SupportedPolicy": [
              "CachedIO",
              "DirectIO"
            ]
          },
          "AccessPolicy": {
            "Configurable": true,
            "SupportedPolicy": [
              "ReadWrite",
              "ReadOnly",
              "Blocked"
            ]
          },
          "DriveCachePolicy": {
            "Configurable": true,
            "SupportedPolicy": [
              "Unchanged",
              "Enabled",
              "Disabled"
            ]
          },
          "Type": "LSI SAS3508",
          "JbodStateSupported": false,
          "EpdSupported": true,
          "SASAddress": "59c741a5628b4000",
          "ConfigurationVersion": "5.0600.03-0012",
          "PCIeLinkWidth": "x8",
          "ReadCachePercent": null,
          "SpareActivationMode": null,
          "NoBatteryWriteCacheEnabled": null,
          "BootDevices": [
            "HDDPlaneDisk14",
            "None"
          ],
          "WriteCachePolicy": null,
          "MemorySizeMiB": 2048,
          "MaintainPDFailHistory": true,
          "CopyBackState": true,
          "SmarterCopyBackState": true,
          "JBODState": false,
          "VolumeConsistencyCheckConfig": {
            "Enabled": true,
            "PeriodOfHours": 240,
            "Rate": "Low",
            "AutoRepairEnabled": true,
            "RunningStatus": "Off",
            "TotalVolumeCounts": 0,
            "CompletedVolumeCounts": 255,
            "DelayToStart": 0
          },
          "OOBSupport": true,
          "CapacitanceName": "CVPM02",
          "CapacitanceStatus": {
            "Health": "OK",
            "Severity": "Informational",
            "FaultDetails": null,
            "State": "Enabled"
          },
          "DriverInfo": {
            "DriverName": "megaraid_sas",
            "DriverVersion": "06.806.08.080"
          },
          "DDRECCCount": 1,
          "MinStripeSizeBytes": 65536,
          "MaxStripeSizeBytes": 1048576,
          "PHYStatus": [
            {
              "PhyId": 1,
              "InvalidDwordCount": 0,
              "LossDwordSyncCount": 0,
              "PhyResetProblemCount": 0,
              "RunningDisparityErrorCount": 0
            }
          ],
          "BDF""0000:16:02.0",
          "VenderID": "0x1000",
          "DeviceID": "0x0016",
          "SubsystemVenderID": "0x19e5",
          "SubsystemDeviceID": "0xd215"
        }
      }
    }
  ],
  "Drives@odata.count": 1,
  "Drives": [
    {
      "@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk14",
      "Id": "HDDPlaneDisk0",
      "Name": "Disk0",
      "MediaType": "HDD",
      "CapacityBytes": 1998998994944,
      "Oem": {
        "Public": {
          "DriveID": "17",
          "FirmwareStatus": "Online",
          "RelatedArrayInfo": {
            "Members": [
              "Disk0",
              "Disk1"
            ],
            "FreeSpaceMiBPerDrive": 0,
            "TotalFreeSpaceMiB": 0,
            "FreeBlocksSpaceMib": [
              0
            ],
            "NumDrivePerSpan": 2,
            "VolumeRaidLevel": "RAID0"
          }
        }
        ],
        "Volumes": {
          "@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Volumes"
        },
        "Actions": {
          "Oem": {
            "Public": {
              "#Storage.RestoreStorageControllerDefaultSettings": {
                "target": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Actions/Oem/Public/Storage.RestoreStorageControllerDefaultSettings",
                "@Redfish.ActionInfo": "/redfish/v1/Systems/1/Storages/RAIDStorage0/RestoreStorageControllerDefaultSettingsActionInfo"
              },
              "#Storage.ImportForeignConfig": {
                "target": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Actions/Oem/Public/Storage.ImportForeignConfig",
                "@Redfish.ActionInfo": "/redfish/v1/Systems/1/Storages/RAIDStorage0/ ImportForeignConfigActionInfo"
              }
            }
          }
        }
      }
    }
  ]
}

响应码:200

PATCH

命令功能

修改指定控制器资源信息

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id

请求头:


X-Auth-Token: 123456789***********************
Content-Type: header_type
If-Match: ifmatch_value

请求消息体:

json
{
  "StorageControllers": [
    {
      "Oem": {
        "Public": {
          "CopyBackState": cb_state,
          "SmarterCopyBackState": smartcb_state,
          "JBODState": jbod_state,
          "VolumeConsistencyCheckConfig": {
            "Enabled": cc_state,
            "PeriodOfHours": cc_period,
            "Rate": cc_rate,
            "AutoRepairEnabled": cc_autorepair,
            "DelayToStart": cc_delay
          },
          "Mode": mode,
          "MaintainPDFailHistory": mt_pdfailhistory,
          "BootDevices": [
            drive_id,
            drive_id
          ],
          "ReadCachePercent": rc_percent,
          "NoBatteryWriteCacheEnabled": nbwc_state,
          "WriteCachePolicy": {
            "ConfiguredDrive": wc_policy,
            "UnconfiguredDrive": wc_pplicy,
            "HBADrive": wc_policy
          }
        }
      }
    }
  ]
}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
system_id系统资源的ID● 针对机架服务器,取值 为1
● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1”
● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号)或 SwiN(N表示交换模块 槽位号),例如 “Swi1”
● 针对X6800 V5,X6000 V5,G5500,XA320 V2服务器,取值还可以 为Enc,表示计算节点 所在的机框资源
● 针对设备U位信息,取 值可以为UN(N表示设 备U位号),例如"U1"
● 针对机柜资源,取值为 Rack
storage_id存储资源的ID通过存储集合资源获得。 格式为:RAIDStorage+指 定控制器ID
ifmatch_value请求消息的匹配参数可通过对相应资源发起 GET操作,从响应头中获 取(对应于“ETag”参 数)
cb_state回拷功能使能状态● true
● false
smartcb_stateSMART错误回拷功能的使 能状态● true
● false 说明:设置为True时要 依赖CopyBackState开 启
jbod_state驱动器直通功能的使能状 态● true
● false
cc_state逻辑盘一致性校验功能使 能状态● true
● false 说明:设置为false时, 不能附加其他参数
cc_period逻辑盘一致性校验的周期● 范围为1-1440的整数且 必须为24的倍数
cc_rate逻辑盘一致性校验的速率● Low
● Medium
● High
cc_autorepair逻辑盘一致性校验过程中 自修复功能的使能状态● true
● false
cc_delay逻辑盘一致性校验在多久 后开始● 范围为0-24的整数 说明:设置时需要附加 cc_state为true
mode存储控制器的模式● RAID
● JBOD
● HBA
● Mixed 说明 如果RAID控制器类型为 3508/3516/9440-8i/ 9460-8i/9460-16i,并且固 件版本是MR7.9及之后的版 本,需要重启OS设置才能生 效。
mt_pdfailhistory硬盘故障记录功能开闭状 态● true
● false
drive_id存储器启动盘的资源ID● 逻辑盘资源的ID
● 驱动器资源的ID
● 对应优先级未设置时值 为“None” 说明:二元字符串数组分 别表示第1、2启动优先级 的启动盘资源ID
rc_percent读缓存百分比范围0~100且必须为5的倍 数
nbwc_state无电池写缓存使能状态● true
● false
wc_policy硬盘写缓存策略● Default:将硬盘的写 缓存保持为默认状态
● Enabled:打开硬盘的 写缓存功能
● Disabled:关闭硬盘的 写缓存功能

使用指南

使用实例

请求样例:

http
PATCH https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id

X-Auth-Token: 123456789*********************** Content-Type: header_type If-Match: ifmatch_value

请求消息体:

json
{
  "StorageControllers": [
    {
      "Oem": {
        "Public": {
          "CopyBackState": cb_state,
          "SmarterCopyBackState": smartcb_state,
          "JBODState": jbod_state,
          "VolumeConsistencyCheckConfig": {
            "Enabled": cc_state,
            "PeriodOfHours": cc_period,
            "Rate": cc_rate,
            "AutoRepairEnabled": cc_autorepair,
            "DelayToStart": cc_delay
          },
          "Mode": mode,
          "MaintainPDFailHistory": mt_pdfailhistory,
          "BootDevices": [
            drive_id,
            drive_id
          ],
          "ReadCachePercent": rc_percent,
          "NoBatteryWriteCacheEnabled": nbwc_state,
          "WriteCachePolicy": {
            "ConfiguredDrive": wc_policy,
            "UnconfiguredDrive": wc_pplicy,
            "HBADrive": wc_policy
          }
        }
      }
    }
  ]
}

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#systems/Members/1/Storages/Members/$entity",
  "@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0",
  "@odata.type": "#Storage.v1_7_0.Storage",
  "Id": "RAIDStorage0",
  "Name": "RAIDStorage0",
  "StorageControllers@odata.count": 1,
  "StorageControllers": [
    {
      "MemberId": "0",
      "@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0#/StorageControllers/0",
      "@odata.type": "#Storage.v1_7_0.StorageController",
      "Name": "RAID Card1 Controller",
      "Description": "RAID Controller",
      "Status": {
        "Health": "OK",
        "Oem": {
          "Public": {
            "Severity": "Informational",
            "FaultDetails": "Memory correctable errors"
          }
        },
        "State": "Enabled"
      },
      "SpeedGbps": 12,
      "FirmwareVersion": "5.060.00-2139",
      "SupportedDeviceProtocols": [
        "SAS"
      ],
      "Manufacturer": "LSI",
      "Model""SAS3508",

      "CacheSummary": {
        "TotalCacheSizeMiB": 2048
      },
      "SupportedRAIDTypes": [
        "RAID0",
        "RAID1",
        "RAID5",
        "RAID6",
        "RAID10",
        "RAID50",
        "RAID60"
      ],
      "Oem": {
        "Public": {
          "AssociatedCard": {
            "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/PCIeCard6"
          },
          "Mode": "RAID",
          "CachePinnedState": true,
          "SupportedRAIDLevels": [
            "RAID0",
            "RAID1",
            "RAID5",
            "RAID6",
            "RAID10",
            "RAID50",
            "RAID60"
          ],
          "VolumeSupported": true,
          "ReadPolicy": {
            "Configurable": true,
            "SupportedPolicy": [
              "NoReadAhead",
              "ReadAhead"
            ]
          },
          "WritePolicy": {
            "Configurable": true,
            "SupportedPolicy": [
              "WriteThrough",
              "WriteBackWithBBU",
              "WriteBack"
            ]
          },
          "CachePolicy": {
            "Configurable": true,
            "SupportedPolicy": [
              "CachedIO",
              "DirectIO"
            ]
          },
          "AccessPolicy": {
            "Configurable": true,
            "SupportedPolicy": [
              "ReadWrite",
              "ReadOnly",
              "Blocked"
            ]
          },
          "DriveCachePolicy": {
            "Configurable": true,
            "SupportedPolicy": [
              "Unchanged",
              "Enabled",
              "Disabled"
            ]
          },
          "Type": "LSI SAS3508",
          "SASAddress": "59c741a5628b4000",
          "ConfigurationVersion": "5.0600.03-0012",
          "PCIeLinkWidth": "x8",
          "ReadCachePercent": null,
          "SpareActivationMode": null,
          "NoBatteryWriteCacheEnabled": null,
          "BootDevices": [
            "HDDPlaneDisk14",
            "None"
          ],
          "WriteCachePolicy": null,
          "MemorySizeMiB": 2048,
          "MaintainPDFailHistory": true,
          "CopyBackState": false,
          "SmarterCopyBackState": true,
          "JBODState": false,
          "OOBSupport": true,
          "VolumeConsistencyCheckConfig": {
            "Enabled": true,
            "PeriodOfHours": 240,
            "Rate": "Low",
            "AutoRepairEnabled": false,
            "RunningStatus": "Off",
            "TotalVolumeCounts": 0,
            "CompletedVolumeCounts": 255,
            "DelayToStart": 1
          },
          "CapacitanceName": "CVPM02",
          "CapacitanceStatus": {
            "Health": "OK",
            "Severity": "Informational",
            "FaultDetails": null,
            "State": "Enabled"
          },
          "DriverInfo": {
            "DriverName": "megaraid_sas",
            "DriverVersion": "06.806.08.080-"
          },
          "DDRECCCount": 1,
          "MinStripeSizeBytes": 65536,
          "MaxStripeSizeBytes": 1048576,
          "PHYStatus": [
            {
              "PhyId": 1,
              "InvalidDwordCount": 0,
              "LossDwordSyncCount": 0,
              "PhyResetProblemCount": 0,
              "RunningDisparityErrorCount": 0
            }
          ],
          "BDF""0000:16:02.0",
          "VenderID": "0x1000",
          "DeviceID": "0x0016",
          "SubsystemVenderID": "0x19e5",
          "SubsystemDeviceID": "0xd215"
        }
      }
    }
  ],
  "Drives@odata.count": 1,
  "Drives": [
    {
      "@odata.id": "/redfish/v1/Chassis/1/Drives/HDDPlaneDisk14",
      "Id": "HDDPlaneDisk0",
      "Name": "Disk0",
      "MediaType": "HDD",
      "CapacityBytes": 1998998994944,
      "Oem": {
        "Public": {
          "DriveID": "17",
          "FirmwareStatus": "Online",
          "RelatedArrayInfo": {
            "Members": [
              "Disk0",
              "Disk1"
            ],
            "FreeSpaceMiBPerDrive": 0,
            "TotalFreeSpaceMiB": 0,
            "FreeBlocksSpaceMib": [
              0
            ],
            "NumDrivePerSpan": 2,
            "VolumeRaidLevel": "RAID0"
          }
        }
      }
    }
  ],
  "Volumes": {
    "@odata.id": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Volumes"
  },
  "Actions": {
    "Oem": {
      "Public": {
        "#Storage.RestoreStorageControllerDefaultSettings": {
          "target": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Actions/Oem/Public/Storage.RestoreStorageControllerDefaultSettings",
          "@Redfish.ActionInfo": "/redfish/v1/Systems/1/Storages/RAIDStorage0/RestoreStorageControllerDefaultSettingsActionInfo"
        },
        "#Storage.ImportForeignConfig": {
          "target": "/redfish/v1/Systems/1/Storages/RAIDStorage0/Actions/Oem/Public/Storage.ImportForeignConfig",
          "@Redfish.ActionInfo": "/redfish/v1/Systems/1/Storages/RAIDStorage0/ImportForeignConfigActionInfo"
        }
      }
    }
  }
}

响应码:200

POST (ACTION)

ImportForeignConfig

命令功能

导入 Foreign 配置

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage.ImportForeignConfig

请求头:


X-Auth-Token: 123456789***********************
Content-Type: header_type

请求消息体:

json
{}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
system_id系统资源的ID● 针对机架服务器,取值 为1
● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1”
● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号)或 SwiN(N表示交换模块 槽位号),例如 “Swi1”
storage_id存储资源的ID通过存储集合资源获得。

使用指南

使用实例

请求样例:

http
POST https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage. ImportForeignConfig

X-Auth-Token: 123456789*********************** Content-Type: header_type

请求消息体:

json
{}

响应样例:

json
{
  "error": {
    "code": "Base.1.0.GeneralError",
    "message": "A general error has occurred. See ExtendedInfo for more information.",
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "#Message.v1_0_0.Message",
        "MessageId": "Base.1.0.Success",
        "RelatedProperties": [],
        "Message": "Successfully Completed Request",
        "MessageArgs": [],
        "Severity": "OK",
        "Resolution": "None"
      }
    ]
  }
}

响应码:200

POST (ACTION)

ClearForeignConfig

命令功能

清除 Foreign 配置

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage.ClearForeignConfig

请求头:


X-Auth-Token: 123456789***********************
Content-Type: header_type

请求消息体:

json
{}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
system_id系统资源的ID● 针对机架服务器,取值 为1
● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1”
● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号)或 SwiN(N表示交换模块 槽位号),例如 “Swi1”
● 针对X6800 V5,X6000 V5,G5500,XA320 V2服务器,取值还可以 为Enc,表示计算节点 所在的机框资源
● 针对设备U位信息,取 值可以为UN(N表示设 备U位号),例如"U1"
● 针对机柜资源,取值为 Rack
storage_id存储资源的ID通过存储集合资源获得。

使用指南

使用实例

请求样例:

http
POST https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage.ClearForeignConfig

X-Auth-Token: 123456789*********************** Content-Type: header_type

请求消息体:

json
{}

响应样例:

json
{
  "error": {
    "code": "Base.1.0.GeneralError",
    "message": "A general error has occurred. See ExtendedInfo for more information.",
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "#Message.v1_0_0.Message",
        "MessageId": "Base.1.0.Success",
        "RelatedProperties": [],
        "Message": "Successfully Completed Request",
        "MessageArgs": [],
        "Severity": "OK",
        "Resolution": "None"
      }
    ]
  }
}

响应码:200

POST (ACTION)

RestoreStorageControllerDefaultSettings

命令功能

恢复指定控制器的默认配置

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage.RestoreStorageControllerDefaultSettings

请求头:


X-Auth-Token: 123456789***********************
Content-Type: header_type

请求消息体:

json
{}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
system_id系统资源的ID● 针对机架服务器,取值 为1
● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1”
● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号)或 SwiN(N表示交换模块 槽位号),例如 “Swi1”
● 针对X6800 V5,X6000 V5,G5500,XA320 V2服务器,取值还可以 为Enc,表示计算节点 所在的机框资源
● 针对设备U位信息,取 值可以为UN(N表示设 备U位号),例如"U1"
● 针对机柜资源,取值为 Rack
storage_id存储资源的ID通过存储集合资源获得。

使用指南

如果RAID控制器类型为3508/3516/9440-8i/9460-8i/9460-16i,并且固件版本是MR7.9及之后的版本,恢复RAID控制器默认设置,需要重启OS才能生效。

使用实例

请求样例:

http
POST https://device_ip/redfish/v1/Systems/system_id/Storages/storage_id/Actions/Oem/Public/Storage.RestoreStorageControllerDefaultSettings

X-Auth-Token: 123456789*********************** Content-Type: header_type

请求消息体:

json
{}

响应样例:

json
{
  "error": {
    "code": "Base.1.0.GeneralError",
    "message": "A general error has occurred. See ExtendedInfo for more information.",
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "#Message.v1_0_0.Message",
        "MessageId": "Base.1.0.Success",
        "RelatedProperties": [],
        "Message": "Successfully Completed Request",
        "MessageArgs": [],
        "Severity": "OK",
        "Resolution": "None"
      }
    ]
  }
}

响应码:200