Skip to main content

policies

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

Overview

Namepolicies
TypeResource
Idazure.cdn.policies

Fields

NameDatatypeDescription
custom_rulestextfield from the properties object
endpoint_linkstextfield from the properties object
etagtextGets a unique read-only string that changes whenever the resource is updated.
extended_propertiestextfield from the properties object
locationtextResource location.
managed_rulestextfield from the properties object
policyNametextfield from the properties object
policy_settingstextfield from the properties object
provisioning_statetextfield from the properties object
rate_limit_rulestextfield from the properties object
resourceGroupNametextfield from the properties object
resource_statetextfield from the properties object
skutextStandard_Verizon = The SKU name for a Standard Verizon CDN profile.

Premium_Verizon = The SKU name for a Premium Verizon CDN profile. Custom_Verizon = The SKU name for a Custom Verizon CDN profile. Standard_Akamai = The SKU name for an Akamai CDN profile. Standard_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using GB based billing model. Standard_Microsoft = The SKU name for a Standard Microsoft CDN profile. Standard_AzureFrontDoor = The SKU name for an Azure Front Door Standard profile. Premium_AzureFrontDoor = The SKU name for an Azure Front Door Premium profile. Standard_955BandWidth_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using 95-5 peak bandwidth billing model. Standard_AvgBandWidth_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using monthly average peak bandwidth billing model. StandardPlus_ChinaCdn = The SKU name for a China CDN profile for live-streaming using GB based billing model. StandardPlus_955BandWidth_ChinaCdn = The SKU name for a China CDN live-streaming profile using 95-5 peak bandwidth billing model. StandardPlus_AvgBandWidth_ChinaCdn = The SKU name for a China CDN live-streaming profile using monthly average peak bandwidth billing model. | | subscriptionId | text | field from the properties object | | tags | text | Resource tags. |

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.
create_or_updateINSERTpolicyName, resourceGroupName, subscriptionId, data__skuCreate or update policy with specified rule set name within a resource group.
deleteDELETEpolicyName, resourceGroupName, subscriptionIdDeletes Policy
updateUPDATEpolicyName, resourceGroupName, subscriptionIdUpdate an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group

SELECT examples

Lists all of the protection policies within a resource group.

SELECT
custom_rules,
endpoint_links,
etag,
extended_properties,
location,
managed_rules,
policyName,
policy_settings,
provisioning_state,
rate_limit_rules,
resourceGroupName,
resource_state,
sku,
subscriptionId,
tags
FROM azure.cdn.vw_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.cdn.policies (
policyName,
resourceGroupName,
subscriptionId,
data__sku,
properties,
etag,
sku,
location,
tags
)
SELECT
'{{ policyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__sku }}',
'{{ properties }}',
'{{ etag }}',
'{{ sku }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a policies resource.

/*+ update */
UPDATE azure.cdn.policies
SET
tags = '{{ tags }}'
WHERE
policyName = '{{ policyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified policies resource.

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