Skip to main content

Slate cdn

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: slate-cdn · 4 operations

GET /v1/slate/environments/{environment_id}/cdn​

Get Cdn Config

Return a lane's CDN provider (never its credential) and the last purge sent to it.

Operation id: get_cdn_config_v1_slate_environments__environment_id__cdn_get

Parameters

NameInTypeRequiredDescription
environment_idpathstringyesPath parameter identifying the environment id segment.
tenantSlugquerystring or nullnoTenant slug. Optional: the Slate routes read tenancy from the credential, so a browser call carrying a session JWT does not need to name a tenant in the URL.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get cdn config.application/json CdnConfigResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/slate/environments/{environment_id}/cdn​

Save Cdn Config

Attach or update a lane's CDN provider, sealing the credential before it is stored.

Refusals: 422 cdn-config-invalid (every bad field listed in errors), 422 cdn-credential-required, 409 cdn-vault-not-configured when this deployment has no key to seal credentials with — a credential is never stored in plaintext as a fallback.

Operation id: save_cdn_config_v1_slate_environments__environment_id__cdn_post

Parameters

NameInTypeRequiredDescription
environment_idpathstringyesPath parameter identifying the environment id segment.
tenantSlugquerystring or nullnoTenant slug. Optional: the Slate routes read tenancy from the credential, so a browser call carrying a session JWT does not need to name a tenant in the URL.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for save cdn config.

Responses

StatusDescriptionBody
200Successful response for save cdn config.application/json CdnConfigResponse
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/slate/environments/{environment_id}/cdn​

Detach Cdn

Detach a lane's CDN provider and delete its stored credential.

Operation id: detach_cdn_v1_slate_environments__environment_id__cdn_delete

Parameters

NameInTypeRequiredDescription
environment_idpathstringyesPath parameter identifying the environment id segment.
tenantSlugquerystring or nullnoTenant slug. Optional: the Slate routes read tenancy from the credential, so a browser call carrying a session JWT does not need to name a tenant in the URL.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for detach cdn.application/json CdnDetachResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/slate/environments/{environment_id}/cdn/dispatches​

Get Cdn Dispatches

Return the purges sent to a lane's CDN, most recent first.

Operation id: get_cdn_dispatches_v1_slate_environments__environment_id__cdn_dispatches_get

Parameters

NameInTypeRequiredDescription
environment_idpathstringyesPath parameter identifying the environment id segment.
limitqueryintegernoMaximum number of rows to return.
tenantSlugquerystring or nullnoTenant slug. Optional: the Slate routes read tenancy from the credential, so a browser call carrying a session JWT does not need to name a tenant in the URL.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get cdn dispatches.application/json CdnDispatchHistoryResponse
422Validation Errorapplication/json HTTPValidationError

Schemas used​

CdnConfigResponse​

A lane's CDN configuration.

PropertyTypeRequiredDescription
environmentIdstringyesEnvironment ID.
configuredbooleanyesA provider is attached.
vaultConfiguredbooleanyesThis deployment can seal credentials. False means saving is refused.
edgeAttachedbooleanyesPurges on this lane are dispatched to the CDN.
providerCdnProviderBody or nullnoProvider.
lastDispatchCdnDispatchBody or nullnoLast Dispatch.

CdnDetachResponse​

The outcome of detaching a provider.

PropertyTypeRequiredDescription
environmentIdstringyesEnvironment ID.
detachedbooleanyesDetached.

CdnDispatchHistoryResponse​

A lane's CDN purge log.

PropertyTypeRequiredDescription
environmentIdstringyesEnvironment ID.
dispatchesarray of CdnDispatchBodyyesDispatches.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

SaveCdnProviderRequest​

Attach or update a lane's CDN provider.

PropertyTypeRequiredDescription
providerstringyescloudflare, fastly or custom.
targetstringyesCloudflare zone id, Fastly service id, or the custom https purge URL.
authHeaderNamestring or nullnoHeader a custom endpoint reads its credential from.
credentialstring or nullnoWrite-only. API token (Cloudflare), API key (Fastly) or header value (custom). Blank keeps the stored credential when the provider is unchanged.
purgeOnDeploybooleannoPurge the CDN when a release is promoted or rolled back.