blob: b85c8a1116b2592bb41fd06f3b2031d6e00e1fc1 [file] [log] [blame]
Ed Tanous683f7272018-07-26 12:47:19 -07001{
2 "$ref": "#/definitions/ExternalAccountProvider",
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 "AccountProviderTypes": {
7 "enum": [
8 "RedfishService",
9 "ActiveDirectoryService",
10 "LDAPService",
11 "OEM"
12 ],
13 "enumDescriptions": {
14 "ActiveDirectoryService": "An external Active Directory Service.",
15 "LDAPService": "A generic external LDAP Service.",
16 "OEM": "An OEM specific external authentication or directory service.",
17 "RedfishService": "An external Redfish Service."
18 },
19 "enumLongDescriptions": {
20 "ActiveDirectoryService": "The external account provider shall be a service conforming to the Microsoft Active Directory Technical specification. The format of ServiceAddresses shall be a collection of FQDNs or Netbios names that references the set of domain servers for the Active Directory service.",
21 "LDAPService": "The external account provider shall be a service conforming to RFC4511. The format of ServiceAddresses shall be a collection of FQDNs that references the set of LDAP servers for the service.",
22 "RedfishService": "The external account provider shall be a service conforming to the DMTF Redfish specification. The format of ServiceAddresses shall be a collection of URIs which corresponds to a Redfish AccountService entity."
23 },
24 "type": "string"
25 },
26 "Actions": {
27 "additionalProperties": false,
28 "description": "The available actions for this resource.",
29 "longDescription": "This type shall contain the available actions for this resource.",
30 "patternProperties": {
31 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
32 "description": "This property shall specify a valid odata or Redfish property.",
33 "type": [
34 "array",
35 "boolean",
36 "number",
37 "null",
38 "object",
39 "string"
40 ]
41 }
42 },
43 "properties": {
44 "Oem": {
45 "$ref": "#/definitions/OemActions"
46 }
47 },
48 "type": "object"
49 },
50 "Authentication": {
51 "additionalProperties": false,
52 "description": "Contains the authentication information for the external service.",
53 "longDescription": "This type shall contain all the required information to authenticate to the external service.",
54 "patternProperties": {
55 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
56 "description": "This property shall specify a valid odata or Redfish property.",
57 "type": [
58 "array",
59 "boolean",
60 "number",
61 "null",
62 "object",
63 "string"
64 ]
65 }
66 },
67 "properties": {
68 "AuthenticationType": {
69 "anyOf": [
70 {
71 "$ref": "#/definitions/AuthenticationTypes"
72 },
73 {
74 "type": "null"
75 }
76 ],
77 "description": "This property contains the type of authentication used to connect to the external account provider.",
78 "longDescription": "The value of this property shall be the type of authentication used to connect to the external account provider.",
79 "readonly": false
80 },
81 "KerberosKeytab": {
82 "description": "This property is used with a PATCH or PUT to write a base64 encoded version of the kerberos keytab for the account. This property is null on a GET.",
83 "longDescription": "The value of this property shall be a base64 encoded version of the kerberos keytab for this account service. The value shall be null for GET requests.",
84 "readonly": false,
85 "type": [
86 "string",
87 "null"
88 ]
89 },
90 "Oem": {
91 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem"
92 },
93 "Password": {
94 "description": "This property is used with a PATCH or PUT to write the password for the account service. This property is null on a GET.",
95 "longDescription": "The value of this property shall be the password for this account service. The value shall be null for GET requests.",
96 "readonly": false,
97 "type": [
98 "string",
99 "null"
100 ]
101 },
102 "Token": {
103 "description": "This property is used with a PATCH or PUT to write the token for the account. This property is null on a GET.",
104 "longDescription": "The value of this property shall be the token for this account service. The value shall be null for GET requests.",
105 "readonly": false,
106 "type": [
107 "string",
108 "null"
109 ]
110 },
111 "Username": {
112 "description": "This property contains the user name for the account service.",
113 "longDescription": "The value of this property shall be the user name for this account service.",
114 "readonly": false,
115 "type": "string"
116 }
117 },
118 "type": "object"
119 },
120 "AuthenticationTypes": {
121 "enum": [
122 "Token",
123 "KerberosKeytab",
124 "UsernameAndPassword",
125 "OEM"
126 ],
127 "enumDescriptions": {
128 "KerberosKeytab": "A kerberos keytab.",
129 "OEM": "An OEM specific authentication mechanism.",
130 "Token": "An opaque authentication token.",
131 "UsernameAndPassword": "Username and password combination."
132 },
133 "type": "string"
134 },
135 "ExternalAccountProvider": {
136 "additionalProperties": false,
137 "description": "A remote service that can provide accounts for this manager to utilize for authentication.",
138 "longDescription": "This resource shall be used to represent resources that represent external user account services for this manager.",
139 "patternProperties": {
140 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
141 "description": "This property shall specify a valid odata or Redfish property.",
142 "type": [
143 "array",
144 "boolean",
145 "number",
146 "null",
147 "object",
148 "string"
149 ]
150 }
151 },
152 "properties": {
153 "@odata.context": {
154 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/context"
155 },
156 "@odata.etag": {
157 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/etag"
158 },
159 "@odata.id": {
160 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/id"
161 },
162 "@odata.type": {
163 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_2.json#/definitions/type"
164 },
165 "AccountProviderType": {
166 "anyOf": [
167 {
168 "$ref": "#/definitions/AccountProviderTypes"
169 },
170 {
171 "type": "null"
172 }
173 ],
174 "description": "This property contains the type of external account provider this resource references.",
175 "longDescription": "The value of this property shall be the type of external account provider referenced by this resource.",
176 "readonly": true
177 },
178 "Actions": {
179 "$ref": "#/definitions/Actions",
180 "description": "The available actions for this resource.",
181 "longDescription": "The Actions property shall contain the available actions for this resource."
182 },
183 "Authentication": {
184 "anyOf": [
185 {
186 "$ref": "#/definitions/Authentication"
187 },
188 {
189 "type": "null"
190 }
191 ],
192 "description": "This property contains the authentication information for the external account provider.",
193 "longDescription": "The value of this property shall contain the authentication information for the external account provider."
194 },
195 "Description": {
196 "anyOf": [
197 {
198 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
199 },
200 {
201 "type": "null"
202 }
203 ],
204 "readonly": true
205 },
206 "Id": {
207 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
208 "readonly": true
209 },
210 "LDAPService": {
211 "anyOf": [
212 {
213 "$ref": "#/definitions/LDAPService"
214 },
215 {
216 "type": "null"
217 }
218 ],
219 "description": "This property contains additional mapping information needed to parse a generic LDAP service.",
220 "longDescription": "The value of this property shall contain any additional mapping information needed to parse a generic LDAP service."
221 },
222 "Links": {
223 "$ref": "#/definitions/Links",
224 "description": "Contains references to other resources that are related to this resource.",
225 "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."
226 },
227 "Name": {
228 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
229 "readonly": true
230 },
231 "Oem": {
232 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
233 "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.",
234 "longDescription": "The value of this string shall be of the format for the reserved word *Oem*."
235 },
236 "RemoteRoleMapping": {
237 "description": "This property contains a collection of the mapping rules to convert the external account providers account information to the local Redfish Role.",
238 "items": {
239 "anyOf": [
240 {
241 "$ref": "#/definitions/RoleMapping"
242 },
243 {
244 "type": "null"
245 }
246 ]
247 },
248 "longDescription": "This property shall contain a collection of the mapping rules to convert the external account providers account information to the local Redfish Role.",
249 "type": "array"
250 },
251 "ServiceAddresses": {
252 "description": "This property contains the addresses of the user account providers this resource references. The format of this field depends on the Type.",
253 "items": {
254 "type": [
255 "string",
256 "null"
257 ]
258 },
259 "longDescription": "The value of this property shall be the addresses of the account providers this resource references. The format of this field depends on the Type of the ExternalAccountProvider. Each item in the array shall contain a single address. Services may define their own behavior for managing multiple addresses.",
260 "readonly": false,
261 "type": "array"
262 },
263 "ServiceEnabled": {
264 "description": "This indicates whether this service is enabled.",
265 "longDescription": "The value of this property shall be a boolean indicating whether this service is enabled.",
266 "readonly": false,
267 "type": [
268 "boolean",
269 "null"
270 ]
271 }
272 },
273 "required": [
274 "Id",
275 "Name"
276 ],
277 "requiredOnCreate": [
278 "AccountProviderType"
279 ],
280 "type": "object"
281 },
282 "LDAPSearchSettings": {
283 "additionalProperties": false,
284 "description": "Contains settings for searching a generic LDAP service.",
285 "longDescription": "This type shall contain all the required settings for searching a generic LDAP service.",
286 "patternProperties": {
287 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
288 "description": "This property shall specify a valid odata or Redfish property.",
289 "type": [
290 "array",
291 "boolean",
292 "number",
293 "null",
294 "object",
295 "string"
296 ]
297 }
298 },
299 "properties": {
300 "BaseDistinguishedNames": {
301 "description": "The base distinguished names to use when searching the LDAP service.",
302 "items": {
303 "type": [
304 "string",
305 "null"
306 ]
307 },
308 "longDescription": "The value of this property shall be a collection of base distinguished names to use when searching the LDAP service.",
309 "readonly": false,
310 "type": "array"
311 },
312 "GroupNameAttribute": {
313 "description": "The attribute name that contains the name of the Group.",
314 "longDescription": "The value of this property shall be the attribute name that contains the name of the Group.",
315 "readonly": false,
316 "type": [
317 "string",
318 "null"
319 ]
320 },
321 "GroupsAttribute": {
322 "description": "The attribute name that contains the Groups for a user.",
323 "longDescription": "The value of this property shall be the attribute name that contains the Groups for a user.",
324 "readonly": false,
325 "type": [
326 "string",
327 "null"
328 ]
329 },
330 "UsernameAttribute": {
331 "description": "The attribute name that contains the Username.",
332 "longDescription": "The value of this property shall be the attribute name that contains the Username.",
333 "readonly": false,
334 "type": [
335 "string",
336 "null"
337 ]
338 }
339 },
340 "type": "object"
341 },
342 "LDAPService": {
343 "additionalProperties": false,
344 "description": "Contains settings for parsing a generic LDAP service.",
345 "longDescription": "This type shall contain all the required settings for parsing a generic LDAP service.",
346 "patternProperties": {
347 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
348 "description": "This property shall specify a valid odata or Redfish property.",
349 "type": [
350 "array",
351 "boolean",
352 "number",
353 "null",
354 "object",
355 "string"
356 ]
357 }
358 },
359 "properties": {
360 "Oem": {
361 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem"
362 },
363 "SearchSettings": {
364 "anyOf": [
365 {
366 "$ref": "#/definitions/LDAPSearchSettings"
367 },
368 {
369 "type": "null"
370 }
371 ],
372 "description": "This property contains the settings needed to search an external LDAP service.",
373 "longDescription": "The value of this property shall contain the settings needed to search an external LDAP service."
374 }
375 },
376 "type": "object"
377 },
378 "Links": {
379 "additionalProperties": false,
380 "description": "Contains references to other resources that are related to this resource.",
381 "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.",
382 "patternProperties": {
383 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
384 "description": "This property shall specify a valid odata or Redfish property.",
385 "type": [
386 "array",
387 "boolean",
388 "number",
389 "null",
390 "object",
391 "string"
392 ]
393 }
394 },
395 "properties": {
396 "Oem": {
397 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
398 "description": "Oem extension object.",
399 "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."
400 }
401 },
402 "type": "object"
403 },
404 "OemActions": {
405 "additionalProperties": true,
406 "description": "The available OEM specific actions for this resource.",
407 "longDescription": "This type shall contain any additional OEM actions for this resource.",
408 "patternProperties": {
409 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
410 "description": "This property shall specify a valid odata or Redfish property.",
411 "type": [
412 "array",
413 "boolean",
414 "number",
415 "null",
416 "object",
417 "string"
418 ]
419 }
420 },
421 "properties": {},
422 "type": "object"
423 },
424 "RoleMapping": {
425 "additionalProperties": false,
426 "description": "Contains mapping rules to convert the external account providers account information to the local Redfish Role.",
427 "longDescription": "This type shall contain mapping rules to convert the external account providers account information to the local Redfish Role.",
428 "patternProperties": {
429 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
430 "description": "This property shall specify a valid odata or Redfish property.",
431 "type": [
432 "array",
433 "boolean",
434 "number",
435 "null",
436 "object",
437 "string"
438 ]
439 }
440 },
441 "properties": {
442 "LocalRole": {
443 "description": "The name of the local role in which to map the remote user or group.",
444 "longDescription": "The value of this property shall contain the value of the RoleId property within a Role resource on this Redfish service in which to map the remote user or group.",
445 "readonly": false,
446 "type": [
447 "string",
448 "null"
449 ]
450 },
451 "Oem": {
452 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem"
453 },
454 "RemoteGroup": {
455 "description": "This property is the name of the remote group (or in the case of a Redfish Service, remote role) that will be mapped to the local role referenced by this entity.",
456 "longDescription": "The value of this property shall contain the name of the remote group (or in the case of a Redfish Service, remote role) that will be mapped to the local role referenced by this entity.",
457 "readonly": false,
458 "type": [
459 "string",
460 "null"
461 ]
462 },
463 "RemoteUser": {
464 "description": "This property is the name of the remote user that will be mapped to the local role referenced by this entity.",
465 "longDescription": "The value of this property shall contain the name of the remote user that will be mapped to the local role referenced by this entity.",
466 "readonly": false,
467 "type": [
468 "string",
469 "null"
470 ]
471 }
472 },
473 "type": "object"
474 }
475 },
476 "owningEntity": "DMTF",
477 "title": "#ExternalAccountProvider.v1_0_0.ExternalAccountProvider"
478}