lb_route_extensions
Creates, updates, deletes, gets or lists a lb_route_extensions
resource.
Overview
Name | lb_route_extensions |
Type | Resource |
Id | google.networkservices.lb_route_extensions |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Required. Identifier. Name of the LbRouteExtension resource in the following format: projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_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 LbRouteExtension resource per forwarding rule. |
labels | object | Optional. Set of labels associated with the LbRouteExtension 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 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. |
updateTime | string | Output only. The timestamp when the resource was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | lbRouteExtensionsId, locationsId, projectsId | Gets details of the specified LbRouteExtension resource. |
list | SELECT | locationsId, projectsId | Lists LbRouteExtension resources in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new LbRouteExtension resource in a given project and location. |
delete | DELETE | lbRouteExtensionsId, locationsId, projectsId | Deletes the specified LbRouteExtension resource. |
patch | UPDATE | lbRouteExtensionsId, locationsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- 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_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 }}';