-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSG_Compute_postman_collection.json
681 lines (681 loc) · 92.2 KB
/
SG_Compute_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
{
"info": {
"_postman_id": "231875b2-0b55-4c5d-8851-79a95c61024f",
"name": "Compute",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "/_ping",
"event": [
{
"listen": "test",
"script": {
"id": "2565fe84-112b-4f6c-925b-011981e58335",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/_ping",
"host": [
"{{CONSOLE}}"
],
"path": [
"_ping"
]
}
},
"response": []
},
{
"name": "/scripts/defender.sh",
"event": [
{
"listen": "test",
"script": {
"id": "9fd90417-6a55-44ea-b240-a4b4148674fa",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/scripts/defender.sh",
"host": [
"{{CONSOLE}}"
],
"path": [
"scripts",
"defender.sh"
]
}
},
"response": []
},
{
"name": "/settings/proxy",
"event": [
{
"listen": "test",
"script": {
"id": "9cd5f8a0-9809-4b5f-b839-331005624ad6",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/settings/proxy",
"host": [
"{{CONSOLE}}"
],
"path": [
"settings",
"proxy"
]
}
},
"response": []
},
{
"name": "/settings/proxy Copy",
"event": [
{
"listen": "test",
"script": {
"id": "2a147a89-f0e8-4509-9e18-631543dbc8f6",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\"httpProxy\":\"http://my.proxy\",\"noProxy\":\"\",\"ca\":\"\",\"user\":\"\",\"password\":{\"encrypted\":\"\"}}"
},
"url": {
"raw": "{{CONSOLE}}/settings/proxy",
"host": [
"{{CONSOLE}}"
],
"path": [
"settings",
"proxy"
]
}
},
"response": []
},
{
"name": "/settings/intelligence",
"event": [
{
"listen": "test",
"script": {
"id": "8fa03dc2-e5e7-4e78-927a-3dbecc688dc4",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/settings/intelligence",
"host": [
"{{CONSOLE}}"
],
"path": [
"settings",
"intelligence"
]
}
},
"response": []
},
{
"name": "/defenders/summary",
"event": [
{
"listen": "test",
"script": {
"id": "473c7b98-c124-4586-8dda-221c93a7c5f0",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/defenders/summary",
"host": [
"{{CONSOLE}}"
],
"path": [
"defenders",
"summary"
]
}
},
"response": []
},
{
"name": "/settings/serverless",
"event": [
{
"listen": "test",
"script": {
"id": "473c7b98-c124-4586-8dda-221c93a7c5f0",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/settings/serverless",
"host": [
"{{CONSOLE}}"
],
"path": [
"settings",
"serverless"
]
}
},
"response": []
},
{
"name": "/policies/vulnerability/images",
"event": [
{
"listen": "test",
"script": {
"id": "359e863c-bdcc-425f-ae44-8c8cba72cb6b",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/policies/vulnerability/images",
"host": [
"{{CONSOLE}}"
],
"path": [
"policies",
"vulnerability",
"images"
]
}
},
"response": []
},
{
"name": "/policies/compliance/host",
"event": [
{
"listen": "test",
"script": {
"id": "b0840126-a615-475f-a9d7-be8b150305b5",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/policies/compliance/host",
"host": [
"{{CONSOLE}}"
],
"path": [
"policies",
"compliance",
"host"
]
}
},
"response": []
},
{
"name": "/policies/firewall/app/app-embedded",
"event": [
{
"listen": "test",
"script": {
"id": "275f5615-7196-4bc8-bf70-02e2b5cf6ee0",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/policies/firewall/app/app-embedded",
"host": [
"{{CONSOLE}}"
],
"path": [
"policies",
"firewall",
"app",
"app-embedded"
]
}
},
"response": []
},
{
"name": "/policies/compliance/host Copy",
"event": [
{
"listen": "test",
"script": {
"id": "24825477-3a10-4bc5-92ee-71d5e3e18aef",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"rules\": [\n {\n \"effect\": \"alert\",\n \"action\": [\n \"*\"\n ],\n \"condition\": {\n \"vulnerabilities\": [\n {\n \"id\": 16,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 200001,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 200002,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 200004,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 200005,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 200006,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 200007,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 200201,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 200202,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 200203,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 200400,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 200401,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 21,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 211,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 213,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 215,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 217,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 219,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 221,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 224,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 24,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 26,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 28,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 31,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 315,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 316,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 317,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 318,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 319,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 320,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 32,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 33,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 34,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 35,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 36,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 37,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 38,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6141,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6151,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6153,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 61612,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 61613,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 62110,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6216,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6218,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6219,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 62210,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 62211,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 62212,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 62213,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 62214,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 62216,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 62217,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6223,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6224,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6225,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6226,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6227,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6228,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6229,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6321,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6344,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6345,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6361,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 641113,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 64115,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 64116,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 64117,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 64118,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6412,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6518,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6521,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 65211,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6522,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6523,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6525,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6528,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6529,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 65414,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6612,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6613,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6614,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6615,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6616,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6617,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6618,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6619,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6621,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 66210,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 66213,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 66215,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 66216,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 66217,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 66218,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6625,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6627,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6628,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 6629,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8111,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81111,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81112,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8112,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81120,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81122,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81123,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81126,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81127,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81128,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81129,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81130,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81131,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81132,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81133,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81137,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81138,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8114,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8115,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8116,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8117,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8118,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8133,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8134,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8135,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8136,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8141,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81410,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81411,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81412,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81413,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81414,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81417,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81418,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81419,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81420,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8142,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81421,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81422,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81423,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81424,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81425,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81426,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81427,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81428,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 81429,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8143,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8144,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8145,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8146,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8147,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8148,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8149,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8151,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8152,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8153,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8154,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8155,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8156,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8211,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 82112,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 82113,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8212,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8213,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8214,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8215,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8223,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8224,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8225,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8226,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8227,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8228,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8229,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8230,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8231,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8232,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8233,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8234,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8311,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 83114,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 83117,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 83118,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 83119,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8313,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8314,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8315,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8316,\n \"block\": false,\n \"minSeverity\": 1\n },\n {\n \"id\": 8318,\n \"block\": false,\n \"minSeverity\": 1\n }\n ]\n },\n \"blockMsg\": \"Please open a ticket at https://helpdesk.demobuild.org\",\n \"principal\": [],\n \"group\": [\n \"*\"\n ],\n \"namespace\": [\n \"*\"\n ],\n \"verbose\": true,\n \"resources\": {\n \"hosts\": [\n \"*\"\n ],\n \"accountIDs\": [\n \"*\"\n ],\n \"clusters\": [\n \"*\"\n ],\n \"labels\": [\n \"*\"\n ]\n },\n \"allCompliance\": true,\n \"onlyFixed\": false,\n \"cveRules\": [],\n \"tags\": [],\n \"name\": \"demo_build - alert on critical and high\",\n \"notes\": \"demo_build use only\"\n },\n {\n \"name\": \"Default - alert on critical and high\",\n \"effect\": \"alert\",\n \"resources\": {\n \"hosts\": [\n \"*\"\n ],\n \"accountIDs\": [\n \"*\"\n ],\n \"clusters\": [\n \"*\"\n ],\n \"labels\": [\n \"*\"\n ]\n },\n \"condition\": {\n \"readonly\": false,\n \"device\": \"\",\n \"vulnerabilities\": [\n {\n \"id\": 64118,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 441,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 62211,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81428,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 65211,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 62210,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6619,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 83114,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 66215,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81120,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6612,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81129,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81137,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 200400,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 320,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 65414,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 445,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8155,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 219,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81132,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 61613,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 200401,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81414,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8214,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 430,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6518,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81422,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 83117,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8115,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8311,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81122,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6625,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 317,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81426,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 62110,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 318,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81138,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 211,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81425,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 319,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 434,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6321,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6223,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 224,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 316,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8134,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8234,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 83119,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8151,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6226,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6216,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6629,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 442,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8141,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6227,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8147,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8316,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6218,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6345,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 221,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81427,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 427,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 62217,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 26,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 213,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 435,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 436,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 437,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6613,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81412,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8314,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 447,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 200007,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 28,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 200001,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 21,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8111,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6617,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 37,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 32,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 439,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 62214,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8152,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81111,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81126,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8143,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8225,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 200004,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6224,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 66213,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8146,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81410,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6614,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 66216,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8144,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 16,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81418,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 429,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 62212,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81413,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81417,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 62213,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 444,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8135,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6344,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 34,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 446,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81131,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 66210,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6225,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 200005,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 315,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8315,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8117,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8156,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8211,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 61612,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8227,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8313,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 64117,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 443,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8116,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6361,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8213,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6522,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8233,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8133,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8230,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 64115,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 217,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6151,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 100003,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8223,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 215,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8154,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81133,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 200202,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 33,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8215,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 641113,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 36,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81421,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8212,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8229,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6523,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 35,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6228,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8142,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 200203,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81130,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8136,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81424,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6528,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6529,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8114,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81419,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6219,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 100001,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 433,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 62216,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6521,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81127,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6412,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 200002,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81429,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 83118,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6628,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8224,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 200006,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81123,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6229,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8145,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 100013,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 82112,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8318,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6525,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81420,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 66217,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 31,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8149,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8232,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 38,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8118,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81128,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8228,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6141,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 64116,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8231,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6616,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 66218,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 431,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6153,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 82113,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6618,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 100002,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81112,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8153,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8226,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6621,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 24,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 200201,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81423,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 81411,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6615,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8112,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 8148,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 432,\n \"block\": false,\n \"minSeverity\": 0\n },\n {\n \"id\": 6627,\n \"block\": false,\n \"minSeverity\": 0\n }\n ]\n },\n \"alertThreshold\": {\n \"disabled\": false,\n \"value\": 0\n },\n \"blockThreshold\": {\n \"enabled\": false,\n \"value\": 0\n },\n \"graceDays\": 0\n }\n ],\n \"policyType\": \"hostCompliance\",\n \"_id\": \"hostCompliance\",\n \"type\": \"compliance\",\n \"policyContext\": \"host\"\n}"
},
"url": {
"raw": "{{CONSOLE}}/policies/compliance/host",
"host": [
"{{CONSOLE}}"
],
"path": [
"policies",
"compliance",
"host"
]
}
},
"response": []
},
{
"name": "/policies/vulnerability/images",
"event": [
{
"listen": "test",
"script": {
"id": "f68cff6c-c072-4f43-a487-d23cf7ae87a9",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"rules\": [\n {\n \"owner\": \"system\",\n \"name\": \"ATO-FrontEnd\",\n \"notes\": \"Images within the CI build process label ato:ATO-FrontEnd\",\n \"effect\": \"alert, block\",\n \"resources\": {\n \"hosts\": [\n \"*\"\n ],\n \"images\": [\n \"*\"\n ],\n \"labels\": [\n \"ato:ATO-FrontEnd\"\n ],\n \"containers\": [\n \"*\"\n ],\n \"namespaces\": [\n \"*\"\n ],\n \"accountIDs\": [\n \"*\"\n ],\n \"clusters\": [\n \"*\"\n ]\n },\n \"action\": [\n \"*\"\n ],\n \"condition\": {\n \"readonly\": false,\n \"device\": \"\",\n \"vulnerabilities\": []\n },\n \"group\": [\n \"*\"\n ],\n \"blockMsg\": \"This container is not allowed to start due to ATO-FrontEnd vulnerability policy.\",\n \"alertThreshold\": {\n \"disabled\": false,\n \"value\": 1\n },\n \"blockThreshold\": {\n \"enabled\": true,\n \"value\": 1\n },\n \"tags\": [\n {\n \"effect\": \"ignore\",\n \"name\": \"ATO-FrontEnd-Mitigating_Controls\",\n \"description\": \"Ignore mitigating controls for 1 yr\",\n \"expiration\": {\n \"enabled\": true,\n \"date\": \"2021-07-02T07:00:00Z\"\n }\n },\n {\n \"effect\": \"ignore\",\n \"name\": \"ATO-FrontEnd-POAM\",\n \"description\": \"Ignore POAMed vulnerabilities for 6 months\",\n \"expiration\": {\n \"enabled\": true,\n \"date\": \"2021-01-02T08:00:00Z\"\n }\n }\n ],\n \"disabled\": true\n },\n {\n \"effect\": \"alert\",\n \"action\": [\n \"*\"\n ],\n \"condition\": {\n \"vulnerabilities\": []\n },\n \"blockMsg\": \"Please open a ticket at https://helpdesk.demobuild.org\",\n \"principal\": [],\n \"group\": [\n \"*\"\n ],\n \"namespace\": [\n \"*\"\n ],\n \"verbose\": true,\n \"resources\": {\n \"containers\": [\n \"*\"\n ],\n \"images\": [\n \"*\"\n ],\n \"hosts\": [\n \"*\"\n ],\n \"labels\": [\n \"product:Sock Shop\"\n ],\n \"namespaces\": [\n \"*\"\n ],\n \"accountIDs\": [\n \"*\"\n ],\n \"clusters\": [\n \"*\"\n ]\n },\n \"allCompliance\": false,\n \"onlyFixed\": false,\n \"cveRules\": [],\n \"tags\": [],\n \"alertThreshold\": {\n \"value\": 1,\n \"disabled\": false\n },\n \"blockThreshold\": {\n \"value\": 0,\n \"enabled\": false\n },\n \"name\": \"demo_build - Product Sock Shop\",\n \"notes\": \"demo_build use only\"\n },\n {\n \"owner\": \"system\",\n \"name\": \"Default - ignore Twistlock components\",\n \"effect\": \"alert\",\n \"resources\": {\n \"hosts\": [\n \"*\"\n ],\n \"images\": [\n \"*twistlock/defender*\",\n \"*twistlock/console*\"\n ],\n \"labels\": [\n \"*\"\n ],\n \"containers\": [\n \"*\"\n ],\n \"namespaces\": [\n \"*\"\n ],\n \"accountIDs\": [\n \"*\"\n ],\n \"clusters\": [\n \"*\"\n ]\n },\n \"action\": [\n \"*\"\n ],\n \"condition\": {\n \"readonly\": false,\n \"device\": \"\",\n \"vulnerabilities\": []\n },\n \"group\": [\n \"*\"\n ],\n \"alertThreshold\": {\n \"disabled\": false,\n \"value\": 7\n },\n \"blockThreshold\": {\n \"enabled\": false,\n \"value\": 0\n },\n \"cveRules\": [],\n \"graceDays\": 0\n },\n {\n \"name\": \"demo_build - alert all components\",\n \"notes\": \"demo_build use only\",\n \"effect\": \"alert\",\n \"resources\": {\n \"hosts\": [\n \"*\"\n ],\n \"images\": [\n \"*\"\n ],\n \"labels\": [\n \"*\"\n ],\n \"containers\": [\n \"*\"\n ],\n \"namespaces\": [\n \"*\"\n ],\n \"accountIDs\": [\n \"*\"\n ],\n \"clusters\": [\n \"*\"\n ]\n },\n \"action\": [\n \"*\"\n ],\n \"condition\": {\n \"readonly\": false,\n \"device\": \"\",\n \"vulnerabilities\": []\n },\n \"group\": [\n \"*\"\n ],\n \"blockMsg\": \"Please open a ticket at https://helpdesk.demobuild.org\",\n \"verbose\": true,\n \"alertThreshold\": {\n \"disabled\": false,\n \"value\": 1\n },\n \"blockThreshold\": {\n \"enabled\": false,\n \"value\": 0\n },\n \"graceDays\": 0\n },\n {\n \"owner\": \"system\",\n \"name\": \"Default - alert all components\",\n \"effect\": \"alert\",\n \"resources\": {\n \"hosts\": [\n \"*\"\n ],\n \"images\": [\n \"*\"\n ],\n \"labels\": [\n \"*\"\n ],\n \"containers\": [\n \"*\"\n ],\n \"namespaces\": [\n \"*\"\n ],\n \"accountIDs\": [\n \"*\"\n ],\n \"clusters\": [\n \"*\"\n ]\n },\n \"condition\": {\n \"readonly\": false,\n \"device\": \"\",\n \"vulnerabilities\": []\n },\n \"alertThreshold\": {\n \"disabled\": false,\n \"value\": 0\n },\n \"blockThreshold\": {\n \"enabled\": false,\n \"value\": 0\n },\n \"graceDays\": 0\n },\n {\n \"name\": \"demo_build - Ignore All\",\n \"notes\": \"demo_build use only\",\n \"effect\": \"ignore\",\n \"resources\": {\n \"hosts\": [\n \"*\"\n ],\n \"images\": [\n \"*\"\n ],\n \"labels\": [\n \"*\"\n ],\n \"containers\": [\n \"*\"\n ],\n \"namespaces\": [\n \"*\"\n ],\n \"accountIDs\": [\n \"*\"\n ],\n \"clusters\": [\n \"*\"\n ]\n },\n \"action\": [\n \"*\"\n ],\n \"condition\": {\n \"readonly\": false,\n \"device\": \"\",\n \"vulnerabilities\": []\n },\n \"group\": [\n \"*\"\n ],\n \"alertThreshold\": {\n \"disabled\": true,\n \"value\": 0\n },\n \"blockThreshold\": {\n \"enabled\": false,\n \"value\": 0\n },\n \"graceDays\": 0\n }\n ],\n \"policyType\": \"containerVulnerability\",\n \"_id\": \"containerVulnerability\",\n \"type\": \"vulnerability\",\n \"policyContext\": \"images\"\n}"
},
"url": {
"raw": "{{CONSOLE}}/policies/vulnerability/images",
"host": [
"{{CONSOLE}}"
],
"path": [
"policies",
"vulnerability",
"images"
]
}
},
"response": []
},
{
"name": "/settings/serverless",
"event": [
{
"listen": "test",
"script": {
"id": "473c7b98-c124-4586-8dda-221c93a7c5f0",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "[\n {\n \"provider\": \"aws\",\n \"region\": \"us-east-1\",\n \"pattern\": \"\",\n \"useAWSRole\": false,\n \"credential\": {\n \"_id\": \"AWS\"\n },\n \"cap\": 50\n }\n]"
},
"url": {
"raw": "{{CONSOLE}}/settings/serverless",
"host": [
"{{CONSOLE}}"
],
"path": [
"settings",
"serverless"
]
}
},
"response": []
},
{
"name": "/settings/serverless-auto-protect",
"event": [
{
"listen": "test",
"script": {
"id": "29839191-3429-4ab2-ac70-2e84486f0eb4",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "[{\n \"name\": \"Protect2\",\n \"region\": \"us-east-1\",\n \"consoleAddr\": \"<CONSOLE-NAME\",\n \"useAWSRole\": false,\n \"credentialID\": \"<CREDENTIAL-NAME\",\n \"roleArn\": \"\",\n \"resource\": {\n \"functions\": [\n \"12345\"\n ]\n },\n \"runtimes\": [\n \"*\"\n ]\n}]",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{CONSOLE}}/settings/serverless-auto-protect",
"host": [
"{{CONSOLE}}"
],
"path": [
"settings",
"serverless-auto-protect"
]
}
},
"response": []
},
{
"name": "/users",
"event": [
{
"listen": "test",
"script": {
"id": "473c7b98-c124-4586-8dda-221c93a7c5f0",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/users",
"host": [
"{{CONSOLE}}"
],
"path": [
"users"
]
}
},
"response": []
},
{
"name": "policies/compliance/container",
"event": [
{
"listen": "test",
"script": {
"id": "f761f734-19c6-4688-a5d0-8b170d2ea81a",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/policies/compliance/container",
"host": [
"{{CONSOLE}}"
],
"path": [
"policies",
"compliance",
"container"
]
}
},
"response": []
},
{
"name": "policies/compliance/host",
"event": [
{
"listen": "test",
"script": {
"id": "8edfa2c3-084c-4124-b40b-9b6e050768ce",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/policies/compliance/host",
"host": [
"{{CONSOLE}}"
],
"path": [
"policies",
"compliance",
"host"
]
}
},
"response": []
},
{
"name": "policies/compliance/ci/images",
"event": [
{
"listen": "test",
"script": {
"id": "af65cf35-6093-4333-8283-83720af3ebef",
"exec": [
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{CONSOLE}}/policies/compliance/ci/images",
"host": [
"{{CONSOLE}}"
],
"path": [
"policies",
"compliance",
"ci",
"images"
]
}
},
"response": []
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{AUTH-TOKEN}}",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "606bb0da-abed-4c53-a71d-9d1510844f48",
"type": "text/javascript",
"exec": [
"var gatewayBaseUrl = pm.environment.get('CONSOLE');",
"var username = pm.environment.get('USERNAME');",
"var password = pm.environment.get('PASSWORD');",
"",
"var sdk = require('postman-collection');",
"",
"var isValidTokenRequest = new sdk.Request({",
" url: gatewayBaseUrl + \"/settings/intelligence\", // Use an endpoint that requires being authenticated",
" method: 'GET',",
" header: [",
" new sdk.Header({",
" key: 'content-type',",
" value: 'application/json',",
" }),",
" new sdk.Header({",
" key: 'acccept',",
" value: 'application/json',",
" }),",
" new sdk.Header({",
" key: 'Authorization',",
" value: 'Bearer ' + pm.globals.get(\"AUTH-TOKEN\"),",
" }),",
" ]",
"});",
"",
"pm.sendRequest(isValidTokenRequest, function (err, response) {",
" if (response.code === 401) {",
" refreshToken();",
" }",
"});",
"",
"function refreshToken() {",
" var tokenRequest = new sdk.Request({",
" url: gatewayBaseUrl + \"/authenticate\",",
" method: 'POST',",
" header: [",
" new sdk.Header({",
" key: 'content-type',",
" value: 'application/json'",
" }),",
" new sdk.Header({",
" key: 'acccept',",
" value: 'application/json'",
" }),",
" ],",
" body: {",
" mode: 'raw',",
" raw: JSON.stringify({",
" username: username,",
" password: password",
" })",
" } ",
" });",
"",
" pm.sendRequest(tokenRequest, function (err, response) {",
" if (err) {",
" throw err;",
" }",
" ",
" if (response.code !== 200) {",
" throw new Error('Could not log in.');",
" }",
" ",
" pm.globals.set(\"AUTH-TOKEN\", response.json().token);",
" console.log(`New token has been set: ${response.json().token}`);",
" });",
"}"
]
}
},
{
"listen": "test",
"script": {
"id": "87af9d0e-624e-4d57-8b3c-407667f21165",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
}