Skip to main content

environment_variables

Creates, updates, deletes, gets or lists an environment_variables resource.

Overview​

Nameenvironment_variables
TypeResource
Idrailway.variables.environment_variables

Fields​

The following fields are returned by SELECT queries:

One row per Variable.

NameDatatypeDescription
idstring
namestring
environment_idstring
service_idstring
created_atstring (date-time)
is_sealedboolean
references_array
updated_atstring (date-time)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectenvironment_idproject_idLists Variable objects of a Environment. Backed by the Railway GraphQL query environment.variables.

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
project_idstring

SELECT examples​

Lists Variable objects of a Environment. Backed by the Railway GraphQL query environment.variables.

SELECT
id,
name,
environment_id,
service_id,
created_at,
is_sealed,
references_,
updated_at
FROM railway.variables.environment_variables
WHERE environment_id = '{{ environment_id }}' -- required
AND project_id = '{{ project_id }}'
;