Ed Tanous | 683f727 | 2018-07-26 12:47:19 -0700 | [diff] [blame^] | 1 | { |
| 2 | "$ref": "#/definitions/ManagerAccount", |
| 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 | "Links": { |
| 31 | "additionalProperties": false, |
| 32 | "description": "Contains references to other resources that are related to this resource.", |
| 33 | "longDescription": "This type, as described by the Redfish Specification, shall contain references to resources that are related to, but not contained by (subordinate to), this resource.", |
| 34 | "patternProperties": { |
| 35 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 36 | "description": "This property shall specify a valid odata or Redfish property.", |
| 37 | "type": [ |
| 38 | "array", |
| 39 | "boolean", |
| 40 | "number", |
| 41 | "null", |
| 42 | "object", |
| 43 | "string" |
| 44 | ] |
| 45 | } |
| 46 | }, |
| 47 | "properties": { |
| 48 | "Oem": { |
| 49 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 50 | "description": "Oem extension object.", |
| 51 | "longDescription": "This object represents the Oem property. All values for resources described by this schema shall comply to the requirements as described in the Redfish specification." |
| 52 | }, |
| 53 | "Role": { |
| 54 | "$ref": "http://redfish.dmtf.org/schemas/v1/Role.json#/definitions/Role", |
| 55 | "description": "A reference to the Role object defining Privileges for this account--returned when the resource is read. The ID of the role is the same as property RoleId.", |
| 56 | "longDescription": "The value of this property shall be a link to a Role object instance, and should reference the object identified by property RoleId.", |
| 57 | "readonly": true |
| 58 | } |
| 59 | }, |
| 60 | "type": "object" |
| 61 | }, |
| 62 | "ManagerAccount": { |
| 63 | "additionalProperties": false, |
| 64 | "description": "The user accounts, owned by a Manager, are defined in this resource. Changes to a Manager Account may affect the current Redfish service connection if this manager is responsible for the Redfish service.", |
| 65 | "longDescription": "This resource shall be used to represent resources that represent the user accounts for the manager.", |
| 66 | "patternProperties": { |
| 67 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 68 | "description": "This property shall specify a valid odata or Redfish property.", |
| 69 | "type": [ |
| 70 | "array", |
| 71 | "boolean", |
| 72 | "number", |
| 73 | "null", |
| 74 | "object", |
| 75 | "string" |
| 76 | ] |
| 77 | } |
| 78 | }, |
| 79 | "properties": { |
| 80 | "@odata.context": { |
| 81 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/context" |
| 82 | }, |
| 83 | "@odata.etag": { |
| 84 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/etag" |
| 85 | }, |
| 86 | "@odata.id": { |
| 87 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/id" |
| 88 | }, |
| 89 | "@odata.type": { |
| 90 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/type" |
| 91 | }, |
| 92 | "Actions": { |
| 93 | "$ref": "#/definitions/Actions", |
| 94 | "description": "The available actions for this resource.", |
| 95 | "longDescription": "The Actions property shall contain the available actions for this resource." |
| 96 | }, |
| 97 | "Description": { |
| 98 | "anyOf": [ |
| 99 | { |
| 100 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description" |
| 101 | }, |
| 102 | { |
| 103 | "type": "null" |
| 104 | } |
| 105 | ], |
| 106 | "readonly": true |
| 107 | }, |
| 108 | "Enabled": { |
| 109 | "description": "This property is used by a User Administrator to disable an account w/o having to delet the user information. When set to true, the user can login. When set to false, the account is administratively disabled and the user cannot login.", |
| 110 | "longDescription": "This property shall enable (if set to true) or disable (if set to false) the account for future logins. The value of Enable over-rides the locked property.", |
| 111 | "readonly": false, |
| 112 | "type": "boolean" |
| 113 | }, |
| 114 | "Id": { |
| 115 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id", |
| 116 | "readonly": true |
| 117 | }, |
| 118 | "Links": { |
| 119 | "$ref": "#/definitions/Links", |
| 120 | "description": "Contains references to other resources that are related to this resource.", |
| 121 | "longDescription": "The Links property, as described by the Redfish Specification, shall contain references to resources that are related to, but not contained by (subordinate to), this resource." |
| 122 | }, |
| 123 | "Locked": { |
| 124 | "description": "This property indicates that the account has been auto-locked by the account service because the lockout threshold has been exceeded. When set to true, the account is locked. A user admin can write the property to false to manually unlock, or the account service will unlock it once the lockout duration period has passed.", |
| 125 | "longDescription": "This property (when set to true) shall indicate that the account service has automatically locked the account due to the accountLockoutThreshold having been exceeded. If set to true, the account is locked. If set to false, the account is not locked. A user admin shall be able to write a false to the property to clear the lockout condition, prior to the lockout duration period.", |
| 126 | "readonly": false, |
| 127 | "type": "boolean" |
| 128 | }, |
| 129 | "Name": { |
| 130 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name", |
| 131 | "readonly": true |
| 132 | }, |
| 133 | "Oem": { |
| 134 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 135 | "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.", |
| 136 | "longDescription": "The value of this string shall be of the format for the reserved word *Oem*." |
| 137 | }, |
| 138 | "Password": { |
| 139 | "description": "This property is used with a PATCH or PUT to write the password for the account. This property is null on a GET.", |
| 140 | "longDescription": "The value of this property shall be the password for this account. The value shall be null for GET requests.", |
| 141 | "readonly": false, |
| 142 | "type": [ |
| 143 | "string", |
| 144 | "null" |
| 145 | ] |
| 146 | }, |
| 147 | "RoleId": { |
| 148 | "description": "This property contains the Role for this account.", |
| 149 | "longDescription": "The value of this property shall be the ID (the RoleId) of the Role resource that configured for this account. The service shall reject POST, PATCH, or PUT operations that provide a RoleId that does not exist by returning HTTP 400 (Bad Request).", |
| 150 | "readonly": false, |
| 151 | "type": "string" |
| 152 | }, |
| 153 | "UserName": { |
| 154 | "description": "This property contains the user name for the account.", |
| 155 | "longDescription": "The value of this property shall be the user name for this account.", |
| 156 | "readonly": false, |
| 157 | "type": "string" |
| 158 | } |
| 159 | }, |
| 160 | "required": [ |
| 161 | "Id", |
| 162 | "Name" |
| 163 | ], |
| 164 | "requiredOnCreate": [ |
| 165 | "Password", |
| 166 | "UserName", |
| 167 | "RoleId" |
| 168 | ], |
| 169 | "type": "object" |
| 170 | }, |
| 171 | "OemActions": { |
| 172 | "additionalProperties": true, |
| 173 | "description": "The available OEM specific actions for this resource.", |
| 174 | "longDescription": "This type shall contain any additional OEM actions for this resource.", |
| 175 | "patternProperties": { |
| 176 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 177 | "description": "This property shall specify a valid odata or Redfish property.", |
| 178 | "type": [ |
| 179 | "array", |
| 180 | "boolean", |
| 181 | "number", |
| 182 | "null", |
| 183 | "object", |
| 184 | "string" |
| 185 | ] |
| 186 | } |
| 187 | }, |
| 188 | "properties": {}, |
| 189 | "type": "object" |
| 190 | } |
| 191 | }, |
| 192 | "owningEntity": "DMTF", |
| 193 | "title": "#ManagerAccount.v1_1_2.ManagerAccount" |
| 194 | } |