Skip to main content

firewall_rules

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

Overview

Namefirewall_rules
TypeResource
Idazure_isv.redis.firewall_rules

Fields

NameDatatypeDescription
cacheNametextfield from the properties object
end_iptextfield from the properties object
resourceGroupNametextfield from the properties object
ruleNametextfield from the properties object
start_iptextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcacheName, resourceGroupName, ruleName, subscriptionIdGets a single firewall rule in a specified redis cache.
listSELECTcacheName, resourceGroupName, subscriptionIdGets all firewall rules in the specified redis cache.
create_or_updateINSERTcacheName, resourceGroupName, ruleName, subscriptionId, data__propertiesCreate or update a redis cache firewall rule
deleteDELETEcacheName, resourceGroupName, ruleName, subscriptionIdDeletes a single firewall rule in a specified redis cache.

SELECT examples

Gets all firewall rules in the specified redis cache.

SELECT
cacheName,
end_ip,
resourceGroupName,
ruleName,
start_ip,
subscriptionId
FROM azure_isv.redis.vw_firewall_rules
WHERE cacheName = '{{ cacheName }}'
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_isv.redis.firewall_rules (
cacheName,
resourceGroupName,
ruleName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ cacheName }}',
'{{ resourceGroupName }}',
'{{ ruleName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified firewall_rules resource.

/*+ delete */
DELETE FROM azure_isv.redis.firewall_rules
WHERE cacheName = '{{ cacheName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleName = '{{ ruleName }}'
AND subscriptionId = '{{ subscriptionId }}';