blob: 5584b8ba34eb81bc8acddccd54da05d329099bf4 [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Ed Tanouscb103132019-10-08 11:34:22 -07002 "$id": "http://redfish.dmtf.org/schemas/v1/Role.v1_2_4.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",
Ed Tanouscb103132019-10-08 11:34:22 -07005 "copyright": "Copyright 2014-2019 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,
Ed Tanouscb103132019-10-08 11:34:22 -07009 "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",
Ed Tanouscb103132019-10-08 11:34:22 -070028 "description": "The available OEM-specific actions for this Resource.",
29 "longDescription": "This property shall contain the available OEM-specific actions for this Resource.",
30 "versionAdded": "v1_1_0"
Ed Tanous118b1c72018-09-13 13:45:51 -070031 }
32 },
33 "type": "object"
34 },
35 "OemActions": {
36 "additionalProperties": true,
Ed Tanouscb103132019-10-08 11:34:22 -070037 "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,
Ed Tanouscb103132019-10-08 11:34:22 -070058 "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",
Ed Tanouscb103132019-10-08 11:34:22 -070089 "description": "The available actions for this Resource.",
90 "longDescription": "This property shall contain the available actions for this Resource.",
91 "versionAdded": "v1_1_0"
Ed Tanous118b1c72018-09-13 13:45:51 -070092 },
93 "AssignedPrivileges": {
Ed Tanouscb103132019-10-08 11:34:22 -070094 "description": "The Redfish privileges for this Role.",
Ed Tanous118b1c72018-09-13 13:45:51 -070095 "items": {
96 "$ref": "http://redfish.dmtf.org/schemas/v1/Privileges.json#/definitions/PrivilegeType"
97 },
Ed Tanouscb103132019-10-08 11:34:22 -070098 "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 not allow writing to this property.",
Ed Tanous118b1c72018-09-13 13:45:51 -070099 "readonly": false,
100 "type": "array"
101 },
102 "Description": {
103 "anyOf": [
104 {
105 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
106 },
107 {
108 "type": "null"
109 }
110 ],
111 "readonly": true
112 },
113 "Id": {
114 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
115 "readonly": true
116 },
117 "IsPredefined": {
Ed Tanouscb103132019-10-08 11:34:22 -0700118 "description": "An indication of whether the Role is a Redfish-predefined Role rather than a custom Redfish Role.",
119 "longDescription": "This property shall indicate whether the Role is a Redfish-predefined Role rather than a custom Redfish Role.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700120 "readonly": true,
121 "type": "boolean"
122 },
123 "Name": {
124 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
125 "readonly": true
126 },
127 "Oem": {
128 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
Ed Tanouscb103132019-10-08 11:34:22 -0700129 "description": "The OEM extension property.",
130 "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 -0700131 },
132 "OemPrivileges": {
Ed Tanouscb103132019-10-08 11:34:22 -0700133 "description": "The OEM privileges for this Role.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700134 "items": {
135 "type": "string"
136 },
Ed Tanouscb103132019-10-08 11:34:22 -0700137 "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 not allow writing to this property.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700138 "readonly": false,
139 "type": "array"
140 },
141 "RoleId": {
Ed Tanouscb103132019-10-08 11:34:22 -0700142 "description": "The name of the Role.",
Ed Tanous118b1c72018-09-13 13:45:51 -0700143 "longDescription": "This property shall contain the string name of the Role. This property shall contain the same value as the Id property.",
144 "readonly": true,
Ed Tanouscb103132019-10-08 11:34:22 -0700145 "type": "string",
146 "versionAdded": "v1_2_0"
Ed Tanous118b1c72018-09-13 13:45:51 -0700147 }
148 },
149 "required": [
Ed Tanous530520e2019-01-02 13:41:37 -0800150 "@odata.id",
151 "@odata.type",
Ed Tanous118b1c72018-09-13 13:45:51 -0700152 "Id",
153 "Name"
154 ],
155 "requiredOnCreate": [
156 "RoleId"
157 ],
158 "type": "object"
159 }
160 },
Ed Tanous530520e2019-01-02 13:41:37 -0800161 "owningEntity": "DMTF",
Ed Tanouscb103132019-10-08 11:34:22 -0700162 "release": "2017.2",
163 "title": "#Role.v1_2_4.Role"
Ed Tanous118b1c72018-09-13 13:45:51 -0700164}