Skip to main content

meshes

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

Overview

Namemeshes
TypeResource
Idgoogle.networkservices.meshes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Name of the Mesh resource. It matches pattern projects/*/locations/global/meshes/.
createTimestring (google-datetime)Output only. The timestamp when the resource was created.
descriptionstringOptional. A free-text description of the resource. Max length 1024 characters.
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.
interceptionPortinteger (int32)Optional. 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
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, meshesIdGets details of a single Mesh.
listselectprojectsId, locationsIdpageSize, pageToken, returnPartialSuccessLists Meshes in a given project and location.
createinsertprojectsId, locationsIdmeshIdCreates a new Mesh in a given project and location.
patchupdateprojectsId, locationsId, meshesIdupdateMaskUpdates the parameters of a single Mesh.
deletedeleteprojectsId, locationsId, meshesIdDeletes a single Mesh.

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

SELECT examples

Gets details of a single Mesh.

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

INSERT examples

Creates a new Mesh in a given project and location.

INSERT INTO google.networkservices.meshes (
data__name,
data__labels,
data__description,
data__interceptionPort,
data__envoyHeaders,
projectsId,
locationsId,
meshId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ description }}',
{{ interceptionPort }},
'{{ envoyHeaders }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ meshId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single Mesh.

UPDATE google.networkservices.meshes
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__interceptionPort = {{ interceptionPort }},
data__envoyHeaders = '{{ envoyHeaders }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND meshesId = '{{ meshesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single Mesh.

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