Skip to main content

heroku_apps

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

Overview​

Nameheroku_apps
TypeResource
Idrailway.integrations.heroku_apps

Fields​

The following fields are returned by SELECT queries:

One row per HerokuApp.

NameDatatypeDescription
idstring
namestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectGet the Herokus apps for the current user. Backed by the Railway GraphQL query herokuApps.
import_variablesexecenvironment_id, heroku_app_id, project_id, service_idImport variables from a Heroku app into a Railway service. Returns the number of variables imports. Backed by the Railway GraphQL mutation herokuImportVariables.

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
heroku_app_idstring
project_idstring
service_idstring

SELECT examples​

Get the Herokus apps for the current user. Backed by the Railway GraphQL query herokuApps.

SELECT
id,
name
FROM railway.integrations.heroku_apps
;

Lifecycle Methods​

Import variables from a Heroku app into a Railway service. Returns the number of variables imports. Backed by the Railway GraphQL mutation herokuImportVariables.

EXEC railway.integrations.heroku_apps.import_variables
@environment_id='{{ environment_id }}', --required
@heroku_app_id='{{ heroku_app_id }}', --required
@project_id='{{ project_id }}', --required
@service_id='{{ service_id }}' --required
;