blob: 721c65b790b3390235a0d95f0393ba06b33d0666 [file] [log] [blame]
Ed Tanous683f7272018-07-26 12:47:19 -07001{
2 "$ref": "#/definitions/Role",
3 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_3_0.json",
4 "copyright": "Copyright 2014-2017 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|Privileges)\\.[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 "OemActions": {
31 "additionalProperties": true,
32 "description": "The available OEM specific actions for this resource.",
33 "longDescription": "This type shall contain any additional OEM actions for this resource.",
34 "patternProperties": {
35 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[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 "type": "object"
49 },
50 "Role": {
51 "additionalProperties": false,
52 "description": "This resource defines a user role to be used in conjunction with a Manager Account.",
53 "longDescription": "This resource shall be used to represent resources that represent the user role for the user account.",
54 "patternProperties": {
55 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[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 "@odata.context": {
69 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/context"
70 },
71 "@odata.id": {
72 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/id"
73 },
74 "@odata.type": {
75 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/type"
76 },
77 "Actions": {
78 "$ref": "#/definitions/Actions",
79 "description": "The available actions for this resource.",
80 "longDescription": "The Actions property shall contain the available actions for this resource."
81 },
82 "AssignedPrivileges": {
83 "description": "The redfish privileges that this role includes.",
84 "items": {
85 "$ref": "http://redfish.dmtf.org/schemas/v1/Privileges.json#/definitions/PrivilegeType"
86 },
87 "longDescription": "The value of this property shall be the redfish privileges that the role includes. For pre-defined roles, this property shall be readOnly. For custom roles some implementations may not allow writing this property.",
88 "readonly": false,
89 "type": "array"
90 },
91 "Description": {
92 "anyOf": [
93 {
94 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
95 },
96 {
97 "type": "null"
98 }
99 ],
100 "readonly": true
101 },
102 "Id": {
103 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
104 "readonly": true
105 },
106 "IsPredefined": {
107 "description": "This property is used to indicate if the Role is one of the Redfish Predefined Roles vs a Custom role.",
108 "longDescription": "The value of this property shall indicate if the role is a predefined role. .",
109 "readonly": true,
110 "type": "boolean"
111 },
112 "Name": {
113 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
114 "readonly": true
115 },
116 "Oem": {
117 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
118 "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.",
119 "longDescription": "The value of this string shall be of the format for the reserved word *Oem*."
120 },
121 "OemPrivileges": {
122 "description": "The OEM privileges that this role includes.",
123 "items": {
124 "type": "string"
125 },
126 "longDescription": "The value of this property shall be the OEM privileges that this role includes. For pre-defined roles, this property shall be readOnly. For custom roles some implementations may not allow writing this property.",
127 "readonly": false,
128 "type": "array"
129 },
130 "RoleId": {
131 "description": "This property contains the name of the Role.",
132 "longDescription": "This property shall contain the string name of the Role. This property shall contain the same value as the Id property.",
133 "readonly": true,
134 "type": "string"
135 }
136 },
137 "required": [
138 "Id",
139 "Name"
140 ],
141 "requiredOnCreate": [
142 "RoleId"
143 ],
144 "type": "object"
145 }
146 },
147 "title": "#Role.v1_2_1.Role"
148}