Skip to main content

firewall_rules

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

Overview

Namefirewall_rules
TypeResource
Idazure.postgresql_hsc.firewall_rules

Fields

NameDatatypeDescription
clusterNametextfield from the properties object
end_ip_addresstextfield from the properties object
firewallRuleNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
start_ip_addresstextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, firewallRuleName, resourceGroupName, subscriptionIdGets information about a cluster firewall rule.
list_by_clusterSELECTclusterName, resourceGroupName, subscriptionIdLists all the firewall rules on cluster.
create_or_updateINSERTclusterName, firewallRuleName, resourceGroupName, subscriptionId, data__propertiesCreates a new cluster firewall rule or updates an existing cluster firewall rule.
deleteDELETEclusterName, firewallRuleName, resourceGroupName, subscriptionIdDeletes a cluster firewall rule.

SELECT examples

Lists all the firewall rules on cluster.

SELECT
clusterName,
end_ip_address,
firewallRuleName,
provisioning_state,
resourceGroupName,
start_ip_address,
subscriptionId
FROM azure.postgresql_hsc.vw_firewall_rules
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.postgresql_hsc.firewall_rules (
clusterName,
firewallRuleName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ clusterName }}',
'{{ firewallRuleName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified firewall_rules resource.

/*+ delete */
DELETE FROM azure.postgresql_hsc.firewall_rules
WHERE clusterName = '{{ clusterName }}'
AND firewallRuleName = '{{ firewallRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';