Querying Schema Files of All Resources

Function

This interface is used to query the schema files of all resources on the server.

Syntax

Operation type: GET

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

Request header:

X-Auth-Token: auth_value

Request message body: None

Usage Guidelines

None

Example

Request:

GET https://10.10.10.10/redfish/v1/JSONSchemas

Request header:

X-Auth-Token: auth_value

Request message body: None

Response:

{
    "@odata.context": "/redfish/v1/$metadata#JsonSchemas",
    "@odata.id": "/redfish/v1/JSONSchemas",
    "@odata.type": "#JsonSchemaFileCollection.JsonSchemaFileCollection",
    "Name": "Schema Repository",
    "Description": "Schema Repository",
    "Members@odata.count": 35,
    "Members": [
        {
            "@odata.id": "redfish/v1/Josonschemas/Session.v1_4_0"
        },
        {
            "@odata.id": "redfish/v1/Josonschemas/SessionService.v1_1_8"
        },
        {
            "@odata.id": "redfish/v1/Josonschemas/MessageRegistry.v1_0_0"
        }
        ...
    ]
}

Response code: 200

Output Description

Table 1 Operation output description

Field

Type

Description

@odata.context

Character string

OData description of the schema resource model.

@odata.id

Character string

Path to access the schema resource node.

@odata.type

Character string

Schema resource type.

Name

Character string

Schema resource name.

Description

Character string

Schema resource description.

Members@odata.count

Number

Number of current schema resources.

Members

List

Schema resource list.

@odata.id

Character string

Path to access a single schema resource node.