blob: a3f811916a291992ffd4754aca8d022e732b4569 [file] [log] [blame]
Ed Tanous683f7272018-07-26 12:47:19 -07001{
2 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_2_0.json",
3 "title": "#Volume.v1_0_3.Volume",
4 "$ref": "#/definitions/Volume",
5 "definitions": {
6 "Initialize": {
7 "patternProperties": {
8 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
9 "type": [
10 "array",
11 "boolean",
12 "number",
13 "null",
14 "object",
15 "string"
16 ],
17 "description": "This property shall specify a valid odata or Redfish property."
18 }
19 },
20 "type": "object",
21 "additionalProperties": false,
22 "properties": {
23 "title": {
24 "type": "string",
25 "description": "Friendly action name"
26 },
27 "target": {
28 "type": "string",
29 "format": "uri",
30 "description": "Link to invoke action"
31 }
32 },
33 "description": "This action is used to prepare the contents of the volume for use by the system.",
34 "longDescription": "This defines the name of the custom action supported on this resource."
35 },
36 "EncryptionTypes": {
37 "type": "string",
38 "enum": [
39 "NativeDriveEncryption",
40 "ControllerAssisted",
41 "SoftwareAssisted"
42 ],
43 "enumDescriptions": {
44 "NativeDriveEncryption": "The volume is utilizing the native drive encryption capabilities of the drive hardware.",
45 "ControllerAssisted": "The volume is being encrypted by the storage controller entity.",
46 "SoftwareAssisted": "The volume is being encrypted by software running on the system or the operating system."
47 }
48 },
49 "Operations": {
50 "type": "object",
51 "patternProperties": {
52 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
53 "type": [
54 "array",
55 "boolean",
56 "number",
57 "null",
58 "object",
59 "string"
60 ],
61 "description": "This property shall specify a valid odata or Redfish property."
62 }
63 },
64 "additionalProperties": true,
65 "properties": {
66 "OperationName": {
67 "type": [
68 "string",
69 "null"
70 ],
71 "readonly": true,
72 "description": "The name of the operation."
73 },
74 "PercentageComplete": {
75 "type": [
76 "number",
77 "null"
78 ],
79 "readonly": true,
80 "description": "The percentage of the operation that has been completed."
81 },
82 "AssociatedTask": {
83 "$ref": "http://redfish.dmtf.org/schemas/v1/Task.json#/definitions/Task",
84 "readonly": true,
85 "description": "A reference to the task associated with the operation if any."
86 }
87 },
88 "description": "An operation currently running on this resource.",
89 "longDescription": "This type shall describe a currently running operation on the resource."
90 },
91 "VolumeType": {
92 "type": "string",
93 "enum": [
94 "RawDevice",
95 "NonRedundant",
96 "Mirrored",
97 "StripedWithParity",
98 "SpannedMirrors",
99 "SpannedStripesWithParity"
100 ],
101 "enumDescriptions": {
102 "RawDevice": "The volume is a raw physical device without any RAID or other virtualization applied.",
103 "NonRedundant": "The volume is a non-redundant storage device.",
104 "Mirrored": "The volume is a mirrored device.",
105 "StripedWithParity": "The volume is a device which uses parity to retain redundant information.",
106 "SpannedMirrors": "The volume is a spanned set of mirrored devices.",
107 "SpannedStripesWithParity": "The volume is a spanned set of devices which uses parity to retain redundant information."
108 }
109 },
110 "Volume": {
111 "type": "object",
112 "patternProperties": {
113 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
114 "type": [
115 "array",
116 "boolean",
117 "number",
118 "null",
119 "object",
120 "string"
121 ],
122 "description": "This property shall specify a valid odata or Redfish property."
123 }
124 },
125 "additionalProperties": false,
126 "properties": {
127 "@odata.context": {
128 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/context"
129 },
130 "@odata.id": {
131 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/id"
132 },
133 "@odata.type": {
134 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/type"
135 },
136 "Oem": {
137 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
138 "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.",
139 "longDescription": "The value of this string shall be of the format for the reserved word *Oem*."
140 },
141 "Id": {
142 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
143 "readonly": true
144 },
145 "Description": {
146 "anyOf": [
147 {"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"},
148 {"type": "null"}
149 ],
150 "readonly": true
151 },
152 "Name": {
153 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
154 "readonly": true
155 },
156 "Status": {
157 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status"
158 },
159 "CapacityBytes": {
160 "type": [
161 "number",
162 "null"
163 ],
164 "units": "By",
165 "readonly": true,
166 "description": "The size in bytes of this Volume.",
167 "longDescription": "This property shall contain the size in bytes of the associated volume."
168 },
169 "VolumeType": {
170 "anyOf": [
171 {"$ref": "#/definitions/VolumeType"},
172 {"type": "null"}
173 ],
174 "readonly": true,
175 "description": "The type of this volume.",
176 "longDescription": "This property shall contain the type of the associated Volume."
177 },
178 "Encrypted": {
179 "type": [
180 "boolean",
181 "null"
182 ],
183 "readonly": false,
184 "description": "Is this Volume encrypted.",
185 "longDescription": "This property shall contain a boolean indicator if the Volume is currently utilizing encryption or not."
186 },
187 "EncryptionTypes": {
188 "type": "array",
189 "items": {
190 "$ref": "#/definitions/EncryptionTypes"
191 },
192 "readonly": false,
193 "description": "The types of encryption used by this Volume.",
194 "longDescription": "This property shall contain the types of encryption used by this Volume."
195 },
196 "Identifiers": {
197 "type": "array",
198 "items": {
199 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.v1_1_0.json#/definitions/Identifier"
200 },
201 "description": "The Durable names for the volume.",
202 "longDescription": "This property shall contain a list of all known durable names for the associated volume."
203 },
204 "BlockSizeBytes": {
205 "type": [
206 "number",
207 "null"
208 ],
209 "units": "By",
210 "readonly": true,
211 "description": "The size of the smallest addressible unit (Block) of this volume in bytes.",
212 "longDescription": "This property shall contain size of the smallest addressible unit of the associated volume."
213 },
214 "Operations": {
215 "type": "array",
216 "items": {
217 "$ref": "#/definitions/Operations"
218 },
219 "description": "The operations currently running on the Volume.",
220 "longDescription": "This property shall contain a list of all currently running on the Volume."
221 },
222 "OptimumIOSizeBytes": {
223 "type": [
224 "number",
225 "null"
226 ],
227 "units": "By",
228 "readonly": true,
229 "description": "The size in bytes of this Volume's optimum IO size.",
230 "longDescription": "This property shall contain the optimum IO size to use when performing IO on this volume. For logical disks, this is the stripe size. For physical disks, this describes the physical sector size."
231 },
232 "Links": {
233 "type": "object",
234 "patternProperties": {
235 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
236 "type": [
237 "array",
238 "boolean",
239 "number",
240 "null",
241 "object",
242 "string"
243 ],
244 "description": "This property shall specify a valid odata or Redfish property."
245 }
246 },
247 "additionalProperties": false,
248 "properties": {
249 "Oem": {
250 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
251 "description": "Oem extension object.",
252 "longDescription": "This object represents the Oem property. All values for resources described by this schema shall comply to the requirements as described in the Redfish specification."
253 },
254 "Drives@odata.count": {
255 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.4.0.0.json#/definitions/count"
256 },
257 "Drives@odata.navigationLink": {
258 "type": "string",
259 "format": "uri"
260 },
261 "Drives": {
262 "type": "array",
263 "items": {
264 "$ref": "http://redfish.dmtf.org/schemas/v1/Drive.json#/definitions/Drive"
265 },
266 "readonly": true,
267 "description": "An array of references to the drives which contain this volume. This will reference Drives that either wholly or only partly contain this volume.",
268 "longDescription": "The value of this property shall be a reference to the resources that this volume is associated with and shall reference resources of type Drive. This property shall only contain references to Drive entities which are currently members of the Volume, not hot spare Drives which are not currently a member of the volume."
269 }
270 },
271 "description": "Contains references to other resources that are related to this resource.",
272 "longDescription": "The Links property, as described by the Redfish Specification, shall contain references to resources that are related to, but not contained by (subordinate to), this resource."
273 },
274 "Actions": {
275 "type": "object",
276 "patternProperties": {
277 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
278 "type": [
279 "array",
280 "boolean",
281 "number",
282 "null",
283 "object",
284 "string"
285 ],
286 "description": "This property shall specify a valid odata or Redfish property."
287 }
288 },
289 "additionalProperties": false,
290 "properties": {
291 "Oem": {
292 "type": "object",
293 "patternProperties": {
294 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
295 "type": [
296 "array",
297 "boolean",
298 "number",
299 "null",
300 "object",
301 "string"
302 ],
303 "description": "This property shall specify a valid odata or Redfish property."
304 }
305 },
306 "additionalProperties": true,
307 "properties": {},
308 "description": "The available OEM specific actions for this resource.",
309 "longDescription": "This type shall contain any additional OEM actions for this resource."
310 },
311 "#Volume.Initialize": {
312 "$ref": "#/definitions/Initialize"
313 }
314 },
315 "description": "The available actions for this resource.",
316 "longDescription": "The Actions property shall contain the available actions for this resource."
317 }
318 },
319 "required": [
320 "Id",
321 "Name"
322 ],
323 "description": "Volume contains properties used to describe a volume, virtual disk, LUN, or other logical storage entity for any system.",
324 "longDescription": "This resource shall be used to represent a volume, virtual disk, logical disk, LUN, or other logical storage for a Redfish implementation."
325 }
326 },
327 "copyright": "Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright"
328}