Skip to main content

firewall_policies_association

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

Overview

Namefirewall_policies_association
TypeResource
Idgoogle.compute.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_associationSELECTfirewallPolicyGets an association with the specified name.
add_associationINSERTfirewallPolicyInserts an association for the specified firewall policy.
remove_associationDELETEfirewallPolicyRemoves 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.firewall_policies_association
WHERE firewallPolicy = '{{ firewallPolicy }}';

INSERT example

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

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

DELETE example

Deletes the specified firewall_policies_association resource.

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