diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2019-10-08 22:10:39 +0300 |
---|---|---|
committer | Jason Bills <jason.m.bills@linux.intel.com> | 2019-10-29 21:42:47 +0300 |
commit | ddfc22f272148f57fe8abb62b7909724970339bf (patch) | |
tree | a6c53317eace6dc09ebcc6c079102a4c0fbd4eba /static/redfish | |
parent | e855dd28ff68c13fea57b49f34da9302e6b2f6cd (diff) | |
download | bmcweb-ddfc22f272148f57fe8abb62b7909724970339bf.tar.xz |
Add a Redfish schema for the Crashdump OEM Actions
Tested:
Passed the Redfish Service Validator
Change-Id: Ib121346e3be031584eb522ceb8c8e4e3a350f13a
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'static/redfish')
-rw-r--r-- | static/redfish/v1/$metadata/index.xml | 3 | ||||
-rw-r--r-- | static/redfish/v1/JsonSchemas/Crashdump/Crashdump.json | 120 | ||||
-rw-r--r-- | static/redfish/v1/JsonSchemas/Crashdump/index.json | 20 | ||||
-rw-r--r-- | static/redfish/v1/schema/Crashdump_v1.xml | 38 |
4 files changed, 181 insertions, 0 deletions
diff --git a/static/redfish/v1/$metadata/index.xml b/static/redfish/v1/$metadata/index.xml index 3d077431ca..48090d46f7 100644 --- a/static/redfish/v1/$metadata/index.xml +++ b/static/redfish/v1/$metadata/index.xml @@ -1875,4 +1875,7 @@ <edmx:Reference Uri="/redfish/v1/schema/OemManager_v1.xml"> <edmx:Include Namespace="OemManager"/> </edmx:Reference> + <edmx:Reference Uri="/redfish/v1/schema/Crashdump_v1.xml"> + <edmx:Include Namespace="Crashdump.v1_0_0"/> + </edmx:Reference> </edmx:Edmx> diff --git a/static/redfish/v1/JsonSchemas/Crashdump/Crashdump.json b/static/redfish/v1/JsonSchemas/Crashdump/Crashdump.json new file mode 100644 index 0000000000..0ce3f3de6f --- /dev/null +++ b/static/redfish/v1/JsonSchemas/Crashdump/Crashdump.json @@ -0,0 +1,120 @@ +{ + "$id": "http://redfish.dmtf.org/schemas/v1/Crashdump.v1_0_0.json", + "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", + "copyright": "Copyright 2014-2019 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", + "definitions": { + "Actions": { + "additionalProperties": false, + "patternProperties": { + "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { + "description": "This property shall specify a valid odata or Redfish property.", + "type": [ + "array", + "boolean", + "integer", + "number", + "null", + "object", + "string" + ] + } + }, + "properties": { + "#Crashdump.OnDemand": { + "$ref": "#/definitions/OnDemand" + }, + "#Crashdump.SendRawPeci": { + "$ref": "#/definitions/SendRawPeci" + } + }, + "type": "object" + }, + "OnDemand": { + "additionalProperties": false, + "description": "This action is used to trigger a new on-demand crashdump.", + "longDescription": "This action is used to trigger a new on-demand crashdump which is returned immediately.", + "parameters": {}, + "patternProperties": { + "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { + "description": "This property shall specify a valid odata or Redfish property.", + "type": [ + "array", + "boolean", + "integer", + "number", + "null", + "object", + "string" + ] + } + }, + "properties": { + "target": { + "description": "Link to invoke action", + "format": "uri-reference", + "type": "string" + }, + "title": { + "description": "Friendly action name", + "type": "string" + } + }, + "type": "object" + }, + "SendRawPeci": { + "additionalProperties": false, + "description": "This action is used to send a raw PECI command to the CPU.", + "longDescription": "This action is used to send a raw PECI command to the CPU.", + "parameters": { + "ClientAddress": { + "description": "PECI client address for the command.", + "longDescription": "This defines the PECI client address that is the target for this command.", + "requiredParameter": true, + "type": "integer" + }, + "PECICommand": { + "description": "The raw bytes to be sent as the PECI command.", + "items": { + "type": "integer" + }, + "longDescription": "This defines an array of raw data that is made up of the raw bytes of the PECI command to be sent.", + "requiredParameter": true, + "type": "array" + }, + "ReadLength": { + "description": "Read length parameter for the command", + "longDescription": "This defines the read length parameter for this command.", + "requiredParameter": true, + "type": "integer" + } + }, + "patternProperties": { + "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { + "description": "This property shall specify a valid odata or Redfish property.", + "type": [ + "array", + "boolean", + "integer", + "number", + "null", + "object", + "string" + ] + } + }, + "properties": { + "target": { + "description": "Link to invoke action", + "format": "uri-reference", + "type": "string" + }, + "title": { + "description": "Friendly action name", + "type": "string" + } + }, + "type": "object" + } + }, + "title": "#Crashdump.v1_0_0" +}
\ No newline at end of file diff --git a/static/redfish/v1/JsonSchemas/Crashdump/index.json b/static/redfish/v1/JsonSchemas/Crashdump/index.json new file mode 100644 index 0000000000..4f9e5332ca --- /dev/null +++ b/static/redfish/v1/JsonSchemas/Crashdump/index.json @@ -0,0 +1,20 @@ +{ + "@odata.context": "/redfish/v1/$metadata#JsonSchemaFile.JsonSchemaFile", + "@odata.id": "/redfish/v1/JsonSchemas/Crashdump", + "@odata.type": "#JsonSchemaFile.v1_0_2.JsonSchemaFile", + "Name": "Crashdump Schema File", + "Schema": "#Crashdump.Crashdump", + "Description": "Crashdump Schema File Location", + "Id": "Crashdump", + "Languages": [ + "en" + ], + "Languages@odata.count": 1, + "Location": [ + { + "Language": "en", + "Uri": "/redfish/v1/JsonSchemas/Crashdump/Crashdump.json" + } + ], + "Location@odata.count": 1 +}
\ No newline at end of file diff --git a/static/redfish/v1/schema/Crashdump_v1.xml b/static/redfish/v1/schema/Crashdump_v1.xml new file mode 100644 index 0000000000..db9dde0eb4 --- /dev/null +++ b/static/redfish/v1/schema/Crashdump_v1.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0"> + <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Core.V1.xml"> + <edmx:Include Namespace="Org.OData.Core.V1" Alias="OData" /> + </edmx:Reference> + <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/LogService_v1.xml"> + <edmx:Include Namespace="LogService"/> + <edmx:Include Namespace="LogService.v1_0_0"/> + </edmx:Reference> + + <edmx:DataServices> + <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Crashdump.v1_0_0"> + <Action Name="OnDemand" IsBound="true"> + <Parameter Name="LogService" Type="LogService.v1_0_0.OemActions"/> + <Annotation Term="OData.Description" String="This action is used to trigger a new on-demand crashdump." /> + <Annotation Term="OData.LongDescription" String="This action is used to trigger a new on-demand crashdump which is returned immediately." /> + </Action> + + <Action Name="SendRawPeci" IsBound="true"> + <Parameter Name="LogService" Type="LogService.v1_0_0.OemActions"/> + <Parameter Name="ClientAddress" Type="Edm.Int64" Nullable="false"> + <Annotation Term="OData.Description" String="PECI client address for the command." /> + <Annotation Term="OData.LongDescription" String="This defines the PECI client address that is the target for this command." /> + </Parameter> + <Parameter Name="ReadLength" Type="Edm.Int64" Nullable="false"> + <Annotation Term="OData.Description" String="Read length parameter for the command" /> + <Annotation Term="OData.LongDescription" String="This defines the read length parameter for this command." /> + </Parameter> + <Parameter Name="PECICommand" Type="Collection(Edm.Int64)" Nullable="false"> + <Annotation Term="OData.Description" String="The raw bytes to be sent as the PECI command." /> + <Annotation Term="OData.LongDescription" String="This defines an array of raw data that is made up of the raw bytes of the PECI command to be sent." /> + </Parameter> + <Annotation Term="OData.Description" String="This action is used to send a raw PECI command to the CPU." /> + <Annotation Term="OData.LongDescription" String="This action is used to send a raw PECI command to the CPU." /> + </Action> + </Schema> + </edmx:DataServices> +</edmx:Edmx> |