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

ResourceDefinition

uris

  • /redfish/v1/JSONSchemas

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-Schemas资源模型的OData描述信息
@odata.idstringtrue-Schemas资源节点的访问路径
@odata.typestringtrue-Schemas资源的类型
Namestringtrue-Schemas资源的名称
Membersobjecttrue-Schemas资源列表
Members@odata.idstringtrue-单个Schemas资源节点的访问路径
Members@odata.countnumbertrue-当前Schemas资源的数量
Members@odata.nextLinkstringtrue-下一分页的链接
说明
由于分页限制,每页最多显示32个成员

supported_methods

  • GET

HTTP methods

GET

命令功能

查询所有资源的 Schema 文件

命令格式

URL: https://device_ip/redfish/v1/JSONSchemas

请求头:


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

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
auth_value执行该GET请求时,必须在"Headers"中携带"X-Auth-Token"值用于鉴权可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/JSONSchemas

请求头:

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

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#JsonSchemas",
  "@odata.id": "/redfish/v1/JSONSchemas",
  "@odata.type": "#JsonSchemaFileCollection.JsonSchemaFileCollection",
  "Name": "Schema Repository",
  "Description": "Schema Repository",
  "Members@odata.count": 218,
  "Members": [
    {
      "@odata.id": "/redfish/v1/JSONSchemas/SoftwareInventory.v1_0_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/RedfishExtensions.v1_0_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Manager.v1_0_2"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Resource"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/JsonSchemaFile.v1_0_2"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Bios.v1_0_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/VolumeCollection"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/TaskService.v1_0_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/RoleCollection"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/AttributeRegistry.v1_0_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Drive"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/HwVncService"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/TaskCollection"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/HwKvmService"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/SoftwareInventoryCollection"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Chassis.v1_1_2"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/SessionCollection.v1_0_2"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/PhysicalContext.v1_0_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Event.v1_0_2"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Chassis.v1_2_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Power.v1_0_1"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Task"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/IPAddresses.v1_0_2"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Settings.v1_0_2"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/LogEntryCollection"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Chassis.v1_1_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/HwVncService.v1_0_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/iBMCFruControl.v1_0_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/HwLdapService.v1_0_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Role.v1_0_0"
    },
    {
      "@odata.id": "/redfish/v1/JSONSchemas/Redundancy.v1_0_0"
    },
    {
      "@odata.id": "/redfish/v1/JsonSchemas/odata.4.0.0"
    }
  ],
  "Members@odata.nextLink": "/redfish/v1/JSONSchemas?$skip=32&$top=32"
}

响应码:200