younifyd
Menu

Get Custom Rule

Retrieve a specific custom rule.

GET/organizations/{organizationId}/zones/{zoneId}/firewall-custom/rules/{ruleId}

Use it in a workflow

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

Request

Path parameters

ruleIdstringrequired
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 {{getCustomRule.response.data.<field>}}.

dataobject

A custom rule.

ruleIdstringrequired

The ID of the custom rule.

descriptionstringrequired

The description of the custom rule.

expressionstringrequired

The expression that determines the custom rule's behavior.

actionsarray<string>required

The action(s) applied by the custom rule.

lastUpdatedstring (date-time)required

Date when the custom rule was last updated.

enabledbooleanrequired

Whether or not the custom rule is enabled.

json
{
  "data": {
    "ruleId": "2c0fc9fa937b11eaa1b71c4d701ab86e",
    "description": "Block traffic for malformed URL requests.",
    "expression": "(http.request.uri.path matches \\\"^/path1/.*\\\")",
    "actions": [
      "block"
    ],
    "lastUpdated": "2022-01-01T05:20:00Z",
    "enabled": true
  }
}

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

Get Custom Rule — Salesforce Commerce Cloud — Documentation