regions
Creates, updates, deletes, gets or lists a regions resource.
Overview​
| Name | regions |
| Type | Resource |
| Id | railway.platform.regions |
Fields​
The following fields are returned by SELECT queries:
- list
One row per Region.
| Name | Datatype | Description |
|---|---|---|
id | string | Region ID (airport code) |
name | string | |
workspace_id | string | |
country | string | Region country |
location | string | |
region | string |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | project_id | List available regions. Backed by the Railway GraphQL query regions. |
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 |
|---|---|---|
project_id | string |
SELECT examples​
- list
List available regions. Backed by the Railway GraphQL query regions.
SELECT
id,
name,
workspace_id,
country,
location,
region
FROM railway.platform.regions
WHERE project_id = '{{ project_id }}'
;