-
Notifications
You must be signed in to change notification settings - Fork 1
/
BasicAPIC.postman_collection.json
759 lines (759 loc) · 30.1 KB
/
BasicAPIC.postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
{
"variables": [],
"info": {
"name": "BasicAPIC",
"_postman_id": "2f02f67c-a58b-9272-b631-b33e9b2cdcc7",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "APIC Configuration",
"description": "",
"item": [
{
"name": "Create ANP with 3tier app",
"request": {
"url": "https://{{URL}}/api/mo/uni/tn-{{TENANTNAME}}.xml",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "<fvTenant name=\"{{TENANTNAME}}\">\n\n <fvAp name=\"OnlineStore\">\n <fvAEPg name=\"web\">\n <fvRsBd tnFvBDName=\"bd1\"/>\n <fvRsCons tnVzBrCPName=\"rmi\"/>\n <fvRsProv tnVzBrCPName=\"web\"/>\n <fvRsDomAtt tDn=\"uni/vmmp-VMware/dom-datacenter\"/>\n </fvAEPg>\n\n <fvAEPg name=\"db\">\n <fvRsBd tnFvBDName=\"bd1\"/>\n <fvRsProv tnVzBrCPName=\"sql\"/>\n <fvRsDomAtt tDn=\"uni/vmmp-VMware/dom-datacenter\"/>\n </fvAEPg>\n\n <fvAEPg name=\"app\">\n <fvRsBd tnFvBDName=\"bd1\"/>\n <fvRsProv tnVzBrCPName=\"rmi\"/>\n <fvRsCons tnVzBrCPName=\"sql\"/>\n <fvRsDomAtt tDn=\"uni/vmmp-VMware/dom-datacenter\"/>\n </fvAEPg>\n </fvAp>\n \n <vzFilter name=\"http\" >\n <vzEntry dFromPort=\"80\" name=\"DPort-80\" prot=\"tcp\" etherT=\"ip\" />\n <vzEntry dFromPort=\"443\" name=\"DPort-443\" prot=\"tcp\" etherT=\"ip\" />\n </vzFilter>\n \n <vzFilter name=\"rmi\" >\n <vzEntry dFromPort=\"1099\" name=\"DPort-1099\" prot=\"tcp\" etherT=\"ip\" />\n </vzFilter>\n \n <vzFilter name=\"sql\">\n <vzEntry dFromPort=\"1521\" name=\"DPort-1521\" prot=\"tcp\" etherT=\"ip\" />\n </vzFilter>\n \n <vzBrCP name=\"web\">\n <vzSubj name=\"web\">\n <vzRsSubjFiltAtt tnVzFilterName=\"http\"/>\n </vzSubj>\n </vzBrCP>\n\n <vzBrCP name=\"rmi\">\n <vzSubj name=\"rmi\">\n <vzRsSubjFiltAtt tnVzFilterName=\"rmi\"/>\n </vzSubj>\n </vzBrCP>\n\n <vzBrCP name=\"sql\">\n <vzSubj name=\"sql\">\n <vzRsSubjFiltAtt tnVzFilterName=\"sql\"/>\n </vzSubj>\n </vzBrCP> \n</fvTenant>"
},
"description": "Edit data below with app details"
},
"response": []
},
{
"name": "Delete a Tenant",
"request": {
"url": "https://{{URL}}/api/mo/uni/tn-{{TENANTNAME}}.xml",
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"description": ""
},
"response": []
},
{
"name": "Add a User",
"request": {
"url": "https://{{URL}}/api/mo/uni/userext/user-georgewa.json",
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"aaaUser\" : {\n \"attributes\" : {\n \"pwd\" : \"password1\",\n \"firstName\" : \"George\"\n \"lastName\" : \"Washington\",\n \"phone\" : \"4085551212\",\n \"email\" : \"[email protected]\"\n },\n \"children\" : [{\n \"aaaUserDomain\" : {\n \"attributes\" : {\n \"name\" : \"ExampleCorp\"\n },\n \"children\" : [{\n \"aaaUserRole\" : {\n \"attributes\" : {\n \"name\" : \"admin\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n}"
},
"description": "Edit the username in the URL. Example replace georgewa with \nuser to add"
},
"response": []
},
{
"name": "Delete a User",
"request": {
"url": "https://{{URL}}/api/mo/uni/userext/user-georgewa.json",
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"description": "Edit the username in the URL. Example replace georgewa with \nuser to delete"
},
"response": []
},
{
"name": "Create syslog",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/fabric/slgroup-{{SYSLOGNAME}}.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"syslogGroup\": {\n \"attributes\": {\n \"dn\": \"uni/fabric/slgroup-{{SYSLOGNAME}}\",\n \"name\": \"{{SYSLOGNAME}}\",\n \"rn\": \"slgroup-{{SYSLOGNAME}}\",\n \"status\": \"created\"\n },\n \"children\": [\n {\n \"syslogConsole\": {\n \"attributes\": {\n \"dn\": \"uni/fabric/slgroup-{{SYSLOGNAME}}/console\",\n \"rn\": \"console\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n },\n {\n \"syslogFile\": {\n \"attributes\": {\n \"dn\": \"uni/fabric/slgroup-{{SYSLOGNAME}}/file\",\n \"rn\": \"file\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n },\n {\n \"syslogProf\": {\n \"attributes\": {\n \"dn\": \"uni/fabric/slgroup-{{SYSLOGNAME}}/prof\",\n \"rn\": \"prof\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n },\n {\n \"syslogRemoteDest\": {\n \"attributes\": {\n \"dn\": \"uni/fabric/slgroup-{{SYSLOGNAME}}/rdst-10.1.1.1\",\n \"host\": \"10.1.1.1\",\n \"name\": \"syslogServer\",\n \"rn\": \"rdst-{{SYSLOGDEST}}\",\n \"status\": \"created\"\n },\n \"children\": [\n {\n \"fileRsARemoteHostToEpg\": {\n \"attributes\": {\n \"tDn\": \"uni/tn-mgmt/mgmtp-default/oob-default\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n }\n ]\n }\n }\n ]\n }\n}"
},
"description": ""
},
"response": []
},
{
"name": "Create a Bridge Domain and tie with Private Net",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/tn-{{TENANTNAME}}.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\"fvTenant\":{\"attributes\":{\"dn\":\"uni/tn-{{TENANTNAME}}\",\"status\":\"modified\"},\n\"children\":[{\"fvBD\":{\"attributes\":{\"dn\":\"uni/tn-{{TENANTNAME}}/BD-{{BDNAME}}\",\"mac\":\"00:22:BD:F8:19:FF\",\"name\":\"{{BDNAME}}\",\"rn\":\"BD-{{BDNAME}}\",\"status\":\"created\"},\n\"children\":[{\"fvRsCtx\":{\"attributes\":{\"tnFvCtxName\":\"{{PNETNAME}}\",\"status\":\"created,modified\"},\n\"children\":[]}},{\"fvSubnet\":{\"attributes\":\n {\"dn\":\"uni/tn-{{TENANTNAME}}/BD-{{BDNAME}}/subnet-[10.100.2.1/24]\",\"ip\":\"10.100.2.1/24\",\"rn\":\"subnet-[10.100.2.1/24]\",\"status\":\"created\"},\"\nchildren\":[]}}]}},{\"fvCtx\":{\"attributes\":{\"dn\":\"uni/tn-{{TENANTNAME}}/ctx-{{PNETNAME}}\",\"name\":\"{{PNETNAME}}\",\"rn\":\"ctx-{{PNETNAME}}\",\"status\":\"created\"},\"children\":[]}}]}}"
},
"description": "Requires Basic login\nRequires variables set in Environment \nChange line 5 with your IP address settings. "
},
"response": []
},
{
"name": "Create a Tenant",
"request": {
"url": " https://{{URL}}/api/mo/uni.xml",
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "<fvTenant name=\"{{TENANTNAME}}\"/>"
},
"description": "Basic login"
},
"response": []
},
{
"name": "Create a Taboo Contract",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/tn-{{TENANTNAME}}.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"vzTaboo\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/taboo-{{TABCONTRACT}}\",\n \"name\": \"{{TABCONTRACT}}\",\n \"rn\": \"taboo-{{TABCONTRACT}}\",\n \"status\": \"created\"\n },\n \"children\": [\n {\n \"vzTSubj\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/taboo-{{TABCONTRACT}}/tsubj-{{SUBJECT}}\",\n \"name\": \"{{SUBJECT}}\",\n \"rn\": \"tsubj-{{SUBJECT}}\",\n \"status\": \"created\"\n },\n \"children\": [\n {\n \"vzRsDenyRule\": {\n \"attributes\": {\n \"tnVzFilterName\": \"http\",\n \"directives\": \"none,log\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n }\n ]\n }\n }\n ]\n }\n}"
},
"description": "Requires Basic login\nRequires environment varibles \nChange line for specific subject\n"
},
"response": []
},
{
"name": "Delete a Contract",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/tn-{{TENANT}}/brc-test123.json",
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": ""
},
"description": "Requires Basic login....\nEdit URL to use....\nEXAMPLE provided is test123...\nMake sure to just change the contract name! \nexample is brc-test123.json\n\n\n"
},
"response": []
},
{
"name": "Create a Contract",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/tn-{{TENANTNAME}}.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"vzBrCP\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/brc-{{CONTRACT}}\",\n \"name\": \"{{CONTRACT}}\",\n \"scope\": \"tenant\",\n \"rn\": \"{{CONTRACT}}\",\n \"status\": \"created\"\n },\n \"children\": [\n {\n \"vzSubj\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/brc-{{CONTRACT}}/subj-testsub\",\n \"name\": \"testsub\",\n \"rn\": \"subj-testsub\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n }\n ]\n }\n}"
},
"description": "Requires Basic login\nRequires environment varibles URL, TENANTNAME, and CONTRACT\nAlso builds a subject labeled testsub.\nTestsub should be changed to your subject name\n\n"
},
"response": []
},
{
"name": "Create a Filter",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/tn-{{TENANTNAME}}/flt-{{FILTER}}.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"vzFilter\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/flt-{{FILTER}}\",\n \"name\": \"{{FILTER}}\",\n \"rn\": \"flt-{{FILTER}}\",\n \"status\": \"created\"\n },\n \"children\": [\n {\n \"vzEntry\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/flt-{{FILTER}}/e-other123\",\n \"name\": \"other123\",\n \"etherT\": \"ip\",\n \"prot\": \"tcp\",\n \"sFromPort\": \"http\",\n \"sToPort\": \"http\",\n \"rn\": \"e-other123\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n }\n ]\n }\n}"
},
"description": "Requires Basic login...\nRequires environment varibles URL, TENANTNAME, and FILTER...\nBuild a access list called other123 for TCP source http to any\nEdit line 3 as required.\n\n\n"
},
"response": []
},
{
"name": "Create an EPG and associate with phy port",
"request": {
"url": "https://{{URL}}/api/node/mo/uni.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"fvAEPg\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/ap-{{ANPNAME}}/epg-{{EPGNAME}}\",\n \"name\": \"{{EPGNAME}}\",\n \"rn\": \"epg-{{EPGNAME}}\",\n \"status\": \"created\"\n },\n \"children\": [\n {\n \"fvCrtrn\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/ap-{{ANPNAME}}/epg-{{EPGNAME}}/crtrn\",\n \"name\": \"default\",\n \"rn\": \"crtrn\",\n \"status\": \"created,modified\"\n },\n \"children\": []\n }\n },\n {\n \"fvRsBd\": {\n \"attributes\": {\n \"tnFvBDName\": \"{{BDNAME}}\",\n \"status\": \"created,modified\"\n },\n \"children\": []\n }\n },\n {\n \"fvRsDomAtt\": {\n \"attributes\": {\n \"tDn\": \"uni/phys-phys\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n },\n {\n \"fvRsNodeAtt\": {\n \"attributes\": {\n \"tDn\": \"topology/pod-1/node-101\",\n \"encap\": \"vlan-100\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n }\n ]\n }\n}"
},
"description": "\n\n"
},
"response": []
},
{
"name": "Associate EPG with contract",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/tn-{{TENANTNAME}}/ap-{{ANPNAME}}/epg-{{EPGNAME}}.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"fvRsProv\": {\n \"attributes\": {\n \"tnVzBrCPName\": \"{{CONTRACT}}\"\n },\n \"children\": []\n }\n}"
},
"description": "\n\n"
},
"response": []
}
]
},
{
"name": "APIC_Configuration_Networking",
"description": "",
"item": [
{
"name": "Create a Private Network",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/tn-{{TENANTNAME}}/ctx-{{PNETNAME}}.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"fvCtx\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/ctx-{{PNETNAME}}\",\n \"name\": \"{{PNETNAME}}\",\n \"rn\": \"{{PNETNAME}}\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n}"
},
"description": "Requires Basic login"
},
"response": []
},
{
"name": "Create a Bridge Domain and Private Net",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/tn-{{TENANTNAME}}.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"fvTenant\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}\",\n \"status\": \"modified\"\n },\n \"children\": [\n {\n \"fvBD\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/BD-{{BDNAME}}\",\n \"mac\": \"00:22:BD:F8:19:FF\",\n \"name\": \"{{BDNAME}}\",\n \"rn\": \"BD-{{BDNAME}}\",\n \"status\": \"created\"\n },\n \"children\": [\n {\n \"fvRsCtx\": {\n \"attributes\": {\n \"tnFvCtxName\": \"{{BDNAME}}\",\n \"status\": \"created,modified\"\n },\n \"children\": []\n }\n },\n {\n \"fvSubnet\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/BD-{{BDNAME}}/subnet-[10.100.2.1/24]\",\n \"ip\": \"10.100.2.1/24\",\n \"rn\": \"subnet-[10.100.2.1/24]\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n }\n ]\n }\n },\n {\n \"fvCtx\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/ctx-{{BDNAME}}\",\n \"name\": \"{{BDNAME}}\",\n \"rn\": \"ctx-{{BDNAME}}\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n }\n ]\n }\n}"
},
"description": "Requires Basic login.\nRequires varibales in environment.\nChange IP addresses in line 5"
},
"response": []
},
{
"name": "Create Layer3 Out",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/tn-{{TENANTNAME}}.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"l3extOut\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/out-{{ROUTEOUT}}\",\n \"name\": \"{{ROUTEOUT}}\",\n \"rn\": \"out-{{ROUTEOUT}}\",\n \"status\": \"created\"\n },\n \"children\": [\n {\n \"ospfExtP\": {\n \"attributes\": {\n \"dn\": \"uni/tn-{{TENANTNAME}}/out-{{ROUTEOUT}}/ospfExtP\",\n \"areaId\": \"50\",\n \"areaType\": \"regular\",\n \"rn\": \"ospfExtP\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n },\n {\n \"l3extRsEctx\": {\n \"attributes\": {\n \"tnFvCtxName\": \"{{BDNAME}}\",\n \"status\": \"created,modified\"\n },\n \"children\": []\n }\n },\n {\n \"l3extRsL3DomAtt\": {\n \"attributes\": {\n \"tDn\": \"uni/l3dom-l3out\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n }\n ]\n }\n}\n\n"
},
"description": "Requires Basic login.\nRequires varibales in environment.\n"
},
"response": []
},
{
"name": "Associate l3 out with bridge domain",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/tn-{{TENANTNAME}}/BD-{{BDNAME}}.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\"fvRsBDToOut\":{\"attributes\":{\"tnL3extOutName\":\"{{ROUTEOUT}}\",\"status\":\"created\"},\"children\":[]}}\n\n"
},
"description": "Requires Basic login.\nRequires varibales in environment.\n"
},
"response": []
}
]
},
{
"name": "APIC_VMM_Configuration",
"description": "",
"item": [
{
"name": "Create a Vlan Pool",
"request": {
"url": "https://{{URL}}/api/node/mo/uni.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"fvnsVlanInstP\": {\n \"attributes\": {\n \"dn\": \"uni/infra/vlanns-[{{VLANPOOL}}]-dynamic\",\n \"name\": \"{{VLANPOOL}}\",\n \"rn\": \"vlanns-[{{VLANPOOL}}]-dynamic\",\n \"status\": \"created\"\n },\n \"children\": [\n {\n \"fvnsEncapBlk\": {\n \"attributes\": {\n \"dn\": \"uni/infra/vlanns-[{{VLANPOOL}}]-dynamic/from-[vlan-{{VLANPOOLSTART}}]-to-[vlan-{{VLANPOOLSTOP}}]\",\n \"from\": \"vlan-{{VLANPOOLSTART}}\",\n \"to\": \"vlan-{{VLANPOOLSTOP}}\",\n \"allocMode\": \"dynamic\",\n \"rn\": \"from-[vlan-{{VLANPOOLSTART}}]-to-[vlan-{{VLANPOOLSTOP}}]\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n }\n ]\n }\n}"
},
"description": "Requires URL VLANPOOL (name) \nVLANPOOLSTART (vlan number) VLANPOOLSTOP (vlan number)\nBuilds a dynamic pool\n\n"
},
"response": []
},
{
"name": "Add a vCenter",
"request": {
"url": "https://{{URL}}/api/node/mo/uni.json",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"vmmDomP\": {\n \"attributes\": {\n \"dn\": \"uni/vmmp-VMware/dom-{{VMDOMAIN}}\",\n \"name\": \"{{VMDOMAIN}}\",\n \"rn\": \"dom-{{VMDOMAIN}}\",\n \"status\": \"created\"\n },\n \"children\": [\n {\n \"infraRsVlanNs\": {\n \"attributes\": {\n \"tDn\": \"uni/infra/vlanns-[{{VLANPOOL}}]-dynamic\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n },\n {\n \"vmmUsrAccP\": {\n \"attributes\": {\n \"dn\": \"uni/vmmp-VMware/dom-{{VMDOMAIN}}/usracc-{{VMUSER}}\",\n \"name\": \"{{VMUSER}}\",\n \"usr\": \"{{VMUSER}}\",\n \"pwd\": \"{{VMPASS}}\",\n \"rn\": \"usracc-{{VMUSER}}\",\n \"status\": \"created\"\n },\n \"children\": []\n }\n }\n ]\n }\n}"
},
"description": "Requires URL, VMDOMAIN, VMUSER, VMPASS, and VLANPOOL\nCreate a vlan pool first.\n\n"
},
"response": []
}
]
},
{
"name": "Login - Do this first",
"description": "",
"item": [
{
"name": "Basic login",
"request": {
"url": " https://{{URL}}/api/aaaLogin.xml",
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "<aaaUser name=\"{{USERNAME}}\" pwd=\"{{PASSWORD}}\" />"
},
"description": ""
},
"response": []
},
{
"name": "Basic login JSON",
"request": {
"url": " https://{{URL}}/api/aaaLogin.json",
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\"aaaUser\": {\"attributes\": {\"name\": \"{{USERNAME}}\", \"pwd\": \"{{PASSWORD}}\"}}}"
},
"description": ""
},
"response": []
}
]
},
{
"name": "show commands",
"description": "",
"item": [
{
"name": "Unreachable Nodes",
"request": {
"url": "https://{{URL}}/api/node/class/fabricLooseNode.json",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Unmanaged Nodes",
"request": {
"url": "https://{{URL}}/api/node/class/fabricLooseNode.json",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Fabric Membership",
"request": {
"url": "https://{{URL}}/api/node/class/topSystem.json?query-target=subtree&target-subtree-class=firmwareCtrlrRunning",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Cluster Health",
"request": {
"url": "https://{{URL}}/api/node/mo/topology/pod-1/node-1/av.json?query-target=children&target-subtree-class=infraWiNode",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Overall Fabric Health",
"request": {
"url": "https://{{URL}}/api/node/mo/topology/HDfabricOverallHealth5min-0.json",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Fault Sumary",
"request": {
"url": "https://{{URL}}/api/node/class/faultSummary.json?order-by=faultSummary.severity|desc&page=0&page-size=15",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Query a Node",
"request": {
"url": " https://{{URL}}//api/node/mo/topology/pod-1/node-103.json?query-target=self&rsp-subtree-include=health",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Show installed device packages",
"request": {
"url": "https://{{URL}}/api/node/mo/uni/infra.json?query-target=subtree&target-subtree-class=vnsMDev",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Tenant Details",
"request": {
"url": "https://{{URL}}/api/mo/uni/tn-{{TENANTNAME}}.json",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Tenant Fault Counts",
"request": {
"url": "https://{{URL}}/api/mo/uni/tn-{{TENANTNAME}}/fltCnts.json",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Tenant Health",
"request": {
"url": "https://{{URL}}/api/mo/uni/tn-{{TENANTNAME}}/health.json",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "All Top Level elements ",
"request": {
"url": "https://{{URL}}/api/class/topSystem.json",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Show APIC Version",
"request": {
"url": "https://{{URL}}/api/node/class/fabricNode.json",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Show Proc on APIC",
"request": {
"url": "https://{{URL}}/api/node/class/topology/pod-1/node-1/procEntry.json",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Show all Tenants",
"request": {
"url": "https://{{URL}}/api/class/fvTenant.json",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "List Child Objects in Tenants",
"request": {
"url": "https://{{URL}}/api/class/fvTenant.json?query-target=children",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Show Bridge Domains",
"request": {
"url": "https://{{URL}}/api/class/fvTenant.json?query-target=subtree&target-subtree-class=fvBD",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "List non-default tenants",
"request": {
"url": "https://{{URL}}/api/class/fvTenant.json?query-target-filter=and(ne(fvTenant.name,\"common\"),ne(fvTenant.name,\"infra\"),ne(fvTenant.name,\"mgmt\"))",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "List all bridge domains with health",
"request": {
"url": "https://{{URL}}/api/mo/uni/tn-{{TENANTNAME}}.json?query-target=subtree&target-subtree-class=fvBD&rsp-subtree-include=health",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Show Global End Points",
"request": {
"url": "https://{{URL}}/api/node/class/fvCEp.json?rsp-subtree=children&order-by=fvCEp.mac|asc&page=0&page-size=15",
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "text/xml",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
}
]
}
]
}