meshes
Creates, updates, deletes, gets or lists a meshes
resource.
Overview
Name | meshes |
Type | Resource |
Id | google.networkservices.meshes |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of the Mesh resource. It matches pattern projects/*/locations/global/meshes/ . |
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. |
envoyHeaders | string | Optional. 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. |
interceptionPort | integer | 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. |
labels | object | Optional. Set of label tags associated with the Mesh resource. |
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, meshesId, projectsId | Gets details of a single Mesh. |
list | SELECT | locationsId, projectsId | Lists Meshes in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new Mesh in a given project and location. |
delete | DELETE | locationsId, meshesId, projectsId | Deletes a single Mesh. |
patch | UPDATE | locationsId, meshesId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networkservices.meshes (
locationsId,
projectsId,
name,
labels,
description,
interceptionPort,
envoyHeaders
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ interceptionPort }}',
'{{ envoyHeaders }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: selfLink
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: description
value: string
- name: interceptionPort
value: integer
- name: envoyHeaders
value: string
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 }}';