|
Post by philip on Sept 9, 2018 10:11:13 GMT
Hi All,
Since there are voltage sensors in a Power resource.
If there's only one sensor in the Voltages array, could it be any kind of unique string instead of a number sequence?
Could it be:
"Voltages": [ { "@odata.id": "xxxxxxxxxxx#/Voltages/3", "MemberId": "3".
or
"Voltages": [ { "@odata.id": "xxxxxxxxxxx#/Voltages/3V", "MemberId": "3V".
instead of
"Voltages": [ { "@odata.id": "xxxxxxxxxxx#/Voltages/0", "MemberId": "0".
There is an example in the Redfish Spec. as follow:
If a property in a response is a reference to another property within a resource, the "URI Fragment Identifier Representation" format as specified in RFC6901 shall be used. If the property is defined as a reference property within the schema, the fragment shall reference a valid resource identifier. For example, the following fragment identifies a property at index 0 of the Fans array within the resource /redfish/v1/Chassis/MultiBladeEncl/Thermal:
{ "@odata.id": "/redfish/v1/Chassis/MultiBladeEncl/Thermal#/Fans/0" }
IMO this does not imply that it should be started with 0, but the others have different opinion with me, is there any documentation about this? I think I am right but this does confuse some others.
Many thanks.
|
|
|
Post by philip on Jan 18, 2018 3:13:15 GMT
I found that several threshold values of a sensors are Readonly. E.g., the UpperThresholdCritical of Thermal.
I think this should be a basic feature for tuning the machine.
Does Redfish not allow user to change these features?
|
|
|
Post by philip on Dec 7, 2017 11:42:36 GMT
The term is defined in the Redfish Spec. as following:
The property representing the action may be annotated with the "AllowableValues" annotation in order to
specify the list of allowable values for a particular parameter.
The set of allowable values is specified by including a property whose name is the name of the parameter
followed by "@redfish.AllowableValues", and whose value is a JSON array of strings representing the
allowable values for the parameter.
It seems that it is used only for the parameters of actions. But in the ComputerSystem schema it defines the property BootSourceOverrideTarget as following:
"longDescription": "The value of this property shall contain the source to boot the system from, overriding the normal boot order. The valid values for this property are specified through the Redfish.AllowableValues annotation. Pxe indicates to PXE boot from the primary NIC; Floppy, Cd, Usb, Hdd indicates to boot from their devices respectively. BiosSetup indicates to boot into the native BIOS screen setup. Utilities and Diags indicate to boot from the local utilities or diags partitions and UefiTarget indicates to boot from the UEFI device path found in UefiTargetBootSourceOverride."
"Oem": {
"LedColor":"Red",
"LedColor@Redfish.AllowableValues":
[ "red",
"blue",
"green",
"yellow"
] ,
Is above JSON string a valid response? Could AllowableValues annotation be applied to any properties?
|
|