Skip to main content

rules

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

Overview

Namerules
TypeResource
Idazure.cdn.rules

Fields

NameDatatypeDescription
actionstextfield from the properties object
conditionstextfield from the properties object
deployment_statustextfield from the properties object
match_processing_behaviortextfield from the properties object
ordertextfield from the properties object
profileNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
ruleNametextfield from the properties object
ruleSetNametextfield from the properties object
rule_set_nametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTprofileName, resourceGroupName, ruleName, ruleSetName, subscriptionIdGets an existing delivery rule within a rule set.
list_by_rule_setSELECTprofileName, resourceGroupName, ruleSetName, subscriptionIdLists all of the existing delivery rules within a rule set.
createINSERTprofileName, resourceGroupName, ruleName, ruleSetName, subscriptionIdCreates a new delivery rule within the specified rule set.
deleteDELETEprofileName, resourceGroupName, ruleName, ruleSetName, subscriptionIdDeletes an existing delivery rule within a rule set.
updateUPDATEprofileName, resourceGroupName, ruleName, ruleSetName, subscriptionIdUpdates an existing delivery rule within a rule set.

SELECT examples

Lists all of the existing delivery rules within a rule set.

SELECT
actions,
conditions,
deployment_status,
match_processing_behavior,
order,
profileName,
provisioning_state,
resourceGroupName,
ruleName,
ruleSetName,
rule_set_name,
subscriptionId
FROM azure.cdn.vw_rules
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleSetName = '{{ ruleSetName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.cdn.rules (
profileName,
resourceGroupName,
ruleName,
ruleSetName,
subscriptionId,
properties
)
SELECT
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ ruleName }}',
'{{ ruleSetName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a rules resource.

/*+ update */
UPDATE azure.cdn.rules
SET
properties = '{{ properties }}'
WHERE
profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleName = '{{ ruleName }}'
AND ruleSetName = '{{ ruleSetName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified rules resource.

/*+ delete */
DELETE FROM azure.cdn.rules
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleName = '{{ ruleName }}'
AND ruleSetName = '{{ ruleSetName }}'
AND subscriptionId = '{{ subscriptionId }}';