Skip to main content

meshes

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

Overview

Namemeshes
TypeResource
Idgoogle.networkservices.meshes

Fields

NameDatatypeDescription
namestringIdentifier. Name of the Mesh resource. It matches pattern projects/*/locations/global/meshes/.
descriptionstringOptional. A free-text description of the resource. Max length 1024 characters.
createTimestringOutput only. The timestamp when the resource was created.
envoyHeadersstringOptional. Determines if envoy will insert internal debug headers into upstream requests. Other Envoy headers may still be injected. By default, envoy will not insert any debug headers.
interceptionPortintegerOptional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This is applicable only for sidecar proxy deployments.
labelsobjectOptional. Set of label tags associated with the Mesh resource.
selfLinkstringOutput only. Server-defined URL of this resource
updateTimestringOutput only. The timestamp when the resource was updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, meshesId, projectsIdGets details of a single Mesh.
listSELECTlocationsId, projectsIdLists Meshes in a given project and location.
createINSERTlocationsId, projectsIdCreates a new Mesh in a given project and location.
deleteDELETElocationsId, meshesId, projectsIdDeletes a single Mesh.
patchUPDATElocationsId, meshesId, projectsIdUpdates the parameters of a single Mesh.

SELECT examples

Lists Meshes in a given project and location.

SELECT
name,
description,
createTime,
envoyHeaders,
interceptionPort,
labels,
selfLink,
updateTime
FROM google.networkservices.meshes
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new meshes resource.

/*+ create */
INSERT INTO google.networkservices.meshes (
locationsId,
projectsId,
name,
labels,
description,
interceptionPort,
envoyHeaders
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ interceptionPort }}',
'{{ envoyHeaders }}'
;

UPDATE example

Updates a meshes resource.

/*+ update */
UPDATE google.networkservices.meshes
SET
name = '{{ name }}',
labels = '{{ labels }}',
description = '{{ description }}',
interceptionPort = '{{ interceptionPort }}',
envoyHeaders = '{{ envoyHeaders }}'
WHERE
locationsId = '{{ locationsId }}'
AND meshesId = '{{ meshesId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified meshes resource.

/*+ delete */
DELETE FROM google.networkservices.meshes
WHERE locationsId = '{{ locationsId }}'
AND meshesId = '{{ meshesId }}'
AND projectsId = '{{ projectsId }}';