JSONSchemas
更新时间: 2026/06/26
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/JSONSchemas/{member_id}
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | 归档资源模型的OData描述信息 |
| @odata.id | string | true | - | 归档资源节点的访问路径 |
| @odata.type | string | true | - | 归档资源类型 |
| Id | string | true | - | 归档资源ID |
| Name | string | true | - | 归档资源的名称 |
| Description | string | true | - | 归档资源的描述信息 |
| Languages | array | true | - | 可用模式的语言代码 |
| Schema | string | true | - | 归档文件名称 |
| Location | array | true | - | |
| Location[].Language | string | true | - | Schema文件的编码语言 |
| Location[].Uri | string | true | - | 链接到该Schema本地可访问的URI |
| Location[].PublicationUri | string | true | - | 链接到Schema可公开访问的URI |
supported_methods
- GET
HTTP methods
GET
命令功能
查询单个 Schema 文件归档地址
命令格式
URL: https://device_ip/redfish/v1/JSONSchemas/member_id
请求头:
X-Auth-Token: 123456789***********************请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| auth_value | 执行该GET请求时,必须在"Headers"中携带"X-Auth-Token"值用于鉴权 | 可通过/redfish/v1/SessionService/Sessions创建会话时获得 |
| member_id | Schemas文件名 | 需要查询的Schema文件名 |
使用指南
无
使用实例
请求样例:
http
GET https://device_ip/redfish/v1/JSONSchemas/Volume.v1_0_0请求头:
X-Auth-Token: 123456789***********************响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata#JsonSchemasFile/Members/$entity",
"@odata.id": "/redfish/v1/JSONSchemas/Volume.v1_0_0",
"@odata.type": "#JsonSchemaFile.v1_0_2.JsonSchemaFile",
"Id": "Volume.v1_0_0",
"Description": "Volume Schema File Location",
"Name": "Volume Schema File",
"Languages": [
"en"
],
"Schema": "#Volume.v1_0_0.Volume",
"Location": [
{
"Language": "en",
"Uri": "/redfish/v1/SchemaStore/en/Volume.v1_0_0.json",
"PublicationUri": "http://redfish.dmtf.org/schemas/v1/Volume.v1_0_0.json"
}
]
}响应码:200