variables_for_service_deployment
Creates, updates, deletes, gets or lists a variables_for_service_deployment resource.
Overview​
| Name | variables_for_service_deployment |
| Type | Resource |
| Id | railway.variables.variables_for_service_deployment |
Fields​
The following fields are returned by SELECT queries:
- list
One row per entry of the map.
| Name | Datatype | Description |
|---|---|---|
name | string | Entry name |
value | string | Entry value |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | environment_id, project_id, service_id | All rendered variables that are required for a service deployment. Backed by the Railway GraphQL query variablesForServiceDeployment. |
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 | |
service_id | string |
SELECT examples​
- list
All rendered variables that are required for a service deployment. Backed by the Railway GraphQL query variablesForServiceDeployment.
SELECT
name,
value
FROM railway.variables.variables_for_service_deployment
WHERE environment_id = '{{ environment_id }}' -- required
AND project_id = '{{ project_id }}' -- required
AND service_id = '{{ service_id }}' -- required
;