Skip to main content

variables_for_service_deployment

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

Overview​

Namevariables_for_service_deployment
TypeResource
Idrailway.variables.variables_for_service_deployment

Fields​

The following fields are returned by SELECT queries:

One row per entry of the map.

NameDatatypeDescription
namestringEntry name
valuestringEntry value

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectenvironment_id, project_id, service_idAll 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.

NameDatatypeDescription
environment_idstring
project_idstring
service_idstring

SELECT examples​

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
;