deployment_instance_executions
Creates, updates, deletes, gets or lists a deployment_instance_executions resource.
Overview​
| Name | deployment_instance_executions |
| Type | Resource |
| Id | railway.deployments.deployment_instance_executions |
Fields​
The following fields are returned by SELECT queries:
- list
One row per DeploymentInstanceExecution.
| Name | Datatype | Description |
|---|---|---|
id | string | |
deployment_id | string | |
completed_at | string (date-time) | |
created_at | string (date-time) | |
deployment_meta | object | |
status | string | (CRASHED, CREATED, EXITED, INITIALIZING, REMOVED, REMOVING, RESTARTING, RUNNING, SKIPPED, STOPPED) |
updated_at | string (date-time) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | environment_id, service_id | Get the deployment instance executions for a deployment. Backed by the Railway GraphQL query deploymentInstanceExecutions. | |
create | insert | service_instance_id | Invoke 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.
| Name | Datatype | Description |
|---|---|---|
environment_id | string | |
service_id | string | |
service_instance_id | string |
SELECT examples​
- list
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​
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: deployment_instance_executions
props:
- name: service_instance_id
value: "{{ service_instance_id }}"