Skip to main content

cloud_agent_checkpoints

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

Overview​

Namecloud_agent_checkpoints
TypeResource
Idrailway.agents.cloud_agent_checkpoints

Fields​

The following fields are returned by SELECT queries:

One CloudAgentCheckpoint row. A checkpoint of a cloud agent's disk.

NameDatatypeDescription
idstring
namestring
environment_idstring
created_atstring (date-time)
failure_reasonstringWhy the capture failed.
regionstringRegion the checkpoint was captured in.
statusstring (FAILED, IN_PROGRESS, SUCCEEDED)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidA cloud agent checkpoint by ID. Backed by the Railway GraphQL query cloudAgentCheckpoint.
listselectenvironment_idCloud agent checkpoints in an environment, newest first. Backed by the Railway GraphQL query cloudAgentCheckpoints.
createinsertidCheckpoint the agent's disk. Poll cloudAgentCheckpoint until SUCCEEDED. Backed by the Railway GraphQL mutation cloudAgentCheckpointCreate.
deletedeleteidDelete a checkpoint. Backed by the Railway GraphQL mutation cloudAgentCheckpointDelete.

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
idstring

SELECT examples​

A cloud agent checkpoint by ID. Backed by the Railway GraphQL query cloudAgentCheckpoint.

SELECT
id,
name,
environment_id,
created_at,
failure_reason,
region,
status
FROM railway.agents.cloud_agent_checkpoints
WHERE id = '{{ id }}' -- required
;

INSERT examples​

Checkpoint the agent's disk. Poll cloudAgentCheckpoint until SUCCEEDED. Backed by the Railway GraphQL mutation cloudAgentCheckpointCreate.

INSERT INTO railway.agents.cloud_agent_checkpoints (
id,
name
)
SELECT
'{{ id }}' /* required */,
'{{ name }}'
RETURNING
id,
name,
environment_id,
created_at,
failure_reason,
region,
status
;

DELETE examples​

Delete a checkpoint. Backed by the Railway GraphQL mutation cloudAgentCheckpointDelete.

DELETE FROM railway.agents.cloud_agent_checkpoints
WHERE
id = '{{ id }}' --required
;