Skip to main content

routes

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

Overview​

Nameroutes
TypeResource
Idgoogle.datastream.routes

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. Identifier. The resource's name.
createTimestring (google-datetime)Output only. The create time of the resource.
destinationAddressstringRequired. Destination address for connection
destinationPortinteger (int32)Destination port for connection
displayNamestringRequired. Display name.
labelsobjectLabels.
updateTimestring (google-datetime)Output only. The update time of the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, privateConnectionsId, routesIdUse this method to get details about a route.
listselectprojectsId, locationsId, privateConnectionsIdfilter, orderBy, pageSize, pageTokenUse this method to list routes created for a private connectivity configuration in a project and location.
createinsertprojectsId, locationsId, privateConnectionsIdrequestId, routeIdUse this method to create a route for a private connectivity configuration in a project and location.
deletedeleteprojectsId, locationsId, privateConnectionsId, routesIdrequestIdUse this method to delete a route.

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
locationsIdstring
privateConnectionsIdstring
projectsIdstring
routesIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
routeIdstring

SELECT examples​

Use this method to get details about a route.

SELECT
name,
createTime,
destinationAddress,
destinationPort,
displayName,
labels,
updateTime
FROM google.datastream.routes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND privateConnectionsId = '{{ privateConnectionsId }}' -- required
AND routesId = '{{ routesId }}' -- required
;

INSERT examples​

Use this method to create a route for a private connectivity configuration in a project and location.

INSERT INTO google.datastream.routes (
data__destinationAddress,
data__destinationPort,
data__displayName,
data__labels,
projectsId,
locationsId,
privateConnectionsId,
requestId,
routeId
)
SELECT
'{{ destinationAddress }}',
{{ destinationPort }},
'{{ displayName }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ privateConnectionsId }}',
'{{ requestId }}',
'{{ routeId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples​

Use this method to delete a route.

DELETE FROM google.datastream.routes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND privateConnectionsId = '{{ privateConnectionsId }}' --required
AND routesId = '{{ routesId }}' --required
AND requestId = '{{ requestId }}'
;