Odata
更新时间: 2026/06/26
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/odata
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | OData服务文档资源模型的OData描述信息 |
| Value | object | true | - | OData服务文档资源列表 |
| Value.name | string | true | - | OData服务文档资源名称 |
| Value.kind | string | true | - | OData服务文档资源类型 |
| Value.url | string | true | - | OData服务文档资源访问路径 |
supported_methods
- GET
HTTP methods
GET
命令功能
查询 OData 服务文档
命令格式
URL: https://device_ip/redfish/v1/odata
请求头:
X-Auth-Token: 123456789***********************请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
使用指南
无
使用实例
请求样例:
http
GET https://device_ip/redfish/v1/odata请求头:无
请求消息体:无
响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata",
"value": [
{
"name": "Service",
"kind": "Singleton",
"url": "/redfish/v1"
},
{
"name": "Systems",
"kind": "Singleton",
"url": "/redfish/v1/Systems"
},
{
"name": "Chassis",
"kind": "Singleton",
"url": "/redfish/v1/Chassis"
},
{
"name": "Managers",
"kind": "Singleton",
"url": "/redfish/v1/Managers"
},
{
"name": "Tasks",
"kind": "Singleton",
"url": "/redfish/v1/TaskService"
},
{
"name": "AccountService",
"kind": "Singleton",
"url": "/redfish/v1/AccountService"
},
{
"name": "SessionService",
"kind": "Singleton",
"url": "/redfish/v1/SessionService"
},
{
"name": "EventService",
"kind": "Singleton",
"url": "/redfish/v1/EventService"
},
{
"name": "JsonSchemas",
"kind": "Singleton",
"url": "/redfish/v1/JSONSchemas"
},
{
"name": "Registries",
"kind": "Singleton",
"url": "/redfish/v1/Registries"
},
{
"name": "Sessions",
"kind": "Singleton",
"url": "/redfish/v1/SessionService/Sessions"
}
]
}响应码:200