Skip to main content

tls_routes

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

Overview

Nametls_routes
TypeResource
Idgoogle.networkservices.tls_routes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Name of the TlsRoute resource. It matches pattern projects/*/locations/global/tlsRoutes/tls_route_name>.
createTimestring (google-datetime)Output only. The timestamp when the resource was created.
descriptionstringOptional. A free-text description of the resource. Max length 1024 characters.
gatewaysarrayOptional. Gateways defines a list of gateways this TlsRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: projects/*/locations/global/gateways/
labelsobjectOptional. Set of label tags associated with the TlsRoute resource.
meshesarrayOptional. Meshes defines a list of meshes this TlsRoute is attached to, as one of the routing rules to route the requests served by the mesh. Each mesh reference should match the pattern: projects/*/locations/global/meshes/ The attached Mesh should be of a type SIDECAR
rulesarrayRequired. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.
selfLinkstringOutput only. Server-defined URL of this resource
updateTimestring (google-datetime)Output only. The timestamp when the resource was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, tlsRoutesIdGets details of a single TlsRoute.
listselectprojectsId, locationsIdpageSize, pageToken, returnPartialSuccessLists TlsRoute in a given project and location.
createinsertprojectsId, locationsIdtlsRouteIdCreates a new TlsRoute in a given project and location.
patchupdateprojectsId, locationsId, tlsRoutesIdupdateMaskUpdates the parameters of a single TlsRoute.
deletedeleteprojectsId, locationsId, tlsRoutesIdDeletes a single TlsRoute.

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
projectsIdstring
tlsRoutesIdstring
pageSizeinteger (int32)
pageTokenstring
returnPartialSuccessboolean
tlsRouteIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single TlsRoute.

SELECT
name,
createTime,
description,
gateways,
labels,
meshes,
rules,
selfLink,
updateTime
FROM google.networkservices.tls_routes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND tlsRoutesId = '{{ tlsRoutesId }}' -- required;

INSERT examples

Creates a new TlsRoute in a given project and location.

INSERT INTO google.networkservices.tls_routes (
data__name,
data__description,
data__rules,
data__meshes,
data__gateways,
data__labels,
projectsId,
locationsId,
tlsRouteId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ rules }}',
'{{ meshes }}',
'{{ gateways }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ tlsRouteId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single TlsRoute.

UPDATE google.networkservices.tls_routes
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__rules = '{{ rules }}',
data__meshes = '{{ meshes }}',
data__gateways = '{{ gateways }}',
data__labels = '{{ labels }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND tlsRoutesId = '{{ tlsRoutesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single TlsRoute.

DELETE FROM google.networkservices.tls_routes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND tlsRoutesId = '{{ tlsRoutesId }}' --required;