tls_routes
Creates, updates, deletes, gets or lists a tls_routes
resource.
Overview
Name | tls_routes |
Type | Resource |
Id | google.networkservices.tls_routes |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of the TlsRoute resource. It matches pattern projects/*/locations/global/tlsRoutes/tls_route_name> . |
description | string | Optional. A free-text description of the resource. Max length 1024 characters. |
createTime | string | Output only. The timestamp when the resource was created. |
gateways | array | Optional. 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/ |
labels | object | Optional. Set of label tags associated with the TlsRoute resource. |
meshes | array | Optional. 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 |
rules | array | Required. 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. |
selfLink | string | Output only. Server-defined URL of this resource |
updateTime | string | Output only. The timestamp when the resource was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId, tlsRoutesId | Gets details of a single TlsRoute. |
list | SELECT | locationsId, projectsId | Lists TlsRoute in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new TlsRoute in a given project and location. |
delete | DELETE | locationsId, projectsId, tlsRoutesId | Deletes a single TlsRoute. |
patch | UPDATE | locationsId, projectsId, tlsRoutesId | Updates the parameters of a single TlsRoute. |
SELECT
examples
Lists TlsRoute in a given project and location.
SELECT
name,
description,
createTime,
gateways,
labels,
meshes,
rules,
selfLink,
updateTime
FROM google.networkservices.tls_routes
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new tls_routes
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networkservices.tls_routes (
locationsId,
projectsId,
name,
description,
rules,
meshes,
gateways,
labels
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ rules }}',
'{{ meshes }}',
'{{ gateways }}',
'{{ labels }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: selfLink
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: description
value: string
- name: rules
value:
- - name: matches
value:
- - name: sniHost
value:
- string
- name: alpn
value:
- string
- name: action
value:
- name: destinations
value:
- - name: serviceName
value: string
- name: weight
value: integer
- name: idleTimeout
value: string
- name: meshes
value:
- string
- name: gateways
value:
- string
- name: labels
value: object
UPDATE
example
Updates a tls_routes
resource.
/*+ update */
UPDATE google.networkservices.tls_routes
SET
name = '{{ name }}',
description = '{{ description }}',
rules = '{{ rules }}',
meshes = '{{ meshes }}',
gateways = '{{ gateways }}',
labels = '{{ labels }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND tlsRoutesId = '{{ tlsRoutesId }}';
DELETE
example
Deletes the specified tls_routes
resource.
/*+ delete */
DELETE FROM google.networkservices.tls_routes
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND tlsRoutesId = '{{ tlsRoutesId }}';