local_rules
Creates, updates, deletes, gets or lists a local_rules
resource.
Overview
Name | local_rules |
Type | Resource |
Id | azure_isv.paloalto.local_rules |
Fields
- vw_local_rules
- local_rules
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
action_type | text | field from the properties object |
applications | text | field from the properties object |
audit_comment | text | field from the properties object |
category | text | field from the properties object |
decryption_rule_type | text | field from the properties object |
destination | text | field from the properties object |
enable_logging | text | field from the properties object |
etag | text | field from the properties object |
inbound_inspection_certificate | text | field from the properties object |
localRulestackName | text | field from the properties object |
negate_destination | text | field from the properties object |
negate_source | text | field from the properties object |
priority | text | field from the properties object |
protocol | text | field from the properties object |
protocol_port_list | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
rule_name | text | field from the properties object |
rule_state | text | field from the properties object |
source | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | definition of rule |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | localRulestackName, priority, resourceGroupName, subscriptionId | Get a LocalRulesResource |
list_by_local_rulestacks | SELECT | localRulestackName, resourceGroupName, subscriptionId | List LocalRulesResource resources by LocalRulestacks |
create_or_update | INSERT | localRulestackName, priority, resourceGroupName, subscriptionId, data__properties | Create a LocalRulesResource |
delete | DELETE | localRulestackName, priority, resourceGroupName, subscriptionId | Delete a LocalRulesResource |
refresh_counters | EXEC | localRulestackName, priority, resourceGroupName, subscriptionId | Refresh counters |
reset_counters | EXEC | localRulestackName, priority, resourceGroupName, subscriptionId | Reset counters |
SELECT
examples
List LocalRulesResource resources by LocalRulestacks
- vw_local_rules
- local_rules
SELECT
description,
action_type,
applications,
audit_comment,
category,
decryption_rule_type,
destination,
enable_logging,
etag,
inbound_inspection_certificate,
localRulestackName,
negate_destination,
negate_source,
priority,
protocol,
protocol_port_list,
provisioning_state,
resourceGroupName,
rule_name,
rule_state,
source,
subscriptionId,
system_data,
tags
FROM azure_isv.paloalto.vw_local_rules
WHERE localRulestackName = '{{ localRulestackName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties,
systemData
FROM azure_isv.paloalto.local_rules
WHERE localRulestackName = '{{ localRulestackName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new local_rules
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_isv.paloalto.local_rules (
localRulestackName,
priority,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ localRulestackName }}',
'{{ priority }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: etag
value: string
- name: ruleName
value: string
- name: priority
value: integer
- name: description
value: string
- name: ruleState
value: []
- name: source
value:
- name: cidrs
value:
- string
- name: countries
value:
- string
- name: feeds
value:
- string
- name: prefixLists
value:
- string
- name: negateSource
value: []
- name: destination
value:
- name: cidrs
value:
- string
- name: countries
value:
- string
- name: feeds
value:
- string
- name: prefixLists
value:
- string
- name: fqdnLists
value:
- string
- name: applications
value:
- string
- name: category
value:
- name: urlCustom
value:
- string
- name: feeds
value:
- string
- name: protocol
value: string
- name: protocolPortList
value:
- string
- name: inboundInspectionCertificate
value: string
- name: auditComment
value: string
- name: actionType
value: []
- name: decryptionRuleType
value: []
- name: tags
value:
- - name: key
value: string
- name: value
value: string
- name: provisioningState
value: []
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
DELETE
example
Deletes the specified local_rules
resource.
/*+ delete */
DELETE FROM azure_isv.paloalto.local_rules
WHERE localRulestackName = '{{ localRulestackName }}'
AND priority = '{{ priority }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';