Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 1 | { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 2 | "$id": "http://redfish.dmtf.org/schemas/v1/Session.v1_2_1.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 | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 5 | "copyright": "Copyright 2014-2019 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 | cb10313 | 2019-10-08 11:34:22 -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 | cb10313 | 2019-10-08 11:34:22 -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.", |
| 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 | cb10313 | 2019-10-08 11:34:22 -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 | cb10313 | 2019-10-08 11:34:22 -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 | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 89 | "description": "The available actions for this Resource.", |
| 90 | "longDescription": "This property shall contain the available actions for this Resource.", |
| 91 | "versionAdded": "v1_1_0" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 92 | }, |
| 93 | "Description": { |
| 94 | "anyOf": [ |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 95 | { |
| 96 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 97 | }, |
| 98 | { |
| 99 | "type": "null" |
| 100 | } |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 101 | ], |
| 102 | "readonly": true |
| 103 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 104 | "Id": { |
| 105 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 106 | "readonly": true |
| 107 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 108 | "Name": { |
| 109 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 110 | "readonly": true |
| 111 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 112 | "Oem": { |
| 113 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 114 | "description": "The OEM extension property.", |
| 115 | "longDescription": "This property shall contain the OEM extensions. All values for properties that this object contains shall conform to the Redfish Specification-described requirements." |
| 116 | }, |
| 117 | "OemSessionType": { |
| 118 | "description": "The active OEM-defined session type.", |
| 119 | "longDescription": "When SessionType is reported as OEM, this property should report the OEM-specific session type. Thus, this property shall represent the type of OEM session that is currently active.", |
| 120 | "readonly": true, |
| 121 | "type": [ |
| 122 | "string", |
| 123 | "null" |
| 124 | ], |
| 125 | "versionAdded": "v1_2_0" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 126 | }, |
| 127 | "Password": { |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 128 | "description": "The password for this session. The value is `null` in responses.", |
| 129 | "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] | 130 | "readonly": true, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 131 | "type": [ |
| 132 | "string", |
| 133 | "null" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 134 | ] |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 135 | }, |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 136 | "SessionType": { |
| 137 | "anyOf": [ |
| 138 | { |
| 139 | "$ref": "#/definitions/SessionTypes" |
| 140 | }, |
| 141 | { |
| 142 | "type": "null" |
| 143 | } |
| 144 | ], |
| 145 | "description": "The active session type.", |
| 146 | "longDescription": "This property shall represent the type of session that is currently active.", |
| 147 | "readonly": true, |
| 148 | "versionAdded": "v1_2_0" |
| 149 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 150 | "UserName": { |
| 151 | "description": "The UserName for the account for this session.", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 152 | "longDescription": "This property shall contain the user name that matches an account recognized by the Account Service.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 153 | "readonly": true, |
| 154 | "type": [ |
| 155 | "string", |
| 156 | "null" |
| 157 | ] |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 158 | } |
| 159 | }, |
| 160 | "required": [ |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 161 | "@odata.id", |
| 162 | "@odata.type", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 163 | "Id", |
| 164 | "Name" |
| 165 | ], |
| 166 | "requiredOnCreate": [ |
| 167 | "UserName", |
| 168 | "Password" |
| 169 | ], |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 170 | "type": "object" |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 171 | }, |
| 172 | "SessionTypes": { |
| 173 | "enum": [ |
| 174 | "HostConsole", |
| 175 | "ManagerConsole", |
| 176 | "IPMI", |
| 177 | "KVMIP", |
| 178 | "OEM", |
| 179 | "Redfish", |
| 180 | "VirtualMedia", |
| 181 | "WebUI" |
| 182 | ], |
| 183 | "enumDescriptions": { |
| 184 | "HostConsole": "The host's console, which could be connected through Telnet, SSH, or other protocol.", |
| 185 | "IPMI": "Intelligent Platform Management Interface.", |
| 186 | "KVMIP": "Keyboard-Video-Mouse over IP Session.", |
| 187 | "ManagerConsole": "The manager's console, which could be connected through Telnet, SSH, SM CLP, or other protocol.", |
| 188 | "OEM": "OEM Type. For OEM session types, see the OemSessionType property.", |
| 189 | "Redfish": "A Redfish session.", |
| 190 | "VirtualMedia": "Virtual media.", |
| 191 | "WebUI": "A non-Redfish web user interface session, such as a graphical interface or another web-based protocol." |
| 192 | }, |
| 193 | "type": "string" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 194 | } |
| 195 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 196 | "owningEntity": "DMTF", |
Ed Tanous | cb10313 | 2019-10-08 11:34:22 -0700 | [diff] [blame^] | 197 | "release": "2019.1", |
| 198 | "title": "#Session.v1_2_1.Session" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame] | 199 | } |