rules
Creates, updates, deletes, gets or lists a rules
resource.
Overview
Name | rules |
Type | Resource |
Id | azure.cdn.rules |
Fields
- vw_rules
- rules
Name | Datatype | Description |
---|---|---|
actions | text | field from the properties object |
conditions | text | field from the properties object |
deployment_status | text | field from the properties object |
match_processing_behavior | text | field from the properties object |
order | text | field from the properties object |
profileName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
ruleName | text | field from the properties object |
ruleSetName | text | field from the properties object |
rule_set_name | 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 Rules to create. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | profileName, resourceGroupName, ruleName, ruleSetName, subscriptionId | Gets an existing delivery rule within a rule set. |
list_by_rule_set | SELECT | profileName, resourceGroupName, ruleSetName, subscriptionId | Lists all of the existing delivery rules within a rule set. |
create | INSERT | profileName, resourceGroupName, ruleName, ruleSetName, subscriptionId | Creates a new delivery rule within the specified rule set. |
delete | DELETE | profileName, resourceGroupName, ruleName, ruleSetName, subscriptionId | Deletes an existing delivery rule within a rule set. |
update | UPDATE | profileName, resourceGroupName, ruleName, ruleSetName, subscriptionId | Updates an existing delivery rule within a rule set. |
SELECT
examples
Lists all of the existing delivery rules within a rule set.
- vw_rules
- rules
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 }}';
SELECT
properties
FROM azure.cdn.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cdn.rules (
profileName,
resourceGroupName,
ruleName,
ruleSetName,
subscriptionId,
properties
)
SELECT
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ ruleName }}',
'{{ ruleSetName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: ruleSetName
value: string
- name: order
value: integer
- name: conditions
value:
- - name: name
value: string
- name: actions
value:
- - name: name
value: string
- name: matchProcessingBehavior
value: string
- name: provisioningState
value: string
- name: deploymentStatus
value: string
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 }}';