Skip to main content

rule_sets

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

Overview

Namerule_sets
TypeResource
Idazure.cdn.rule_sets

Fields

NameDatatypeDescription
deployment_statustextfield from the properties object
profileNametextfield from the properties object
profile_nametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
ruleSetNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTprofileName, resourceGroupName, ruleSetName, subscriptionIdGets an existing AzureFrontDoor rule set with the specified rule set name under the specified subscription, resource group and profile.
list_by_profileSELECTprofileName, resourceGroupName, subscriptionIdLists existing AzureFrontDoor rule sets within a profile.
createINSERTprofileName, resourceGroupName, ruleSetName, subscriptionIdCreates a new rule set within the specified profile.
deleteDELETEprofileName, resourceGroupName, ruleSetName, subscriptionIdDeletes an existing AzureFrontDoor rule set with the specified rule set name under the specified subscription, resource group and profile.

SELECT examples

Lists existing AzureFrontDoor rule sets within a profile.

SELECT
deployment_status,
profileName,
profile_name,
provisioning_state,
resourceGroupName,
ruleSetName,
subscriptionId
FROM azure.cdn.vw_rule_sets
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified rule_sets resource.

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