heroku_apps
Creates, updates, deletes, gets or lists a heroku_apps resource.
Overview​
| Name | heroku_apps |
| Type | Resource |
| Id | railway.integrations.heroku_apps |
Fields​
The following fields are returned by SELECT queries:
- list
One row per HerokuApp.
| Name | Datatype | Description |
|---|---|---|
id | string | |
name | string |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | Get the Herokus apps for the current user. Backed by the Railway GraphQL query herokuApps. | ||
import_variables | exec | environment_id, heroku_app_id, project_id, service_id | Import 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.
| Name | Datatype | Description |
|---|---|---|
environment_id | string | |
heroku_app_id | string | |
project_id | string | |
service_id | string |
SELECT examples​
- list
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
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
;