Menu
Get Cache Rules
Retrieve existing cache rules.
GET
/organizations/{organizationId}/zones/{zoneId}/cache/rulesUse it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Get Cache Rules action (under Zones (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{getCacheRules.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getCacheRules.response.data.<field>}}.
{
"data": [
{
"ruleId": "2c0fc9fa937b11eaa1b71c4d701ab86e",
"description": "Cache static assets on product pages",
"expression": "(http.request.uri.path matches \"^/product/.*\")",
"action": "cache",
"enabled": true,
"excludeQueryStrings": [
"gclid",
"utm_campaign"
],
"ignoreQueryStringsOrder": true,
"respectStrongEtags": false,
"lastUpdated": "2022-01-01T05:20:00Z"
}
]
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?