Skip to main content

region_network_firewall_policies_association

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

Overview

Nameregion_network_firewall_policies_association
TypeResource
Idgoogle.compute.region_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, project, regionGets an association with the specified name.
add_associationINSERTfirewallPolicy, project, regionInserts an association for the specified network firewall policy.
remove_associationDELETEfirewallPolicy, project, regionRemoves an association for the specified network firewall policy.

SELECT examples

Gets an association with the specified name.

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

INSERT example

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

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

DELETE example

Deletes the specified region_network_firewall_policies_association resource.

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