Skip to main content

deployment_instance_executions

Creates, updates, deletes, gets or lists a deployment_instance_executions resource.

Overview​

Namedeployment_instance_executions
TypeResource
Idrailway.deployments.deployment_instance_executions

Fields​

The following fields are returned by SELECT queries:

One row per DeploymentInstanceExecution.

NameDatatypeDescription
idstring
deployment_idstring
completed_atstring (date-time)
created_atstring (date-time)
deployment_metaobject
statusstring (CRASHED, CREATED, EXITED, INITIALIZING, REMOVED, REMOVING, RESTARTING, RUNNING, SKIPPED, STOPPED)
updated_atstring (date-time)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectenvironment_id, service_idGet the deployment instance executions for a deployment. Backed by the Railway GraphQL query deploymentInstanceExecutions.
createinsertservice_instance_idInvoke a deployment instance execution. Backed by the Railway GraphQL mutation deploymentInstanceExecutionCreate.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environment_idstring
service_idstring
service_instance_idstring

SELECT examples​

Get the deployment instance executions for a deployment. Backed by the Railway GraphQL query deploymentInstanceExecutions.

SELECT
id,
deployment_id,
completed_at,
created_at,
deployment_meta,
status,
updated_at
FROM railway.deployments.deployment_instance_executions
WHERE environment_id = '{{ environment_id }}' -- required
AND service_id = '{{ service_id }}' -- required
;

INSERT examples​

Invoke a deployment instance execution. Backed by the Railway GraphQL mutation deploymentInstanceExecutionCreate.

INSERT INTO railway.deployments.deployment_instance_executions (
service_instance_id
)
SELECT
'{{ service_instance_id }}' /* required */
RETURNING
result
;