Skip to main content

resource_access

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

Overview​

Nameresource_access
TypeResource
Idrailway.projects.resource_access

Fields​

The following fields are returned by SELECT queries:

One ResourceAccess row.

NameDatatypeDescription
deploymentobjectAccessRule object
projectobjectAccessRule object

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidtypeGet resource access for the current user or workspace. Backed by the Railway GraphQL query resourceAccess.

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
idstringThe ID of the owner.
typestringThe type of owner.

SELECT examples​

Get resource access for the current user or workspace. Backed by the Railway GraphQL query resourceAccess.

SELECT
deployment,
project
FROM railway.projects.resource_access
WHERE id = '{{ id }}' -- required
AND type = '{{ type }}'
;