You define custom variables at the workspace level, from the workspace's Variables tab. In variable mode, they're accessible in the User variables category.

  1. From the Control Center menu, click Content delivery > CDN > Delivery Manager.
  2. In the Workspaces page, click the workspace you want to define the variable in.
  3. Go to the Variables tab, and click Add variable.
  4. Enter a name for your variable, keeping it under 32 characters. For example, API_KEY.
  5. Select a variable type:
    • String
    • Integer
    • Float
    • Boolean
    • JSON
    • Array
  6. Select a binding time:
    • Run-time. These variables resolve at the request phase, deriving their values from the incoming requests or external lookups.
    • Build-time. These variables resolve at the moment you activate your configuration. They are ideal for infrastructure-level settings that don't change often.
  7. Optionally, provide a description.
  8. Select a security setting to prevent exposing sensitive data in headers or logs:
    • Visible: Variables will be returned to the client in the X-Akamai-Session-Info header, but only if the request includes the Pragma: akamai-x-get-extracted-values header.
    • Hidden: Hidden variables won't be returned in the X-Akamai-Session-Info header even if the debug header is used.
    • Sensitive: Reserved for high-security data, such as personally identifiable information (PII). Sensitive variables can't be sent to end-users through Set-Cookie or response header behaviors, and they're not included in custom logging fields. They propagate their "Sensitive" attribute to any new variable derived from them.
  9. Enter an initial value. This is a string of alphanumeric text that's dynamically deployed when you reference a variable. Changes to this value apply everywhere the variable is used unless overridden.
  10. Review your entries and click Save.
  11. Once you're ready with all updates, click the global Save at the top of the page.

The variable is now available across all components within your workspace.
You can override variable values at the environment level.


Did this page help you?