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

ResourceDefinition

uris

  • /redfish/v1/$metadata

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-文档路径

supported_methods

  • GET

HTTP methods

GET

命令功能

查询 Metadata 文档

命令格式

URL: https://device_ip/redfish/v1/$metadata

请求头:


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

请求消息体: 无

参数说明

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

使用指南

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/$metadata

请求头:无

请求消息体:无

响应样例:

xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014-2016 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright.-->
<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
<edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/ServiceRoot_v1.xml">
<edmx:Include Namespace="ServiceRoot"/>
<edmx:Include Namespace="ServiceRoot.v1_0_2"/>
</edmx:Reference>
<edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/AccountService_v1.xml">
<edmx:Include Namespace="AccountService"/>
<edmx:Include Namespace="AccountService.v1_0_2"/>
</edmx:Reference>
.............................................

响应码:200