Skip to main content

tcp_proxies

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

Overview​

Nametcp_proxies
TypeResource
Idrailway.networking.tcp_proxies

Fields​

The following fields are returned by SELECT queries:

One row per TCPProxy.

NameDatatypeDescription
idstring
environment_idstring
service_idstring
application_portinteger
created_atstring (date-time)
deleted_atstring (date-time)
domainstring
proxy_portinteger
sync_statusstring (ACTIVE, CREATING, DELETED, DELETING, UNSPECIFIED, UPDATING)
updated_atstring (date-time)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectenvironment_id, service_idAll TCP proxies for a service instance. Backed by the Railway GraphQL query tcpProxies.
deletedeleteidDeletes a TCP proxy by id. Backed by the Railway GraphQL mutation tcpProxyDelete.

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
service_idstring
idstring

SELECT examples​

All TCP proxies for a service instance. Backed by the Railway GraphQL query tcpProxies.

SELECT
id,
environment_id,
service_id,
application_port,
created_at,
deleted_at,
domain,
proxy_port,
sync_status,
updated_at
FROM railway.networking.tcp_proxies
WHERE environment_id = '{{ environment_id }}' -- required
AND service_id = '{{ service_id }}' -- required
;

DELETE examples​

Deletes a TCP proxy by id. Backed by the Railway GraphQL mutation tcpProxyDelete.

DELETE FROM railway.networking.tcp_proxies
WHERE
id = '{{ id }}' --required
;