API

DeploymentSetting

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/deployments/settings list Deployments Settings page contract. Everything below app_id is empty or null until an app is selected; a scope value that names nothing is ignored rather than rejected

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:

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

Lua

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

local deployment_settings, err = client:DeploymentSetting():list({ organization_id = "example" })

PHP

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

$deployment_settings = $client->DeploymentSetting()->list(["organization_id" => "example"]);

Python

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

deployment_settings = client.DeploymentSetting().list({"organization_id": "example"})

Ruby

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

deployment_settings = client.DeploymentSetting.list({ "organization_id" => "example" })

TypeScript

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

const deployment_settings = await client.DeploymentSetting().list({ organization_id: "example" })

Fields

Field Type Required Description
code string Yes Code
created_at string Yes Created At
id string Yes Id
name string Yes Name
nomad_datacenter string Yes Nomad Datacenter
updated_at string Yes Updated At

list

GET /api/v1/organizations/{org_slug}/pages/deployments/settings

Operation ID: api_v1_pages_deployments_settings.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: Deployments Settings page contract. Everything below app_id is empty or null until an app is selected; a scope value that names nothing is ignored rather than rejected

application/json

Property Type Required Description
app_id string Yes
available_locations array of object Yes
available_locations[].code string Yes
available_locations[].created_at string (date-time) Yes
available_locations[].id string Yes
available_locations[].name string Yes
available_locations[].nomad_datacenter string Yes
available_locations[].updated_at string (date-time) 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
config_variables array of object Yes
config_variables[].app_environment_id string Yes
config_variables[].app_service_id string Yes
config_variables[].created_at string (date-time) Yes
config_variables[].description string Yes
config_variables[].exposed_to_build boolean Yes
config_variables[].has_value boolean Yes
config_variables[].hosted_app_id string Yes
config_variables[].id string Yes
config_variables[].key string Yes
config_variables[].scope_kind enum: app, environment, service Yes
config_variables[].updated_at string (date-time) Yes
config_variables[].value string Yes
config_variables[].value_kind enum: plain, secret, reference Yes
deploy_targets array of object Yes
deploy_targets[].auto_deploy boolean Yes
deploy_targets[].environment_id string Yes
deploy_targets[].environment_name string Yes
deploy_targets[].placement_id string Yes
deploy_targets[].redeploy boolean Yes
deploy_targets[].region_count integer Yes
deploy_targets[].replicas_per_region integer Yes
deploy_targets[].rollout_strategy enum: health_gated, burst Yes
deploy_targets[].service_id string Yes
deploy_targets[].service_name string Yes
deploy_targets[].source_ref string Yes
desired_state_count integer Yes
domains array of object Yes
domains[].app_environment_id string Yes
domains[].app_service_id string Yes
domains[].certificate object Yes
domains[].certificate.expires_at string (date-time) Yes
domains[].certificate.last_error string Yes
domains[].certificate.status string Yes
domains[].created_at string (date-time) Yes
domains[].dns_mode enum: manual_cname, cloudflare Yes
domains[].dns_status enum: pending, configured, failed Yes
domains[].failure_message string Yes
domains[].hosted_app_id string Yes
domains[].hostname string Yes
domains[].id string Yes
domains[].kind enum: primary, redirect, preview, internal Yes
domains[].last_checked_at string (date-time) Yes
domains[].path_rules array of object Yes
domains[].path_rules[].action_kind enum: proxy, redirect, fixed_response, external Yes
domains[].path_rules[].app_service_endpoint_id string Yes
domains[].path_rules[].app_service_id string Yes
domains[].path_rules[].backend_ref string Yes
domains[].path_rules[].created_at string (date-time) Yes
domains[].path_rules[].id string Yes
domains[].path_rules[].last_error string Yes
domains[].path_rules[].path_prefix string Yes
domains[].path_rules[].status enum: pending, active, failed, disabled Yes
domains[].path_rules[].updated_at string (date-time) Yes
domains[].record_name string Yes
domains[].record_type string Yes
domains[].record_value string Yes
domains[].redirect_to string Yes
domains[].static_site_id string Yes
domains[].target_kind enum: app_service, static_site Yes
domains[].tls_status enum: pending, active, failed Yes
domains[].updated_at string (date-time) Yes
domains[].verification_record object Yes
domains[].verification_record.name string Yes
domains[].verification_record.type enum: TXT Yes
domains[].verification_record.value string Yes
domains[].verification_status string Yes
environments array of object Yes
environments[].auto_deploy boolean Yes
environments[].base_domain string Yes
environments[].branch_pattern string Yes
environments[].created_at string (date-time) Yes
environments[].created_at_label string Yes
environments[].hosted_app_id string Yes
environments[].id string Yes
environments[].kind enum: production, staging, development, preview, ephemeral, custom Yes
environments[].location object or null Yes
environments[].location_id string Yes
environments[].name string Yes
environments[].slug string Yes
environments[].status enum: active, paused, archived Yes
environments[].updated_at string (date-time) Yes
environments[].updated_at_label string Yes
filters object Yes The option lists the deployments page's app, service and stage pickers narrow by. services and environments are empty until an app is selected.
filters.apps array of object Yes
filters.apps[].created_at string (date-time) Yes
filters.apps[].created_at_label string Yes
filters.apps[].description string Yes
filters.apps[].framework string Yes
filters.apps[].id string Yes
filters.apps[].name string Yes
filters.apps[].organization_id string Yes
filters.apps[].repository_id string Yes
filters.apps[].repository_kind string Yes
filters.apps[].root_path string Yes
filters.apps[].root_path_display string Yes
filters.apps[].slug string Yes
filters.apps[].status enum: draft, active, archived Yes
filters.apps[].updated_at string (date-time) Yes
filters.apps[].updated_at_label string Yes
filters.environments array of object Yes
filters.environments[].id string Yes
filters.environments[].name string Yes
filters.environments[].slug string Yes
filters.services array of object Yes
filters.services[].id string Yes
filters.services[].name string Yes
locations array of object Yes
locations[].code string Yes
locations[].created_at string (date-time) Yes
locations[].id string Yes
locations[].name string Yes
locations[].nomad_datacenter string Yes
locations[].updated_at string (date-time) Yes
placement object or null Yes
scoped_environment object or null Yes
scoped_service object or null Yes
services array of object Yes
services[].auto_deploy boolean Yes
services[].bindings array of object Yes
services[].bindings[].app_service_id string Yes
services[].bindings[].bindable_id string Yes
services[].bindings[].bindable_type string Yes
services[].bindings[].binding_type string Yes
services[].bindings[].created_at string (date-time) Yes
services[].bindings[].hosted_app_id string Yes
services[].bindings[].id string Yes
services[].bindings[].mount_path string Yes
services[].bindings[].name string Yes
services[].bindings[].read_only boolean Yes
services[].bindings[].required boolean Yes
services[].bindings[].updated_at string (date-time) Yes
services[].build_command string Yes
services[].cpu_label string Yes
services[].cpu_mhz integer Yes
services[].created_at string (date-time) Yes
services[].created_at_label string Yes
services[].deploy_paths array of string Yes Explicit repo-root-relative path prefixes/globs a push must touch to auto-deploy. Empty means default to the app root_path.
services[].desired_instances integer Yes
services[].disk_label string Yes
services[].disk_mb integer Yes
services[].effective_deploy_paths array of string Yes Tracked paths actually applied by the auto-deploy trigger (explicit deploy_paths, else [root_path]).
services[].healthcheck_path string Yes
services[].hosted_app_id string Yes
services[].id string Yes
services[].internal_port integer Yes
services[].kind enum: web, worker, cron, static, private Yes
services[].memory_label string Yes
services[].memory_max_label string Yes
services[].memory_max_mb integer Yes Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB). memory_mb stays the reservation the scheduler places against, so raising this does not make a rollout harder to place. Must be >= memory_mb. Memory above the reservation is oversubscribed and best effort: under node pressure the kernel reclaims it and can OOM-kill the task. Null/absent renders no limit beyond the reservation.
services[].memory_mb integer Yes
services[].name string Yes
services[].nomad_constraints_json string Yes
services[].nomad_kill_timeout_seconds integer Yes Seconds the task gets after SIGTERM before SIGKILL. Null/absent leaves Nomad's 5s default. Capped at 30 because a Nomad client silently clamps kill_timeout to its own max_kill_timeout (default 30s).
services[].nomad_namespace string Yes
services[].nomad_region string Yes
services[].nomad_shutdown_delay_seconds integer Yes Seconds Nomad waits between deregistering the group's services and sending SIGTERM, so the edge stops routing new requests to the allocation before it is signalled. Null/absent leaves Nomad's 0s default.
services[].nomad_ulimits_json string Yes Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example {"nofile":"65536:65536"}). Null/absent leaves the container on the daemon default.
services[].nomad_update_strategy_json string Yes
services[].prestart_command string Yes
services[].publicly_accessible boolean Yes
services[].release_command string Yes
services[].repo_source_path string Yes
services[].runtime enum: docker, node, ruby, python, go, rust, ... Yes
services[].runtime_adapter_kind enum: nomad, database Yes
services[].runtime_adapter_settings_json string Yes
services[].schedule string Yes
services[].slug string Yes
services[].source_path string Yes
services[].start_command string Yes
services[].updated_at string (date-time) Yes
services[].updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway