Skip to main content

firewall_policy_drafts

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

Overview

Namefirewall_policy_drafts
TypeResource
Idazure.network.firewall_policy_drafts

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
base_policytextfield from the properties object
dns_settingstextfield from the properties object
explicit_proxytextfield from the properties object
firewallPolicyNametextfield from the properties object
insightstextfield from the properties object
intrusion_detectiontextfield from the properties object
locationtextResource location.
resourceGroupNametextfield from the properties object
snattextfield from the properties object
sqltextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
threat_intel_modetextfield from the properties object
threat_intel_whitelisttextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTfirewallPolicyName, resourceGroupName, subscriptionIdGet a draft Firewall Policy.
create_or_updateINSERTfirewallPolicyName, resourceGroupName, subscriptionIdCreate or update a draft Firewall Policy.
deleteDELETEfirewallPolicyName, resourceGroupName, subscriptionIdDelete a draft policy.

SELECT examples

Get a draft Firewall Policy.

SELECT
id,
name,
base_policy,
dns_settings,
explicit_proxy,
firewallPolicyName,
insights,
intrusion_detection,
location,
resourceGroupName,
snat,
sql,
subscriptionId,
tags,
threat_intel_mode,
threat_intel_whitelist,
type
FROM azure.network.vw_firewall_policy_drafts
WHERE firewallPolicyName = '{{ firewallPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.firewall_policy_drafts (
firewallPolicyName,
resourceGroupName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ firewallPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified firewall_policy_drafts resource.

/*+ delete */
DELETE FROM azure.network.firewall_policy_drafts
WHERE firewallPolicyName = '{{ firewallPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';