Dynamic Site Accelerator

Overview

When you create a workspace with the Site_Accel product ID, Delivery Manager seeds every new environment version with a pre-populated group of settings. These settings are the foundational layer of your configuration: they sit at the top of the default rule set and apply to every incoming request unless a rule lower in the tree overrides them.

The values aren't arbitrary. They're tuned for DSA's delivery profile — accelerating dynamic, uncacheable, often personalized responses over the long haul to your origin, while still offloading the static assets around them — so in most cases your job through the API is to fill in the handful of account-specific values the template can't know (origin hostname, CP code, debug key) and leave the rest alone.

This page explains the JSON syntax of that template, what each setting does, why it ships with the value it does, and which values you must change before your first activation.

📘

Dynamic Site Accelerator is Site_Accel

Site_Accel is the product ID for Dynamic Site Accelerator in the Delivery Manager API. List products returns it for every contract that's entitled to DSA.

Where the defaults come from

Two operations matter:

OperationMethod and endpointWhat you get
Get product definitionGET /products/Site_AccelnewEnvironmentVersionTemplate — the exact object new environment versions start from — plus settingsCategories, behaviorDefinitions, validationRules, and latestRuleFormat
Create an environment versionPOST /workspaces/{workspaceName}/environments/{environmentName}/versionsThe version the template was applied to

Read the template before you write your first environment version. It's the only place the shipped values are expressed in full, and it's versioned: catalogVersion and latestRuleFormat in the same response tell you which catalog produced them.

❗️

Two different "defaults" exist — don't confuse them

behaviorDefinitions[<behavior>].options[*].defaultVal is the behavior schema default: the value a behavior falls back to anywhere in a rule tree. newEnvironmentVersionTemplate is the DSA product template: what your environment version is actually created with. The product template deliberately overrides the schema default in a number of places — caching option, DNS refresh timeout, cache key handling, redirect status code, failover action, downstream HTML policy, and others. When this page says "ships as," it means the product template. Reference pages under Behaviors describe the schema, not the DSA template.

Syntax

The settings object

Default settings live in the defaultRuleSet.defaultSettings array of an environment version. Each entry is a behavior object with two members:

{
  "name": "dnsAsyncRefresh",
  "options": {
    "enabled": true,
    "timeout": "5h"
  }
}
  • name — the behavior's API name, camelCase. It's the same name the Behaviors reference uses.
  • options — the behavior's options. Option availability is often conditional: an option only belongs in the object when its parent option has the right value. Each behavior's reference page states those dependencies in its Requires column, and this page marks the ones that affect the DSA defaults.

Array order carries no meaning. Two entries with the same name aren't allowed in defaultSettings.

Template behaviors

Eleven of the twenty-one settings end in Template — cachingTemplate, http2Template, failoverTemplate, allowMethodsTemplate, and so on. These are composite behaviors: one object that stands in for what a classic DSA property expressed as several separate behaviors inside several pre-added child rules. cachingTemplate alone carries the caching policy, tiered distribution, ETag validation, cache key handling, error caching, prefreshing, and six per-content-type caching blocks.

Two consequences for API work:

  • Template behaviors are valid only in defaultSettings. Don't put them in rules[] or in a custom rule set — use the equivalent individual behaviors there (caching, cacheKeyQueryParams, tieredDistribution, and so on).
  • Their options are flat, not nested. Every per-content-type field is a sibling key with a prefix: cacheImagesTtl, cacheImagesPolicy, cacheImagesExtensions. There are no sub-objects.

defaultSettingsEnabled

defaultRuleSet.defaultSettingsEnabled controls whether the product's optimized group of features applies to the version at all:

{
  "defaultRuleSet": {
    "defaultSettingsEnabled": true,
    "defaultSettings": [ ... ],
    "rules": [ ... ]
  }
}

Keep it true unless you have a specific reason to build a configuration from bare behaviors.
Setting it to false discards the best-practice baseline described on this page, and you then own every value in it — including the ones DSA's validation requires.

Changing a default value

Use a read-modify-write cycle against the version itself:

  1. GET /products/Site_Accel once, to see the shipped template and the catalog version it came from.
  2. POST .../versions to create the version, or GET .../versions/{version} to read the one you have.
  3. Modify the defaultSettings entries you care about.
  4. PUT /workspaces/{workspaceName}/environments/{environmentName}/versions/{version} with the defaultSettings array in full.

Sending the complete array is the safe pattern: it's explicit about every value, it's diffable in source control, and it behaves identically whether you're creating or updating a version. Build it from the template response rather than hand-writing it, so a catalog update doesn't silently drop settings you never looked at.

You can edit a version until it's activated. After activation, create a new version.

📘

The UI writes to the same place

Changes made on the Settings tab are synchronized with the Default settings rule under the Default rule set, which is the defaultRuleSet.defaultSettings array this page describes. The UI and the API are two views of one object.

What you must change before activating

The template is complete except for values Akamai can't supply for you. These five block activation or make the configuration do nothing useful:

SettingShips asWhat you need to do
enhancedDebug.debugKey""Blocks activation. Generate a 64-byte hex string and set it. Validation fails with "The Debug Key option in Enhanced Debug must not be empty."
origins[].options{}Set your origin's hostname and any authentication options. The template only names the origin (main); the connection details are yours.
cpCodeenableDefaultContentProviderCode: trueFine for a first test. To report or bill this traffic separately, pin an explicit CP code.
sureRoute.testObjectUrl/akamai/sureroute-test-object.htmlThe path is seeded, but the object must exist on your origin, or SureRoute races fail. SureRoute carries more of DSA's value than it does Ion's, so don't skip this.
failoverTemplate.headerValue"Your-Secret-Here"A placeholder. Replace it with a private string before you test failover.
🚧

Debug Key

Every new DSA environment version ships enhancedDebug enabled with an empty, mandatory debugKey, so an otherwise untouched version fails validation. Set a key in your first PUT, before you attempt activation. Use Get validation resources to check a version's requirements ahead of time.

Settings categories

settingsCategories in the product definition groups the settings for display. The grouping is presentational — it doesn't affect evaluation — but it's what the UI's six category pages are named after, so it's the quickest way to map an API name to its UI documentation.

categoryNameBehaviorsAPI documentationUI documentation
originsetOriginTemplateOriginOrigin
reporting_loggingcpCode, edgeScapeTemplate, report, enhancedDebugReporting and loggingReporting & Logging
accelerate_delivery_offload_origindnsAsyncRefresh, http3, http2Template, allowTransferEncoding, sureRoute, earlyData, cachingTemplate, downstreamCacheTemplateAccelerate Delivery & Offload OriginAccelerate Delivery & Offload Origin
access_control_securitydeploymentNetworkTemplate, allowMethodsTemplate, obfuscateBackendTemplate, httpsRedirectTemplate, httpStrictTransportSecurityAccess Control & SecurityAccess Control & Security
failover_settingsfailoverTemplateFailoverFailover
minimize_payloadbrotli, gzipResponseTemplateMinimize PayloadMinimize Payload

Validation

validationRules in the product definition states what DSA requires of any environment version:

{
  "validation": {
    "required_features": {
      "default_rule": ["origin", "cpCode"],
      "any_rule": ["caching"]
    }
  }
}
  • default_rule — your default settings must configure an origin and a CP code. The template satisfies both (setOriginTemplate, cpCode), so you only break this by removing them.
  • any_rule — caching must be configured somewhere in the rule tree. cachingTemplate satisfies it in the default settings.

These are the same requirements Ion carries.

Validation runs on activation, not on POST or PUT, so a version can be saved and still be unactivatable. Call Get validation resources to see what a version needs before you try. The empty enhancedDebug.debugKey is the error most first-time versions hit.

Overriding a default for some requests

Default settings apply to every request. To change behavior for a subset, don't edit the default settings — add a rule. Rule configuration evaluates top down and the bottom-most match wins, so a rule placed below the default settings overrides them for the requests it matches:

{
  "defaultRuleSet": {
    "defaultSettingsEnabled": true,
    "defaultSettings": [ ... ],
    "rules": [
      {
        "name": "Cache the product catalog",
        "description": "Caches an otherwise-dynamic path that doesn't vary per user",
        "criteria": [
          {
            "name": "path",
            "options": {
              "values": ["/catalog/*"]
            }
          }
        ],
        "behaviors": [
          {
            "name": "caching",
            "options": {
              "behavior": "MAX_AGE",
              "ttl": "10m"
            }
          }
        ],
        "tags": ["caching"]
      }
    ]
  }
}

That's the characteristic DSA edit: the template declines to cache HTML, and you add back the specific dynamic paths you know are safe to hold for a short time. Note that the rule uses the individual caching behavior, not cachingTemplate — template behaviors belong only in defaultSettings.

For logic you want to share or version separately, use a custom rule set and position it with ruleSetOrder. See Rule configuration logic for precedence and nesting.

What's not in the default settings

The catalog carries more behaviors than the twenty-one the template seeds. Everything else your contract entitles is available to you through standalone behaviors and match criteria — it's just not pre-configured, and you add it to a rule rather than to defaultSettings.

Check behaviorDefinitions in the product definition for the full DSA catalog and the behavior versions your rule format supports. Entitlement differs by product, so don't assume a behavior documented for another product is available here.

Coming from a Dynamic Site Accelerator property

If you're porting a PAPI configuration, the shape is what changes first.

Shape. A classic DSA property arrived as pre-added child rules under the Default Rule, each holding individual behaviors. Here, one flat defaultSettings array holds composite *Template behaviors instead. cachingTemplate replaces a rule's worth of caching behaviors; allowMethodsTemplate replaces seven allow* behaviors; http2Template replaces the individual http2 behavior.

Values. Several shipped values are intentional overrides of the behavior schema defaults rather than carry-overs from the property template — the caching option, the 5-hour DNS refresh timeout, alphabetized cache key parameters, the 301 HTTPS redirect, and SERVE_ERROR as the failover action. Diff your property's default rule against the template before you assume anything carried over.