lb_traffic_extensions
Creates, updates, deletes, gets or lists a lb_traffic_extensions
resource.
Overview
Name | lb_traffic_extensions |
Type | Resource |
Id | google.networkservices.lb_traffic_extensions |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Required. Identifier. Name of the LbTrafficExtension resource in the following format: projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension} . |
description | string | Optional. A human-readable description of the resource. |
createTime | string | Output only. The timestamp when the resource was created. |
extensionChains | array | Required. 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. |
forwardingRules | array | Required. 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. |
labels | object | Optional. Set of labels associated with the LbTrafficExtension resource. The format must comply with the requirements for labels for Google Cloud resources. |
loadBalancingScheme | string | Required. 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. |
metadata | object | Optional. 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. |
updateTime | string | Output only. The timestamp when the resource was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | lbTrafficExtensionsId, locationsId, projectsId | Gets details of the specified LbTrafficExtension resource. |
list | SELECT | locationsId, projectsId | Lists LbTrafficExtension resources in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new LbTrafficExtension resource in a given project and location. |
delete | DELETE | lbTrafficExtensionsId, locationsId, projectsId | Deletes the specified LbTrafficExtension resource. |
patch | UPDATE | lbTrafficExtensionsId, locationsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: description
value: string
- name: labels
value: object
- name: forwardingRules
value:
- string
- name: extensionChains
value:
- - name: name
value: string
- name: matchCondition
value:
- name: celExpression
value: string
- name: extensions
value:
- - name: name
value: string
- name: authority
value: string
- name: service
value: string
- name: supportedEvents
value:
- string
- name: timeout
value: string
- name: failOpen
value: boolean
- name: forwardHeaders
value:
- string
- name: loadBalancingScheme
value: string
- name: metadata
value: object
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 }}';