Skip to main content

network_firewall_policies_association

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

Overview

Namenetwork_firewall_policies_association
TypeResource
Idgoogle.compute.network_firewall_policies_association

Fields

NameDatatypeDescription
namestringThe name for an association.
attachmentTargetstringThe target that the firewall policy is attached to.
displayNamestring[Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association.
firewallPolicyIdstring[Output Only] The firewall policy ID of the association.
shortNamestring[Output Only] The short name of the firewall policy of the association.

Methods

NameAccessible byRequired ParamsDescription
get_associationSELECTfirewallPolicy, projectGets an association with the specified name.
add_associationINSERTfirewallPolicy, projectInserts an association for the specified firewall policy.
remove_associationDELETEfirewallPolicy, projectRemoves an association for the specified firewall policy.

SELECT examples

Gets an association with the specified name.

SELECT
name,
attachmentTarget,
displayName,
firewallPolicyId,
shortName
FROM google.compute.network_firewall_policies_association
WHERE firewallPolicy = '{{ firewallPolicy }}'
AND project = '{{ project }}';

INSERT example

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

/*+ create */
INSERT INTO google.compute.network_firewall_policies_association (
firewallPolicy,
project,
name,
attachmentTarget,
firewallPolicyId,
shortName,
displayName
)
SELECT
'{{ firewallPolicy }}',
'{{ project }}',
'{{ name }}',
'{{ attachmentTarget }}',
'{{ firewallPolicyId }}',
'{{ shortName }}',
'{{ displayName }}'
;

DELETE example

Deletes the specified network_firewall_policies_association resource.

/*+ delete */
DELETE FROM google.compute.network_firewall_policies_association
WHERE firewallPolicy = '{{ firewallPolicy }}'
AND project = '{{ project }}';