blob: 53efaddb0d8ed47cf676f0a93703215aa3f334da [file] [log] [blame]
Ed Tanous683f7272018-07-26 12:47:19 -07001{
2 "$ref": "#/definitions/Switch",
3 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema.v1_3_0.json",
4 "copyright": "Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
5 "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": {
11 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
12 "description": "This property shall specify a valid odata or Redfish property.",
13 "type": [
14 "array",
15 "boolean",
16 "number",
17 "null",
18 "object",
19 "string"
20 ]
21 }
22 },
23 "properties": {
24 "#Switch.Reset": {
25 "$ref": "#/definitions/Reset"
26 },
27 "Oem": {
28 "$ref": "#/definitions/OemActions"
29 }
30 },
31 "type": "object"
32 },
33 "Links": {
34 "additionalProperties": false,
35 "description": "Contains references to other resources that are related to this resource.",
36 "longDescription": "This type, as described by the Redfish Specification, shall contain references to resources that are related to, but not contained by (subordinate to), this resource.",
37 "patternProperties": {
38 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
39 "description": "This property shall specify a valid odata or Redfish property.",
40 "type": [
41 "array",
42 "boolean",
43 "number",
44 "null",
45 "object",
46 "string"
47 ]
48 }
49 },
50 "properties": {
51 "Chassis": {
52 "$ref": "http://redfish.dmtf.org/schemas/v1/Chassis.json#/definitions/Chassis",
53 "description": "A reference to the chassis which contains this switch.",
54 "longDescription": "The value of this property shall be a reference to the resources that this switch is associated with and shall reference a resource of type Chassis.",
55 "readonly": true
56 },
57 "ManagedBy": {
58 "description": "An array of references to the managers that manage this switch.",
59 "items": {
60 "$ref": "http://redfish.dmtf.org/schemas/v1/Manager.json#/definitions/Manager"
61 },
62 "longDescription": "The value of this property shall be a reference to the resources that this switch is associated with and shall reference a resource of type Manager.",
63 "readonly": true,
64 "type": "array"
65 },
66 "ManagedBy@odata.count": {
67 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/count"
68 },
69 "Oem": {
70 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
71 "description": "Oem extension object.",
72 "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."
73 }
74 },
75 "type": "object"
76 },
77 "OemActions": {
78 "additionalProperties": true,
79 "description": "The available OEM specific actions for this resource.",
80 "longDescription": "This type shall contain any additional OEM actions for this resource.",
81 "patternProperties": {
82 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
83 "description": "This property shall specify a valid odata or Redfish property.",
84 "type": [
85 "array",
86 "boolean",
87 "number",
88 "null",
89 "object",
90 "string"
91 ]
92 }
93 },
94 "properties": {},
95 "type": "object"
96 },
97 "Reset": {
98 "additionalProperties": false,
99 "description": "This action is used to reset this switch.",
100 "longDescription": "This action shall perform a reset of this switch.",
101 "parameters": {
102 "ResetType": {
103 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/ResetType",
104 "description": "The type of reset to be performed.",
105 "longDescription": "This parameter shall define the type of reset to be performed. The service may accept a request without the parameter and perform an implementation specific default reset."
106 }
107 },
108 "patternProperties": {
109 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
110 "description": "This property shall specify a valid odata or Redfish property.",
111 "type": [
112 "array",
113 "boolean",
114 "number",
115 "null",
116 "object",
117 "string"
118 ]
119 }
120 },
121 "properties": {
122 "target": {
123 "description": "Link to invoke action",
124 "format": "uri",
125 "type": "string"
126 },
127 "title": {
128 "description": "Friendly action name",
129 "type": "string"
130 }
131 },
132 "type": "object"
133 },
134 "Switch": {
135 "additionalProperties": false,
136 "description": "Switch contains properties describing a simple fabric switch.",
137 "longDescription": "This resource shall be used to represent a simple switch for a Redfish implementation.",
138 "patternProperties": {
139 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
140 "description": "This property shall specify a valid odata or Redfish property.",
141 "type": [
142 "array",
143 "boolean",
144 "number",
145 "null",
146 "object",
147 "string"
148 ]
149 }
150 },
151 "properties": {
152 "@odata.context": {
153 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/context"
154 },
155 "@odata.id": {
156 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/id"
157 },
158 "@odata.type": {
159 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/type"
160 },
161 "Actions": {
162 "$ref": "#/definitions/Actions",
163 "description": "The available actions for this resource.",
164 "longDescription": "The Actions property shall contain the available actions for this resource."
165 },
166 "AssetTag": {
167 "description": "The user assigned asset tag for this switch.",
168 "longDescription": "The value of this property shall be an identifying string used to track the drive for inventory purposes.",
169 "readonly": false,
170 "type": [
171 "string",
172 "null"
173 ]
174 },
175 "Description": {
176 "anyOf": [
177 {
178 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
179 },
180 {
181 "type": "null"
182 }
183 ],
184 "readonly": true
185 },
186 "DomainID": {
187 "description": "The Domain ID for this switch.",
188 "longDescription": "The value of this property shall have a scope of uniqueness within the fabric of which the switch is a member.",
189 "readonly": true,
190 "type": [
191 "number",
192 "null"
193 ]
194 },
195 "Id": {
196 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
197 "readonly": true
198 },
199 "IndicatorLED": {
200 "anyOf": [
201 {
202 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/IndicatorLED"
203 },
204 {
205 "type": "null"
206 }
207 ],
208 "description": "The state of the indicator LED, used to identify the switch.",
209 "longDescription": "This value of this property shall contain the indicator light state for the indicator light associated with this switch.",
210 "readonly": false
211 },
212 "IsManaged": {
213 "description": "This indicates whether the switch is in a managed or unmanaged state.",
214 "longDescription": "The value of this property shall be a boolean indicating whether this switch is in a managed or unmanaged state.",
215 "readonly": false,
216 "type": [
217 "boolean",
218 "null"
219 ]
220 },
221 "Links": {
222 "$ref": "#/definitions/Links",
223 "description": "Contains references to other resources that are related to this resource.",
224 "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."
225 },
226 "Location": {
227 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Location"
228 },
229 "LogServices": {
230 "anyOf": [
231 {
232 "$ref": "http://redfish.dmtf.org/schemas/v1/LogServiceCollection.json#/definitions/LogServiceCollection"
233 },
234 {
235 "type": "null"
236 }
237 ],
238 "description": "A reference to the collection of Log Services associated with this system.",
239 "longDescription": "The value of this property shall be a link to a collection of type LogServiceCollection.",
240 "readonly": true
241 },
242 "Manufacturer": {
243 "description": "This is the manufacturer of this switch.",
244 "longDescription": "The value of this property shall be the name of the organization responsible for producing the switch. This organization might be the entity from whom the switch is purchased, but this is not necessarily true.",
245 "readonly": true,
246 "type": [
247 "string",
248 "null"
249 ]
250 },
251 "Model": {
252 "description": "The product model number of this switch.",
253 "longDescription": "This property shall indicate the model information as provided by the manufacturer of this switch.",
254 "readonly": true,
255 "type": [
256 "string",
257 "null"
258 ]
259 },
260 "Name": {
261 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
262 "readonly": true
263 },
264 "Oem": {
265 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
266 "description": "This is the manufacturer/provider specific extension moniker used to divide the Oem object into sections.",
267 "longDescription": "The value of this string shall be of the format for the reserved word *Oem*."
268 },
269 "PartNumber": {
270 "description": "The part number for this switch.",
271 "longDescription": "The value of this property shall be a part number assigned by the organization that is responsible for producing or manufacturing the switch.",
272 "readonly": true,
273 "type": [
274 "string",
275 "null"
276 ]
277 },
278 "Ports": {
279 "$ref": "http://redfish.dmtf.org/schemas/v1/PortCollection.json#/definitions/PortCollection",
280 "description": "A collection of references to the ports for this switch.",
281 "longDescription": "The value of this property shall be a reference to the resources that this switch contains and shall reference a resource of type Port.",
282 "readonly": true
283 },
284 "PowerState": {
285 "anyOf": [
286 {
287 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/PowerState"
288 },
289 {
290 "type": "null"
291 }
292 ],
293 "description": "This is the current power state of the switch.",
294 "longDescription": "The value of this property shall contain the power state of the switch.",
295 "readonly": true
296 },
297 "Redundancy": {
298 "description": "Redundancy information for the switches.",
299 "items": {
300 "$ref": "http://redfish.dmtf.org/schemas/v1/Redundancy.json#/definitions/Redundancy"
301 },
302 "type": "array"
303 },
304 "Redundancy@odata.count": {
305 "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_1.json#/definitions/count"
306 },
307 "SKU": {
308 "description": "This is the SKU for this switch.",
309 "longDescription": "The value of this property shall be the stock-keeping unit number for this switch.",
310 "readonly": true,
311 "type": [
312 "string",
313 "null"
314 ]
315 },
316 "SerialNumber": {
317 "description": "The serial number for this switch.",
318 "longDescription": "The value of this property shall be a manufacturer-allocated number used to identify the switch.",
319 "readonly": true,
320 "type": [
321 "string",
322 "null"
323 ]
324 },
325 "Status": {
326 "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status"
327 },
328 "SwitchType": {
329 "anyOf": [
330 {
331 "$ref": "http://redfish.dmtf.org/schemas/v1/Protocol.json#/definitions/Protocol"
332 },
333 {
334 "type": "null"
335 }
336 ],
337 "description": "The protocol being sent over this switch.",
338 "longDescription": "The value of this property shall contain the type of switch being represented by this simple switch.",
339 "readonly": true
340 },
341 "TotalSwitchWidth": {
342 "description": "The total number of lanes, phys, or other physical transport links that this switch contains.",
343 "longDescription": "The value of this property shall be the number of physical transport lanes, phys, or other physical transport links that this switch contains. For PCIe, this shall be lane count.",
344 "readonly": true,
345 "type": [
346 "number",
347 "null"
348 ]
349 }
350 },
351 "required": [
352 "Id",
353 "Name"
354 ],
355 "type": "object"
356 }
357 },
358 "title": "#Switch.v1_1_0.Switch"
359}