firewall_policy_drafts
Creates, updates, deletes, gets or lists a firewall_policy_drafts
resource.
Overview
Name | firewall_policy_drafts |
Type | Resource |
Id | azure.network.firewall_policy_drafts |
Fields
- vw_firewall_policy_drafts
- firewall_policy_drafts
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource name. |
base_policy | text | field from the properties object |
dns_settings | text | field from the properties object |
explicit_proxy | text | field from the properties object |
firewallPolicyName | text | field from the properties object |
insights | text | field from the properties object |
intrusion_detection | text | field from the properties object |
location | text | Resource location. |
resourceGroupName | text | field from the properties object |
snat | text | field from the properties object |
sql | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
threat_intel_mode | text | field from the properties object |
threat_intel_whitelist | text | field from the properties object |
type | text | Resource type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
location | string | Resource location. |
properties | object | |
tags | object | Resource tags. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | firewallPolicyName, resourceGroupName, subscriptionId | Get a draft Firewall Policy. |
create_or_update | INSERT | firewallPolicyName, resourceGroupName, subscriptionId | Create or update a draft Firewall Policy. |
delete | DELETE | firewallPolicyName, resourceGroupName, subscriptionId | Delete a draft policy. |
SELECT
examples
Get a draft Firewall Policy.
- vw_firewall_policy_drafts
- firewall_policy_drafts
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 }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.network.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.firewall_policy_drafts (
firewallPolicyName,
resourceGroupName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ firewallPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: basePolicy
value:
- name: id
value: string
- name: threatIntelMode
value: []
- name: threatIntelWhitelist
value:
- name: ipAddresses
value:
- string
- name: fqdns
value:
- string
- name: insights
value:
- name: isEnabled
value: boolean
- name: retentionDays
value: integer
- name: logAnalyticsResources
value:
- name: workspaces
value:
- - name: region
value: string
- name: snat
value:
- name: privateRanges
value:
- string
- name: autoLearnPrivateRanges
value: string
- name: sql
value:
- name: allowSqlRedirect
value: boolean
- name: dnsSettings
value:
- name: servers
value:
- string
- name: enableProxy
value: boolean
- name: requireProxyForNetworkRules
value: boolean
- name: explicitProxy
value:
- name: enableExplicitProxy
value: boolean
- name: httpPort
value: integer
- name: httpsPort
value: integer
- name: enablePacFile
value: boolean
- name: pacFilePort
value: integer
- name: pacFile
value: string
- name: intrusionDetection
value:
- name: mode
value: []
- name: profile
value: []
- name: configuration
value:
- name: signatureOverrides
value:
- - name: id
value: string
- name: bypassTrafficSettings
value:
- - name: name
value: string
- name: description
value: string
- name: protocol
value: []
- name: sourceAddresses
value:
- string
- name: destinationAddresses
value:
- string
- name: destinationPorts
value:
- string
- name: sourceIpGroups
value:
- string
- name: destinationIpGroups
value:
- string
- name: privateRanges
value:
- string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
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 }}';