---
title: "POST /#X-Amz-Target=AWSWAF_Regional_20161128.GetWebACLForResource"
method: POST
path: "/#X-Amz-Target=AWSWAF_Regional_20161128.GetWebACLForResource"
---

# POST /#X-Amz-Target=AWSWAF_Regional_20161128.GetWebACLForResource

`POST /#X-Amz-Target=AWSWAF_Regional_20161128.GetWebACLForResource`

<note> <p>This is <b>AWS WAF Classic Regional</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 web ACL for the specified resource, either an application load balancer or Amazon API Gateway stage.</p>

## Headers

- `X-Amz-Target` 'AWSWAF_Regional_20161128.GetWebACLForResource', required

## Request body

- GetWebACLForResourceRequest
  - `ResourceArn` string, required — <p>The ARN (Amazon Resource Name) of the resource for which to get the web ACL, either an application load balancer or Amazon API Gateway stage.</p> <p>The ARN should be in one of the following formats:</p> <ul> <li> <p>For an Application Load Balancer: <code>arn:aws:elasticloadbalancing:<i>region</i>:<i>account-id</i>:loadbalancer/app/<i>load-balancer-name</i>/<i>load-balancer-id</i> </code> </p> </li> <li> <p>For an Amazon API Gateway stage: <code>arn:aws:apigateway:<i>region</i>::/restapis/<i>api-id</i>/stages/<i>stage-name</i> </code> </p> </li> </ul>

## Response `200`

Success

- GetWebACLForResourceResponse
  - `WebACLSummary` object — Information about the web ACL that you specified in the <code>GetWebACLForResource</code> request. If there is no associated resource, a null WebACLSummary is returned.
    - `WebACLId` string, required — <p>A unique identifier for a <code>WebACL</code>. You use <code>WebACLId</code> to get information about a <code>WebACL</code> (see <a>GetWebACL</a>), update a <code>WebACL</code> (see <a>UpdateWebACL</a>), and delete a <code>WebACL</code> from AWS WAF (see <a>DeleteWebACL</a>).</p> <p> <code>WebACLId</code> is returned by <a>CreateWebACL</a> and by <a>ListWebACLs</a>.</p>
    - `Name` string, required — A friendly name or description of the <a>WebACL</a>. You can't change the name of a <code>WebACL</code> after you create it.

## Other responses

- `480` — WAFInternalErrorException
- `481` — WAFInvalidAccountException
- `482` — WAFNonexistentItemException
- `483` — WAFInvalidParameterException
- `484` — WAFUnavailableEntityException

---

[API](https://skmtc.net/aws/apis/waf-regional.md) · [All operations](https://skmtc.net/aws/apis/waf-regional/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/waf-regional/versions/12b830ff94fb/schema)
