alexandria/alexandria/model/redfish/1.0/EventDestination.1.0.0.json

118 lines
5.8 KiB
JSON
Executable File

{
"$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.1.0.0.json",
"title": "#EventDestination.1.0.0.EventDestination",
"$ref": "#/definitions/EventDestination",
"definitions": {
"EventDestination": {
"type": "object",
"patternProperties": {
"^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
"type": [
"array",
"boolean",
"number",
"null",
"object",
"string"
],
"description": "This property shall specify a valid odata or Redfish property."
}
},
"additionalProperties": false,
"properties": {
"@odata.context": {
"$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/context"
},
"@odata.id": {
"$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/id"
},
"@odata.type": {
"$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/type"
},
"Oem": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
"description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.",
"longDescription": "The value of this string shall be of the format for the reserved word *Oem*."
},
"Id": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id"
},
"Description": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
},
"Name": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name"
},
"Destination": {
"type": "string",
"readonly": true,
"description": "The URI of the destination Event Service.",
"longDescription": "This property shall contain a URI to the destination where the events will be sent."
},
"EventTypes": {
"type": "array",
"items": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Event.1.0.0.json#/definitions/EventType"
},
"readonly": true,
"description": "This property shall contain the types of events that shall be sent to the desination."
},
"Context": {
"type": "string",
"description": "A client-supplied string that is stored with the event destination subscription.",
"longDescription": "This property shall contain a client supplied context that will remain with the connection through the connections lifetime."
},
"Protocol": {
"$ref": "#/definitions/EventDestinationProtocol",
"readonly": true,
"description": "The protocol type of the event connection.",
"longDescription": "This property shall contain the protocol type that the event will use for sending the event to the destination. A value of Redfish shall be used to indicate that the event type shall adhere to that defined in the Redfish specification."
},
"HttpHeaders": {
"type": "array",
"items": {
"$ref": "#/definitions/HttpHeaderProperty"
},
"description": "This is for setting HTTP headers, such as authorization information. This object will be null on a GET.",
"longDescription": "This property shall contain an object consisting of the names and values of of HTTP header to be included with every event POST to the Event Destination. This property shall be null on a GET."
}
},
"requiredOnCreate": [
"Destination",
"EventTypes",
"Context",
"Protocol"
],
"description": "This is the base type for resources and referenceable members."
},
"EventDestinationProtocol": {
"type": "string",
"enum": [
"Redfish"
]
},
"HttpHeaderProperty": {
"type": "object",
"patternProperties": {
"^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
"type": [
"array",
"boolean",
"number",
"null",
"object",
"string"
],
"description": "This property shall specify a valid odata or Redfish property."
},
"^[^:\\s]+$": {
"type": "string"
}
},
"additionalProperties": false,
"properties": {},
"description": "The value of the HTTP header is the property value. The header name is the property name."
}
},
"copyright": "Copyright 2014-2015 Distributed Management Task Force, Inc. (DMTF). All rights reserved."
}