Adaptive Media Delivery

Overview

When you create a workspace with the Adaptive_Media_Delivery 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 are tuned for AMD's delivery profile — pre-segmented live and on-demand streaming media, where the unit of delivery is a segment and the levers that matter are the delivery mode, what you declare about your content, and how the edge recovers from a congested forward path. The template is deliberately small: ten settings, most of which are declarations about your content rather than switches.

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.

📘

Adaptive Media Delivery is Adaptive_Media_Delivery

Adaptive_Media_Delivery is the product ID for Adaptive Media Delivery in the Delivery Manager API. List products returns it for every contract that's entitled to AMD.

Where the defaults come from

Two operations matter:

OperationMethod and endpointWhat you get
Get product definitionGET /products/Adaptive_Media_DeliverynewEnvironmentVersionTemplate — 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 AMD product template: what your environment version is actually created with. The product template overrides the schema default in at least one place that matters — cache key handling. When this page says "ships as," it means the product template. Reference pages under Behaviors describe the schema, not the AMD 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": "segmentedMediaOptimization",
  "options": {
    "behavior": "ON_DEMAND"
  }
}
  • 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 AMD defaults.

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

Template behaviors

Two of the ten settings end in Template — setOriginTemplate and deploymentNetworkTemplate. These are composite behaviors: one object that stands in for what a classic AMD property expressed as several separate behaviors. The rest of the AMD template uses individual behaviors directly, which is why most of what's here also appears unchanged in a rule.

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.
  • Their options are flat, not nested. 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 AMD's validation requires, of which there are five.

Changing a default value

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

  1. GET /products/Adaptive_Media_Delivery 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. On AMD there are more of these than on the web delivery products, because the template declares your content without knowing anything about it:

SettingShips asWhat you need to do
originCharacteristicsNot in the templateBlocks activation. validationRules requires it in the default rule, but the template doesn't seed it. Add it with your origin's authentication method and geography.
enhancedDebug.debugKey""Generate a 64-byte hex string and set it. An empty mandatory key is what most first versions fail on.
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.
contentCharacteristicsAMDMostly UNKNOWNNot a blocker, but the one edit with the most delivery impact. Every UNKNOWN is a hint Akamai doesn't have. Declare catalog size, popularity, and segment sizes if you know them.
segmentedContentProtectionenabled: falseShips off, so streams are unprotected. Turn it on and supply a key before you publish anything that isn't meant to be freely shareable.
🚧

originCharacteristics is required but not seeded

AMD's validationRules lists originCharacteristics among the behaviors the default rule must configure, and the shipped template doesn't include it. An otherwise untouched version therefore can't be activated. Use Get validation resources to confirm what your version needs before you try.

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 category pages are named after, so it's the quickest way to map an API name to its UI documentation.

AMD has four categories. There's no failover or payload-minimization group: AMD's segments are already compressed, and origin failover is configured per rule rather than in the default settings.

categoryNameBehaviorsAPI documentationUI documentation
originsetOriginTemplateOriginOrigin
reporting_loggingcpCode, contentCharacteristicsAMD, enhancedDebugReporting and loggingReporting & Logging
accelerate_delivery_offload_originsegmentedMediaOptimization, cacheKeyQueryParams, dynamicThroughtputOptimization, http3Accelerate Delivery & Offload OriginAccelerate Delivery & Offload Origin
access_control_securitydeploymentNetworkTemplate, segmentedContentProtectionAccess Control & SecurityAccess Control & Security

Validation

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

{
  "validation": {
    "required_features": {
      "default_rule": [
        "origin",
        "cpCode",
        "originCharacteristics",
        "contentCharacteristicsAMD",
        "segmentedMediaOptimization"
      ]
    }
  }
}
  • default_rule — five behaviors must be configured in your default settings. The template satisfies four of them (setOriginTemplate, cpCode, contentCharacteristicsAMD, segmentedMediaOptimization); originCharacteristics is yours to add.
  • No any_rule requirement. Unlike the web delivery products, AMD doesn't require caching to be configured anywhere in the tree — segment caching is driven by segmentedMediaOptimization and your origin's headers.

Validation runs on activation, not on POST or PUT, so a version can be saved and still be unactivatable.

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": "Short TTL for live manifests",
        "description": "Keeps manifests fresh on a path used for live events",
        "criteria": [
          {
            "name": "path",
            "options": {
              "values": ["/live/*"]
            }
          }
        ],
        "behaviors": [
          {
            "name": "caching",
            "options": {
              "behavior": "MAX_AGE",
              "ttl": "2s"
            }
          }
        ],
        "tags": ["caching"]
      }
    ]
  }
}

That's the characteristic AMD edit: one configuration serving both on-demand and live traffic, with the live paths overriding the on-demand defaults.

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 far more behaviors than the ten 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 AMD 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 an Adaptive Media Delivery property

If you're porting a PAPI configuration, two things change.

Shape. A classic AMD property arrived as pre-added child rules under the Default Rule, each holding individual behaviors. Here, one flat defaultSettings array holds them, with setOriginTemplate and deploymentNetworkTemplate standing in for what used to be several behaviors each.

Values. cacheKeyQueryParams ships as IGNORE_ALL, which is an override of the behavior's own INCLUDE_ALL_PRESERVE_ORDER default. Diff your property's default rule against the template before you assume anything carried over.