region_network_firewall_policies_association
Creates, updates, deletes, gets or lists a region_network_firewall_policies_association
resource.
Overview
Name | region_network_firewall_policies_association |
Type | Resource |
Id | google.compute.region_network_firewall_policies_association |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name for an association. |
attachmentTarget | string | The target that the firewall policy is attached to. |
displayName | string | [Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association. |
firewallPolicyId | string | [Output Only] The firewall policy ID of the association. |
shortName | string | [Output Only] The short name of the firewall policy of the association. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_association | SELECT | firewallPolicy, project, region | Gets an association with the specified name. |
add_association | INSERT | firewallPolicy, project, region | Inserts an association for the specified network firewall policy. |
remove_association | DELETE | firewallPolicy, project, region | Removes 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: attachmentTarget
value: string
- name: firewallPolicyId
value: string
- name: shortName
value: string
- name: displayName
value: string
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 }}';