Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame^] | 1 | { |
| 2 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_2_0.json", |
| 3 | "title": "#Session.v1_1_0.Session", |
| 4 | "$ref": "#/definitions/Session", |
| 5 | "definitions": { |
| 6 | "Session": { |
| 7 | "type": "object", |
| 8 | "patternProperties": { |
| 9 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 10 | "type": [ |
| 11 | "array", |
| 12 | "boolean", |
| 13 | "number", |
| 14 | "null", |
| 15 | "object", |
| 16 | "string" |
| 17 | ], |
| 18 | "description": "This property shall specify a valid odata or Redfish property." |
| 19 | } |
| 20 | }, |
| 21 | "additionalProperties": false, |
| 22 | "properties": { |
| 23 | "@odata.context": { |
| 24 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/context" |
| 25 | }, |
| 26 | "@odata.id": { |
| 27 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/id" |
| 28 | }, |
| 29 | "@odata.type": { |
| 30 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/type" |
| 31 | }, |
| 32 | "Oem": { |
| 33 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 34 | "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.", |
| 35 | "longDescription": "The value of this string shall be of the format for the reserved word *Oem*." |
| 36 | }, |
| 37 | "Id": { |
| 38 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 39 | "readonly": true |
| 40 | }, |
| 41 | "Description": { |
| 42 | "anyOf": [ |
| 43 | {"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"}, |
| 44 | {"type": "null"} |
| 45 | ], |
| 46 | "readonly": true |
| 47 | }, |
| 48 | "Name": { |
| 49 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 50 | "readonly": true |
| 51 | }, |
| 52 | "UserName": { |
| 53 | "type": [ |
| 54 | "string", |
| 55 | "null" |
| 56 | ], |
| 57 | "readonly": true, |
| 58 | "description": "The UserName for the account for this session.", |
| 59 | "longDescription": "The value of this property shall be the UserName that matches a registered account identified by a ManagerAccount resource registered with the Account Service." |
| 60 | }, |
| 61 | "Password": { |
| 62 | "type": [ |
| 63 | "string", |
| 64 | "null" |
| 65 | ], |
| 66 | "readonly": true, |
| 67 | "description": "This property is used in a POST to specify a password when creating a new session. This property is null on a GET.", |
| 68 | "longDescription": "The value of this property shall be the password for this session. The value shall be null for GET requests." |
| 69 | }, |
| 70 | "Actions": { |
| 71 | "type": "object", |
| 72 | "patternProperties": { |
| 73 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 74 | "type": [ |
| 75 | "array", |
| 76 | "boolean", |
| 77 | "number", |
| 78 | "null", |
| 79 | "object", |
| 80 | "string" |
| 81 | ], |
| 82 | "description": "This property shall specify a valid odata or Redfish property." |
| 83 | } |
| 84 | }, |
| 85 | "additionalProperties": false, |
| 86 | "properties": { |
| 87 | "Oem": { |
| 88 | "type": "object", |
| 89 | "patternProperties": { |
| 90 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 91 | "type": [ |
| 92 | "array", |
| 93 | "boolean", |
| 94 | "number", |
| 95 | "null", |
| 96 | "object", |
| 97 | "string" |
| 98 | ], |
| 99 | "description": "This property shall specify a valid odata or Redfish property." |
| 100 | } |
| 101 | }, |
| 102 | "additionalProperties": true, |
| 103 | "properties": {}, |
| 104 | "description": "The available OEM specific actions for this resource.", |
| 105 | "longDescription": "This type shall contain any additional OEM actions for this resource." |
| 106 | } |
| 107 | }, |
| 108 | "description": "The available actions for this resource.", |
| 109 | "longDescription": "The Actions property shall contain the available actions for this resource." |
| 110 | } |
| 111 | }, |
| 112 | "required": [ |
| 113 | "Id", |
| 114 | "Name" |
| 115 | ], |
| 116 | "requiredOnCreate": [ |
| 117 | "UserName", |
| 118 | "Password" |
| 119 | ], |
| 120 | "description": "The Session resource describes a single connection (session) between a client and a Redfish service instance.", |
| 121 | "longDescription": "This resource shall be used to represent a session for a Redfish implementation." |
| 122 | } |
| 123 | }, |
| 124 | "copyright": "Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright" |
| 125 | } |