Ed Tanous | 683f727 | 2018-07-26 12:47:19 -0700 | [diff] [blame] | 1 | { |
| 2 | "$ref": "#/definitions/EventDestination", |
| 3 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_4_0.json", |
| 4 | "copyright": "Copyright 2014-2018 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", |
| 5 | "definitions": { |
| 6 | "Actions": { |
| 7 | "additionalProperties": false, |
| 8 | "description": "The available actions for this resource.", |
| 9 | "longDescription": "This type shall contain the available actions for this resource.", |
| 10 | "patternProperties": { |
| 11 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 12 | "description": "This property shall specify a valid odata or Redfish property.", |
| 13 | "type": [ |
| 14 | "array", |
| 15 | "boolean", |
| 16 | "number", |
| 17 | "null", |
| 18 | "object", |
| 19 | "string" |
| 20 | ] |
| 21 | } |
| 22 | }, |
| 23 | "properties": { |
| 24 | "Oem": { |
| 25 | "$ref": "#/definitions/OemActions" |
| 26 | } |
| 27 | }, |
| 28 | "type": "object" |
| 29 | }, |
| 30 | "EventDestination": { |
| 31 | "additionalProperties": false, |
| 32 | "description": "An Event Destination desribes the target of an event subscription, including the types of events subscribed and context to provide to the target in the Event payload.", |
| 33 | "patternProperties": { |
| 34 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 35 | "description": "This property shall specify a valid odata or Redfish property.", |
| 36 | "type": [ |
| 37 | "array", |
| 38 | "boolean", |
| 39 | "number", |
| 40 | "null", |
| 41 | "object", |
| 42 | "string" |
| 43 | ] |
| 44 | } |
| 45 | }, |
| 46 | "properties": { |
| 47 | "@odata.context": { |
| 48 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/context" |
| 49 | }, |
| 50 | "@odata.etag": { |
| 51 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/etag" |
| 52 | }, |
| 53 | "@odata.id": { |
| 54 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/id" |
| 55 | }, |
| 56 | "@odata.type": { |
| 57 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/type" |
| 58 | }, |
| 59 | "Actions": { |
| 60 | "$ref": "#/definitions/Actions", |
| 61 | "description": "The available actions for this resource.", |
| 62 | "longDescription": "The Actions property shall contain the available actions for this resource." |
| 63 | }, |
| 64 | "Context": { |
| 65 | "description": "A client-supplied string that is stored with the event destination subscription.", |
| 66 | "longDescription": "This property shall contain a client supplied context that will remain with the connection through the connections lifetime.", |
| 67 | "readonly": false, |
| 68 | "type": [ |
| 69 | "string", |
| 70 | "null" |
| 71 | ] |
| 72 | }, |
| 73 | "Description": { |
| 74 | "anyOf": [ |
| 75 | { |
| 76 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 77 | }, |
| 78 | { |
| 79 | "type": "null" |
| 80 | } |
| 81 | ], |
| 82 | "readonly": true |
| 83 | }, |
| 84 | "Destination": { |
| 85 | "description": "The URI of the destination Event Service.", |
| 86 | "format": "uri", |
| 87 | "longDescription": "This property shall contain a URI to the destination where the events will be sent.", |
| 88 | "readonly": true, |
| 89 | "type": "string" |
| 90 | }, |
| 91 | "EventTypes": { |
| 92 | "description": "This property shall contain the types of events that shall be sent to the desination.", |
| 93 | "items": { |
| 94 | "$ref": "http://redfish.dmtf.org/schemas/v1/Event.json#/definitions/EventType" |
| 95 | }, |
| 96 | "readonly": true, |
| 97 | "type": "array" |
| 98 | }, |
| 99 | "HttpHeaders": { |
| 100 | "description": "This is for setting HTTP headers, such as authorization information. This object will be null on a GET.", |
| 101 | "items": { |
| 102 | "$ref": "#/definitions/HttpHeaderProperty" |
| 103 | }, |
| 104 | "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.", |
| 105 | "type": "array" |
| 106 | }, |
| 107 | "Id": { |
| 108 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 109 | "readonly": true |
| 110 | }, |
| 111 | "MessageIds": { |
| 112 | "description": "A list of MessageIds that the service will only send. If this property is absent or the array is empty, then Events with any MessageId will be sent to the subscriber.", |
| 113 | "items": { |
| 114 | "type": [ |
| 115 | "string", |
| 116 | "null" |
| 117 | ] |
| 118 | }, |
| 119 | "longDescription": "The value of this property shall specify an array of MessageIds that are the only allowable values for the MessageId property within an EventRecord sent to the subscriber. Events with MessageIds not contained in this array shall not be sent to the subscriber. If this property is absent or the array is empty, the service shall send Events with any MessageId to the subscriber.", |
| 120 | "readonly": true, |
| 121 | "type": "array" |
| 122 | }, |
| 123 | "Name": { |
| 124 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 125 | "readonly": true |
| 126 | }, |
| 127 | "Oem": { |
| 128 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 129 | "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.", |
| 130 | "longDescription": "The value of this string shall be of the format for the reserved word *Oem*." |
| 131 | }, |
| 132 | "OriginResources": { |
| 133 | "description": "A list of resources for which the service will only send related events. If this property is absent or the array is empty, then Events originating from any resource will be sent to the subscriber.", |
| 134 | "items": { |
| 135 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/idRef" |
| 136 | }, |
| 137 | "longDescription": "The value of this property shall specify an array of Resources, Resource Collections, or Referenceable Members that are the only allowable values for the OriginOfCondition property within an EventRecord sent to the subscriber. Events originating from Resources, Resource Collections, or Referenceable Members not contained in this array shall not be sent to the subscriber. If this property is absent or the array is empty, the service shall send Events originating from any Resource, Resource Collection, or Referenceable Member to the subscriber.", |
| 138 | "readonly": true, |
| 139 | "type": "array" |
| 140 | }, |
| 141 | "OriginResources@odata.count": { |
| 142 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/count" |
| 143 | }, |
| 144 | "Protocol": { |
| 145 | "$ref": "#/definitions/EventDestinationProtocol", |
| 146 | "description": "The protocol type of the event connection.", |
| 147 | "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.", |
| 148 | "readonly": true |
| 149 | }, |
| 150 | "SubscriptionType": { |
| 151 | "anyOf": [ |
| 152 | { |
| 153 | "$ref": "#/definitions/SubscriptionType" |
| 154 | }, |
| 155 | { |
| 156 | "type": "null" |
| 157 | } |
| 158 | ], |
| 159 | "description": "Indicates the subscription type for events.", |
| 160 | "longDescription": "The value of this property shall indicate the type of subscription for events. If this property is not present, the SubscriptionType shall be assumed to be RedfishEvent.", |
| 161 | "readonly": true |
| 162 | } |
| 163 | }, |
| 164 | "required": [ |
| 165 | "Context", |
| 166 | "Id", |
| 167 | "Name", |
| 168 | "SubscriptionType" |
| 169 | ], |
| 170 | "requiredOnCreate": [ |
| 171 | "Destination", |
| 172 | "EventTypes", |
| 173 | "Protocol" |
| 174 | ], |
| 175 | "type": "object" |
| 176 | }, |
| 177 | "EventDestinationProtocol": { |
| 178 | "enum": [ |
| 179 | "Redfish" |
| 180 | ], |
| 181 | "enumDescriptions": { |
| 182 | "Redfish": "The destination follows the Redfish specification for event notifications." |
| 183 | }, |
| 184 | "type": "string" |
| 185 | }, |
| 186 | "HttpHeaderProperty": { |
| 187 | "additionalProperties": false, |
| 188 | "description": "The value of the HTTP header is the property value. The header name is the property name.", |
| 189 | "longDescription": "This type shall a names and value of an HTTP header to be included with every event POST to the Event Destination.", |
| 190 | "patternProperties": { |
| 191 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 192 | "description": "This property shall specify a valid odata or Redfish property.", |
| 193 | "type": [ |
| 194 | "array", |
| 195 | "boolean", |
| 196 | "number", |
| 197 | "null", |
| 198 | "object", |
| 199 | "string" |
| 200 | ] |
| 201 | }, |
| 202 | "^[^:\\\\s]+$": { |
| 203 | "type": "string" |
| 204 | } |
| 205 | }, |
| 206 | "properties": {}, |
| 207 | "type": "object" |
| 208 | }, |
| 209 | "OemActions": { |
| 210 | "additionalProperties": true, |
| 211 | "description": "The available OEM specific actions for this resource.", |
| 212 | "longDescription": "This type shall contain any additional OEM actions for this resource.", |
| 213 | "patternProperties": { |
| 214 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 215 | "description": "This property shall specify a valid odata or Redfish property.", |
| 216 | "type": [ |
| 217 | "array", |
| 218 | "boolean", |
| 219 | "number", |
| 220 | "null", |
| 221 | "object", |
| 222 | "string" |
| 223 | ] |
| 224 | } |
| 225 | }, |
| 226 | "properties": {}, |
| 227 | "type": "object" |
| 228 | }, |
| 229 | "SubscriptionType": { |
| 230 | "enum": [ |
| 231 | "RedfishEvent", |
| 232 | "SSE" |
| 233 | ], |
| 234 | "enumDescriptions": { |
| 235 | "RedfishEvent": "The subscription follows the Redfish specification for event notifications, which is done by a service sending an HTTP POST to the subscriber's destination URI.", |
| 236 | "SSE": "The subscription follows the HTML5 Server-Sent Event definition for event notifications." |
| 237 | }, |
| 238 | "type": "string" |
| 239 | } |
| 240 | }, |
| 241 | "owningEntity": "DMTF", |
| 242 | "title": "#EventDestination.v1_3_0.EventDestination" |
| 243 | } |