waf-2015-08-24.examples.json (30487B)
1 { 2 "version": "1.0", 3 "examples": { 4 "CreateByteMatchSet": [ 5 { 6 "input": { 7 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 8 "Name": "ByteMatchNameExample" 9 }, 10 "output": { 11 "ByteMatchSet": { 12 "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5", 13 "Name": "ByteMatchNameExample" 14 }, 15 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 16 }, 17 "comments": { 18 "input": { 19 }, 20 "output": { 21 } 22 }, 23 "description": "The following example creates a byte match set named ByteMatchNameExample.", 24 "id": "createbytematchset-1473272359328", 25 "title": "To create a byte match set" 26 } 27 ], 28 "CreateIPSet": [ 29 { 30 "input": { 31 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 32 "Name": "MyIPSetFriendlyName" 33 }, 34 "output": { 35 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 36 "IPSet": { 37 "IPSetDescriptors": [ 38 { 39 "Type": "IPV4", 40 "Value": "192.0.2.44/32" 41 } 42 ], 43 "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 44 "Name": "MyIPSetFriendlyName" 45 } 46 }, 47 "comments": { 48 "input": { 49 }, 50 "output": { 51 } 52 }, 53 "description": "The following example creates an IP match set named MyIPSetFriendlyName.", 54 "id": "createipset-1472501003122", 55 "title": "To create an IP set" 56 } 57 ], 58 "CreateRule": [ 59 { 60 "input": { 61 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 62 "MetricName": "WAFByteHeaderRule", 63 "Name": "WAFByteHeaderRule" 64 }, 65 "output": { 66 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 67 "Rule": { 68 "MetricName": "WAFByteHeaderRule", 69 "Name": "WAFByteHeaderRule", 70 "Predicates": [ 71 { 72 "DataId": "MyByteMatchSetID", 73 "Negated": false, 74 "Type": "ByteMatch" 75 } 76 ], 77 "RuleId": "WAFRule-1-Example" 78 } 79 }, 80 "comments": { 81 "input": { 82 }, 83 "output": { 84 } 85 }, 86 "description": "The following example creates a rule named WAFByteHeaderRule.", 87 "id": "createrule-1474072675555", 88 "title": "To create a rule" 89 } 90 ], 91 "CreateSizeConstraintSet": [ 92 { 93 "input": { 94 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 95 "Name": "MySampleSizeConstraintSet" 96 }, 97 "output": { 98 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 99 "SizeConstraintSet": { 100 "Name": "MySampleSizeConstraintSet", 101 "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 102 "SizeConstraints": [ 103 { 104 "ComparisonOperator": "GT", 105 "FieldToMatch": { 106 "Type": "QUERY_STRING" 107 }, 108 "Size": 0, 109 "TextTransformation": "NONE" 110 } 111 ] 112 } 113 }, 114 "comments": { 115 "input": { 116 }, 117 "output": { 118 } 119 }, 120 "description": "The following example creates size constraint set named MySampleSizeConstraintSet.", 121 "id": "createsizeconstraint-1474299140754", 122 "title": "To create a size constraint" 123 } 124 ], 125 "CreateSqlInjectionMatchSet": [ 126 { 127 "input": { 128 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 129 "Name": "MySQLInjectionMatchSet" 130 }, 131 "output": { 132 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 133 "SqlInjectionMatchSet": { 134 "Name": "MySQLInjectionMatchSet", 135 "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 136 "SqlInjectionMatchTuples": [ 137 { 138 "FieldToMatch": { 139 "Type": "QUERY_STRING" 140 }, 141 "TextTransformation": "URL_DECODE" 142 } 143 ] 144 } 145 }, 146 "comments": { 147 "input": { 148 }, 149 "output": { 150 } 151 }, 152 "description": "The following example creates a SQL injection match set named MySQLInjectionMatchSet.", 153 "id": "createsqlinjectionmatchset-1474492796105", 154 "title": "To create a SQL injection match set" 155 } 156 ], 157 "CreateWebACL": [ 158 { 159 "input": { 160 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 161 "DefaultAction": { 162 "Type": "ALLOW" 163 }, 164 "MetricName": "CreateExample", 165 "Name": "CreateExample" 166 }, 167 "output": { 168 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 169 "WebACL": { 170 "DefaultAction": { 171 "Type": "ALLOW" 172 }, 173 "MetricName": "CreateExample", 174 "Name": "CreateExample", 175 "Rules": [ 176 { 177 "Action": { 178 "Type": "ALLOW" 179 }, 180 "Priority": 1, 181 "RuleId": "WAFRule-1-Example" 182 } 183 ], 184 "WebACLId": "example-46da-4444-5555-example" 185 } 186 }, 187 "comments": { 188 "input": { 189 }, 190 "output": { 191 } 192 }, 193 "description": "The following example creates a web ACL named CreateExample.", 194 "id": "createwebacl-1472061481310", 195 "title": "To create a web ACL" 196 } 197 ], 198 "CreateXssMatchSet": [ 199 { 200 "input": { 201 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 202 "Name": "MySampleXssMatchSet" 203 }, 204 "output": { 205 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 206 "XssMatchSet": { 207 "Name": "MySampleXssMatchSet", 208 "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 209 "XssMatchTuples": [ 210 { 211 "FieldToMatch": { 212 "Type": "QUERY_STRING" 213 }, 214 "TextTransformation": "URL_DECODE" 215 } 216 ] 217 } 218 }, 219 "comments": { 220 "input": { 221 }, 222 "output": { 223 } 224 }, 225 "description": "The following example creates an XSS match set named MySampleXssMatchSet.", 226 "id": "createxssmatchset-1474560868500", 227 "title": "To create an XSS match set" 228 } 229 ], 230 "DeleteByteMatchSet": [ 231 { 232 "input": { 233 "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5", 234 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 235 }, 236 "output": { 237 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 238 }, 239 "comments": { 240 "input": { 241 }, 242 "output": { 243 } 244 }, 245 "description": "The following example deletes a byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.", 246 "id": "deletebytematchset-1473367566229", 247 "title": "To delete a byte match set" 248 } 249 ], 250 "DeleteIPSet": [ 251 { 252 "input": { 253 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 254 "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 255 }, 256 "output": { 257 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 258 }, 259 "comments": { 260 "input": { 261 }, 262 "output": { 263 } 264 }, 265 "description": "The following example deletes an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 266 "id": "deleteipset-1472767434306", 267 "title": "To delete an IP set" 268 } 269 ], 270 "DeleteRule": [ 271 { 272 "input": { 273 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 274 "RuleId": "WAFRule-1-Example" 275 }, 276 "output": { 277 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 278 }, 279 "comments": { 280 "input": { 281 }, 282 "output": { 283 } 284 }, 285 "description": "The following example deletes a rule with the ID WAFRule-1-Example.", 286 "id": "deleterule-1474073108749", 287 "title": "To delete a rule" 288 } 289 ], 290 "DeleteSizeConstraintSet": [ 291 { 292 "input": { 293 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 294 "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 295 }, 296 "output": { 297 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 298 }, 299 "comments": { 300 "input": { 301 }, 302 "output": { 303 } 304 }, 305 "description": "The following example deletes a size constraint set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 306 "id": "deletesizeconstraintset-1474299857905", 307 "title": "To delete a size constraint set" 308 } 309 ], 310 "DeleteSqlInjectionMatchSet": [ 311 { 312 "input": { 313 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 314 "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 315 }, 316 "output": { 317 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 318 }, 319 "comments": { 320 "input": { 321 }, 322 "output": { 323 } 324 }, 325 "description": "The following example deletes a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 326 "id": "deletesqlinjectionmatchset-1474493373197", 327 "title": "To delete a SQL injection match set" 328 } 329 ], 330 "DeleteWebACL": [ 331 { 332 "input": { 333 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 334 "WebACLId": "example-46da-4444-5555-example" 335 }, 336 "output": { 337 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 338 }, 339 "comments": { 340 "input": { 341 }, 342 "output": { 343 } 344 }, 345 "description": "The following example deletes a web ACL with the ID example-46da-4444-5555-example.", 346 "id": "deletewebacl-1472767755931", 347 "title": "To delete a web ACL" 348 } 349 ], 350 "DeleteXssMatchSet": [ 351 { 352 "input": { 353 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 354 "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 355 }, 356 "output": { 357 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 358 }, 359 "comments": { 360 "input": { 361 }, 362 "output": { 363 } 364 }, 365 "description": "The following example deletes an XSS match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 366 "id": "deletexssmatchset-1474561302618", 367 "title": "To delete an XSS match set" 368 } 369 ], 370 "GetByteMatchSet": [ 371 { 372 "input": { 373 "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5" 374 }, 375 "output": { 376 "ByteMatchSet": { 377 "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5", 378 "ByteMatchTuples": [ 379 { 380 "FieldToMatch": { 381 "Data": "referer", 382 "Type": "HEADER" 383 }, 384 "PositionalConstraint": "CONTAINS", 385 "TargetString": "badrefer1", 386 "TextTransformation": "NONE" 387 } 388 ], 389 "Name": "ByteMatchNameExample" 390 } 391 }, 392 "comments": { 393 "input": { 394 }, 395 "output": { 396 } 397 }, 398 "description": "The following example returns the details of a byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.", 399 "id": "getbytematchset-1473273311532", 400 "title": "To get a byte match set" 401 } 402 ], 403 "GetChangeToken": [ 404 { 405 "input": { 406 }, 407 "output": { 408 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 409 }, 410 "comments": { 411 "input": { 412 }, 413 "output": { 414 } 415 }, 416 "description": "The following example returns a change token to use for a create, update or delete operation.", 417 "id": "get-change-token-example-1471635120794", 418 "title": "To get a change token" 419 } 420 ], 421 "GetChangeTokenStatus": [ 422 { 423 "input": { 424 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 425 }, 426 "output": { 427 "ChangeTokenStatus": "PENDING" 428 }, 429 "comments": { 430 "input": { 431 }, 432 "output": { 433 } 434 }, 435 "description": "The following example returns the status of a change token with the ID abcd12f2-46da-4fdb-b8d5-fbd4c466928f.", 436 "id": "getchangetokenstatus-1474658417107", 437 "title": "To get the change token status" 438 } 439 ], 440 "GetIPSet": [ 441 { 442 "input": { 443 "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 444 }, 445 "output": { 446 "IPSet": { 447 "IPSetDescriptors": [ 448 { 449 "Type": "IPV4", 450 "Value": "192.0.2.44/32" 451 } 452 ], 453 "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 454 "Name": "MyIPSetFriendlyName" 455 } 456 }, 457 "comments": { 458 "input": { 459 }, 460 "output": { 461 } 462 }, 463 "description": "The following example returns the details of an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 464 "id": "getipset-1474658688675", 465 "title": "To get an IP set" 466 } 467 ], 468 "GetRule": [ 469 { 470 "input": { 471 "RuleId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 472 }, 473 "output": { 474 "Rule": { 475 "MetricName": "WAFByteHeaderRule", 476 "Name": "WAFByteHeaderRule", 477 "Predicates": [ 478 { 479 "DataId": "MyByteMatchSetID", 480 "Negated": false, 481 "Type": "ByteMatch" 482 } 483 ], 484 "RuleId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 485 } 486 }, 487 "comments": { 488 "input": { 489 }, 490 "output": { 491 } 492 }, 493 "description": "The following example returns the details of a rule with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 494 "id": "getrule-1474659238790", 495 "title": "To get a rule" 496 } 497 ], 498 "GetSampledRequests": [ 499 { 500 "input": { 501 "MaxItems": 100, 502 "RuleId": "WAFRule-1-Example", 503 "TimeWindow": { 504 "EndTime": "2016-09-27T15:50Z", 505 "StartTime": "2016-09-27T15:50Z" 506 }, 507 "WebAclId": "createwebacl-1472061481310" 508 }, 509 "output": { 510 "PopulationSize": 50, 511 "SampledRequests": [ 512 { 513 "Action": "BLOCK", 514 "Request": { 515 "ClientIP": "192.0.2.44", 516 "Country": "US", 517 "HTTPVersion": "HTTP/1.1", 518 "Headers": [ 519 { 520 "Name": "User-Agent", 521 "Value": "BadBot " 522 } 523 ], 524 "Method": "HEAD" 525 }, 526 "Timestamp": "2016-09-27T14:55Z", 527 "Weight": 1 528 } 529 ], 530 "TimeWindow": { 531 "EndTime": "2016-09-27T15:50Z", 532 "StartTime": "2016-09-27T14:50Z" 533 } 534 }, 535 "comments": { 536 "input": { 537 }, 538 "output": { 539 } 540 }, 541 "description": "The following example returns detailed information about 100 requests --a sample-- that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received between the time period 2016-09-27T15:50Z to 2016-09-27T15:50Z.", 542 "id": "getsampledrequests-1474927997195", 543 "title": "To get a sampled requests" 544 } 545 ], 546 "GetSizeConstraintSet": [ 547 { 548 "input": { 549 "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 550 }, 551 "output": { 552 "SizeConstraintSet": { 553 "Name": "MySampleSizeConstraintSet", 554 "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 555 "SizeConstraints": [ 556 { 557 "ComparisonOperator": "GT", 558 "FieldToMatch": { 559 "Type": "QUERY_STRING" 560 }, 561 "Size": 0, 562 "TextTransformation": "NONE" 563 } 564 ] 565 } 566 }, 567 "comments": { 568 "input": { 569 }, 570 "output": { 571 } 572 }, 573 "description": "The following example returns the details of a size constraint match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 574 "id": "getsizeconstraintset-1475005422493", 575 "title": "To get a size constraint set" 576 } 577 ], 578 "GetSqlInjectionMatchSet": [ 579 { 580 "input": { 581 "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 582 }, 583 "output": { 584 "SqlInjectionMatchSet": { 585 "Name": "MySQLInjectionMatchSet", 586 "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 587 "SqlInjectionMatchTuples": [ 588 { 589 "FieldToMatch": { 590 "Type": "QUERY_STRING" 591 }, 592 "TextTransformation": "URL_DECODE" 593 } 594 ] 595 } 596 }, 597 "comments": { 598 "input": { 599 }, 600 "output": { 601 } 602 }, 603 "description": "The following example returns the details of a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 604 "id": "getsqlinjectionmatchset-1475005940137", 605 "title": "To get a SQL injection match set" 606 } 607 ], 608 "GetWebACL": [ 609 { 610 "input": { 611 "WebACLId": "createwebacl-1472061481310" 612 }, 613 "output": { 614 "WebACL": { 615 "DefaultAction": { 616 "Type": "ALLOW" 617 }, 618 "MetricName": "CreateExample", 619 "Name": "CreateExample", 620 "Rules": [ 621 { 622 "Action": { 623 "Type": "ALLOW" 624 }, 625 "Priority": 1, 626 "RuleId": "WAFRule-1-Example" 627 } 628 ], 629 "WebACLId": "createwebacl-1472061481310" 630 } 631 }, 632 "comments": { 633 "input": { 634 }, 635 "output": { 636 } 637 }, 638 "description": "The following example returns the details of a web ACL with the ID createwebacl-1472061481310.", 639 "id": "getwebacl-1475006348525", 640 "title": "To get a web ACL" 641 } 642 ], 643 "GetXssMatchSet": [ 644 { 645 "input": { 646 "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 647 }, 648 "output": { 649 "XssMatchSet": { 650 "Name": "MySampleXssMatchSet", 651 "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 652 "XssMatchTuples": [ 653 { 654 "FieldToMatch": { 655 "Type": "QUERY_STRING" 656 }, 657 "TextTransformation": "URL_DECODE" 658 } 659 ] 660 } 661 }, 662 "comments": { 663 "input": { 664 }, 665 "output": { 666 } 667 }, 668 "description": "The following example returns the details of an XSS match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 669 "id": "getxssmatchset-1475187879017", 670 "title": "To get an XSS match set" 671 } 672 ], 673 "ListIPSets": [ 674 { 675 "input": { 676 "Limit": 100 677 }, 678 "output": { 679 "IPSets": [ 680 { 681 "IPSetId": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 682 "Name": "MyIPSetFriendlyName" 683 } 684 ] 685 }, 686 "comments": { 687 "input": { 688 }, 689 "output": { 690 } 691 }, 692 "description": "The following example returns an array of up to 100 IP match sets.", 693 "id": "listipsets-1472235676229", 694 "title": "To list IP sets" 695 } 696 ], 697 "ListRules": [ 698 { 699 "input": { 700 "Limit": 100 701 }, 702 "output": { 703 "Rules": [ 704 { 705 "Name": "WAFByteHeaderRule", 706 "RuleId": "WAFRule-1-Example" 707 } 708 ] 709 }, 710 "comments": { 711 "input": { 712 }, 713 "output": { 714 } 715 }, 716 "description": "The following example returns an array of up to 100 rules.", 717 "id": "listrules-1475258406433", 718 "title": "To list rules" 719 } 720 ], 721 "ListSizeConstraintSets": [ 722 { 723 "input": { 724 "Limit": 100 725 }, 726 "output": { 727 "SizeConstraintSets": [ 728 { 729 "Name": "MySampleSizeConstraintSet", 730 "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 731 } 732 ] 733 }, 734 "comments": { 735 "input": { 736 }, 737 "output": { 738 } 739 }, 740 "description": "The following example returns an array of up to 100 size contraint match sets.", 741 "id": "listsizeconstraintsets-1474300067597", 742 "title": "To list a size constraint sets" 743 } 744 ], 745 "ListSqlInjectionMatchSets": [ 746 { 747 "input": { 748 "Limit": 100 749 }, 750 "output": { 751 "SqlInjectionMatchSets": [ 752 { 753 "Name": "MySQLInjectionMatchSet", 754 "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 755 } 756 ] 757 }, 758 "comments": { 759 "input": { 760 }, 761 "output": { 762 } 763 }, 764 "description": "The following example returns an array of up to 100 SQL injection match sets.", 765 "id": "listsqlinjectionmatchset-1474493560103", 766 "title": "To list SQL injection match sets" 767 } 768 ], 769 "ListWebACLs": [ 770 { 771 "input": { 772 "Limit": 100 773 }, 774 "output": { 775 "WebACLs": [ 776 { 777 "Name": "WebACLexample", 778 "WebACLId": "webacl-1472061481310" 779 } 780 ] 781 }, 782 "comments": { 783 "input": { 784 }, 785 "output": { 786 } 787 }, 788 "description": "The following example returns an array of up to 100 web ACLs.", 789 "id": "listwebacls-1475258732691", 790 "title": "To list Web ACLs" 791 } 792 ], 793 "ListXssMatchSets": [ 794 { 795 "input": { 796 "Limit": 100 797 }, 798 "output": { 799 "XssMatchSets": [ 800 { 801 "Name": "MySampleXssMatchSet", 802 "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 803 } 804 ] 805 }, 806 "comments": { 807 "input": { 808 }, 809 "output": { 810 } 811 }, 812 "description": "The following example returns an array of up to 100 XSS match sets.", 813 "id": "listxssmatchsets-1474561481168", 814 "title": "To list XSS match sets" 815 } 816 ], 817 "UpdateByteMatchSet": [ 818 { 819 "input": { 820 "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5", 821 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 822 "Updates": [ 823 { 824 "Action": "DELETE", 825 "ByteMatchTuple": { 826 "FieldToMatch": { 827 "Data": "referer", 828 "Type": "HEADER" 829 }, 830 "PositionalConstraint": "CONTAINS", 831 "TargetString": "badrefer1", 832 "TextTransformation": "NONE" 833 } 834 } 835 ] 836 }, 837 "output": { 838 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 839 }, 840 "comments": { 841 "input": { 842 }, 843 "output": { 844 } 845 }, 846 "description": "The following example deletes a ByteMatchTuple object (filters) in an byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.", 847 "id": "updatebytematchset-1475259074558", 848 "title": "To update a byte match set" 849 } 850 ], 851 "UpdateIPSet": [ 852 { 853 "input": { 854 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 855 "IPSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 856 "Updates": [ 857 { 858 "Action": "DELETE", 859 "IPSetDescriptor": { 860 "Type": "IPV4", 861 "Value": "192.0.2.44/32" 862 } 863 } 864 ] 865 }, 866 "output": { 867 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 868 }, 869 "comments": { 870 "input": { 871 }, 872 "output": { 873 } 874 }, 875 "description": "The following example deletes an IPSetDescriptor object in an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 876 "id": "updateipset-1475259733625", 877 "title": "To update an IP set" 878 } 879 ], 880 "UpdateRule": [ 881 { 882 "input": { 883 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 884 "RuleId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 885 "Updates": [ 886 { 887 "Action": "DELETE", 888 "Predicate": { 889 "DataId": "MyByteMatchSetID", 890 "Negated": false, 891 "Type": "ByteMatch" 892 } 893 } 894 ] 895 }, 896 "output": { 897 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 898 }, 899 "comments": { 900 "input": { 901 }, 902 "output": { 903 } 904 }, 905 "description": "The following example deletes a Predicate object in a rule with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 906 "id": "updaterule-1475260064720", 907 "title": "To update a rule" 908 } 909 ], 910 "UpdateSizeConstraintSet": [ 911 { 912 "input": { 913 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 914 "SizeConstraintSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 915 "Updates": [ 916 { 917 "Action": "DELETE", 918 "SizeConstraint": { 919 "ComparisonOperator": "GT", 920 "FieldToMatch": { 921 "Type": "QUERY_STRING" 922 }, 923 "Size": 0, 924 "TextTransformation": "NONE" 925 } 926 } 927 ] 928 }, 929 "output": { 930 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 931 }, 932 "comments": { 933 "input": { 934 }, 935 "output": { 936 } 937 }, 938 "description": "The following example deletes a SizeConstraint object (filters) in a size constraint set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 939 "id": "updatesizeconstraintset-1475531697891", 940 "title": "To update a size constraint set" 941 } 942 ], 943 "UpdateSqlInjectionMatchSet": [ 944 { 945 "input": { 946 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 947 "SqlInjectionMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5", 948 "Updates": [ 949 { 950 "Action": "DELETE", 951 "SqlInjectionMatchTuple": { 952 "FieldToMatch": { 953 "Type": "QUERY_STRING" 954 }, 955 "TextTransformation": "URL_DECODE" 956 } 957 } 958 ] 959 }, 960 "output": { 961 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 962 }, 963 "comments": { 964 "input": { 965 }, 966 "output": { 967 } 968 }, 969 "description": "The following example deletes a SqlInjectionMatchTuple object (filters) in a SQL injection match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 970 "id": "updatesqlinjectionmatchset-1475532094686", 971 "title": "To update a SQL injection match set" 972 } 973 ], 974 "UpdateWebACL": [ 975 { 976 "input": { 977 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 978 "DefaultAction": { 979 "Type": "ALLOW" 980 }, 981 "Updates": [ 982 { 983 "Action": "DELETE", 984 "ActivatedRule": { 985 "Action": { 986 "Type": "ALLOW" 987 }, 988 "Priority": 1, 989 "RuleId": "WAFRule-1-Example" 990 } 991 } 992 ], 993 "WebACLId": "webacl-1472061481310" 994 }, 995 "output": { 996 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 997 }, 998 "comments": { 999 "input": { 1000 }, 1001 "output": { 1002 } 1003 }, 1004 "description": "The following example deletes an ActivatedRule object in a WebACL with the ID webacl-1472061481310.", 1005 "id": "updatewebacl-1475533627385", 1006 "title": "To update a Web ACL" 1007 } 1008 ], 1009 "UpdateXssMatchSet": [ 1010 { 1011 "input": { 1012 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", 1013 "Updates": [ 1014 { 1015 "Action": "DELETE", 1016 "XssMatchTuple": { 1017 "FieldToMatch": { 1018 "Type": "QUERY_STRING" 1019 }, 1020 "TextTransformation": "URL_DECODE" 1021 } 1022 } 1023 ], 1024 "XssMatchSetId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5" 1025 }, 1026 "output": { 1027 "ChangeToken": "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" 1028 }, 1029 "comments": { 1030 "input": { 1031 }, 1032 "output": { 1033 } 1034 }, 1035 "description": "The following example deletes an XssMatchTuple object (filters) in an XssMatchSet with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.", 1036 "id": "updatexssmatchset-1475534098881", 1037 "title": "To update an XSS match set" 1038 } 1039 ] 1040 } 1041 }