AppCdn
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/hosting/apps/{app_id}/cdns/{id}/archive |
create |
Updated app CDN distribution |
POST |
/api/v1/hosting/apps/{app_id}/cdns/{id}/pause |
create |
Updated app CDN distribution |
POST |
/api/v1/hosting/apps/{app_id}/cdns/{id}/provision |
create |
App CDN deployment action completed |
POST |
/api/v1/hosting/apps/{app_id}/cdns/{id}/purge |
create |
App CDN deployment action completed |
POST |
/api/v1/hosting/apps/{app_id}/cdns/{id}/resume |
create |
Updated app CDN distribution |
POST |
/api/v1/hosting/apps/{app_id}/cdns/{id}/sync |
create |
App CDN deployment action completed |
POST |
/api/v1/hosting/apps/{app_id}/cdns |
create |
App CDN distribution created |
GET |
/api/v1/hosting/apps/{app_id}/cdns/{id} |
load |
Success |
GET |
/api/v1/hosting/apps/{app_id}/cdns |
load |
Success |
PATCH |
/api/v1/hosting/apps/{app_id}/cdns/{id} |
patch |
Updated app CDN distribution |
DELETE |
/api/v1/hosting/apps/{app_id}/cdns/{id} |
remove |
Success |
PUT |
/api/v1/hosting/apps/{app_id}/cdns/{id} |
update |
Updated app CDN distribution |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
app_cdn, err := client.AppCdn(nil).Load(map[string]any{"app_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(app_cdn)
created, err := client.AppCdn(nil).Create(map[string]any{"app_id": "example", "name": "example", "origin_url": "example", "slug": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.AppCdn(nil).Update(map[string]any{"id": "example_id", "app_id": "example", "app_environment_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
patched, err := client.AppCdn(nil).Patch(map[string]any{"id": "example_id", "app_id": "example", "app_environment_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(patched)
removed, err := client.AppCdn(nil).Remove(map[string]any{"app_id": "example", "id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local app_cdn, err = client:AppCdn():load({ app_id = "example" })
local created, err = client:AppCdn():create({ app_id = "example", name = "example", origin_url = "example", slug = "example" })
local updated, err = client:AppCdn():update({ id = "example_id", app_id = "example", app_environment_id = "example" })
local patched, err = client:AppCdn():patch({ id = "example_id", app_id = "example", app_environment_id = "example" })
local removed, err = client:AppCdn():remove({ app_id = "example", id = "example_id" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$app_cdn = $client->AppCdn()->load(["app_id" => "example"]);
$created = $client->AppCdn()->create(["app_id" => "example", "name" => "example", "origin_url" => "example", "slug" => "example"]);
$updated = $client->AppCdn()->update(["id" => "example_id", "app_id" => "example", "app_environment_id" => "example"]);
$patched = $client->AppCdn()->patch(["id" => "example_id", "app_id" => "example", "app_environment_id" => "example"]);
$client->AppCdn()->remove(["app_id" => "example", "id" => "example_id"]);
Python
Construct client as shown in the Python setup, then call the operations:
app_cdn = client.AppCdn().load({"app_id": "example"})
created = client.AppCdn().create({ "app_id": "example", "name": "example", "origin_url": "example", "slug": "example" })
updated = client.AppCdn().update({"id": "example_id", "app_id": "example", "app_environment_id": "example"})
patched = client.AppCdn().patch({"id": "example_id", "app_id": "example", "app_environment_id": "example"})
client.AppCdn().remove({"app_id": "example", "id": "example_id"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
app_cdn = client.AppCdn.load({ "app_id" => "example" })
created = client.AppCdn.create({ "app_id" => "example", "name" => "example", "origin_url" => "example", "slug" => "example" })
updated = client.AppCdn.update({ "id" => "example_id", "app_id" => "example", "app_environment_id" => "example" })
patched = client.AppCdn.patch({ "id" => "example_id", "app_id" => "example", "app_environment_id" => "example" })
client.AppCdn.remove({ "app_id" => "example", "id" => "example_id" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const app_cdn = await client.AppCdn().load({ app_id: "example" })
const created = await client.AppCdn().create({ app_id: "example", name: "example", origin_url: "example", slug: "example" })
const updated = await client.AppCdn().update({ id: "example_id", app_id: "example", app_environment_id: "example" })
const patched = await client.AppCdn().patch({ id: "example_id", app_id: "example", app_environment_id: "example" })
await client.AppCdn().remove({ app_id: "example", id: "example_id" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
app_environment_id |
one,string,null |
Yes | App Environment Id |
app_service_id |
one,string,null |
Yes | App Service Id |
cache_path_prefix |
one,string,null |
No | Cache Path Prefix |
cache_settings_json |
one,string,null |
Yes | Cache Settings Json |
created_at |
string |
Yes | Created At |
created_at_label |
one,string,null |
Yes | Created At Label |
distribution_kind |
string |
Yes | Distribution Kind |
edge_hostname |
one,string,null |
Yes | Edge Hostname |
failure_message |
one,string,null |
Yes | Failure Message |
hosted_app_id |
string |
Yes | Hosted App Id |
hostnames |
array |
Yes | Hostnames |
id |
string |
Yes | Id |
last_deployed_at |
one,string,null |
Yes | Last Deployed At |
last_deployed_at_label |
one,string,null |
Yes | Last Deployed At Label |
last_purged_at |
one,string,null |
Yes | Last Purged At |
last_purged_at_label |
one,string,null |
Yes | Last Purged At Label |
last_synced_at |
one,string,null |
Yes | Last Synced At |
last_synced_at_label |
one,string,null |
Yes | Last Synced At Label |
name |
string |
Yes | Name |
origin_url |
string |
Yes | Origin Url |
provisioned |
boolean |
Yes | Provisioned |
routing_settings_json |
one,string,null |
Yes | Routing Settings Json |
security_settings_json |
one,string,null |
Yes | Security Settings Json |
slug |
string |
Yes | Slug |
status |
string |
Yes | Status |
updated_at |
string |
Yes | Updated At |
updated_at_label |
one,string,null |
Yes | Updated At Label |
create
POST /api/v1/hosting/apps/{app_id}/cdns/{id}/archive
Operation ID: archive_api_v1_app_cdn.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Updated app CDN distribution
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cdn |
object |
Yes | |
cdn.app_environment_id |
string |
Yes | |
cdn.app_service_id |
string |
Yes | |
cdn.cache_path_prefix |
string |
No | |
cdn.cache_settings_json |
string |
Yes | |
cdn.created_at |
string (date-time) |
Yes | |
cdn.created_at_label |
string |
Yes | |
cdn.distribution_kind |
enum: pull_zone |
Yes | |
cdn.edge_hostname |
string |
Yes | |
cdn.failure_message |
string |
Yes | |
cdn.hosted_app_id |
string |
Yes | |
cdn.hostnames |
array of object |
Yes | |
cdn.hostnames[].app_cdn_distribution_id |
string |
Yes | |
cdn.hostnames[].created_at |
string (date-time) |
Yes | |
cdn.hostnames[].dns_status |
enum: pending, configured, failed |
Yes | |
cdn.hostnames[].force_ssl |
boolean |
Yes | |
cdn.hostnames[].hostname |
string |
Yes | |
cdn.hostnames[].id |
string |
Yes | |
cdn.hostnames[].provider_hostname_id |
string |
Yes | |
cdn.hostnames[].tls_status |
enum: pending, active, failed |
Yes | |
cdn.hostnames[].updated_at |
string (date-time) |
Yes | |
cdn.id |
string |
Yes | |
cdn.last_deployed_at |
string (date-time) |
Yes | |
cdn.last_deployed_at_label |
string |
Yes | |
cdn.last_purged_at |
string (date-time) |
Yes | |
cdn.last_purged_at_label |
string |
Yes | |
cdn.last_synced_at |
string (date-time) |
Yes | |
cdn.last_synced_at_label |
string |
Yes | |
cdn.name |
string |
Yes | |
cdn.origin_url |
string (uri) |
Yes | |
cdn.provisioned |
boolean |
Yes | |
cdn.routing_settings_json |
string |
Yes | |
cdn.security_settings_json |
string |
Yes | |
cdn.slug |
string |
Yes | |
cdn.status |
enum: draft, provisioning, active, degraded, paused, archived, ... |
Yes | |
cdn.updated_at |
string (date-time) |
Yes | |
cdn.updated_at_label |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/hosting/apps/{app_id}/cdns/{id}/pause
Operation ID: pause_api_v1_app_cdn.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Updated app CDN distribution
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cdn |
object |
Yes | |
cdn.app_environment_id |
string |
Yes | |
cdn.app_service_id |
string |
Yes | |
cdn.cache_path_prefix |
string |
No | |
cdn.cache_settings_json |
string |
Yes | |
cdn.created_at |
string (date-time) |
Yes | |
cdn.created_at_label |
string |
Yes | |
cdn.distribution_kind |
enum: pull_zone |
Yes | |
cdn.edge_hostname |
string |
Yes | |
cdn.failure_message |
string |
Yes | |
cdn.hosted_app_id |
string |
Yes | |
cdn.hostnames |
array of object |
Yes | |
cdn.hostnames[].app_cdn_distribution_id |
string |
Yes | |
cdn.hostnames[].created_at |
string (date-time) |
Yes | |
cdn.hostnames[].dns_status |
enum: pending, configured, failed |
Yes | |
cdn.hostnames[].force_ssl |
boolean |
Yes | |
cdn.hostnames[].hostname |
string |
Yes | |
cdn.hostnames[].id |
string |
Yes | |
cdn.hostnames[].provider_hostname_id |
string |
Yes | |
cdn.hostnames[].tls_status |
enum: pending, active, failed |
Yes | |
cdn.hostnames[].updated_at |
string (date-time) |
Yes | |
cdn.id |
string |
Yes | |
cdn.last_deployed_at |
string (date-time) |
Yes | |
cdn.last_deployed_at_label |
string |
Yes | |
cdn.last_purged_at |
string (date-time) |
Yes | |
cdn.last_purged_at_label |
string |
Yes | |
cdn.last_synced_at |
string (date-time) |
Yes | |
cdn.last_synced_at_label |
string |
Yes | |
cdn.name |
string |
Yes | |
cdn.origin_url |
string (uri) |
Yes | |
cdn.provisioned |
boolean |
Yes | |
cdn.routing_settings_json |
string |
Yes | |
cdn.security_settings_json |
string |
Yes | |
cdn.slug |
string |
Yes | |
cdn.status |
enum: draft, provisioning, active, degraded, paused, archived, ... |
Yes | |
cdn.updated_at |
string (date-time) |
Yes | |
cdn.updated_at_label |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/hosting/apps/{app_id}/cdns/{id}/provision
Operation ID: provision_api_v1_app_cdn.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
commit_sha |
string |
No | |
source_ref |
string |
No |
Responses
200: App CDN deployment action completed
application/json
| Property | Type | Required | Description |
|---|---|---|---|
deployment |
object |
Yes | |
deployment.action_kind |
enum: provision, reconfigure, hostname_sync, purge_all, purge_urls |
Yes | |
deployment.app_cdn_distribution_id |
string |
Yes | |
deployment.commit_sha |
string |
Yes | |
deployment.created_at |
string (date-time) |
Yes | |
deployment.created_at_label |
string |
Yes | |
deployment.creator_user_id |
string |
Yes | |
deployment.failure_message |
string |
Yes | |
deployment.finished_at |
string (date-time) |
Yes | |
deployment.finished_at_label |
string |
Yes | |
deployment.id |
string |
Yes | |
deployment.purge_urls |
array of string |
Yes | |
deployment.source_ref |
string |
Yes | |
deployment.started_at |
string (date-time) |
Yes | |
deployment.started_at_label |
string |
Yes | |
deployment.status |
enum: queued, deploying, active, failed, canceled |
Yes | |
deployment.trigger_kind |
enum: manual, push, schedule, api, rollback |
Yes | |
deployment.updated_at |
string (date-time) |
Yes | |
deployment.updated_at_label |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: CDN request failed validation
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes |
502: Bad gateway
POST /api/v1/hosting/apps/{app_id}/cdns/{id}/purge
Operation ID: purge_api_v1_app_cdn.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object and object.
Responses
200: App CDN deployment action completed
application/json
| Property | Type | Required | Description |
|---|---|---|---|
deployment |
object |
Yes | |
deployment.action_kind |
enum: provision, reconfigure, hostname_sync, purge_all, purge_urls |
Yes | |
deployment.app_cdn_distribution_id |
string |
Yes | |
deployment.commit_sha |
string |
Yes | |
deployment.created_at |
string (date-time) |
Yes | |
deployment.created_at_label |
string |
Yes | |
deployment.creator_user_id |
string |
Yes | |
deployment.failure_message |
string |
Yes | |
deployment.finished_at |
string (date-time) |
Yes | |
deployment.finished_at_label |
string |
Yes | |
deployment.id |
string |
Yes | |
deployment.purge_urls |
array of string |
Yes | |
deployment.source_ref |
string |
Yes | |
deployment.started_at |
string (date-time) |
Yes | |
deployment.started_at_label |
string |
Yes | |
deployment.status |
enum: queued, deploying, active, failed, canceled |
Yes | |
deployment.trigger_kind |
enum: manual, push, schedule, api, rollback |
Yes | |
deployment.updated_at |
string (date-time) |
Yes | |
deployment.updated_at_label |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: CDN request failed validation
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes |
502: Bad gateway
POST /api/v1/hosting/apps/{app_id}/cdns/{id}/resume
Operation ID: resume_api_v1_app_cdn.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Updated app CDN distribution
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cdn |
object |
Yes | |
cdn.app_environment_id |
string |
Yes | |
cdn.app_service_id |
string |
Yes | |
cdn.cache_path_prefix |
string |
No | |
cdn.cache_settings_json |
string |
Yes | |
cdn.created_at |
string (date-time) |
Yes | |
cdn.created_at_label |
string |
Yes | |
cdn.distribution_kind |
enum: pull_zone |
Yes | |
cdn.edge_hostname |
string |
Yes | |
cdn.failure_message |
string |
Yes | |
cdn.hosted_app_id |
string |
Yes | |
cdn.hostnames |
array of object |
Yes | |
cdn.hostnames[].app_cdn_distribution_id |
string |
Yes | |
cdn.hostnames[].created_at |
string (date-time) |
Yes | |
cdn.hostnames[].dns_status |
enum: pending, configured, failed |
Yes | |
cdn.hostnames[].force_ssl |
boolean |
Yes | |
cdn.hostnames[].hostname |
string |
Yes | |
cdn.hostnames[].id |
string |
Yes | |
cdn.hostnames[].provider_hostname_id |
string |
Yes | |
cdn.hostnames[].tls_status |
enum: pending, active, failed |
Yes | |
cdn.hostnames[].updated_at |
string (date-time) |
Yes | |
cdn.id |
string |
Yes | |
cdn.last_deployed_at |
string (date-time) |
Yes | |
cdn.last_deployed_at_label |
string |
Yes | |
cdn.last_purged_at |
string (date-time) |
Yes | |
cdn.last_purged_at_label |
string |
Yes | |
cdn.last_synced_at |
string (date-time) |
Yes | |
cdn.last_synced_at_label |
string |
Yes | |
cdn.name |
string |
Yes | |
cdn.origin_url |
string (uri) |
Yes | |
cdn.provisioned |
boolean |
Yes | |
cdn.routing_settings_json |
string |
Yes | |
cdn.security_settings_json |
string |
Yes | |
cdn.slug |
string |
Yes | |
cdn.status |
enum: draft, provisioning, active, degraded, paused, archived, ... |
Yes | |
cdn.updated_at |
string (date-time) |
Yes | |
cdn.updated_at_label |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/hosting/apps/{app_id}/cdns/{id}/sync
Operation ID: sync_api_v1_app_cdn.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
commit_sha |
string |
No | |
source_ref |
string |
No |
Responses
200: App CDN deployment action completed
application/json
| Property | Type | Required | Description |
|---|---|---|---|
deployment |
object |
Yes | |
deployment.action_kind |
enum: provision, reconfigure, hostname_sync, purge_all, purge_urls |
Yes | |
deployment.app_cdn_distribution_id |
string |
Yes | |
deployment.commit_sha |
string |
Yes | |
deployment.created_at |
string (date-time) |
Yes | |
deployment.created_at_label |
string |
Yes | |
deployment.creator_user_id |
string |
Yes | |
deployment.failure_message |
string |
Yes | |
deployment.finished_at |
string (date-time) |
Yes | |
deployment.finished_at_label |
string |
Yes | |
deployment.id |
string |
Yes | |
deployment.purge_urls |
array of string |
Yes | |
deployment.source_ref |
string |
Yes | |
deployment.started_at |
string (date-time) |
Yes | |
deployment.started_at_label |
string |
Yes | |
deployment.status |
enum: queued, deploying, active, failed, canceled |
Yes | |
deployment.trigger_kind |
enum: manual, push, schedule, api, rollback |
Yes | |
deployment.updated_at |
string (date-time) |
Yes | |
deployment.updated_at_label |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: CDN request failed validation
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes |
502: Bad gateway
POST /api/v1/hosting/apps/{app_id}/cdns
Operation ID: post_api_v1_hosting_apps_app_id_cdns.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
app_environment_id |
string |
No | |
app_service_id |
string |
No | |
cache_path_prefix |
string |
No | |
cache_settings_json |
string |
No | |
distribution_kind |
enum: pull_zone |
No | |
name |
string |
Yes | |
origin_url |
string (uri) |
Yes | |
routing_settings_json |
string |
No | |
security_settings_json |
string |
No | |
slug |
string |
Yes | |
status |
enum: draft, provisioning, active, degraded, paused, archived, ... |
No |
Responses
200: App CDN distribution created
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cdn |
object |
Yes | |
cdn.app_environment_id |
string |
Yes | |
cdn.app_service_id |
string |
Yes | |
cdn.cache_path_prefix |
string |
No | |
cdn.cache_settings_json |
string |
Yes | |
cdn.created_at |
string (date-time) |
Yes | |
cdn.created_at_label |
string |
Yes | |
cdn.distribution_kind |
enum: pull_zone |
Yes | |
cdn.edge_hostname |
string |
Yes | |
cdn.failure_message |
string |
Yes | |
cdn.hosted_app_id |
string |
Yes | |
cdn.hostnames |
array of object |
Yes | |
cdn.hostnames[].app_cdn_distribution_id |
string |
Yes | |
cdn.hostnames[].created_at |
string (date-time) |
Yes | |
cdn.hostnames[].dns_status |
enum: pending, configured, failed |
Yes | |
cdn.hostnames[].force_ssl |
boolean |
Yes | |
cdn.hostnames[].hostname |
string |
Yes | |
cdn.hostnames[].id |
string |
Yes | |
cdn.hostnames[].provider_hostname_id |
string |
Yes | |
cdn.hostnames[].tls_status |
enum: pending, active, failed |
Yes | |
cdn.hostnames[].updated_at |
string (date-time) |
Yes | |
cdn.id |
string |
Yes | |
cdn.last_deployed_at |
string (date-time) |
Yes | |
cdn.last_deployed_at_label |
string |
Yes | |
cdn.last_purged_at |
string (date-time) |
Yes | |
cdn.last_purged_at_label |
string |
Yes | |
cdn.last_synced_at |
string (date-time) |
Yes | |
cdn.last_synced_at_label |
string |
Yes | |
cdn.name |
string |
Yes | |
cdn.origin_url |
string (uri) |
Yes | |
cdn.provisioned |
boolean |
Yes | |
cdn.routing_settings_json |
string |
Yes | |
cdn.security_settings_json |
string |
Yes | |
cdn.slug |
string |
Yes | |
cdn.status |
enum: draft, provisioning, active, degraded, paused, archived, ... |
Yes | |
cdn.updated_at |
string (date-time) |
Yes | |
cdn.updated_at_label |
string |
Yes |
201: App CDN distribution created
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cdn |
object |
Yes | |
cdn.app_environment_id |
string |
Yes | |
cdn.app_service_id |
string |
Yes | |
cdn.cache_path_prefix |
string |
No | |
cdn.cache_settings_json |
string |
Yes | |
cdn.created_at |
string (date-time) |
Yes | |
cdn.created_at_label |
string |
Yes | |
cdn.distribution_kind |
enum: pull_zone |
Yes | |
cdn.edge_hostname |
string |
Yes | |
cdn.failure_message |
string |
Yes | |
cdn.hosted_app_id |
string |
Yes | |
cdn.hostnames |
array of object |
Yes | |
cdn.hostnames[].app_cdn_distribution_id |
string |
Yes | |
cdn.hostnames[].created_at |
string (date-time) |
Yes | |
cdn.hostnames[].dns_status |
enum: pending, configured, failed |
Yes | |
cdn.hostnames[].force_ssl |
boolean |
Yes | |
cdn.hostnames[].hostname |
string |
Yes | |
cdn.hostnames[].id |
string |
Yes | |
cdn.hostnames[].provider_hostname_id |
string |
Yes | |
cdn.hostnames[].tls_status |
enum: pending, active, failed |
Yes | |
cdn.hostnames[].updated_at |
string (date-time) |
Yes | |
cdn.id |
string |
Yes | |
cdn.last_deployed_at |
string (date-time) |
Yes | |
cdn.last_deployed_at_label |
string |
Yes | |
cdn.last_purged_at |
string (date-time) |
Yes | |
cdn.last_purged_at_label |
string |
Yes | |
cdn.last_synced_at |
string (date-time) |
Yes | |
cdn.last_synced_at_label |
string |
Yes | |
cdn.name |
string |
Yes | |
cdn.origin_url |
string (uri) |
Yes | |
cdn.provisioned |
boolean |
Yes | |
cdn.routing_settings_json |
string |
Yes | |
cdn.security_settings_json |
string |
Yes | |
cdn.slug |
string |
Yes | |
cdn.status |
enum: draft, provisioning, active, degraded, paused, archived, ... |
Yes | |
cdn.updated_at |
string (date-time) |
Yes | |
cdn.updated_at_label |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: CDN request failed validation
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes |
502: Bad gateway
load
GET /api/v1/hosting/apps/{app_id}/cdns/{id}
Operation ID: api_v1_app_cdn.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
GET /api/v1/hosting/apps/{app_id}/cdns
Operation ID: api_v1_app_cdns.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
patch
PATCH /api/v1/hosting/apps/{app_id}/cdns/{id}
Operation ID: patch_api_v1_hosting_apps_app_id_cdns_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
app_environment_id |
string |
No | |
app_service_id |
string |
No | |
cache_path_prefix |
string |
No | |
cache_settings_json |
string |
No | |
distribution_kind |
enum: pull_zone |
No | |
name |
string |
No | |
origin_url |
string (uri) |
No | |
routing_settings_json |
string |
No | |
security_settings_json |
string |
No | |
slug |
string |
No | |
status |
enum: draft, provisioning, active, degraded, paused, archived, ... |
No |
Responses
200: Updated app CDN distribution
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cdn |
object |
Yes | |
cdn.app_environment_id |
string |
Yes | |
cdn.app_service_id |
string |
Yes | |
cdn.cache_path_prefix |
string |
No | |
cdn.cache_settings_json |
string |
Yes | |
cdn.created_at |
string (date-time) |
Yes | |
cdn.created_at_label |
string |
Yes | |
cdn.distribution_kind |
enum: pull_zone |
Yes | |
cdn.edge_hostname |
string |
Yes | |
cdn.failure_message |
string |
Yes | |
cdn.hosted_app_id |
string |
Yes | |
cdn.hostnames |
array of object |
Yes | |
cdn.hostnames[].app_cdn_distribution_id |
string |
Yes | |
cdn.hostnames[].created_at |
string (date-time) |
Yes | |
cdn.hostnames[].dns_status |
enum: pending, configured, failed |
Yes | |
cdn.hostnames[].force_ssl |
boolean |
Yes | |
cdn.hostnames[].hostname |
string |
Yes | |
cdn.hostnames[].id |
string |
Yes | |
cdn.hostnames[].provider_hostname_id |
string |
Yes | |
cdn.hostnames[].tls_status |
enum: pending, active, failed |
Yes | |
cdn.hostnames[].updated_at |
string (date-time) |
Yes | |
cdn.id |
string |
Yes | |
cdn.last_deployed_at |
string (date-time) |
Yes | |
cdn.last_deployed_at_label |
string |
Yes | |
cdn.last_purged_at |
string (date-time) |
Yes | |
cdn.last_purged_at_label |
string |
Yes | |
cdn.last_synced_at |
string (date-time) |
Yes | |
cdn.last_synced_at_label |
string |
Yes | |
cdn.name |
string |
Yes | |
cdn.origin_url |
string (uri) |
Yes | |
cdn.provisioned |
boolean |
Yes | |
cdn.routing_settings_json |
string |
Yes | |
cdn.security_settings_json |
string |
Yes | |
cdn.slug |
string |
Yes | |
cdn.status |
enum: draft, provisioning, active, degraded, paused, archived, ... |
Yes | |
cdn.updated_at |
string (date-time) |
Yes | |
cdn.updated_at_label |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: CDN request failed validation
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes |
502: Bad gateway
remove
DELETE /api/v1/hosting/apps/{app_id}/cdns/{id}
Operation ID: delete_api_v1_hosting_apps_app_id_cdns_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
PUT /api/v1/hosting/apps/{app_id}/cdns/{id}
Operation ID: put_api_v1_hosting_apps_app_id_cdns_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
app_environment_id |
string |
No | |
app_service_id |
string |
No | |
cache_path_prefix |
string |
No | |
cache_settings_json |
string |
No | |
distribution_kind |
enum: pull_zone |
No | |
name |
string |
No | |
origin_url |
string (uri) |
No | |
routing_settings_json |
string |
No | |
security_settings_json |
string |
No | |
slug |
string |
No | |
status |
enum: draft, provisioning, active, degraded, paused, archived, ... |
No |
Responses
200: Updated app CDN distribution
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cdn |
object |
Yes | |
cdn.app_environment_id |
string |
Yes | |
cdn.app_service_id |
string |
Yes | |
cdn.cache_path_prefix |
string |
No | |
cdn.cache_settings_json |
string |
Yes | |
cdn.created_at |
string (date-time) |
Yes | |
cdn.created_at_label |
string |
Yes | |
cdn.distribution_kind |
enum: pull_zone |
Yes | |
cdn.edge_hostname |
string |
Yes | |
cdn.failure_message |
string |
Yes | |
cdn.hosted_app_id |
string |
Yes | |
cdn.hostnames |
array of object |
Yes | |
cdn.hostnames[].app_cdn_distribution_id |
string |
Yes | |
cdn.hostnames[].created_at |
string (date-time) |
Yes | |
cdn.hostnames[].dns_status |
enum: pending, configured, failed |
Yes | |
cdn.hostnames[].force_ssl |
boolean |
Yes | |
cdn.hostnames[].hostname |
string |
Yes | |
cdn.hostnames[].id |
string |
Yes | |
cdn.hostnames[].provider_hostname_id |
string |
Yes | |
cdn.hostnames[].tls_status |
enum: pending, active, failed |
Yes | |
cdn.hostnames[].updated_at |
string (date-time) |
Yes | |
cdn.id |
string |
Yes | |
cdn.last_deployed_at |
string (date-time) |
Yes | |
cdn.last_deployed_at_label |
string |
Yes | |
cdn.last_purged_at |
string (date-time) |
Yes | |
cdn.last_purged_at_label |
string |
Yes | |
cdn.last_synced_at |
string (date-time) |
Yes | |
cdn.last_synced_at_label |
string |
Yes | |
cdn.name |
string |
Yes | |
cdn.origin_url |
string (uri) |
Yes | |
cdn.provisioned |
boolean |
Yes | |
cdn.routing_settings_json |
string |
Yes | |
cdn.security_settings_json |
string |
Yes | |
cdn.slug |
string |
Yes | |
cdn.status |
enum: draft, provisioning, active, degraded, paused, archived, ... |
Yes | |
cdn.updated_at |
string (date-time) |
Yes | |
cdn.updated_at_label |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: CDN request failed validation
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes |