younifyd
Menu

Get Page Shield Policies

List page shield policies.

GET/organizations/{organizationId}/zones/{zoneId}/page-shield/policies

Use it in a workflow

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

Request

Path parameters

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

dataarray<object>
actionstring

Action taken when expression matches allow or log.

One ofallowlog

descriptionstring

Description for the policy.

enabledboolean

Enable/disable the policy.

expressionstring

Expression of the policy.

valuestring

Policy to be applied.

idstring

Policy ID

json
{
  "data": [
    {
      "action": "allow",
      "description": "Allow scripts from trusted CDN sources",
      "enabled": true,
      "expression": "http.request.uri.path contains \"/trusted-cdn/\"",
      "value": "script-src",
      "id": "policy_1234567890abcdef"
    }
  ]
}

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

Get Page Shield Policies — Salesforce Commerce Cloud — Documentation