v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477318454.9 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>ByteMatchSet</a> specified by <code>ByteMatchSetId</code>.</p>

post/#X-Amz-Target=AWSWAF_20150824.GetByteMatchSet

Headers

X-Amz-Target'AWSWAF_20150824.GetByteMatchSet' required

Request body

ByteMatchSetIdstring required

The <code>ByteMatchSetId</code> of the <a>ByteMatchSet</a> that you want to get. <code>ByteMatchSetId</code> is returned by <a>CreateByteMatchSet</a> and by <a>ListByteMatchSets</a>.

Response

Success

Example response

{
  "ByteMatchSet": {
    "ByteMatchSetId": "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5",
    "ByteMatchTuples": [
      {
        "FieldToMatch": {
          "Data": "referer",
          "Type": "HEADER"
        },
        "PositionalConstraint": "CONTAINS",
        "TargetString": "badrefer1",
        "TextTransformation": "NONE"
      }
    ],
    "Name": "ByteMatchNameExample"
  }
}