Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 1 | { |
Ed Tanous | a8d8f9d | 2023-01-26 13:57:00 -0800 | [diff] [blame] | 2 | "$id": "http://redfish.dmtf.org/schemas/v1/Session.v1_6_0.json", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 3 | "$ref": "#/definitions/Session", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 4 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 5 | "copyright": "Copyright 2014-2022 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 6 | "definitions": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 7 | "Actions": { |
| 8 | "additionalProperties": false, |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 9 | "description": "The available actions for this resource.", |
| 10 | "longDescription": "This type shall contain the available actions for this resource.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 11 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 12 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 13 | "description": "This property shall specify a valid odata or Redfish property.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 14 | "type": [ |
| 15 | "array", |
| 16 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 17 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 18 | "number", |
| 19 | "null", |
| 20 | "object", |
| 21 | "string" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 22 | ] |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 23 | } |
| 24 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 25 | "properties": { |
| 26 | "Oem": { |
| 27 | "$ref": "#/definitions/OemActions", |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 28 | "description": "The available OEM-specific actions for this resource.", |
| 29 | "longDescription": "This property shall contain the available OEM-specific actions for this resource.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 30 | "versionAdded": "v1_1_0" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 31 | } |
| 32 | }, |
| 33 | "type": "object" |
| 34 | }, |
| 35 | "OemActions": { |
| 36 | "additionalProperties": true, |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 37 | "description": "The available OEM-specific actions for this resource.", |
| 38 | "longDescription": "This type shall contain the available OEM-specific actions for this resource.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 39 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 40 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 41 | "description": "This property shall specify a valid odata or Redfish property.", |
| 42 | "type": [ |
| 43 | "array", |
| 44 | "boolean", |
| 45 | "integer", |
| 46 | "number", |
| 47 | "null", |
| 48 | "object", |
| 49 | "string" |
| 50 | ] |
| 51 | } |
| 52 | }, |
| 53 | "properties": {}, |
| 54 | "type": "object" |
| 55 | }, |
| 56 | "Session": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 57 | "additionalProperties": false, |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 58 | "description": "The Session resource describes a single connection (session) between a client and a Redfish service instance.", |
| 59 | "longDescription": "This resource shall represent a session for a Redfish implementation.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 60 | "patternProperties": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 61 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 62 | "description": "This property shall specify a valid odata or Redfish property.", |
| 63 | "type": [ |
| 64 | "array", |
| 65 | "boolean", |
| 66 | "integer", |
| 67 | "number", |
| 68 | "null", |
| 69 | "object", |
| 70 | "string" |
| 71 | ] |
| 72 | } |
| 73 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 74 | "properties": { |
| 75 | "@odata.context": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 76 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 77 | }, |
| 78 | "@odata.etag": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 79 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 80 | }, |
| 81 | "@odata.id": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 82 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 83 | }, |
| 84 | "@odata.type": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 85 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 86 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 87 | "Actions": { |
| 88 | "$ref": "#/definitions/Actions", |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 89 | "description": "The available actions for this resource.", |
| 90 | "longDescription": "This property shall contain the available actions for this resource.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 91 | "versionAdded": "v1_1_0" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 92 | }, |
Asmitha Karunanithi | c8ccb77 | 2020-09-22 10:56:46 -0500 | [diff] [blame] | 93 | "ClientOriginIPAddress": { |
| 94 | "description": "The IP address of the client that created the session.", |
| 95 | "longDescription": "This property shall contain the IP address of the client that created the session.", |
| 96 | "readonly": true, |
| 97 | "type": [ |
| 98 | "string", |
| 99 | "null" |
| 100 | ], |
| 101 | "versionAdded": "v1_3_0" |
| 102 | }, |
Asmitha Karunanithi | 009c645 | 2022-09-22 01:07:59 -0500 | [diff] [blame] | 103 | "Context": { |
| 104 | "description": "A client-supplied string that is stored with the session.", |
| 105 | "longDescription": "This property shall contain a client-supplied context that remains with the session through the session's lifetime.", |
| 106 | "readonly": true, |
| 107 | "type": [ |
| 108 | "string", |
| 109 | "null" |
| 110 | ], |
| 111 | "versionAdded": "v1_5_0" |
| 112 | }, |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 113 | "CreatedTime": { |
| 114 | "description": "The date and time when the session was created.", |
| 115 | "format": "date-time", |
| 116 | "longDescription": "This property shall contain the date and time when the session was created.", |
| 117 | "readonly": true, |
| 118 | "type": [ |
| 119 | "string", |
| 120 | "null" |
| 121 | ], |
| 122 | "versionAdded": "v1_4_0" |
| 123 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 124 | "Description": { |
| 125 | "anyOf": [ |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 126 | { |
| 127 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 128 | }, |
| 129 | { |
| 130 | "type": "null" |
| 131 | } |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 132 | ], |
| 133 | "readonly": true |
| 134 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 135 | "Id": { |
| 136 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 137 | "readonly": true |
| 138 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 139 | "Name": { |
| 140 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 141 | "readonly": true |
| 142 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 143 | "Oem": { |
| 144 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 145 | "description": "The OEM extension property.", |
| 146 | "longDescription": "This property shall contain the OEM extensions. All values for properties that this object contains shall conform to the Redfish Specification-described requirements." |
| 147 | }, |
| 148 | "OemSessionType": { |
| 149 | "description": "The active OEM-defined session type.", |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 150 | "longDescription": "This property shall contain the OEM-specific session type that is currently active if SessionType contains `OEM`.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 151 | "readonly": true, |
| 152 | "type": [ |
| 153 | "string", |
| 154 | "null" |
| 155 | ], |
| 156 | "versionAdded": "v1_2_0" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 157 | }, |
| 158 | "Password": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 159 | "description": "The password for this session. The value is `null` in responses.", |
| 160 | "longDescription": "This property shall contain the password for this session. The value shall be `null` in responses.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 161 | "readonly": true, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 162 | "type": [ |
| 163 | "string", |
| 164 | "null" |
Ed Tanous | a8d8f9d | 2023-01-26 13:57:00 -0800 | [diff] [blame] | 165 | ], |
Ed Tanous | f263e09 | 2023-05-22 09:56:29 -0700 | [diff] [blame^] | 166 | "writeOnly": false |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 167 | }, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 168 | "SessionType": { |
| 169 | "anyOf": [ |
| 170 | { |
| 171 | "$ref": "#/definitions/SessionTypes" |
| 172 | }, |
| 173 | { |
| 174 | "type": "null" |
| 175 | } |
| 176 | ], |
| 177 | "description": "The active session type.", |
| 178 | "longDescription": "This property shall represent the type of session that is currently active.", |
| 179 | "readonly": true, |
| 180 | "versionAdded": "v1_2_0" |
| 181 | }, |
Ed Tanous | a8d8f9d | 2023-01-26 13:57:00 -0800 | [diff] [blame] | 182 | "Token": { |
| 183 | "description": "The multi-factor authentication token for this session. The value is `null` in responses.", |
| 184 | "longDescription": "This property shall contain the multi-factor authentication token for this session. The value shall be `null` in responses.", |
| 185 | "readonly": true, |
| 186 | "type": [ |
| 187 | "string", |
| 188 | "null" |
| 189 | ], |
| 190 | "versionAdded": "v1_6_0", |
Ed Tanous | f263e09 | 2023-05-22 09:56:29 -0700 | [diff] [blame^] | 191 | "writeOnly": false |
Ed Tanous | a8d8f9d | 2023-01-26 13:57:00 -0800 | [diff] [blame] | 192 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 193 | "UserName": { |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 194 | "description": "The username for the account for this session.", |
| 195 | "longDescription": "This property shall contain the username that matches an account recognized by the account service.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 196 | "readonly": true, |
| 197 | "type": [ |
| 198 | "string", |
| 199 | "null" |
| 200 | ] |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 201 | } |
| 202 | }, |
| 203 | "required": [ |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 204 | "@odata.id", |
| 205 | "@odata.type", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 206 | "Id", |
| 207 | "Name" |
| 208 | ], |
| 209 | "requiredOnCreate": [ |
| 210 | "UserName", |
| 211 | "Password" |
| 212 | ], |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 213 | "type": "object" |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 214 | }, |
| 215 | "SessionTypes": { |
| 216 | "enum": [ |
| 217 | "HostConsole", |
| 218 | "ManagerConsole", |
| 219 | "IPMI", |
| 220 | "KVMIP", |
| 221 | "OEM", |
| 222 | "Redfish", |
| 223 | "VirtualMedia", |
| 224 | "WebUI" |
| 225 | ], |
| 226 | "enumDescriptions": { |
| 227 | "HostConsole": "The host's console, which could be connected through Telnet, SSH, or other protocol.", |
| 228 | "IPMI": "Intelligent Platform Management Interface.", |
| 229 | "KVMIP": "Keyboard-Video-Mouse over IP Session.", |
| 230 | "ManagerConsole": "The manager's console, which could be connected through Telnet, SSH, SM CLP, or other protocol.", |
Ed Tanous | ed76121 | 2022-09-23 15:03:29 -0700 | [diff] [blame] | 231 | "OEM": "OEM type. For OEM session types, see the OemSessionType property.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame] | 232 | "Redfish": "A Redfish session.", |
| 233 | "VirtualMedia": "Virtual media.", |
| 234 | "WebUI": "A non-Redfish web user interface session, such as a graphical interface or another web-based protocol." |
| 235 | }, |
| 236 | "type": "string" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 237 | } |
| 238 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 239 | "owningEntity": "DMTF", |
Ed Tanous | a8d8f9d | 2023-01-26 13:57:00 -0800 | [diff] [blame] | 240 | "release": "2022.3", |
| 241 | "title": "#Session.v1_6_0.Session" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 242 | } |