代码仓
中
ServiceRoot
更新时间: 2026/11/04
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish
  • /redfish/v1

properties ​

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-根服务资源模型的OData描述信息
@odata.idstringtrue-根服务资源节点的访问路径
@odata.typestringtrue-根服务资源类型
v1stringtrue-Redfish版本信息
AccountLockoutDurationnumberfalse-用户登录失败后被锁定的锁定时长,单位为秒。
ChassisHeightUnumberfalse-机框节点U位高度
Copyrightstringfalse-版权信息
DeepPATCHbooleantrue-指示服务是否支持深度PATCH操作
DeepPOSTbooleantrue-指示服务是否支持深度POST操作
DocSupportFlagbooleanfalse-产品文档二维码显示使能
DownloadKVMLinkstringfalse-Java独立远程控制台下载链接
ExcerptQuerybooleantrue-指示服务是否支持摘录查询参数“excerpt”
ExpandAllbooleantrue-指示服务是否支持查询参数“$expand”的“*”选项
FilterQuerybooleantrue-指示服务是否支持查询参数“$filter”
FilterQueryComparisonOperationsbooleantrue-指示服务是否支持查询参数“$filter”的“eq”、“ge”、“gt”、“le”、“lt”和“ne”选项
FilterQueryCompoundOperationsbooleantrue-指示服务是否支持查询参数“$filter”的“()”、“and”、“not”和“or”选项
FQDNstringfalse-全称域名
HostNamestringfalse-主机名称
Idstringfalse-根服务资源的ID
LanguageSetstringfalse-语言支持信息
Levelsbooleantrue-指示服务是否支持查询参数“$expand”的“$levels”参数
MajorVersionstringfalse-软件主版本号
MaxLevelsnumbertrue-深度操作中所允许的最大资源深度
MultipleHTTPRequestsbooleantrue-指示服务是否支持多个并发的HTTP请求
Namestringfalse-根服务资源的名称
NoLinksbooleantrue-指示服务是否支持查询参数“$expand”的“.”选项
OnlyMemberQuerybooleantrue-指示服务是否支持查询参数“only”
Productstringtrue-产品名称
说明
openUBMC 25.12 LTS及以上版本支持
ProductNamestringfalse-产品名称
ProductPicturestringfalse-产品图片名称
ProductSerialNumberstringfalse-产品序列号
SecurityBannerstringfalse-安全公告
RedfishVersionstringtrue-Redfish的详细版本信息
SelectQuerybooleantrue-指示服务是否支持查询参数“$select”
SmsNamestringfalse-系统管理软件名称
SoftwareNamestringfalse-软件名称
StartupDurationSecondsnumberfalse-BMC启动规格时间
StartupStatestringfalse-BMC启动状态
TopSkipQuerybooleantrue-指示服务是否同时支持查询参数“$top”和“$skip”
Vendorstringtrue-厂商名称
说明
openUBMC 25.12 LTS及以上版本支持
ProtocolFeaturesSupported {objecttrue-服务中的协议特性信息
ProtocolFeaturesSupported.DeepOperations {objecttrue-服务中的深度操作信息
ProtocolFeaturesSupported.DeepOperations.DeepPATCHbooleantrue-指示服务是否支持深度PATCH操作
ProtocolFeaturesSupported.DeepOperations.DeepPOSTbooleantrue-指示服务是否支持深度POST操作
ProtocolFeaturesSupported.DeepOperations.MaxLevelsnumbertrue-深度操作中所允许的最大资源深度
}
ProtocolFeaturesSupported.ExcerptQuerybooleantrue-指示服务是否支持摘录查询参数“excerpt”
ProtocolFeaturesSupported.ExpandQuery {objecttrue-服务中使用“$expand”的信息
ProtocolFeaturesSupported.ExpandQuery.ExpandAllbooleantrue-指示服务是否支持查询参数“$expand”的“*”选项
ProtocolFeaturesSupported.ExpandQuery.Levelsbooleantrue-指示服务是否支持查询参数“$expand”的“$levels”参数
ProtocolFeaturesSupported.ExpandQuery.Linksbooleantrue-指示服务是否支持查询参数“$expand”的“~”选项
ProtocolFeaturesSupported.ExpandQuery.MaxLevelsnumbertrue-深度操作中所允许的最大资源深度
ProtocolFeaturesSupported.ExpandQuery.NoLinksbooleantrue-指示服务是否支持查询参数“$expand”的“.”选项
}
ProtocolFeaturesSupported.FilterQuerybooleantrue-指示服务是否支持查询参数“$filter”
ProtocolFeaturesSupported.FilterQueryComparisonOperationsbooleantrue-指示服务是否支持查询参数“$filter”的“eq”、“ge”、“gt”、“le”、“lt”和“ne”选项
ProtocolFeaturesSupported.FilterQueryCompoundOperationsbooleantrue-指示服务是否支持查询参数“$filter”的“()”、“and”、“not”和“or”选项
ProtocolFeaturesSupported.MultipleHTTPRequestsbooleantrue-指示服务是否支持多个并发的HTTP请求
ProtocolFeaturesSupported.OnlyMemberQuerybooleantrue-指示服务是否支持查询参数“only”
ProtocolFeaturesSupported.SelectQuerybooleantrue-指示服务是否支持查询参数“$select”
ProtocolFeaturesSupported.TopSkipQuerybooleantrue-指示服务是否同时支持查询参数“$top”和“$skip”
}
Oem.Public {objecttrue-自定义属性
Oem.Public.AssetServiceobjecttrue-资源服务资源
Oem.Public.DataAcquisitionServiceobjecttrue-数据采集服务资源
Oem.Public.DomainName[ ]arraytrue-LDAP域名与Kerberos域名
说明:LDAP服务端为O Base Tree时,DomainName为组织名
Oem.Public.LCNServiceobjecttrue-LCNService资源
说明
openUBMC 25.12 LTS及以上版本,
Atlas900 A3 SuperPoDA900 A3 SuperPoD,Atlas 800T A3A800T A3,Atlas 800I A3A800I A3机型支持
Oem.Public.ObservabilityServiceobjecttrue-ObservabilityService资源
说明
openUBMC 25.12 LTS及以上版本,
当前只针对BMC系统提供可观测服务能力
Oem.Public.PerformanceCollectionobjecttrue-性能数据采集服务资源
Oem.Public.SmsUpdateServiceobjecttrue-系统管理软件升级资源
Oem.Public.SystemOverviewobjecttrue-系统概览信息资源
}
AccountService {objecttrue-账户服务资源
}
Chassis {objecttrue-机箱资源
}
ComponentIntegrity {objecttrue-组件完整性报告集合资源
说明
openUBMC 25.12 LTS及以上版本支持
}
EventService {objecttrue-事件服务资源
}
JobService {objecttrue-编排任务服务资源
}
JsonSchemas {objecttrue-数组格式的模板资源
}
Managers {objecttrue-管理资源
}
Oem {objecttrue-自定义属性
}
Registries {objecttrue-消息归档资源
}
SessionService {objecttrue-会话服务资源
}
Systems {objecttrue-系统资源
}
Tasks {objecttrue-任务服务资源
}
TelemetryService {objecttrue-遥测服务资源
}
UpdateService {objecttrue-升级服务资源
}
Links.Sessions {objecttrue-会话集合资源
}

supported_methods ​

  • GET
  • PATCH

HTTP methods ​

GET ​

命令功能

查询 Redfish 版本信息

命令格式

URL: https://device_ip/redfish

请求头:

text

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

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址

使用指南

无

使用实例

请求样例:

http
GET <https://device_ip/redfish>

请求头:无

请求消息体:无

响应样例:

json
{
"v1": "/redfish/v1/"
}

响应码:200

GET ​

命令功能

查询当前根服务资源

命令格式

URL: https://device_ip/redfish/v1

请求头:

text

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

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址

使用指南

无

使用实例

请求样例:

http
GET <https://device_ip/redfish/v1>

请求头:无

请求消息体:无

响应样例:

json
{
"@odata.context": "/redfish/v1/$metadata#ServiceRoot",
"@odata.id": "/redfish/v1/",
"@odata.type": "#ServiceRoot.v1_17_0.ServiceRoot",
"Id": "RootService",
"Name": "Root Service",
"RedfishVersion": "1.20.1",
"UUID": "2BFF4014-1DD2-11B2-818C-0018E1C5D866",
"Systems": {
"@odata.id": "/redfish/v1/Systems"
},
"Chassis": {
"@odata.id": "/redfish/v1/Chassis"
},
"Managers": {
"@odata.id": "/redfish/v1/Managers"
},
"Tasks": {
"@odata.id": "/redfish/v1/TaskService"
},
"SessionService": {
"@odata.id": "/redfish/v1/SessionService"
},
"AccountService": {
"@odata.id": "/redfish/v1/AccountService"
},
"EventService": {
"@odata.id": "/redfish/v1/EventService"
},
"Links": {
"Sessions": {
"@odata.id": "/redfish/v1/SessionService/Sessions"
}
},
"UpdateService": {
"@odata.id": "/redfish/v1/UpdateService"
},
"Registries": {
"@odata.id": "/redfish/v1/Registries"
},
"JsonSchemas": {
"@odata.id": "/redfish/v1/JSONSchemas"
},
"JobService": {
"@odata.id": "/redfish/v1/JobService"
},
"Fabrics": {
"@odata.id": "/redfish/v1/Fabrics"
},
"TelemetryService": {
"@odata.id": "/redfish/v1/TelemetryService"
},
"ComponentIntegrity": {
"@odata.id": "/redfish/v1/ComponentIntegrity"
},
"Vendor": "",
"Product": "",
"Oem": {
"Public": {
"SmsUpdateService": [
{
"@odata.id": "/redfish/v1/Sms/1/UpdateService"
}
],
"SystemOverview": {
"@odata.id": "/redfish/v1/SystemOverview"
},
"PerformanceCollection": {
"@odata.id": "/redfish/v1/PerformanceCollection"
},
"AssetService": {
"@odata.id": "/redfish/v1/Oem/Public/AssetService"
},
"LCNService": {
"@odata.id": "/redfish/v1/Oem/Public/LCNService"
},
"ObservabilityService": {
"@odata.id": "/redfish/v1/Oem/Public/ObservabilityService"
},
"SecurityBanner": "WARNING! This system is PRIVATE and PROPRIETARY and may only be accessed by authorized users. Unauthorized use of the system is prohibited. The owner, or its agents, may monitor any activity or communication on the system. The owner, or its agents, may retrieve any information stored within the system. By accessing and using the system, you are consenting to such monitoring and information retrieval for law enforcement and other purposes.",
"ProductName": "RH1288 V3",
"ProductSerialNumber": "2M220100SL",
"HostName": "BMC",
"LanguageSet": "en,zh,fr,ja",
"Copyright": "",
"DownloadKVMLink": " ",
"DocSupportFlag": true,
"DomainName": [
"",
"",
"",
"",
"",
""
],
"ProductPicture": "img_01",
"AccountLockoutDuration": 300,
"ChassisHeightU": null,
"FQDN": "BMC",
"SmsName": "iBMA",
"SoftwareName": "iBMC",
"MajorVersion": "5",
"StartupDurationSeconds": 160,
"StartupState": "Completed"
}
}
}

响应码:200

PATCH ​

命令功能

修改当前根服务资源

命令格式

URL:https://device_ip/redfish/v1

请求头:

text

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

请求消息体:

json
{
"UUID": uuid_value
}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
UUIDUUID值● 格式满足正则表达式:^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$
● 00000000-0000-0000-0000-000000000000代表恢复UUID为默认值
● 单板AC掉电后自动恢复为默认值

使用指南

无

使用实例

请求样例:

http
PATCH <https://device_ip/redfish/v1>

请求头:

text

X-Auth-Token: 123456789***********************
Content-Type: application/json
If-Match: W/"3d607e36"

请求消息体:

json
{
"UUID": "11111111-1111-1111-1111-111111111111"
}

响应样例:

json
{
"@odata.context": "/redfish/v1/$metadata#ServiceRoot",
"@odata.id": "/redfish/v1/",
"@odata.type": "#ServiceRoot.v1_17_0.ServiceRoot",
"Id": "RootService",
"Name": "Root Service",
"RedfishVersion": "1.20.1",
"UUID": "11111111-1111-1111-1111-111111111111",
"Systems": {
"@odata.id": "/redfish/v1/Systems"
},
"Chassis": {
"@odata.id": "/redfish/v1/Chassis"
},
"Managers": {
"@odata.id": "/redfish/v1/Managers"
},
"Tasks": {
"@odata.id": "/redfish/v1/TaskService"
},
"SessionService": {
"@odata.id": "/redfish/v1/SessionService"
},
"AccountService": {
"@odata.id": "/redfish/v1/AccountService"
},
"EventService": {
"@odata.id": "/redfish/v1/EventService"
},
"Links": {
"Sessions": {
"@odata.id": "/redfish/v1/SessionService/Sessions"
}
},
"UpdateService": {
"@odata.id": "/redfish/v1/UpdateService"
},
"Registries": {
"@odata.id": "/redfish/v1/Registries"
},
"JsonSchemas": {
"@odata.id": "/redfish/v1/JSONSchemas"
},
"JobService": {
"@odata.id": "/redfish/v1/JobService"
},
"Fabrics": {
"@odata.id": "/redfish/v1/Fabrics"
},
"Vendor": "",
"Product": "",
"Oem": {
"Public": {
"SystemOverview": {
"@odata.id": "/redfish/v1/SystemOverview"
},
"PerformanceCollection": {
"@odata.id": "/redfish/v1/PerformanceCollection"
},
"ObservabilityService": {
"@odata.id": "/redfish/v1/Oem/Public/ObservabilityService"
},
"SecurityBanner": "WARNING! This system is PRIVATE and PROPRIETARY and may only be accessed by authorized users. Unauthorized use of the system is prohibited. The owner, or its agents, may monitor any activity or communication on the system. The owner, or its agents, may retrieve any information stored within the system. By accessing and using the system, you are consenting to such monitoring and information retrieval for law enforcement and other purposes.",
"ProductName": "RH1288 V3",
"ProductSerialNumber": "2M220100SL",
"HostName": "BMC",
"LanguageSet": "en,zh,fr,ja",
"Copyright": "",
"DownloadKVMLink": " ",
"DocSupportFlag": true,
"DomainName": [
"",
"",
"",
"",
"",
""
],
"ProductPicture": "img_01",
"AccountLockoutDuration": 300,
"KerberosEnabled": false,
"FQDN": "BMC",
"Smsname":"iBMA",

"SoftwareName": "BMC"
}
}
}

响应码:200