rule_sets
Creates, updates, deletes, gets or lists a rule_sets
resource.
Overview
Name | rule_sets |
Type | Resource |
Id | azure.cdn.rule_sets |
Fields
- vw_rule_sets
- rule_sets
Name | Datatype | Description |
---|---|---|
deployment_status | text | field from the properties object |
profileName | text | field from the properties object |
profile_name | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
ruleSetName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The JSON object that contains the properties of the Rule Set to create. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | profileName, resourceGroupName, ruleSetName, subscriptionId | Gets an existing AzureFrontDoor rule set with the specified rule set name under the specified subscription, resource group and profile. |
list_by_profile | SELECT | profileName, resourceGroupName, subscriptionId | Lists existing AzureFrontDoor rule sets within a profile. |
create | INSERT | profileName, resourceGroupName, ruleSetName, subscriptionId | Creates a new rule set within the specified profile. |
delete | DELETE | profileName, resourceGroupName, ruleSetName, subscriptionId | Deletes 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.
- vw_rule_sets
- rule_sets
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 }}';
SELECT
properties
FROM azure.cdn.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cdn.rule_sets (
profileName,
resourceGroupName,
ruleSetName,
subscriptionId
)
SELECT
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ ruleSetName }}',
'{{ subscriptionId }}'
;
- name: your_resource_model_name
props: []
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 }}';