setOriginTemplate
setOriginTemplateRequired. The origin server is where your objects live, so this setting is obligatory: without it Akamai has nowhere to fetch from.
{
"name": "setOriginTemplate",
"options": {
"originName": "main"
}
}Origin configuration is a two-step model in this API, and it's the one piece of the template that isn't entirely inside defaultSettings:
origins[], at the top level of the environment version, defines each origin and its connection settings. The template provides one namedmainwith empty options.setOriginTemplate.originNameselects which of those origins the default settings use.
{
"origins": [
{
"originName": "main",
"options": {
"hostname": "origin.example.com"
}
}
]
}originName is write-once and must match an entry in origins[].
Object storage is a common Object Delivery origin. You can use Akamai Object Storage with Cloud Access Manager for authentication, or a third-party bucket — either way the credentials go in origins[].options, not here.
To send some requests to a different origin, add an originServer behavior to a rule rather than editing this setting.
originCharacteristicsis separate, and requiredObject Delivery's validation requires an
originCharacteristicsbehavior in the default rule alongside this one. It carries your origin's authentication method and geography, and the template doesn't seed it. See Validation.
