Skip to main content

extension_bindings

Creates, updates, deletes, gets or lists an extension_bindings resource.

Overview​

Nameextension_bindings
TypeResource
Idgoogle.networkservices.extension_bindings

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the ExtensionBinding resource in the following format: projects/{project}/locations/{location}/extensionBindings/{extension_binding}.
createTimestring (google-datetime)Output only. The timestamp when the resource was created.
descriptionstringOptional. A human-readable description of the resource.
etagstringOptional. Etag of the resource. If provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
failOpenbooleanOptional. Determines the behavior of the extension binding when the call to the extension fails or times out. Default value is FALSE. When set to TRUE, failures of the extension are silently ignored.
labelsobjectOptional. Set of labels associated with the ExtensionBinding resource. The format must comply with the following requirements.
matchConditionsarrayOptional. A list of match conditions to match against the incoming request. The extension will be invoked if at least one condition matches the request, or if no match conditions are specified. Limited to 5 conditions.
priorityinteger (int32)Optional. Priority of the extension binding. Lower numbers indicate higher priority. Priority of extension bindings are used to determine the order in which extension bindings are applied to a request.
producerExtensionstringRequired. The name of the extension that this binding should attach to target resources. Format: For Google-provided extensions, specify the service endpoint (see Model Armor integration)
producerMetadataobjectOptional. Additional metadata that should be passed to the attached extension with each request.
targetobjectRequired. Specifies a target to which this ExtensionBinding should be attached. The target can be either a single resource or a scope of resources. (id: ExtensionBindingTarget)
updateTimestring (google-datetime)Output only. The timestamp when the resource was updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, extensionBindingsIdGets details of the specified ExtensionBinding resource.
listselectprojectsId, locationsIdpageSize, pageTokenLists ExtensionBinding resources in a given project and location.
createinsertprojectsId, locationsIdextensionBindingIdCreates a new ExtensionBinding resource in a given project and location.
patchupdateprojectsId, locationsId, extensionBindingsIdupdateMaskUpdates the parameters of the specified ExtensionBinding resource.
deletedeleteprojectsId, locationsId, extensionBindingsIdetagDeletes the specified ExtensionBinding resource.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
extensionBindingsIdstring
locationsIdstring
projectsIdstring
etagstring
extensionBindingIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples​

Gets details of the specified ExtensionBinding resource.

SELECT
name,
createTime,
description,
etag,
failOpen,
labels,
matchConditions,
priority,
producerExtension,
producerMetadata,
target,
updateTime
FROM google.networkservices.extension_bindings
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND extensionBindingsId = '{{ extensionBindingsId }}' -- required
;

INSERT examples​

Creates a new ExtensionBinding resource in a given project and location.

INSERT INTO google.networkservices.extension_bindings (
data__description,
data__etag,
data__failOpen,
data__labels,
data__matchConditions,
data__name,
data__priority,
data__producerExtension,
data__producerMetadata,
data__target,
projectsId,
locationsId,
extensionBindingId
)
SELECT
'{{ description }}',
'{{ etag }}',
{{ failOpen }},
'{{ labels }}',
'{{ matchConditions }}',
'{{ name }}',
{{ priority }},
'{{ producerExtension }}',
'{{ producerMetadata }}',
'{{ target }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ extensionBindingId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples​

Updates the parameters of the specified ExtensionBinding resource.

UPDATE google.networkservices.extension_bindings
SET
data__description = '{{ description }}',
data__etag = '{{ etag }}',
data__failOpen = {{ failOpen }},
data__labels = '{{ labels }}',
data__matchConditions = '{{ matchConditions }}',
data__name = '{{ name }}',
data__priority = {{ priority }},
data__producerExtension = '{{ producerExtension }}',
data__producerMetadata = '{{ producerMetadata }}',
data__target = '{{ target }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND extensionBindingsId = '{{ extensionBindingsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples​

Deletes the specified ExtensionBinding resource.

DELETE FROM google.networkservices.extension_bindings
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND extensionBindingsId = '{{ extensionBindingsId }}' --required
AND etag = '{{ etag }}'
;