firewall_policies_association
Creates, updates, deletes, gets or lists a firewall_policies_association
resource.
Overview
Name | firewall_policies_association |
Type | Resource |
Id | google.compute.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 | Gets an association with the specified name. |
add_association | INSERT | firewallPolicy | Inserts an association for the specified firewall policy. |
remove_association | DELETE | firewallPolicy | Removes 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.compute.firewall_policies_association (
firewallPolicy,
name,
attachmentTarget,
firewallPolicyId,
shortName,
displayName
)
SELECT
'{{ firewallPolicy }}',
'{{ 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 firewall_policies_association
resource.
/*+ delete */
DELETE FROM google.compute.firewall_policies_association
WHERE firewallPolicy = '{{ firewallPolicy }}';