domains
Creates, updates, deletes, gets or lists a domains resource.
Overview​
| Name | domains |
| Type | Resource |
| Id | railway.networking.domains |
Fields​
The following fields are returned by SELECT queries:
- get
One AllDomains row.
| Name | Datatype | Description |
|---|---|---|
custom_domains | array | List of CustomDomain objects |
service_domains | array | List of ServiceDomain objects |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | environment_id, project_id, service_id | All domains for a service instance. Backed by the Railway GraphQL query domains. |
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​
- get
All domains for a service instance. Backed by the Railway GraphQL query domains.
SELECT
custom_domains,
service_domains
FROM railway.networking.domains
WHERE environment_id = '{{ environment_id }}' -- required
AND project_id = '{{ project_id }}' -- required
AND service_id = '{{ service_id }}' -- required
;