Two settings. This is the smallest reporting category of any product template — there's no report behavior and no EdgeScape here.
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 an API workload that usually means one code per API or per major version, so you can see a deprecation actually happening in the traffic reports.
- 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.
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.
| 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. On an API this is the single most useful field you get for free: a caller can quote the GRN from a failed response and you can find that exact request in platform logs. |
Noreportbehavior hereThe web delivery templates seed a
reportbehavior that selects which request details Log Delivery Service includes in your logs. API Acceleration's template doesn't. If you need per-field log selection, addreportto a rule — and note that configuring it doesn't start log delivery, which you activate separately in Akamai Control Center under Analytics & monitor > Log Delivery.
