xclarity_client 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/Gemfile +2 -0
  4. data/README.md +57 -4
  5. data/bin/mock_server.ru +1 -1
  6. data/docs/apib/cabinet.apib +63 -0
  7. data/docs/apib/canister.apib +69 -0
  8. data/docs/apib/chassis.apib +65 -1428
  9. data/docs/apib/cmm.apib +1102 -0
  10. data/docs/apib/fan.apib +383 -0
  11. data/docs/apib/fan_mux.apib +13 -0
  12. data/docs/apib/fan_muxes.apib +245 -0
  13. data/docs/apib/node.apib +8989 -869
  14. data/docs/apib/power_supply.apib +519 -0
  15. data/docs/apib/scalable_complex.apib +91 -0
  16. data/docs/apib/squisher.rb +26 -0
  17. data/docs/apib/switches.apib +1596 -0
  18. data/example/simple.rb +12 -5
  19. data/lib/xclarity_client.rb +20 -0
  20. data/lib/xclarity_client/cabinet.rb +14 -0
  21. data/lib/xclarity_client/cabinet_management.rb +59 -0
  22. data/lib/xclarity_client/canister.rb +20 -0
  23. data/lib/xclarity_client/canister_management.rb +60 -0
  24. data/lib/xclarity_client/chassi.rb +24 -0
  25. data/lib/xclarity_client/chassi_management.rb +64 -0
  26. data/lib/xclarity_client/client.rb +77 -1
  27. data/lib/xclarity_client/cmm.rb +18 -0
  28. data/lib/xclarity_client/cmm_management.rb +61 -0
  29. data/lib/xclarity_client/configuration.rb +13 -3
  30. data/lib/xclarity_client/fan.rb +20 -0
  31. data/lib/xclarity_client/fan_management.rb +83 -0
  32. data/lib/xclarity_client/fan_mux.rb +18 -0
  33. data/lib/xclarity_client/fan_mux_management.rb +82 -0
  34. data/lib/xclarity_client/node.rb +15 -94
  35. data/lib/xclarity_client/node_management.rb +62 -0
  36. data/lib/xclarity_client/power_supply.rb +18 -0
  37. data/lib/xclarity_client/power_supply_management.rb +89 -0
  38. data/lib/xclarity_client/scalable_complex.rb +16 -0
  39. data/lib/xclarity_client/scalable_complex_management.rb +83 -0
  40. data/lib/xclarity_client/switch.rb +19 -0
  41. data/lib/xclarity_client/switch_management.rb +59 -0
  42. data/lib/xclarity_client/version.rb +1 -1
  43. data/lib/xclarity_client/xclarity_base.rb +26 -1
  44. data/lib/xclarity_client/xclarity_resource.rb +20 -0
  45. data/xclarity_client.gemspec +1 -2
  46. metadata +34 -5
  47. data/lib/xclarity_client/chassis.rb +0 -7
@@ -0,0 +1,1102 @@
1
+ FORMAT: 1A
2
+
3
+ # Cmms
4
+
5
+ # GET /cmms/80C0B2F6B84011E0B504EC89B07DB965,256466549E0611E0A2F6872F34D5CCC9?excludeAttributes=accessState,backedBy
6
+
7
+ + Response 200 (application/json)
8
+ {
9
+ "cmmList":[
10
+ {
11
+ "model":"",
12
+ "manufacturerId":"20301",
13
+ "serialNumber":"",
14
+ "type":"CMM",
15
+ "dataHandle":1475517034173,
16
+ "ipv4Addresses":[
17
+ "10.240.72.61"
18
+ ],
19
+ "cmmDisplayName":"SN#Y034BG176046",
20
+ "hostConfig":[
21
+ {
22
+ "DDNSenabled":false,
23
+ "terIPv6userDNSserver":"0:0:0:0:0:0:0:0",
24
+ "DNSenabled":false,
25
+ "IPversionPriority":"IPv6ThenIPv4",
26
+ "secIPv4userDNSserver":"10.240.0.11",
27
+ "terIPv4userDNSserver":"0.0.0.0",
28
+ "priIPv6userDNSserver":"0:0:0:0:0:0:0:0",
29
+ "secIPv6userDNSserver":"0:0:0:0:0:0:0:0",
30
+ "priIPv4userDNSserver":"10.240.0.10"
31
+ }
32
+ ],
33
+ "leds":[
34
+ {
35
+ "color":"Amber",
36
+ "location":"FrontPanel",
37
+ "name":"FAULT",
38
+ "state":"Off"
39
+ }
40
+ ],
41
+ "description":"CMM",
42
+ "name":"SN#Y034BG176046",
43
+ "errorFields":[
44
+
45
+ ],
46
+ "mgmtProcIPaddress":"10.240.72.61",
47
+ "role":"primary",
48
+ "cmmHealthState":"Non-Critical",
49
+ "userDescription":"",
50
+ "partNumber":"68Y7029",
51
+ "ipInterfaces":[
52
+ {
53
+ "IPv4enabled":true,
54
+ "IPv4DHCPmode":"STATIC_ONLY",
55
+ "IPv6enabled":true,
56
+ "IPv6DHCPenabled":true,
57
+ "IPv4assignments":[
58
+ {
59
+ "id":2,
60
+ "subnet":"255.255.252.0",
61
+ "gateway":"10.240.72.1",
62
+ "address":"10.240.72.61",
63
+ "type":"CONFIGURED"
64
+ },
65
+ {
66
+ "id":2,
67
+ "subnet":"255.255.252.0",
68
+ "gateway":"10.240.72.1",
69
+ "address":"10.240.72.61",
70
+ "type":"INUSE"
71
+ }
72
+ ],
73
+ "IPv6assignments":[
74
+ {
75
+ "id":1,
76
+ "scope":"LinkLocal",
77
+ "gateway":"0:0:0:0:0:0:0:0",
78
+ "source":"Other",
79
+ "address":"fe80:0:0:0:5ef3:fcff:fe25:deb3",
80
+ "prefix":64,
81
+ "type":"INUSE"
82
+ },
83
+ {
84
+ "id":2,
85
+ "scope":"Global",
86
+ "gateway":"0:0:0:0:0:0:0:0",
87
+ "source":"Static",
88
+ "address":"0:0:0:0:0:0:0:0",
89
+ "prefix":0,
90
+ "type":"CONFIGURED"
91
+ }
92
+ ],
93
+ "name":"eth0",
94
+ "IPv6statelessEnabled":false,
95
+ "label":"External",
96
+ "IPv6staticEnabled":false
97
+ }
98
+ ],
99
+ "excludedHealthState":"Warning",
100
+ "firmware":[
101
+ {
102
+ "status":"",
103
+ "name":"CMM firmware",
104
+ "role":"",
105
+ "date":"2016-07-29T04:00:00Z",
106
+ "type":"CMM firmware",
107
+ "build":"2PET33B",
108
+ "version":"2.5.7"
109
+ }
110
+ ],
111
+ "machineType":"",
112
+ "parent":{
113
+ "uuid":"7F3E7E375B5747E0938969896B1CFDF5",
114
+ "uri":"chassis/7F3E7E375B5747E0938969896B1CFDF5"
115
+ },
116
+ "hostname":"MM5CF3FC25DEB3",
117
+ "domainName":"labs.lenovo.com",
118
+ "FRU":"68Y7032",
119
+ "macAddresses":[
120
+ "5C:F3:FC:25:DE:B3"
121
+ ],
122
+ "uri":"cmm/80C0B2F6B84011E0B504EC89B07DB965",
123
+ "productId":"65",
124
+ "powerAllocation":{
125
+ "maximumAllocatedPower":20,
126
+ "minimumAllocatedPower":20
127
+ },
128
+ "ipv6Addresses":[
129
+ "fe80:0:0:0:5ef3:fcff:fe25:deb3"
130
+ ],
131
+ "overallHealthState":"Warning",
132
+ "slots":[
133
+ 1
134
+ ],
135
+ "manufacturer":"IBM",
136
+ "uuid":"80C0B2F6B84011E0B504EC89B07DB965",
137
+ "dnsHostnames":[
138
+ "Chassis119.labs.lenovo.com"
139
+ ],
140
+ "fruSerialNumber":"Y034BG176046"
141
+ },
142
+ {
143
+ "model":"",
144
+ "manufacturerId":"20301",
145
+ "serialNumber":"",
146
+ "type":"CMM",
147
+ "dataHandle":1475517074784,
148
+ "ipv4Addresses":[
149
+ "10.243.1.141"
150
+ ],
151
+ "cmmDisplayName":"SN#Y034BG16E0C0",
152
+ "hostConfig":[
153
+ {
154
+ "DDNSenabled":false,
155
+ "terIPv6userDNSserver":"0:0:0:0:0:0:0:0",
156
+ "DNSenabled":false,
157
+ "IPversionPriority":"IPv6ThenIPv4",
158
+ "secIPv4userDNSserver":"0.0.0.0",
159
+ "terIPv4userDNSserver":"0.0.0.0",
160
+ "priIPv6userDNSserver":"0:0:0:0:0:0:0:0",
161
+ "secIPv6userDNSserver":"0:0:0:0:0:0:0:0",
162
+ "priIPv4userDNSserver":"0.0.0.0"
163
+ }
164
+ ],
165
+ "leds":[
166
+ {
167
+ "color":"Amber",
168
+ "location":"FrontPanel",
169
+ "name":"FAULT",
170
+ "state":"Off"
171
+ }
172
+ ],
173
+ "description":"CMM",
174
+ "name":"SN#Y034BG16E0C0",
175
+ "errorFields":[
176
+
177
+ ],
178
+ "mgmtProcIPaddress":"10.243.1.141",
179
+ "role":"primary",
180
+ "cmmHealthState":"Non-Critical",
181
+ "userDescription":"",
182
+ "partNumber":"68Y7029",
183
+ "ipInterfaces":[
184
+ {
185
+ "IPv4enabled":true,
186
+ "IPv4DHCPmode":"STATIC_ONLY",
187
+ "IPv6enabled":true,
188
+ "IPv6DHCPenabled":true,
189
+ "IPv4assignments":[
190
+ {
191
+ "id":2,
192
+ "subnet":"255.255.240.0",
193
+ "gateway":"10.243.0.1",
194
+ "address":"10.243.1.141",
195
+ "type":"CONFIGURED"
196
+ },
197
+ {
198
+ "id":2,
199
+ "subnet":"255.255.240.0",
200
+ "gateway":"10.243.0.1",
201
+ "address":"10.243.1.141",
202
+ "type":"INUSE"
203
+ }
204
+ ],
205
+ "IPv6assignments":[
206
+ {
207
+ "id":1,
208
+ "scope":"LinkLocal",
209
+ "gateway":"0:0:0:0:0:0:0:0",
210
+ "source":"Other",
211
+ "address":"fe80:0:0:0:5ef3:fcff:fe25:db57",
212
+ "prefix":64,
213
+ "type":"INUSE"
214
+ },
215
+ {
216
+ "id":2,
217
+ "scope":"Global",
218
+ "gateway":"0:0:0:0:0:0:0:0",
219
+ "source":"Static",
220
+ "address":"0:0:0:0:0:0:0:0",
221
+ "prefix":0,
222
+ "type":"CONFIGURED"
223
+ },
224
+ {
225
+ "id":16,
226
+ "scope":"Global",
227
+ "gateway":"0:0:0:0:0:0:0:0",
228
+ "source":"Stateless",
229
+ "address":"fd55:faaf:e1ab:2021:5ef3:fcff:fe25:db57",
230
+ "prefix":64,
231
+ "type":"INUSE"
232
+ }
233
+ ],
234
+ "name":"eth0",
235
+ "IPv6statelessEnabled":true,
236
+ "label":"External",
237
+ "IPv6staticEnabled":false
238
+ }
239
+ ],
240
+ "excludedHealthState":"Warning",
241
+ "firmware":[
242
+ {
243
+ "status":"",
244
+ "name":"CMM firmware",
245
+ "role":"",
246
+ "date":"2016-07-29T04:00:00Z",
247
+ "type":"CMM firmware",
248
+ "build":"2PET33B",
249
+ "version":"2.5.7"
250
+ }
251
+ ],
252
+ "machineType":"",
253
+ "parent":{
254
+ "uuid":"3B058C775CE44FA6AC05608B196EDAB1",
255
+ "uri":"chassis/3B058C775CE44FA6AC05608B196EDAB1"
256
+ },
257
+ "hostname":"MM5CF3FC25E03B",
258
+ "domainName":"",
259
+ "FRU":"68Y7032",
260
+ "macAddresses":[
261
+ "5C:F3:FC:25:DB:57"
262
+ ],
263
+ "uri":"cmm/256466549E0611E0A2F6872F34D5CCC9",
264
+ "productId":"65",
265
+ "powerAllocation":{
266
+ "maximumAllocatedPower":20,
267
+ "minimumAllocatedPower":20
268
+ },
269
+ "ipv6Addresses":[
270
+ "fe80:0:0:0:5ef3:fcff:fe25:db57",
271
+ "fd55:faaf:e1ab:2021:5ef3:fcff:fe25:db57"
272
+ ],
273
+ "overallHealthState":"Warning",
274
+ "slots":[
275
+ 1
276
+ ],
277
+ "manufacturer":"IBM",
278
+ "uuid":"256466549E0611E0A2F6872F34D5CCC9",
279
+ "dnsHostnames":[
280
+ "xhmcupdates5.labs.lenovo.com",
281
+ "fd55:faaf:e1ab:2021:5ef3:fcff:fe25:db57"
282
+ ],
283
+ "fruSerialNumber":"Y034BG16E0C0"
284
+ }
285
+ ]
286
+ }
287
+ + Response 400
288
+ + Response 401
289
+ + Response 404
290
+ + Response 409
291
+ + Response 500
292
+
293
+ # GET /cmms/80C0B2F6B84011E0B504EC89B07DB965,256466549E0611E0A2F6872F34D5CCC9?includeAttributes=accessState,backedBy
294
+
295
+ + Response 200 (application/json)
296
+ {
297
+ "cmmList":[
298
+ {
299
+ "accessState":"Online",
300
+ "backedBy":"real",
301
+ "parent":{
302
+ "uuid":"7F3E7E375B5747E0938969896B1CFDF5",
303
+ "uri":"chassis/7F3E7E375B5747E0938969896B1CFDF5"
304
+ },
305
+ "uuid":"80C0B2F6B84011E0B504EC89B07DB965",
306
+ "uri":"cmm/80C0B2F6B84011E0B504EC89B07DB965",
307
+ "dataHandle":1475517034173
308
+ },
309
+ {
310
+ "accessState":"Online",
311
+ "backedBy":"real",
312
+ "parent":{
313
+ "uuid":"3B058C775CE44FA6AC05608B196EDAB1",
314
+ "uri":"chassis/3B058C775CE44FA6AC05608B196EDAB1"
315
+ },
316
+ "uuid":"256466549E0611E0A2F6872F34D5CCC9",
317
+ "uri":"cmm/256466549E0611E0A2F6872F34D5CCC9",
318
+ "dataHandle":1475517074784
319
+ }
320
+ ]
321
+ }
322
+ + Response 400
323
+ + Response 401
324
+ + Response 404
325
+ + Response 409
326
+ + Response 500
327
+
328
+ # GET /cmms/80C0B2F6B84011E0B504EC89B07DB965?excludeAttributes=accessState,backedBy
329
+
330
+ + Response 200 (application/json)
331
+ {
332
+ "model":"",
333
+ "manufacturerId":"20301",
334
+ "serialNumber":"",
335
+ "type":"CMM",
336
+ "dataHandle":1475517034173,
337
+ "ipv4Addresses":[
338
+ "10.240.72.61"
339
+ ],
340
+ "cmmDisplayName":"SN#Y034BG176046",
341
+ "hostConfig":[
342
+ {
343
+ "DDNSenabled":false,
344
+ "terIPv6userDNSserver":"0:0:0:0:0:0:0:0",
345
+ "DNSenabled":false,
346
+ "IPversionPriority":"IPv6ThenIPv4",
347
+ "secIPv4userDNSserver":"10.240.0.11",
348
+ "terIPv4userDNSserver":"0.0.0.0",
349
+ "priIPv6userDNSserver":"0:0:0:0:0:0:0:0",
350
+ "secIPv6userDNSserver":"0:0:0:0:0:0:0:0",
351
+ "priIPv4userDNSserver":"10.240.0.10"
352
+ }
353
+ ],
354
+ "leds":[
355
+ {
356
+ "color":"Amber",
357
+ "location":"FrontPanel",
358
+ "name":"FAULT",
359
+ "state":"Off"
360
+ }
361
+ ],
362
+ "description":"CMM",
363
+ "name":"SN#Y034BG176046",
364
+ "errorFields":[
365
+
366
+ ],
367
+ "mgmtProcIPaddress":"10.240.72.61",
368
+ "role":"primary",
369
+ "cmmHealthState":"Non-Critical",
370
+ "userDescription":"",
371
+ "partNumber":"68Y7029",
372
+ "ipInterfaces":[
373
+ {
374
+ "IPv4enabled":true,
375
+ "IPv4DHCPmode":"STATIC_ONLY",
376
+ "IPv6enabled":true,
377
+ "IPv6DHCPenabled":true,
378
+ "IPv4assignments":[
379
+ {
380
+ "id":2,
381
+ "subnet":"255.255.252.0",
382
+ "gateway":"10.240.72.1",
383
+ "address":"10.240.72.61",
384
+ "type":"CONFIGURED"
385
+ },
386
+ {
387
+ "id":2,
388
+ "subnet":"255.255.252.0",
389
+ "gateway":"10.240.72.1",
390
+ "address":"10.240.72.61",
391
+ "type":"INUSE"
392
+ }
393
+ ],
394
+ "IPv6assignments":[
395
+ {
396
+ "id":1,
397
+ "scope":"LinkLocal",
398
+ "gateway":"0:0:0:0:0:0:0:0",
399
+ "source":"Other",
400
+ "address":"fe80:0:0:0:5ef3:fcff:fe25:deb3",
401
+ "prefix":64,
402
+ "type":"INUSE"
403
+ },
404
+ {
405
+ "id":2,
406
+ "scope":"Global",
407
+ "gateway":"0:0:0:0:0:0:0:0",
408
+ "source":"Static",
409
+ "address":"0:0:0:0:0:0:0:0",
410
+ "prefix":0,
411
+ "type":"CONFIGURED"
412
+ }
413
+ ],
414
+ "name":"eth0",
415
+ "IPv6statelessEnabled":false,
416
+ "label":"External",
417
+ "IPv6staticEnabled":false
418
+ }
419
+ ],
420
+ "excludedHealthState":"Warning",
421
+ "firmware":[
422
+ {
423
+ "status":"",
424
+ "name":"CMM firmware",
425
+ "role":"",
426
+ "date":"2016-07-29T04:00:00Z",
427
+ "type":"CMM firmware",
428
+ "build":"2PET33B",
429
+ "version":"2.5.7"
430
+ }
431
+ ],
432
+ "machineType":"",
433
+ "parent":{
434
+ "uuid":"7F3E7E375B5747E0938969896B1CFDF5",
435
+ "uri":"chassis/7F3E7E375B5747E0938969896B1CFDF5"
436
+ },
437
+ "hostname":"MM5CF3FC25DEB3",
438
+ "domainName":"labs.lenovo.com",
439
+ "FRU":"68Y7032",
440
+ "macAddresses":[
441
+ "5C:F3:FC:25:DE:B3"
442
+ ],
443
+ "uri":"cmm/80C0B2F6B84011E0B504EC89B07DB965",
444
+ "productId":"65",
445
+ "powerAllocation":{
446
+ "maximumAllocatedPower":20,
447
+ "minimumAllocatedPower":20
448
+ },
449
+ "ipv6Addresses":[
450
+ "fe80:0:0:0:5ef3:fcff:fe25:deb3"
451
+ ],
452
+ "overallHealthState":"Warning",
453
+ "slots":[
454
+ 1
455
+ ],
456
+ "manufacturer":"IBM",
457
+ "uuid":"80C0B2F6B84011E0B504EC89B07DB965",
458
+ "dnsHostnames":[
459
+ "Chassis119.labs.lenovo.com"
460
+ ],
461
+ "fruSerialNumber":"Y034BG176046"
462
+ }
463
+ + Response 400
464
+ + Response 401
465
+ + Response 404
466
+ + Response 409
467
+ + Response 500
468
+
469
+ # GET /cmms/80C0B2F6B84011E0B504EC89B07DB965?includeAttributes=accessState,backedBy
470
+
471
+ + Response 200 (application/json)
472
+ {
473
+ "accessState":"Online",
474
+ "backedBy":"real",
475
+ "parent":{
476
+ "uuid":"7F3E7E375B5747E0938969896B1CFDF5",
477
+ "uri":"chassis/7F3E7E375B5747E0938969896B1CFDF5"
478
+ },
479
+ "uuid":"80C0B2F6B84011E0B504EC89B07DB965",
480
+ "uri":"cmm/80C0B2F6B84011E0B504EC89B07DB965",
481
+ "dataHandle":1475517034173
482
+ }
483
+ + Response 400
484
+ + Response 401
485
+ + Response 404
486
+ + Response 409
487
+ + Response 500
488
+
489
+ # GET /cmms?excludeAttributes=accessState,backedBy
490
+
491
+ + Response 200 (application/json)
492
+ {
493
+ "cmmList":[
494
+ {
495
+ "model":"",
496
+ "manufacturerId":"20301",
497
+ "serialNumber":"",
498
+ "type":"CMM",
499
+ "dataHandle":1475517034173,
500
+ "ipv4Addresses":[
501
+ "10.240.72.61"
502
+ ],
503
+ "cmmDisplayName":"SN#Y034BG176046",
504
+ "hostConfig":[
505
+ {
506
+ "DDNSenabled":false,
507
+ "terIPv6userDNSserver":"0:0:0:0:0:0:0:0",
508
+ "DNSenabled":false,
509
+ "IPversionPriority":"IPv6ThenIPv4",
510
+ "secIPv4userDNSserver":"10.240.0.11",
511
+ "terIPv4userDNSserver":"0.0.0.0",
512
+ "priIPv6userDNSserver":"0:0:0:0:0:0:0:0",
513
+ "secIPv6userDNSserver":"0:0:0:0:0:0:0:0",
514
+ "priIPv4userDNSserver":"10.240.0.10"
515
+ }
516
+ ],
517
+ "leds":[
518
+ {
519
+ "color":"Amber",
520
+ "location":"FrontPanel",
521
+ "name":"FAULT",
522
+ "state":"Off"
523
+ }
524
+ ],
525
+ "description":"CMM",
526
+ "name":"SN#Y034BG176046",
527
+ "errorFields":[
528
+
529
+ ],
530
+ "mgmtProcIPaddress":"10.240.72.61",
531
+ "role":"primary",
532
+ "cmmHealthState":"Non-Critical",
533
+ "userDescription":"",
534
+ "partNumber":"68Y7029",
535
+ "ipInterfaces":[
536
+ {
537
+ "IPv4enabled":true,
538
+ "IPv4DHCPmode":"STATIC_ONLY",
539
+ "IPv6enabled":true,
540
+ "IPv6DHCPenabled":true,
541
+ "IPv4assignments":[
542
+ {
543
+ "id":2,
544
+ "subnet":"255.255.252.0",
545
+ "gateway":"10.240.72.1",
546
+ "address":"10.240.72.61",
547
+ "type":"CONFIGURED"
548
+ },
549
+ {
550
+ "id":2,
551
+ "subnet":"255.255.252.0",
552
+ "gateway":"10.240.72.1",
553
+ "address":"10.240.72.61",
554
+ "type":"INUSE"
555
+ }
556
+ ],
557
+ "IPv6assignments":[
558
+ {
559
+ "id":1,
560
+ "scope":"LinkLocal",
561
+ "gateway":"0:0:0:0:0:0:0:0",
562
+ "source":"Other",
563
+ "address":"fe80:0:0:0:5ef3:fcff:fe25:deb3",
564
+ "prefix":64,
565
+ "type":"INUSE"
566
+ },
567
+ {
568
+ "id":2,
569
+ "scope":"Global",
570
+ "gateway":"0:0:0:0:0:0:0:0",
571
+ "source":"Static",
572
+ "address":"0:0:0:0:0:0:0:0",
573
+ "prefix":0,
574
+ "type":"CONFIGURED"
575
+ }
576
+ ],
577
+ "name":"eth0",
578
+ "IPv6statelessEnabled":false,
579
+ "label":"External",
580
+ "IPv6staticEnabled":false
581
+ }
582
+ ],
583
+ "excludedHealthState":"Warning",
584
+ "firmware":[
585
+ {
586
+ "status":"",
587
+ "name":"CMM firmware",
588
+ "role":"",
589
+ "date":"2016-07-29T04:00:00Z",
590
+ "type":"CMM firmware",
591
+ "build":"2PET33B",
592
+ "version":"2.5.7"
593
+ }
594
+ ],
595
+ "machineType":"",
596
+ "parent":{
597
+ "uuid":"7F3E7E375B5747E0938969896B1CFDF5",
598
+ "uri":"chassis/7F3E7E375B5747E0938969896B1CFDF5"
599
+ },
600
+ "hostname":"MM5CF3FC25DEB3",
601
+ "domainName":"labs.lenovo.com",
602
+ "FRU":"68Y7032",
603
+ "macAddresses":[
604
+ "5C:F3:FC:25:DE:B3"
605
+ ],
606
+ "uri":"cmm/80C0B2F6B84011E0B504EC89B07DB965",
607
+ "productId":"65",
608
+ "powerAllocation":{
609
+ "maximumAllocatedPower":20,
610
+ "minimumAllocatedPower":20
611
+ },
612
+ "ipv6Addresses":[
613
+ "fe80:0:0:0:5ef3:fcff:fe25:deb3"
614
+ ],
615
+ "overallHealthState":"Warning",
616
+ "slots":[
617
+ 1
618
+ ],
619
+ "manufacturer":"IBM",
620
+ "uuid":"80C0B2F6B84011E0B504EC89B07DB965",
621
+ "dnsHostnames":[
622
+ "Chassis119.labs.lenovo.com"
623
+ ],
624
+ "fruSerialNumber":"Y034BG176046"
625
+ },
626
+ {
627
+ "model":"",
628
+ "manufacturerId":"20301",
629
+ "serialNumber":"",
630
+ "type":"CMM",
631
+ "dataHandle":1475517074784,
632
+ "ipv4Addresses":[
633
+ "10.243.1.141"
634
+ ],
635
+ "cmmDisplayName":"SN#Y034BG16E0C0",
636
+ "hostConfig":[
637
+ {
638
+ "DDNSenabled":false,
639
+ "terIPv6userDNSserver":"0:0:0:0:0:0:0:0",
640
+ "DNSenabled":false,
641
+ "IPversionPriority":"IPv6ThenIPv4",
642
+ "secIPv4userDNSserver":"0.0.0.0",
643
+ "terIPv4userDNSserver":"0.0.0.0",
644
+ "priIPv6userDNSserver":"0:0:0:0:0:0:0:0",
645
+ "secIPv6userDNSserver":"0:0:0:0:0:0:0:0",
646
+ "priIPv4userDNSserver":"0.0.0.0"
647
+ }
648
+ ],
649
+ "leds":[
650
+ {
651
+ "color":"Amber",
652
+ "location":"FrontPanel",
653
+ "name":"FAULT",
654
+ "state":"Off"
655
+ }
656
+ ],
657
+ "description":"CMM",
658
+ "name":"SN#Y034BG16E0C0",
659
+ "errorFields":[
660
+
661
+ ],
662
+ "mgmtProcIPaddress":"10.243.1.141",
663
+ "role":"primary",
664
+ "cmmHealthState":"Non-Critical",
665
+ "userDescription":"",
666
+ "partNumber":"68Y7029",
667
+ "ipInterfaces":[
668
+ {
669
+ "IPv4enabled":true,
670
+ "IPv4DHCPmode":"STATIC_ONLY",
671
+ "IPv6enabled":true,
672
+ "IPv6DHCPenabled":true,
673
+ "IPv4assignments":[
674
+ {
675
+ "id":2,
676
+ "subnet":"255.255.240.0",
677
+ "gateway":"10.243.0.1",
678
+ "address":"10.243.1.141",
679
+ "type":"CONFIGURED"
680
+ },
681
+ {
682
+ "id":2,
683
+ "subnet":"255.255.240.0",
684
+ "gateway":"10.243.0.1",
685
+ "address":"10.243.1.141",
686
+ "type":"INUSE"
687
+ }
688
+ ],
689
+ "IPv6assignments":[
690
+ {
691
+ "id":1,
692
+ "scope":"LinkLocal",
693
+ "gateway":"0:0:0:0:0:0:0:0",
694
+ "source":"Other",
695
+ "address":"fe80:0:0:0:5ef3:fcff:fe25:db57",
696
+ "prefix":64,
697
+ "type":"INUSE"
698
+ },
699
+ {
700
+ "id":2,
701
+ "scope":"Global",
702
+ "gateway":"0:0:0:0:0:0:0:0",
703
+ "source":"Static",
704
+ "address":"0:0:0:0:0:0:0:0",
705
+ "prefix":0,
706
+ "type":"CONFIGURED"
707
+ },
708
+ {
709
+ "id":16,
710
+ "scope":"Global",
711
+ "gateway":"0:0:0:0:0:0:0:0",
712
+ "source":"Stateless",
713
+ "address":"fd55:faaf:e1ab:2021:5ef3:fcff:fe25:db57",
714
+ "prefix":64,
715
+ "type":"INUSE"
716
+ }
717
+ ],
718
+ "name":"eth0",
719
+ "IPv6statelessEnabled":true,
720
+ "label":"External",
721
+ "IPv6staticEnabled":false
722
+ }
723
+ ],
724
+ "excludedHealthState":"Warning",
725
+ "firmware":[
726
+ {
727
+ "status":"",
728
+ "name":"CMM firmware",
729
+ "role":"",
730
+ "date":"2016-07-29T04:00:00Z",
731
+ "type":"CMM firmware",
732
+ "build":"2PET33B",
733
+ "version":"2.5.7"
734
+ }
735
+ ],
736
+ "machineType":"",
737
+ "parent":{
738
+ "uuid":"3B058C775CE44FA6AC05608B196EDAB1",
739
+ "uri":"chassis/3B058C775CE44FA6AC05608B196EDAB1"
740
+ },
741
+ "hostname":"MM5CF3FC25E03B",
742
+ "domainName":"",
743
+ "FRU":"68Y7032",
744
+ "macAddresses":[
745
+ "5C:F3:FC:25:DB:57"
746
+ ],
747
+ "uri":"cmm/256466549E0611E0A2F6872F34D5CCC9",
748
+ "productId":"65",
749
+ "powerAllocation":{
750
+ "maximumAllocatedPower":20,
751
+ "minimumAllocatedPower":20
752
+ },
753
+ "ipv6Addresses":[
754
+ "fe80:0:0:0:5ef3:fcff:fe25:db57",
755
+ "fd55:faaf:e1ab:2021:5ef3:fcff:fe25:db57"
756
+ ],
757
+ "overallHealthState":"Warning",
758
+ "slots":[
759
+ 1
760
+ ],
761
+ "manufacturer":"IBM",
762
+ "uuid":"256466549E0611E0A2F6872F34D5CCC9",
763
+ "dnsHostnames":[
764
+ "xhmcupdates5.labs.lenovo.com",
765
+ "fd55:faaf:e1ab:2021:5ef3:fcff:fe25:db57"
766
+ ],
767
+ "fruSerialNumber":"Y034BG16E0C0"
768
+ }
769
+ ]
770
+ }
771
+ + Response 400
772
+ + Response 401
773
+ + Response 404
774
+ + Response 409
775
+ + Response 500
776
+
777
+ # GET /cmms?includeAttributes=accessState,backedBy
778
+
779
+ + Response 200 (application/json)
780
+ {
781
+ "cmmList":[
782
+ {
783
+ "accessState":"Online",
784
+ "backedBy":"real",
785
+ "parent":{
786
+ "uuid":"7F3E7E375B5747E0938969896B1CFDF5",
787
+ "uri":"chassis/7F3E7E375B5747E0938969896B1CFDF5"
788
+ },
789
+ "uuid":"80C0B2F6B84011E0B504EC89B07DB965",
790
+ "uri":"cmm/80C0B2F6B84011E0B504EC89B07DB965",
791
+ "dataHandle":1475517034173
792
+ },
793
+ {
794
+ "accessState":"Online",
795
+ "backedBy":"real",
796
+ "parent":{
797
+ "uuid":"3B058C775CE44FA6AC05608B196EDAB1",
798
+ "uri":"chassis/3B058C775CE44FA6AC05608B196EDAB1"
799
+ },
800
+ "uuid":"256466549E0611E0A2F6872F34D5CCC9",
801
+ "uri":"cmm/256466549E0611E0A2F6872F34D5CCC9",
802
+ "dataHandle":1475517074784
803
+ }
804
+ ]
805
+ }
806
+ + Response 400
807
+ + Response 401
808
+ + Response 404
809
+ + Response 409
810
+ + Response 500
811
+
812
+ # GET /cmms
813
+
814
+ + Response 200 (application/json)
815
+ {
816
+ "cmmList":[
817
+ {
818
+ "accessState":"Online",
819
+ "model":"",
820
+ "manufacturerId":"20301",
821
+ "serialNumber":"",
822
+ "type":"CMM",
823
+ "dataHandle":1475517034173,
824
+ "ipv4Addresses":[
825
+ "10.240.72.61"
826
+ ],
827
+ "backedBy":"real",
828
+ "cmmDisplayName":"SN#Y034BG176046",
829
+ "hostConfig":[
830
+ {
831
+ "DDNSenabled":false,
832
+ "terIPv6userDNSserver":"0:0:0:0:0:0:0:0",
833
+ "DNSenabled":false,
834
+ "IPversionPriority":"IPv6ThenIPv4",
835
+ "secIPv4userDNSserver":"10.240.0.11",
836
+ "terIPv4userDNSserver":"0.0.0.0",
837
+ "priIPv6userDNSserver":"0:0:0:0:0:0:0:0",
838
+ "secIPv6userDNSserver":"0:0:0:0:0:0:0:0",
839
+ "priIPv4userDNSserver":"10.240.0.10"
840
+ }
841
+ ],
842
+ "leds":[
843
+ {
844
+ "color":"Amber",
845
+ "location":"FrontPanel",
846
+ "name":"FAULT",
847
+ "state":"Off"
848
+ }
849
+ ],
850
+ "description":"CMM",
851
+ "name":"SN#Y034BG176046",
852
+ "mgmtProcIPaddress":"10.240.72.61",
853
+ "errorFields":[
854
+
855
+ ],
856
+ "role":"primary",
857
+ "cmmHealthState":"Non-Critical",
858
+ "userDescription":"",
859
+ "partNumber":"68Y7029",
860
+ "ipInterfaces":[
861
+ {
862
+ "IPv4enabled":true,
863
+ "IPv4DHCPmode":"STATIC_ONLY",
864
+ "IPv6enabled":true,
865
+ "IPv6DHCPenabled":true,
866
+ "IPv4assignments":[
867
+ {
868
+ "id":2,
869
+ "subnet":"255.255.252.0",
870
+ "gateway":"10.240.72.1",
871
+ "address":"10.240.72.61",
872
+ "type":"CONFIGURED"
873
+ },
874
+ {
875
+ "id":2,
876
+ "subnet":"255.255.252.0",
877
+ "gateway":"10.240.72.1",
878
+ "address":"10.240.72.61",
879
+ "type":"INUSE"
880
+ }
881
+ ],
882
+ "IPv6assignments":[
883
+ {
884
+ "id":1,
885
+ "scope":"LinkLocal",
886
+ "gateway":"0:0:0:0:0:0:0:0",
887
+ "source":"Other",
888
+ "address":"fe80:0:0:0:5ef3:fcff:fe25:deb3",
889
+ "prefix":64,
890
+ "type":"INUSE"
891
+ },
892
+ {
893
+ "id":2,
894
+ "scope":"Global",
895
+ "gateway":"0:0:0:0:0:0:0:0",
896
+ "source":"Static",
897
+ "address":"0:0:0:0:0:0:0:0",
898
+ "prefix":0,
899
+ "type":"CONFIGURED"
900
+ }
901
+ ],
902
+ "name":"eth0",
903
+ "IPv6statelessEnabled":false,
904
+ "label":"External",
905
+ "IPv6staticEnabled":false
906
+ }
907
+ ],
908
+ "excludedHealthState":"Warning",
909
+ "firmware":[
910
+ {
911
+ "status":"",
912
+ "name":"CMM firmware",
913
+ "role":"",
914
+ "date":"2016-07-29T04:00:00Z",
915
+ "type":"CMM firmware",
916
+ "build":"2PET33B",
917
+ "version":"2.5.7"
918
+ }
919
+ ],
920
+ "machineType":"",
921
+ "parent":{
922
+ "uuid":"7F3E7E375B5747E0938969896B1CFDF5",
923
+ "uri":"chassis/7F3E7E375B5747E0938969896B1CFDF5"
924
+ },
925
+ "hostname":"MM5CF3FC25DEB3",
926
+ "domainName":"labs.lenovo.com",
927
+ "FRU":"68Y7032",
928
+ "macAddresses":[
929
+ "5C:F3:FC:25:DE:B3"
930
+ ],
931
+ "uri":"cmm/80C0B2F6B84011E0B504EC89B07DB965",
932
+ "productId":"65",
933
+ "powerAllocation":{
934
+ "maximumAllocatedPower":20,
935
+ "minimumAllocatedPower":20
936
+ },
937
+ "ipv6Addresses":[
938
+ "fe80:0:0:0:5ef3:fcff:fe25:deb3"
939
+ ],
940
+ "overallHealthState":"Warning",
941
+ "slots":[
942
+ 1
943
+ ],
944
+ "manufacturer":"IBM",
945
+ "uuid":"80C0B2F6B84011E0B504EC89B07DB965",
946
+ "dnsHostnames":[
947
+ "Chassis119.labs.lenovo.com"
948
+ ],
949
+ "fruSerialNumber":"Y034BG176046"
950
+ },
951
+ {
952
+ "accessState":"Online",
953
+ "model":"",
954
+ "manufacturerId":"20301",
955
+ "serialNumber":"",
956
+ "type":"CMM",
957
+ "dataHandle":1475517074784,
958
+ "ipv4Addresses":[
959
+ "10.243.1.141"
960
+ ],
961
+ "backedBy":"real",
962
+ "cmmDisplayName":"SN#Y034BG16E0C0",
963
+ "hostConfig":[
964
+ {
965
+ "DDNSenabled":false,
966
+ "terIPv6userDNSserver":"0:0:0:0:0:0:0:0",
967
+ "DNSenabled":false,
968
+ "IPversionPriority":"IPv6ThenIPv4",
969
+ "secIPv4userDNSserver":"0.0.0.0",
970
+ "terIPv4userDNSserver":"0.0.0.0",
971
+ "priIPv6userDNSserver":"0:0:0:0:0:0:0:0",
972
+ "secIPv6userDNSserver":"0:0:0:0:0:0:0:0",
973
+ "priIPv4userDNSserver":"0.0.0.0"
974
+ }
975
+ ],
976
+ "leds":[
977
+ {
978
+ "color":"Amber",
979
+ "location":"FrontPanel",
980
+ "name":"FAULT",
981
+ "state":"Off"
982
+ }
983
+ ],
984
+ "description":"CMM",
985
+ "name":"SN#Y034BG16E0C0",
986
+ "mgmtProcIPaddress":"10.243.1.141",
987
+ "errorFields":[
988
+
989
+ ],
990
+ "role":"primary",
991
+ "cmmHealthState":"Non-Critical",
992
+ "userDescription":"",
993
+ "partNumber":"68Y7029",
994
+ "ipInterfaces":[
995
+ {
996
+ "IPv4enabled":true,
997
+ "IPv4DHCPmode":"STATIC_ONLY",
998
+ "IPv6enabled":true,
999
+ "IPv6DHCPenabled":true,
1000
+ "IPv4assignments":[
1001
+ {
1002
+ "id":2,
1003
+ "subnet":"255.255.240.0",
1004
+ "gateway":"10.243.0.1",
1005
+ "address":"10.243.1.141",
1006
+ "type":"CONFIGURED"
1007
+ },
1008
+ {
1009
+ "id":2,
1010
+ "subnet":"255.255.240.0",
1011
+ "gateway":"10.243.0.1",
1012
+ "address":"10.243.1.141",
1013
+ "type":"INUSE"
1014
+ }
1015
+ ],
1016
+ "IPv6assignments":[
1017
+ {
1018
+ "id":1,
1019
+ "scope":"LinkLocal",
1020
+ "gateway":"0:0:0:0:0:0:0:0",
1021
+ "source":"Other",
1022
+ "address":"fe80:0:0:0:5ef3:fcff:fe25:db57",
1023
+ "prefix":64,
1024
+ "type":"INUSE"
1025
+ },
1026
+ {
1027
+ "id":2,
1028
+ "scope":"Global",
1029
+ "gateway":"0:0:0:0:0:0:0:0",
1030
+ "source":"Static",
1031
+ "address":"0:0:0:0:0:0:0:0",
1032
+ "prefix":0,
1033
+ "type":"CONFIGURED"
1034
+ },
1035
+ {
1036
+ "id":16,
1037
+ "scope":"Global",
1038
+ "gateway":"0:0:0:0:0:0:0:0",
1039
+ "source":"Stateless",
1040
+ "address":"fd55:faaf:e1ab:2021:5ef3:fcff:fe25:db57",
1041
+ "prefix":64,
1042
+ "type":"INUSE"
1043
+ }
1044
+ ],
1045
+ "name":"eth0",
1046
+ "IPv6statelessEnabled":true,
1047
+ "label":"External",
1048
+ "IPv6staticEnabled":false
1049
+ }
1050
+ ],
1051
+ "excludedHealthState":"Warning",
1052
+ "firmware":[
1053
+ {
1054
+ "status":"",
1055
+ "name":"CMM firmware",
1056
+ "role":"",
1057
+ "date":"2016-07-29T04:00:00Z",
1058
+ "type":"CMM firmware",
1059
+ "build":"2PET33B",
1060
+ "version":"2.5.7"
1061
+ }
1062
+ ],
1063
+ "machineType":"",
1064
+ "parent":{
1065
+ "uuid":"3B058C775CE44FA6AC05608B196EDAB1",
1066
+ "uri":"chassis/3B058C775CE44FA6AC05608B196EDAB1"
1067
+ },
1068
+ "hostname":"MM5CF3FC25E03B",
1069
+ "domainName":"",
1070
+ "FRU":"68Y7032",
1071
+ "macAddresses":[
1072
+ "5C:F3:FC:25:DB:57"
1073
+ ],
1074
+ "uri":"cmm/256466549E0611E0A2F6872F34D5CCC9",
1075
+ "productId":"65",
1076
+ "powerAllocation":{
1077
+ "maximumAllocatedPower":20,
1078
+ "minimumAllocatedPower":20
1079
+ },
1080
+ "ipv6Addresses":[
1081
+ "fe80:0:0:0:5ef3:fcff:fe25:db57",
1082
+ "fd55:faaf:e1ab:2021:5ef3:fcff:fe25:db57"
1083
+ ],
1084
+ "overallHealthState":"Warning",
1085
+ "slots":[
1086
+ 1
1087
+ ],
1088
+ "manufacturer":"IBM",
1089
+ "uuid":"256466549E0611E0A2F6872F34D5CCC9",
1090
+ "dnsHostnames":[
1091
+ "xhmcupdates5.labs.lenovo.com",
1092
+ "fd55:faaf:e1ab:2021:5ef3:fcff:fe25:db57"
1093
+ ],
1094
+ "fruSerialNumber":"Y034BG16E0C0"
1095
+ }
1096
+ ]
1097
+ }
1098
+ + Response 400
1099
+ + Response 401
1100
+ + Response 404
1101
+ + Response 409
1102
+ + Response 500