Post by samarjitadhikari on Oct 19, 2020 8:10:28 GMT
Hi All,
We are considering to implement Redfish standard on the serverside as per redfish.dmtf.org/schemas/DSP0266_1.9.0.html.
There are many schemas/data model being defined in csdl/openapi/json-schema format like Chassis, ComputerSystem, CollectionCapabilities etc.
The data model that we are using could not be directly mapped to any prexisiting schema that are defined in redfish.dmtf.org/redfish/schema_index.
Thus we have 2 concerns.
1. Could we define our schema like "DeviceDetails" (service display name as "DeviceDetails" as well) instead of Chassis following the same format of the resource like having "Links" objects and other properties?
2. If yes, Will standard redfish client be able to parse the response.?
A sample Device Details model:
With regards,
Samarjit
We are considering to implement Redfish standard on the serverside as per redfish.dmtf.org/schemas/DSP0266_1.9.0.html.
There are many schemas/data model being defined in csdl/openapi/json-schema format like Chassis, ComputerSystem, CollectionCapabilities etc.
The data model that we are using could not be directly mapped to any prexisiting schema that are defined in redfish.dmtf.org/redfish/schema_index.
Thus we have 2 concerns.
1. Could we define our schema like "DeviceDetails" (service display name as "DeviceDetails" as well) instead of Chassis following the same format of the resource like having "Links" objects and other properties?
2. If yes, Will standard redfish client be able to parse the response.?
A sample Device Details model:
components:
schemas:
DeviceDetails_v1_0_0_DeviceDetails:
additionalProperties: false
type: object
properties:
'@odata.context':
$ref: http://redfish.dmtf.org/schemas/v1/odata-v4.yaml#/components/schemas/odata-v4_context
'@odata.etag':
$ref: http://redfish.dmtf.org/schemas/v1/odata-v4.yaml#/components/schemas/odata-v4_etag
'@odata.id':
$ref: http://redfish.dmtf.org/schemas/v1/odata-v4.yaml#/components/schemas/odata-v4_id
'@odata.type':
$ref: http://redfish.dmtf.org/schemas/v1/odata-v4.yaml#/components/schemas/odata-v4_type
Summary:
description: Available summary description of the device.
type: object
properties:
Id:
$ref: http://redfish.dmtf.org/schemas/v1/Resource.yaml#/components/schemas/Resource_Id
readOnly: true
DeviceName:
type: string
description: Device name to be displayed in device summary section.
SerialNumber:
type: string
description: Serial number of the Dell Device.
readOnly: true
DeviceIdentifier:
type: string
nullable: true
description: It is a Wyse identifier of the Dell Device.
IPAddress:
type: string
nullable: true
description: Management IP address of the Dell Device.
OSVersion:
type: string
nullable: false
description: It is OS Caption of the operating system for the Dell Device.
LastCheckin:
type: string
format: date-time
description: Date-time of the last check-in of the Dell Device.
nullable: true
LastLoggedInUser:
type: string
description: Last logged in username for the Dell Device.
nullable: true
Links:
$ref: '#/components/schemas/Device_v1_0_0_Links'
description: The links to other resources that are related to Device Details resource.
x-longDescription: This property shall contain links to resources that are
related to but are not contained by, or subordinate to, this Device Details resource.
required:
- Summary
- Links
- '@odata.id'
- '@odata.type'
- '@odata.etag'
Device_v1_0_0_Links:
additionalProperties: false
description: The links to other resources that are related to this resource.
properties:
HardwareDetails:
$ref: http://redfish.dmtf.org/schemas/v1/odata-v4.yaml#/components/schemas/odata-v4_idRef
description: The hadware details link for the device details.
x-longDescription: This property contains a link to a resource of type
hardware details that represents the hardware information of the Dell Device.
BIOSDetails:
description: The BIOS details link for the device.
type: array
items:
$ref: http://redfish.dmtf.org/schemas/v1/odata-v4.yaml#/components/schemas/odata-v4_idRef
x-longDescription: This property contains a link to a resource of type
BIOS details that represents the BIOS information of the Dell Device.
BIOSDetails@odata.count:
$ref: http://redfish.dmtf.org/schemas/v1/odata-v4.yaml#/components/schemas/odata-v4_count
NetworkDetails:
description: The network adapter details link for the device.
type: array
items:
$ref: http://redfish.dmtf.org/schemas/v1/odata-v4.yaml#/components/schemas/odata-v4_idRef
x-longDescription: This property contains a link to a resource of type
network details that represents the network adapter information of the Dell Device.
NetworkDetails@odata.count:
$ref: http://redfish.dmtf.org/schemas/v1/odata-v4.yaml#/components/schemas/odata-v4_count
required:
- HardwareDetails
title: '#DeviceDetails.v1_0_0.DeviceDetails'
With regards,
Samarjit