younifyd
Menu

Get Waf Managed Rules In Ruleset

Retrieve all rules in the specified WAFv2 managed ruleset.

GET/organizations/{organizationId}/zones/{zoneId}/firewall-managed/rulesets/{rulesetId}/rules

Use it in a workflow

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

Request

Path parameters

rulesetIdstringrequired
zoneIdstringrequired
organizationIdstringrequired

An identifier for the organization the request is being made by

Response

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

dataarray<object>
ruleIdstringrequired

The ID of the WAF managed rule.

actionstringrequired

The action applied by the WAF managed rule.

scoreinteger

The score of the WAF managed rule. Only applicable for the OWASP Managed Ruleset.

categoriesarray<string>required

A list of categories describing the function of the WAF managed rule.

descriptionstringrequired

The description of the WAF managed rule.

lastUpdatedstring (date-time)required

Date when the WAF managed rule was last updated.

enabledbooleanrequired

Whether or not the WAF managed rule is enabled.

json
{
  "data": [
    {
      "ruleId": "5de7edfa648c4d6891dc3e7f84534ffa",
      "action": "block",
      "score": 5,
      "categories": [
        "broken-access-control",
        "wordpress"
      ],
      "description": "Wordpress - Broken Access Control",
      "lastUpdated": "2024-01-01T05:20:00Z",
      "enabled": true
    }
  ]
}

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

Get Waf Managed Rules In Ruleset — Salesforce Commerce Cloud — Documentation