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

NameDatatypeDescription
namestringImmutable. Identifier. name of resource
createTimestringOutput 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.
updateTimestringOutput only. Update time stamp

Methods

NameAccessible byRequired ParamsDescription
projects_locations_firewall_endpoint_associations_getSELECTfirewallEndpointAssociationsId, locationsId, projectsIdGets details of a single FirewallEndpointAssociation.
projects_locations_firewall_endpoint_associations_listSELECTlocationsId, projectsIdLists Associations in a given project and location.
projects_locations_firewall_endpoint_associations_createINSERTlocationsId, projectsIdCreates a new FirewallEndpointAssociation in a given project and location.
projects_locations_firewall_endpoint_associations_deleteDELETEfirewallEndpointAssociationsId, locationsId, projectsIdDeletes a single FirewallEndpointAssociation.
projects_locations_firewall_endpoint_associations_patchUPDATEfirewallEndpointAssociationsId, locationsId, projectsIdUpdate a single FirewallEndpointAssociation.

SELECT examples

Lists Associations in a given project and location.

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

INSERT example

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

/*+ create */
INSERT INTO google.networksecurity.firewall_endpoint_associations (
locationsId,
projectsId,
name,
labels,
network,
firewallEndpoint,
tlsInspectionPolicy,
disabled
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ labels }}',
'{{ network }}',
'{{ firewallEndpoint }}',
'{{ tlsInspectionPolicy }}',
{{ disabled }}
;

UPDATE example

Updates a firewall_endpoint_associations resource.

/*+ update */
UPDATE google.networksecurity.firewall_endpoint_associations
SET
name = '{{ name }}',
labels = '{{ labels }}',
network = '{{ network }}',
firewallEndpoint = '{{ firewallEndpoint }}',
tlsInspectionPolicy = '{{ tlsInspectionPolicy }}',
disabled = true|false
WHERE
firewallEndpointAssociationsId = '{{ firewallEndpointAssociationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified firewall_endpoint_associations resource.

/*+ delete */
DELETE FROM google.networksecurity.firewall_endpoint_associations
WHERE firewallEndpointAssociationsId = '{{ firewallEndpointAssociationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';