blob: bb045c88c5fd8369e93b99c4d6cf863c67160f8c [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
2 "$ref": "#/definitions/Role",
Ed Tanous530520e2019-01-02 13:41:37 -08003 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
4 "copyright": "Copyright 2014-2018 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
Ed Tanous118b1c72018-09-13 13:45:51 -07005 "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": {
Ed Tanous530520e2019-01-02 13:41:37 -080011 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070012 "description": "This property shall specify a valid odata or Redfish property.",
13 "type": [
14 "array",
15 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080016 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070017 "number",
18 "null",
19 "object",
20 "string"
21 ]
22 }
23 },
24 "properties": {
25 "Oem": {
Ed Tanous530520e2019-01-02 13:41:37 -080026 "$ref": "#/definitions/OemActions",
27 "description": "This property contains the available OEM specific actions for this resource.",
28 "longDescription": "This property shall contain any additional OEM actions for this resource."
Ed Tanous118b1c72018-09-13 13:45:51 -070029 }
30 },
31 "type": "object"
32 },
33 "OemActions": {
34 "additionalProperties": true,
35 "description": "The available OEM specific actions for this resource.",
36 "longDescription": "This type shall contain any additional OEM actions for this resource.",
37 "patternProperties": {
Ed Tanous530520e2019-01-02 13:41:37 -080038 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070039 "description": "This property shall specify a valid odata or Redfish property.",
40 "type": [
41 "array",
42 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080043 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070044 "number",
45 "null",
46 "object",
47 "string"
48 ]
49 }
50 },
51 "properties": {},
52 "type": "object"
53 },
54 "Role": {
55 "additionalProperties": false,
56 "description": "This resource defines a user role to be used in conjunction with a Manager Account.",
57 "longDescription": "This resource shall be used to represent resources that represent the user role for the user account.",
58 "patternProperties": {
Ed Tanous530520e2019-01-02 13:41:37 -080059 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
Ed Tanous118b1c72018-09-13 13:45:51 -070060 "description": "This property shall specify a valid odata or Redfish property.",
61 "type": [
62 "array",
63 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080064 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070065 "number",
66 "null",
67 "object",
68 "string"
69 ]
70 }
71 },
72 "properties": {
73 "@odata.context": {
Ed Tanous530520e2019-01-02 13:41:37 -080074 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/context"
75 },
76 "@odata.etag": {
77 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/etag"
Ed Tanous118b1c72018-09-13 13:45:51 -070078 },
79 "@odata.id": {
Ed Tanous530520e2019-01-02 13:41:37 -080080 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/id"
Ed Tanous118b1c72018-09-13 13:45:51 -070081 },
82 "@odata.type": {
Ed Tanous530520e2019-01-02 13:41:37 -080083 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/type"
Ed Tanous118b1c72018-09-13 13:45:51 -070084 },
85 "Actions": {
86 "$ref": "#/definitions/Actions",
87 "description": "The available actions for this resource.",
88 "longDescription": "The Actions property shall contain the available actions for this resource."
89 },
90 "AssignedPrivileges": {
91 "description": "The redfish privileges that this role includes.",
92 "items": {
93 "$ref": "http://redfish.dmtf.org/schemas/v1/Privileges.json#/definitions/PrivilegeType"
94 },
95 "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.",
96 "readonly": false,
97 "type": "array"
98 },
99 "Description": {
100 "anyOf": [
101 {
102 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
103 },
104 {
105 "type": "null"
106 }
107 ],
108 "readonly": true
109 },
110 "Id": {
111 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
112 "readonly": true
113 },
114 "IsPredefined": {
115 "description": "This property is used to indicate if the Role is one of the Redfish Predefined Roles vs a Custom role.",
116 "longDescription": "The value of this property shall indicate if the role is a predefined role. .",
117 "readonly": true,
118 "type": "boolean"
119 },
120 "Name": {
121 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
122 "readonly": true
123 },
124 "Oem": {
125 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
126 "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.",
127 "longDescription": "The value of this string shall be of the format for the reserved word *Oem*."
128 },
129 "OemPrivileges": {
130 "description": "The OEM privileges that this role includes.",
131 "items": {
132 "type": "string"
133 },
134 "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.",
135 "readonly": false,
136 "type": "array"
137 },
138 "RoleId": {
139 "description": "This property contains the name of the Role.",
140 "longDescription": "This property shall contain the string name of the Role. This property shall contain the same value as the Id property.",
141 "readonly": true,
142 "type": "string"
143 }
144 },
145 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -0800146 "@odata.id",
147 "@odata.type",
Ed Tanous118b1c72018-09-13 13:45:51 -0700148 "Id",
149 "Name"
150 ],
151 "requiredOnCreate": [
152 "RoleId"
153 ],
154 "type": "object"
155 }
156 },
Ed Tanous530520e2019-01-02 13:41:37 -0800157 "owningEntity": "DMTF",
158 "title": "#Role.v1_2_2.Role"
Ed Tanous118b1c72018-09-13 13:45:51 -0700159}