firewall_rules
Creates, updates, deletes, gets or lists a firewall_rules
resource.
Overview
Name | firewall_rules |
Type | Resource |
Id | azure.postgresql_hsc.firewall_rules |
Fields
- vw_firewall_rules
- firewall_rules
Name | Datatype | Description |
---|---|---|
clusterName | text | field from the properties object |
end_ip_address | text | field from the properties object |
firewallRuleName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
start_ip_address | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The properties of a cluster firewall rule. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | clusterName, firewallRuleName, resourceGroupName, subscriptionId | Gets information about a cluster firewall rule. |
list_by_cluster | SELECT | clusterName, resourceGroupName, subscriptionId | Lists all the firewall rules on cluster. |
create_or_update | INSERT | clusterName, firewallRuleName, resourceGroupName, subscriptionId, data__properties | Creates a new cluster firewall rule or updates an existing cluster firewall rule. |
delete | DELETE | clusterName, firewallRuleName, resourceGroupName, subscriptionId | Deletes a cluster firewall rule. |
SELECT
examples
Lists all the firewall rules on cluster.
- vw_firewall_rules
- firewall_rules
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 }}';
SELECT
properties
FROM azure.postgresql_hsc.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.postgresql_hsc.firewall_rules (
clusterName,
firewallRuleName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ clusterName }}',
'{{ firewallRuleName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: startIpAddress
value: string
- name: endIpAddress
value: string
- name: provisioningState
value: []
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 }}';