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

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

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

<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>RegexPatternSet</a> specified by <code>RegexPatternSetId</code>.</p>

## Headers

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

## Request body

- GetRegexPatternSetRequest
  - `RegexPatternSetId` string, required — The <code>RegexPatternSetId</code> of the <a>RegexPatternSet</a> that you want to get. <code>RegexPatternSetId</code> is returned by <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.

## Response `200`

Success

- GetRegexPatternSetResponse
  - `RegexPatternSet` object — Information about the <a>RegexPatternSet</a> that you specified in the <code>GetRegexPatternSet</code> request, including the identifier of the pattern set and the regular expression patterns you want AWS WAF to search for.
    - `RegexPatternSetId` string, required — <p>The identifier for the <code>RegexPatternSet</code>. You use <code>RegexPatternSetId</code> to get information about a <code>RegexPatternSet</code>, update a <code>RegexPatternSet</code>, remove a <code>RegexPatternSet</code> from a <code>RegexMatchSet</code>, and delete a <code>RegexPatternSet</code> from AWS WAF.</p> <p> <code>RegexMatchSetId</code> is returned by <a>CreateRegexPatternSet</a> and by <a>ListRegexPatternSets</a>.</p>
    - `Name` string — A friendly name or description of the <a>RegexPatternSet</a>. You can't change <code>Name</code> after you create a <code>RegexPatternSet</code>.
    - `RegexPatternStrings` RegexPatternString[], required — Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as <code>B[a@]dB[o0]t</code>.

## Other responses

- `480` — WAFInternalErrorException
- `481` — WAFInvalidAccountException
- `482` — WAFNonexistentItemException

---

[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)
