blob: f823060954022463e37d0d5ab888adab52c6fc9f [file] [log] [blame]
Ed Tanous118b1c72018-09-13 13:45:51 -07001{
Ed Tanous530520e2019-01-02 13:41:37 -08002 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
3 "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 -07004 "definitions": {
5 "ApplyTime": {
6 "enum": [
7 "Immediate",
8 "OnReset",
9 "AtMaintenanceWindowStart",
10 "InMaintenanceWindowOnReset"
11 ],
12 "enumDescriptions": {
13 "AtMaintenanceWindowStart": "Apply during a maintenance window as specified by an administrator.",
14 "Immediate": "Apply immediately.",
15 "InMaintenanceWindowOnReset": "Apply after a reset but within maintenance window as specified by an adminstrator.",
16 "OnReset": "Apply on a reset."
17 },
18 "enumLongDescriptions": {
19 "AtMaintenanceWindowStart": "This ApplyTime value shall be used to indicate the values within the Settings resource are applied during the maintenance window specified by the MaintenanceWindowStartTime and MaintenanceWindowDurationInSeconds properties. A service may perform resets during this maintenance window.",
20 "Immediate": "This ApplyTime value shall be used to indicate the values within the Settings resource are applied immediately.",
21 "InMaintenanceWindowOnReset": "This ApplyTime value shall be used to indicate the values within the Settings resource are applied during the maintenance window specified by the MaintenanceWindowStartTime and MaintenanceWindowDurationInSeconds properties, and if a reset occurs within the maintenance window.",
22 "OnReset": "This ApplyTime value shall be used to indicate the values within the Settings resource are applied when the system or service is reset."
23 },
24 "type": "string"
25 },
26 "MaintenanceWindow": {
27 "additionalProperties": false,
28 "description": "This object indicates if a given resource has a maintenance window assignment for applying settings or operations.",
29 "longDescription": "This object shall indicate if a given resource has a maintenance window assignment for applying settings or operations. Other resources may reference this object in order to convey a common control surface for the configuration of the maintenance window.",
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",
Ed Tanous530520e2019-01-02 13:41:37 -080036 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070037 "number",
38 "null",
39 "object",
40 "string"
41 ]
42 }
43 },
44 "properties": {
45 "MaintenanceWindowDurationInSeconds": {
46 "description": "The value of this property as specified by client indicates the expiry time of maintenance window in seconds.",
47 "longDescription": "The value of this property shall indicate the end of the maintenance window as the number of seconds after the time specified by the MaintenanceWindowStartTime property.",
48 "minimum": 0,
49 "readonly": false,
Ed Tanous530520e2019-01-02 13:41:37 -080050 "type": "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070051 "units": "s"
52 },
53 "MaintenanceWindowStartTime": {
54 "description": "The value of this property as specified by client to indicate the start time of a maintenance window.",
55 "format": "date-time",
56 "longDescription": "The value of this property shall indicate the date and time as to when the service is allowed to start applying the requested settings or operation as part of a maintenance window.",
57 "readonly": false,
58 "type": "string"
59 }
60 },
61 "required": [
62 "MaintenanceWindowStartTime",
63 "MaintenanceWindowDurationInSeconds"
64 ],
65 "type": "object"
66 },
67 "OperationApplyTime": {
68 "enum": [
69 "Immediate",
70 "OnReset",
71 "AtMaintenanceWindowStart",
72 "InMaintenanceWindowOnReset"
73 ],
74 "enumDescriptions": {
75 "AtMaintenanceWindowStart": "Apply the requested operation during a maintenance window as specified by an administrator.",
76 "Immediate": "Apply the requested operation immediately.",
77 "InMaintenanceWindowOnReset": "Apply the requested operation after a reset but within maintenance window as specified by an adminstrator.",
78 "OnReset": "Apply the requested operation on a reset."
79 },
80 "enumLongDescriptions": {
81 "AtMaintenanceWindowStart": "This OperationApplyTime value shall be used to indicate the requested Create, Delete, or Action operation is applied during the maintenance window specified by the MaintenanceWindowStartTime and MaintenanceWindowDurationInSeconds properties. A service may perform resets during this maintenance window.",
82 "Immediate": "This OperationApplyTime value shall be used to indicate the requested Create, Delete, or Action operation is applied immediately.",
83 "InMaintenanceWindowOnReset": "This OperationApplyTime value shall be used to indicate the requested Create, Delete, or Action operation is applied during the maintenance window specified by the MaintenanceWindowStartTime and MaintenanceWindowDurationInSeconds properties, and if a reset occurs within the maintenance window.",
84 "OnReset": "This OperationApplyTime value shall be used to indicate the requested Create, Delete, or Action operation is applied when the system or service is reset."
85 },
86 "type": "string"
87 },
88 "OperationApplyTimeSupport": {
89 "additionalProperties": false,
90 "description": "This object indicates if a client is allowed to request for a specific apply time of a Create, Delete, or Action operation of a given resource.",
91 "longDescription": "This object shall specify the support a service has for a client to request a specific apply time of a Create, Delete, or Action operation of a given resource.",
92 "patternProperties": {
93 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
94 "description": "This property shall specify a valid odata or Redfish property.",
95 "type": [
96 "array",
97 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -080098 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -070099 "number",
100 "null",
101 "object",
102 "string"
103 ]
104 }
105 },
106 "properties": {
107 "MaintenanceWindowDurationInSeconds": {
108 "description": "The value of this property as specified by client indicates the expiry time of maintenance window in seconds.",
109 "longDescription": "The value of this property shall be the same as the MaintenanceWindowDurationInSeconds property found in the MaintenanceWindow structure on the MaintenanceWindowResource. This property shall be required if the SupportedValues property contains AtMaintenanceWindowStart or InMaintenanceWindowOnReset.",
110 "minimum": 0,
111 "readonly": true,
Ed Tanous530520e2019-01-02 13:41:37 -0800112 "type": "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700113 "units": "s"
114 },
115 "MaintenanceWindowResource": {
Ed Tanous530520e2019-01-02 13:41:37 -0800116 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/idRef",
Ed Tanous118b1c72018-09-13 13:45:51 -0700117 "description": "The value of this property is used to indicate the location of the maintenance window settings.",
118 "longDescription": "The value of this property shall be a reference to a resource that contains the @Redfish.MaintenanceWindow property which governs this resource. This property shall be required if the SupportedValues property contains AtMaintenanceWindowStart or InMaintenanceWindowOnReset.",
119 "readonly": true
120 },
121 "MaintenanceWindowStartTime": {
122 "description": "The value of this property as specified by client to indicate the start time of a maintenance window.",
123 "format": "date-time",
124 "longDescription": "The value of this property shall be the same as the MaintenanceWindowStartTime property found in the MaintenanceWindow structure on the MaintenanceWindowResource. This property shall be required if the SupportedValues property contains AtMaintenanceWindowStart or InMaintenanceWindowOnReset.",
125 "readonly": true,
126 "type": "string"
127 },
128 "SupportedValues": {
129 "description": "This property indicates the types of apply times the client is allowed request when performing a Create, Delete, or Action operation.",
130 "items": {
131 "$ref": "http://redfish.dmtf.org/schemas/v1/Settings.json#/definitions/OperationApplyTime"
132 },
133 "longDescription": "The value of this property shall indicate the types of apply times the client is allowed request when performing a Create, Delete, or Action operation.",
134 "readonly": true,
135 "type": "array"
136 }
137 },
138 "required": [
139 "SupportedValues"
140 ],
141 "type": "object"
142 },
143 "PreferredApplyTime": {
144 "additionalProperties": false,
145 "description": "This object indicates when the future configuration (i.e. Settings resource) should be applied.",
146 "longDescription": "This object shall be specified by client in a request to indicate its preference on when to apply the values in this Settings resource.",
147 "patternProperties": {
148 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
149 "description": "This property shall specify a valid odata or Redfish property.",
150 "type": [
151 "array",
152 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800153 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700154 "number",
155 "null",
156 "object",
157 "string"
158 ]
159 }
160 },
161 "properties": {
162 "ApplyTime": {
163 "$ref": "#/definitions/ApplyTime",
164 "description": "This property indicates when the future configuration (i.e. Settings resource) should be applied.",
165 "longDescription": "The value of this property shall indicate the preference on to when to apply the values in this Settings resource.",
166 "readonly": false
167 },
168 "MaintenanceWindowDurationInSeconds": {
169 "description": "The value of this property as specified by client indicates the expiry time of maintenance window in seconds.",
170 "longDescription": "The value of this property shall indicate the end of the maintenance window as the number of seconds after the time specified by the MaintenanceWindowStartTime property. This property shall be required if the ApplyTime property is specified as AtMaintenanceWindowStart or InMaintenanceWindowOnReset.",
171 "minimum": 0,
172 "readonly": false,
Ed Tanous530520e2019-01-02 13:41:37 -0800173 "type": "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700174 "units": "s"
175 },
176 "MaintenanceWindowStartTime": {
177 "description": "The value of this property as specified by client to indicate the start time of a maintenance window.",
178 "format": "date-time",
179 "longDescription": "The value of this property shall indicate the date and time as to when the service is allowed to start applying the future configuration as part of a maintenance window. This property shall be required if the ApplyTime property is specified as AtMaintenanceWindowStart or InMaintenanceWindowOnReset.",
180 "readonly": false,
181 "type": "string"
182 }
183 },
184 "type": "object"
185 },
186 "Settings": {
187 "additionalProperties": false,
188 "description": "This type describes the settings of a resouce.",
189 "longDescription": "This type shall describe any attributes of a resouce.",
190 "patternProperties": {
191 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
192 "description": "This property shall specify a valid odata or Redfish property.",
193 "type": [
194 "array",
195 "boolean",
Ed Tanous530520e2019-01-02 13:41:37 -0800196 "integer",
Ed Tanous118b1c72018-09-13 13:45:51 -0700197 "number",
198 "null",
199 "object",
200 "string"
201 ]
202 }
203 },
204 "properties": {
205 "ETag": {
206 "description": "The ETag of the resource to which the settings were applied, after the application.",
207 "longDescription": "The value of this property shall be the ETag of the resource to which the settings were applied, after the application. This is here so that the client can check it against the ETag of the current resource to see if any other changes have also happened to the resource.",
208 "readonly": true,
209 "type": [
210 "string",
211 "null"
212 ]
213 },
214 "MaintenanceWindowResource": {
Ed Tanous530520e2019-01-02 13:41:37 -0800215 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/idRef",
Ed Tanous118b1c72018-09-13 13:45:51 -0700216 "description": "The value of this property is used to indicate the location of the maintenance window settings.",
217 "longDescription": "The value of this property shall be a reference to a resource that contains the @Redfish.MaintenanceWindow property which governs this resource. This property should be supported if the SupportedApplyTimes property contains AtMaintenanceWindowStart or InMaintenanceWindowOnReset.",
218 "readonly": true
219 },
220 "Messages": {
221 "description": "This is an array of messages associated with the task.",
222 "items": {
223 "$ref": "http://redfish.dmtf.org/schemas/v1/Message.json#/definitions/Message"
224 },
225 "longDescription": "The value of this property shall be an array of messages associated with the task.",
226 "type": "array"
227 },
228 "SettingsObject": {
Ed Tanous530520e2019-01-02 13:41:37 -0800229 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/idRef",
Ed Tanous118b1c72018-09-13 13:45:51 -0700230 "description": "Reference to the resource the client may PUT/PATCH to in order to change this resource.",
231 "longDescription": "The value of this property shall be the URI of the resource to which a client must do a PUT or PATCH in order to modify this resource.",
232 "readonly": true
233 },
234 "SupportedApplyTimes": {
235 "description": "This property indicates when a Settings resource can be applied.",
236 "items": {
237 "$ref": "#/definitions/ApplyTime"
238 },
239 "longDescription": "A service shall advertise its applytime capabilities using this property as to when a Setting resource can be applied.",
240 "readonly": true,
241 "type": "array"
242 },
243 "Time": {
244 "description": "Indicates the time the settings were applied.",
245 "format": "date-time",
246 "longDescription": "The value of this property shall indicate the time that the settings object was applied to the resource.",
247 "readonly": true,
248 "type": [
249 "string",
250 "null"
251 ]
252 }
253 },
254 "type": "object"
255 }
256 },
257 "owningEntity": "DMTF",
Ed Tanous530520e2019-01-02 13:41:37 -0800258 "title": "#Settings.v1_2_1"
Ed Tanous118b1c72018-09-13 13:45:51 -0700259}