younifyd
Menu

Get Waf Rules

Get WAF Rules

GET/organizations/{organizationId}/zones/{zoneId}/waf/rules

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Get Waf Rules action (under Zones (Data API)).
  3. Fill in the fields below, then reference the result from later steps as {{getWafRules.response.data}}.

Request

Path parameters

zoneIdstringrequired
organizationIdstringrequired

An identifier for the organization the request is being made by

Query parameters

groupIdstring

WAF Group that contains the WAF rules.

Response

Returns 200 with an object. Read it in later steps with {{getWafRules.response.data.<field>}}.

dataarray<object>
ruleIdstring
groupIdstring
actionstringrequired

The action to apply to WAF rule

One ofblockchallengemonitordisabledefault

defaultActionstring

The action to apply to WAF rule

One ofblockchallengemonitordisable

descriptionstring

Description of the WAF Group.

json
{
  "data": [
    {
      "ruleId": "892e67954025e0ba6atefd586b9e58b3",
      "groupId": "372abe67954025e0ba6aaa6d586b9e0b",
      "action": "monitor",
      "defaultAction": "challenge",
      "description": "SQL injection protection"
    }
  ]
}

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.

Was this page helpful?
Get Waf Rules — Salesforce Commerce Cloud — Documentation