API

PullZone

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{org_slug}/pages/pull_zones list Organization pull zones and the selected app's CDN configuration

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:

pull_zones, err := client.PullZone(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(pull_zones)

Lua

Construct client as shown in the Lua setup, then call the operations:

local pull_zones, err = client:PullZone():list({ organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$pull_zones = $client->PullZone()->list(["organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

pull_zones = client.PullZone().list({"organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

pull_zones = client.PullZone.list({ "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const pull_zones = await client.PullZone().list({ organization_id: "example" })

Fields

Field Type Required Description
id string Yes Id
name string Yes Name
slug string Yes Slug

list

GET /api/v1/organizations/{org_slug}/pages/pull_zones

Operation ID: api_v1_pages_pull_zones.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
app query string No

Responses

200: Organization pull zones and the selected app's CDN configuration

application/json

Property Type Required Description
apps array of object Yes
apps[].id string Yes
apps[].name string Yes
apps[].slug string Yes
cdn_deployments array of object Yes
cdn_deployments[].action_kind enum: provision, reconfigure, hostname_sync, purge_all, purge_urls Yes
cdn_deployments[].app_cdn_distribution_id string Yes
cdn_deployments[].commit_sha string Yes
cdn_deployments[].created_at string (date-time) Yes
cdn_deployments[].created_at_label string Yes
cdn_deployments[].creator_user_id string Yes
cdn_deployments[].failure_message string Yes
cdn_deployments[].finished_at string (date-time) Yes
cdn_deployments[].finished_at_label string Yes
cdn_deployments[].id string Yes
cdn_deployments[].purge_urls array of string Yes
cdn_deployments[].source_ref string Yes
cdn_deployments[].started_at string (date-time) Yes
cdn_deployments[].started_at_label string Yes
cdn_deployments[].status enum: queued, deploying, active, failed, canceled Yes
cdn_deployments[].trigger_kind enum: manual, push, schedule, api, rollback Yes
cdn_deployments[].updated_at string (date-time) Yes
cdn_deployments[].updated_at_label string Yes
cdns array of object Yes
cdns[].app_environment_id string Yes
cdns[].app_service_id string Yes
cdns[].cache_path_prefix string No
cdns[].cache_settings_json string Yes
cdns[].created_at string (date-time) Yes
cdns[].created_at_label string Yes
cdns[].distribution_kind enum: pull_zone Yes
cdns[].edge_hostname string Yes
cdns[].failure_message string Yes
cdns[].hosted_app_id string Yes
cdns[].hostnames array of object Yes
cdns[].hostnames[].app_cdn_distribution_id string Yes
cdns[].hostnames[].created_at string (date-time) Yes
cdns[].hostnames[].dns_status enum: pending, configured, failed Yes
cdns[].hostnames[].force_ssl boolean Yes
cdns[].hostnames[].hostname string Yes
cdns[].hostnames[].id string Yes
cdns[].hostnames[].provider_hostname_id string Yes
cdns[].hostnames[].tls_status enum: pending, active, failed Yes
cdns[].hostnames[].updated_at string (date-time) Yes
cdns[].id string Yes
cdns[].last_deployed_at string (date-time) Yes
cdns[].last_deployed_at_label string Yes
cdns[].last_purged_at string (date-time) Yes
cdns[].last_purged_at_label string Yes
cdns[].last_synced_at string (date-time) Yes
cdns[].last_synced_at_label string Yes
cdns[].name string Yes
cdns[].origin_url string (uri) Yes
cdns[].provisioned boolean Yes
cdns[].routing_settings_json string Yes
cdns[].security_settings_json string Yes
cdns[].slug string Yes
cdns[].status enum: draft, provisioning, active, degraded, paused, archived, ... Yes
cdns[].updated_at string (date-time) Yes
cdns[].updated_at_label string Yes
environments array of object Yes
environments[].id string Yes
environments[].name string Yes
environments[].slug string Yes
selected_app_id string Yes
services array of object Yes
services[].id string Yes
services[].name string Yes
services[].slug string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway