Skip to main content

lb_traffic_extensions

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

Overview

Namelb_traffic_extensions
TypeResource
Idgoogle.networkservices.lb_traffic_extensions

Fields

NameDatatypeDescription
namestringRequired. Identifier. Name of the LbTrafficExtension resource in the following format: projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_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 LBTrafficExtension resource per forwarding rule.
labelsobjectOptional. Set of labels associated with the LbTrafficExtension 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 in the ProcessingRequest.metadata_context.filter_metadata map field. The metadata is available under the key com.google.lb_traffic_extension.. The following variables are supported in the metadata: {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
getSELECTlbTrafficExtensionsId, locationsId, projectsIdGets details of the specified LbTrafficExtension resource.
listSELECTlocationsId, projectsIdLists LbTrafficExtension resources in a given project and location.
createINSERTlocationsId, projectsIdCreates a new LbTrafficExtension resource in a given project and location.
deleteDELETElbTrafficExtensionsId, locationsId, projectsIdDeletes the specified LbTrafficExtension resource.
patchUPDATElbTrafficExtensionsId, locationsId, projectsIdUpdates the parameters of the specified LbTrafficExtension resource.

SELECT examples

Lists LbTrafficExtension resources in a given project and location.

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

INSERT example

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

/*+ create */
INSERT INTO google.networkservices.lb_traffic_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_traffic_extensions resource.

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

DELETE example

Deletes the specified lb_traffic_extensions resource.

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