Skip to main content

lb_route_extensions

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

Overview

Namelb_route_extensions
TypeResource
Idgoogle.networkservices.lb_route_extensions

Fields

NameDatatypeDescription
namestringRequired. Identifier. Name of the LbRouteExtension resource in the following format: projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.
descriptionstringOptional. A human-readable description of the resource.
createTimestringOutput only. The timestamp when the resource was created.
extensionChainsarrayRequired. A set of ordered extension chains that contain the match conditions and extensions to execute. Match conditions for each extension chain are evaluated in sequence for a given request. The first extension chain that has a condition that matches the request is executed. Any subsequent extension chains do not execute. Limited to 5 extension chains per resource.
forwardingRulesarrayRequired. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one LbRouteExtension resource per forwarding rule.
labelsobjectOptional. Set of labels associated with the LbRouteExtension resource. The format must comply with the requirements for labels for Google Cloud resources.
loadBalancingSchemestringRequired. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: INTERNAL_MANAGED, EXTERNAL_MANAGED. For more information, refer to Choosing a load balancer.
metadataobjectOptional. The metadata provided here is included as part of the metadata_context (of type google.protobuf.Struct) in the ProcessingRequest message sent to the extension server. The metadata is available under the namespace com.google.lb_route_extension.. The following variables are supported in the metadata Struct: {forwarding_rule_id} - substituted with the forwarding rule's fully qualified resource name.
updateTimestringOutput only. The timestamp when the resource was updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlbRouteExtensionsId, locationsId, projectsIdGets details of the specified LbRouteExtension resource.
listSELECTlocationsId, projectsIdLists LbRouteExtension resources in a given project and location.
createINSERTlocationsId, projectsIdCreates a new LbRouteExtension resource in a given project and location.
deleteDELETElbRouteExtensionsId, locationsId, projectsIdDeletes the specified LbRouteExtension resource.
patchUPDATElbRouteExtensionsId, locationsId, projectsIdUpdates the parameters of the specified LbRouteExtension resource.

SELECT examples

Lists LbRouteExtension resources in a given project and location.

SELECT
name,
description,
createTime,
extensionChains,
forwardingRules,
labels,
loadBalancingScheme,
metadata,
updateTime
FROM google.networkservices.lb_route_extensions
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.networkservices.lb_route_extensions (
locationsId,
projectsId,
name,
description,
labels,
forwardingRules,
extensionChains,
loadBalancingScheme,
metadata
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ forwardingRules }}',
'{{ extensionChains }}',
'{{ loadBalancingScheme }}',
'{{ metadata }}'
;

UPDATE example

Updates a lb_route_extensions resource.

/*+ update */
UPDATE google.networkservices.lb_route_extensions
SET
name = '{{ name }}',
description = '{{ description }}',
labels = '{{ labels }}',
forwardingRules = '{{ forwardingRules }}',
extensionChains = '{{ extensionChains }}',
loadBalancingScheme = '{{ loadBalancingScheme }}',
metadata = '{{ metadata }}'
WHERE
lbRouteExtensionsId = '{{ lbRouteExtensionsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified lb_route_extensions resource.

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