cpCode
cpCodeRequired. A Content Provider (CP) code is how traffic through this configuration gets tracked for reporting and billing.
{
"name": "cpCode",
"options": {
"enableDefaultContentProviderCode": true
}
}The template opts into your contract's default CP code so a new environment version is valid without you having to look one up. To pin a specific code, set enableDefaultContentProviderCode to false and supply the code — value is only available when enableDefaultContentProviderCode isn't true:
{
"name": "cpCode",
"options": {
"enableDefaultContentProviderCode": false,
"value": {
"id": 12345
}
}
}Pin a code when either of these applies:
- Granularity. Billing and reporting merge when configurations share a CP code. Use a distinct code to keep this configuration's data separate — on AMD that usually means one code per title group, channel, or tenant.
- Log Delivery Service (LDS). If you plan to enable LDS, the code can't be active on another configuration on the production network. Sharing with staging configurations is fine.
contentCharacteristicsAMD
contentCharacteristicsAMDRequired. This is where you tell Akamai what you're delivering. It doesn't switch anything on by itself — it feeds the metadata configuration Akamai derives for your traffic, which is what produces better origin offload and end-user performance.
{
"name": "contentCharacteristicsAMD",
"options": {
"catalogSize": "UNKNOWN",
"contentType": "HD",
"popularityDistribution": "UNKNOWN",
"hls": true,
"segmentDurationHLS": "SEGMENT_DURATION_10S",
"segmentSizeHLS": "UNKNOWN",
"hds": true,
"segmentDurationHDS": "SEGMENT_DURATION_6S",
"segmentSizeHDS": "UNKNOWN",
"dash": true,
"segmentDurationDASH": "SEGMENT_DURATION_6S",
"segmentSizeDASH": "UNKNOWN",
"smooth": true,
"segmentDurationSmooth": "SEGMENT_DURATION_2S",
"segmentSizeSmooth": "UNKNOWN"
}
}| Option | Ships as | Why |
|---|---|---|
catalogSize | UNKNOWN | The total volume behind this configuration. SMALL (<100 GB), MEDIUM (100 GB–1 TB), LARGE (1–100 TB), EXTRA_LARGE (>100 TB), OTHER. Akamai still optimizes per request without it, but less well. |
contentType | HD | The one characteristic the template commits to, because 1080i/p is the common case. Also available: SD, ULTRA_HD, OTHER, UNKNOWN. |
popularityDistribution | UNKNOWN | LONG_TAIL for a large catalog with few requests each over a long life; ALL_POPULAR for heavy demand on short-lived content. This is the hint that most affects cache tiering decisions. |
hls, hds, dash, smooth | all true | Every supported packaging format is declared. Turn off the ones you don't publish — each enabled format carries its own duration and size options, and declaring a format you don't serve adds nothing. |
segmentDuration* | HLS 10s, HDS and DASH 6s, Smooth 2s | The conventional segment durations for each format. These must match what your packager actually produces. Values run SEGMENT_DURATION_2S through SEGMENT_DURATION_8S, SEGMENT_DURATION_10S, or OTHER with a custom value. |
segmentSize* | all UNKNOWN | Origin object size per format. This one has a mechanical consequence — see below. |
segmentSize*and partial object cachingPartial object caching is applied based on the size you declare: it's off for
LESS_THAN_1MBandONE_MB_TO_TEN_MB, on forTEN_MB_TO_100_MBandGREATER_THAN_100MB. The shippedUNKNOWNmeans partial object caching is applied to objects over 10 MB. Declare the real size if you know it rather than relying on that fallback.
enhancedDebug
enhancedDebug{
"name": "enhancedDebug",
"options": {
"enableDebug": true,
"debugKey": "",
"disablePragma": true,
"generateGrn": true
}
}Enhanced Debug is the current, secure way to diagnose requests, replacing Pragma debugging. It uses a time-limited authentication token derived from a secret key you define, so debug output can't be requested by anyone who simply knows the header name. On AMD it's how you trace a single segment request through the platform when a player reports a stall.
| Option | Ships as | Why |
|---|---|---|
enableDebug | true | Diagnostics available from the start. The other three options are only available while this is true. |
debugKey | "" | You must set this before activating. A 64-byte hex string, used both to validate the debug auth token and to generate it. Reusing one key across your configurations is a reasonable practice. |
disablePragma | true | Legacy Pragma debugging is off, so debug data isn't exposed to unauthenticated requests. Only enable Pragma during a transition, until your tooling uses Enhanced Debug. |
generateGrn | true | Returns a Global Request Number on responses even when a request isn't being debugged, which is what lets you correlate a viewer's report with platform logs after the fact. |
NoreportoredgeScapeTemplatehereUnlike the web delivery templates, AMD's reporting category has no
reportbehavior and no EdgeScape. Log field selection and geolocation forwarding aren't part of the AMD default settings — add the behaviors to a rule if your contract entitles them.
