Skip to main content

cloud_agent_console_sessions

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

Overview​

Namecloud_agent_console_sessions
TypeResource
Idrailway.agents.cloud_agent_console_sessions

Fields​

The following fields are returned by SELECT queries:

One row per SandboxSession. A resumable session inside a sandbox: an interactive shell or a one-off exec command.

NameDatatypeDescription
namestringStable session name; reconnect/attach by this.
attachedbooleanWhether a client is currently connected.
commandstringThe command being run; empty for an interactive shell.
created_atstring (date-time)
foreground_activebooleanFor an interactive shell, whether a foreground program currently holds the terminal. Null otherwise, or when the runtime can't report it.
kindstring (EXEC, SHELL)
run_stateobjectSandboxSessionRunState object

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcloud_agent_idShell and exec sessions running on a cloud agent's VM that you can reconnect to. Null if the agent has no running machine. Backed by the Railway GraphQL query cloudAgentConsoleSessions.

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
cloud_agent_idstring

SELECT examples​

Shell and exec sessions running on a cloud agent's VM that you can reconnect to. Null if the agent has no running machine. Backed by the Railway GraphQL query cloudAgentConsoleSessions.

SELECT
name,
attached,
command,
created_at,
foreground_active,
kind,
run_state
FROM railway.agents.cloud_agent_console_sessions
WHERE cloud_agent_id = '{{ cloud_agent_id }}' -- required
;