v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1481329470.1 KB

<note> <p>This is <b>AWS WAF Classic</b> documentation. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p> </note> <p>Returns the <a>WebACL</a> that is specified by <code>WebACLId</code>.</p>

post/#X-Amz-Target=AWSWAF_Regional_20161128.GetWebACL

Headers

X-Amz-Target'AWSWAF_Regional_20161128.GetWebACL' required

Request body

WebACLIdstring required

The <code>WebACLId</code> of the <a>WebACL</a> that you want to get. <code>WebACLId</code> is returned by <a>CreateWebACL</a> and by <a>ListWebACLs</a>.

Response

Success

Example response

{
  "WebACL": {
    "DefaultAction": {
      "Type": "ALLOW"
    },
    "MetricName": "CreateExample",
    "Name": "CreateExample",
    "Rules": [
      {
        "Action": {
          "Type": "ALLOW"
        },
        "Priority": 1,
        "RuleId": "WAFRule-1-Example"
      }
    ],
    "WebACLId": "createwebacl-1472061481310"
  }
}