summaryrefslogtreecommitdiff
path: root/static/redfish/v1/JsonSchemas
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@linux.intel.com>2019-10-08 22:10:39 +0300
committerJason Bills <jason.m.bills@linux.intel.com>2019-10-29 21:42:47 +0300
commitddfc22f272148f57fe8abb62b7909724970339bf (patch)
treea6c53317eace6dc09ebcc6c079102a4c0fbd4eba /static/redfish/v1/JsonSchemas
parente855dd28ff68c13fea57b49f34da9302e6b2f6cd (diff)
downloadbmcweb-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/v1/JsonSchemas')
-rw-r--r--static/redfish/v1/JsonSchemas/Crashdump/Crashdump.json120
-rw-r--r--static/redfish/v1/JsonSchemas/Crashdump/index.json20
2 files changed, 140 insertions, 0 deletions
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