Skip to main content

firewall_endpoint_associations

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

Overview

Namefirewall_endpoint_associations
TypeResource
Idgoogle.networksecurity.firewall_endpoint_associations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. Identifier. name of resource
createTimestring (google-datetime)Output only. Create time stamp
disabledbooleanOptional. Whether the association is disabled. True indicates that traffic won't be intercepted
firewallEndpointstringRequired. The URL of the FirewallEndpoint that is being associated.
labelsobjectOptional. Labels as key value pairs
networkstringRequired. The URL of the network that is being associated.
reconcilingbooleanOutput only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
statestringOutput only. Current state of the association.
tlsInspectionPolicystringOptional. The URL of the TlsInspectionPolicy that is being associated.
updateTimestring (google-datetime)Output only. Update time stamp

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_firewall_endpoint_associations_getselectprojectsId, locationsId, firewallEndpointAssociationsIdGets details of a single FirewallEndpointAssociation.
projects_locations_firewall_endpoint_associations_listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists Associations in a given project and location.
projects_locations_firewall_endpoint_associations_createinsertprojectsId, locationsIdfirewallEndpointAssociationId, requestIdCreates a new FirewallEndpointAssociation in a given project and location.
projects_locations_firewall_endpoint_associations_patchupdateprojectsId, locationsId, firewallEndpointAssociationsIdupdateMask, requestIdUpdate a single FirewallEndpointAssociation.
projects_locations_firewall_endpoint_associations_deletedeleteprojectsId, locationsId, firewallEndpointAssociationsIdrequestIdDeletes a single FirewallEndpointAssociation.

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
firewallEndpointAssociationsIdstring
locationsIdstring
projectsIdstring
filterstring
firewallEndpointAssociationIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single FirewallEndpointAssociation.

SELECT
name,
createTime,
disabled,
firewallEndpoint,
labels,
network,
reconciling,
state,
tlsInspectionPolicy,
updateTime
FROM google.networksecurity.firewall_endpoint_associations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND firewallEndpointAssociationsId = '{{ firewallEndpointAssociationsId }}' -- required;

INSERT examples

Creates a new FirewallEndpointAssociation in a given project and location.

INSERT INTO google.networksecurity.firewall_endpoint_associations (
data__name,
data__labels,
data__network,
data__firewallEndpoint,
data__tlsInspectionPolicy,
data__disabled,
projectsId,
locationsId,
firewallEndpointAssociationId,
requestId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ network }}',
'{{ firewallEndpoint }}',
'{{ tlsInspectionPolicy }}',
{{ disabled }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ firewallEndpointAssociationId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Update a single FirewallEndpointAssociation.

UPDATE google.networksecurity.firewall_endpoint_associations
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__network = '{{ network }}',
data__firewallEndpoint = '{{ firewallEndpoint }}',
data__tlsInspectionPolicy = '{{ tlsInspectionPolicy }}',
data__disabled = {{ disabled }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND firewallEndpointAssociationsId = '{{ firewallEndpointAssociationsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single FirewallEndpointAssociation.

DELETE FROM google.networksecurity.firewall_endpoint_associations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND firewallEndpointAssociationsId = '{{ firewallEndpointAssociationsId }}' --required
AND requestId = '{{ requestId }}';