environment_variables
Creates, updates, deletes, gets or lists an environment_variables resource.
Overview​
| Name | environment_variables |
| Type | Resource |
| Id | railway.variables.environment_variables |
Fields​
The following fields are returned by SELECT queries:
- list
One row per Variable.
| Name | Datatype | Description |
|---|---|---|
id | string | |
name | string | |
environment_id | string | |
service_id | string | |
created_at | string (date-time) | |
is_sealed | boolean | |
references_ | array | |
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 | project_id | Lists 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.
| Name | Datatype | Description |
|---|---|---|
environment_id | string | |
project_id | string |
SELECT examples​
- list
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 }}'
;