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

ResourceDefinition

uris

  • /redfish/v1/odata

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-OData服务文档资源模型的OData描述信息
Valueobjecttrue-OData服务文档资源列表
Value.namestringtrue-OData服务文档资源名称
Value.kindstringtrue-OData服务文档资源类型
Value.urlstringtrue-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