Skip to main content

web_application_firewall_policies

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

Overview

Nameweb_application_firewall_policies
TypeResource
Idazure.network.web_application_firewall_policies

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
application_gateway_for_containerstextfield from the properties object
application_gatewaystextfield from the properties object
custom_rulestextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
http_listenerstextfield from the properties object
locationtextResource location.
managed_rulestextfield from the properties object
path_based_rulestextfield from the properties object
policyNametextfield from the properties object
policy_settingstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_statetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpolicyName, resourceGroupName, subscriptionIdRetrieve protection policy with specified name within a resource group.
listSELECTresourceGroupName, subscriptionIdLists all of the protection policies within a resource group.
list_allSELECTsubscriptionIdGets all the WAF policies in a subscription.
create_or_updateINSERTpolicyName, resourceGroupName, subscriptionIdCreates or update policy with specified rule set name within a resource group.
deleteDELETEpolicyName, resourceGroupName, subscriptionIdDeletes Policy.

SELECT examples

Gets all the WAF policies in a subscription.

SELECT
id,
name,
application_gateway_for_containers,
application_gateways,
custom_rules,
etag,
http_listeners,
location,
managed_rules,
path_based_rules,
policyName,
policy_settings,
provisioning_state,
resourceGroupName,
resource_state,
subscriptionId,
tags,
type
FROM azure.network.vw_web_application_firewall_policies
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified web_application_firewall_policies resource.

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