blob: faa0db8e750ee458cd83bd073422cf5e28c1c336 [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Gunnar Mills10f270b2021-05-19 15:34:06 -05002 "$id": "http://redfish.dmtf.org/schemas/v1/Role.v1_3_1.json",
Ed Tanous118b1c72018-09-13 13:45:51 -07003 "$ref": "#/definitions/Role",
Ed Tanous530520e2019-01-02 13:41:37 -08004 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
Gunnar Mills10f270b2021-05-19 15:34:06 -05005 "copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
Ed Tanous118b1c72018-09-13 13:45:51 -07006 "definitions": {
7 "Actions": {
8 "additionalProperties": false,
Gunnar Mills844b4152020-06-22 12:44:09 -05009 "description": "The available actions for this resource.",
10 "longDescription": "This type shall contain the available actions for this resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -070011 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070012 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070013 "description": "This property shall specify a valid odata or Redfish property.",
14 "type": [
15 "array",
16 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080017 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070018 "number",
19 "null",
20 "object",
21 "string"
22 ]
23 }
24 },
25 "properties": {
26 "Oem": {
Ed Tanous530520e2019-01-02 13:41:37 -080027 "$ref": "#/definitions/OemActions",
Gunnar Mills844b4152020-06-22 12:44:09 -050028 "description": "The available OEM-specific actions for this resource.",
29 "longDescription": "This property shall contain the available OEM-specific actions for this resource.",
Ed Tanouscb103132019-10-08 11:34:22 -070030 "versionAdded": "v1_1_0"
Ed Tanous118b1c72018-09-13 13:45:51 -070031 }
32 },
33 "type": "object"
34 },
35 "OemActions": {
36 "additionalProperties": true,
Gunnar Mills844b4152020-06-22 12:44:09 -050037 "description": "The available OEM-specific actions for this resource.",
38 "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
Ed Tanous118b1c72018-09-13 13:45:51 -070039 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070040 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070041 "description": "This property shall specify a valid odata or Redfish property.",
42 "type": [
43 "array",
44 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080045 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070046 "number",
47 "null",
48 "object",
49 "string"
50 ]
51 }
52 },
53 "properties": {},
54 "type": "object"
55 },
56 "Role": {
57 "additionalProperties": false,
Gunnar Mills844b4152020-06-22 12:44:09 -050058 "description": "The Role schema contains a Redfish role to use in conjunction with a manager account.",
59 "longDescription": "This resource represents the Redfish role for the user account.",
Ed Tanous118b1c72018-09-13 13:45:51 -070060 "patternProperties": {
Ed Tanouscb103132019-10-08 11:34:22 -070061 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070062 "description": "This property shall specify a valid odata or Redfish property.",
63 "type": [
64 "array",
65 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080066 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070067 "number",
68 "null",
69 "object",
70 "string"
71 ]
72 }
73 },
74 "properties": {
75 "@odata.context": {
Ed Tanouscb103132019-10-08 11:34:22 -070076 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
Ed Tanous530520e2019-01-02 13:41:37 -080077 },
78 "@odata.etag": {
Ed Tanouscb103132019-10-08 11:34:22 -070079 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
Ed Tanous118b1c72018-09-13 13:45:51 -070080 },
81 "@odata.id": {
Ed Tanouscb103132019-10-08 11:34:22 -070082 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
Ed Tanous118b1c72018-09-13 13:45:51 -070083 },
84 "@odata.type": {
Ed Tanouscb103132019-10-08 11:34:22 -070085 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
Ed Tanous118b1c72018-09-13 13:45:51 -070086 },
87 "Actions": {
88 "$ref": "#/definitions/Actions",
Gunnar Mills844b4152020-06-22 12:44:09 -050089 "description": "The available actions for this resource.",
90 "longDescription": "This property shall contain the available actions for this resource.",
Ed Tanouscb103132019-10-08 11:34:22 -070091 "versionAdded": "v1_1_0"
Ed Tanous118b1c72018-09-13 13:45:51 -070092 },
Gunnar Mills262d7d42021-01-20 16:28:41 -060093 "AlternateRoleId": {
94 "description": "An equivalent role to use when this role is restricted.",
95 "longDescription": "This property shall contain a non-restricted `RoleId` intended to be used in its place when the Restricted property contains the value `true`.",
96 "readonly": true,
97 "type": "string",
98 "versionAdded": "v1_3_0"
99 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700100 "AssignedPrivileges": {
Gunnar Mills844b4152020-06-22 12:44:09 -0500101 "description": "The Redfish privileges for this role.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700102 "items": {
103 "$ref": "http://redfish.dmtf.org/schemas/v1/Privileges.json#/definitions/PrivilegeType"
104 },
Gunnar Mills10f270b2021-05-19 15:34:06 -0500105 "longDescription": "This property shall contain the Redfish privileges for this role. For predefined roles, this property shall be read-only. For custom roles, some implementations may prevent writing to this property.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700106 "readonly": false,
107 "type": "array"
108 },
109 "Description": {
110 "anyOf": [
111 {
112 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
113 },
114 {
115 "type": "null"
116 }
117 ],
118 "readonly": true
119 },
120 "Id": {
121 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
122 "readonly": true
123 },
124 "IsPredefined": {
Gunnar Mills262d7d42021-01-20 16:28:41 -0600125 "description": "An indication of whether the role is predefined by Redfish or an OEM rather than a client-defined role.",
126 "longDescription": "This property shall indicate whether the role is predefined by Redfish or an OEM as contrasted with a client-defined role.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700127 "readonly": true,
128 "type": "boolean"
129 },
130 "Name": {
131 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
132 "readonly": true
133 },
134 "Oem": {
135 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
Ed Tanouscb103132019-10-08 11:34:22 -0700136 "description": "The OEM extension property.",
137 "longDescription": "This property shall contain the OEM extensions. All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
Ed Tanous118b1c72018-09-13 13:45:51 -0700138 },
139 "OemPrivileges": {
Gunnar Mills844b4152020-06-22 12:44:09 -0500140 "description": "The OEM privileges for this role.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700141 "items": {
142 "type": "string"
143 },
Gunnar Mills10f270b2021-05-19 15:34:06 -0500144 "longDescription": "This property shall contain the OEM privileges for this role. For predefined roles, this property shall be read-only. For custom roles, some implementations may prevent writing to this property.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700145 "readonly": false,
146 "type": "array"
147 },
Gunnar Mills262d7d42021-01-20 16:28:41 -0600148 "Restricted": {
149 "description": "An indication of whether use of the role is restricted.",
150 "longDescription": "This property shall indicate whether use of the role is restricted by a service as defined by the 'Restricted roles and restricted privileges' clause of the Redfish Specification. If this property is not present, the value shall be assumed to be `false`.",
151 "readonly": true,
152 "type": "boolean",
153 "versionAdded": "v1_3_0"
154 },
Ed Tanous118b1c72018-09-13 13:45:51 -0700155 "RoleId": {
Gunnar Mills844b4152020-06-22 12:44:09 -0500156 "description": "The name of the role.",
157 "longDescription": "This property shall contain the string name of the role. This property shall contain the same value as the Id property.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700158 "readonly": true,
Ed Tanouscb103132019-10-08 11:34:22 -0700159 "type": "string",
160 "versionAdded": "v1_2_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700161 }
162 },
163 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -0800164 "@odata.id",
165 "@odata.type",
Ed Tanous118b1c72018-09-13 13:45:51 -0700166 "Id",
167 "Name"
168 ],
169 "requiredOnCreate": [
170 "RoleId"
171 ],
172 "type": "object"
173 }
174 },
Ed Tanous530520e2019-01-02 13:41:37 -0800175 "owningEntity": "DMTF",
Gunnar Mills262d7d42021-01-20 16:28:41 -0600176 "release": "2020.4",
Gunnar Mills10f270b2021-05-19 15:34:06 -0500177 "title": "#Role.v1_3_1.Role"
Ed Tanous118b1c72018-09-13 13:45:51 -0700178}