API

DeploymentPreview

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/previews list Organization preview inventory, filter choices and pagination

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_previews, err := client.DeploymentPreview(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(deployment_previews)

Lua

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

local deployment_previews, err = client:DeploymentPreview():list({ organization_id = "example" })

PHP

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

$deployment_previews = $client->DeploymentPreview()->list(["organization_id" => "example"]);

Python

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

deployment_previews = client.DeploymentPreview().list({"organization_id": "example"})

Ruby

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

deployment_previews = client.DeploymentPreview.list({ "organization_id" => "example" })

TypeScript

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

const deployment_previews = await client.DeploymentPreview().list({ organization_id: "example" })

Fields

Field Type Required Description
access string Yes Access
app_environment_id string Yes App Environment Id
app_name string Yes App Name
app_preview_profile_id string Yes App Preview Profile Id
app_slug string Yes App Slug
change_number one,integer,null Yes Change Number
created_at string No Created At
created_by_user_id string No Created By User Id
expires_at string Yes Expires At
generation integer Yes Generation
health string Yes Health
hosted_app_id string Yes Hosted App Id
id string Yes Id
latest_operation_status one,string,null Yes Latest Operation Status
name string Yes Name
owner_name one,string,null Yes Owner Name
profile_name string Yes Profile Name
resource_overrides object No Service public IDs mapped to resource overrides.
retained boolean Yes Retained
slug string Yes Slug
snapshot_version integer Yes Snapshot Version
source_revision string Yes Source Revision
status string Yes Status
updated_at string No Updated At
urls array Yes Urls
vcs_change_id one,string,null No Vcs Change Id

list

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

Operation ID: api_v1_pages_deployments_previews.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
app query string No
owner query string No
change query string No
health query enum: degraded, running, starting, stopped No
expiry query enum: expiring, expired, retained No
page query integer No

Responses

200: Organization preview inventory, filter choices and pagination

application/json

Property Type Required Description
choices object Yes
choices.apps array of object Yes
choices.apps[].id string Yes
choices.apps[].name string Yes
choices.owners array of object Yes
choices.owners[].id string Yes
choices.owners[].name string Yes
filters object Yes
filters.app string No
filters.change string No
filters.expiry string No
filters.health string No
filters.owner string No
pagination object Yes
pagination.page integer Yes
pagination.per_page integer Yes
pagination.total_count integer Yes
pagination.total_pages integer Yes
previews array of object and object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway