Menu
Get Page Shield Policy
Get page shield policy by policy ID.
GET
/organizations/{organizationId}/zones/{zoneId}/page-shield/policies/{policyId}Use it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Get Page Shield Policy action (under Zones (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{getPageShieldPolicy.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getPageShieldPolicy.response.data.<field>}}.
{
"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.
Was this page helpful?