Skip to main content

local_rules

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

Overview

Namelocal_rules
TypeResource
Idazure_isv.paloalto.local_rules

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
action_typetextfield from the properties object
applicationstextfield from the properties object
audit_commenttextfield from the properties object
categorytextfield from the properties object
decryption_rule_typetextfield from the properties object
destinationtextfield from the properties object
enable_loggingtextfield from the properties object
etagtextfield from the properties object
inbound_inspection_certificatetextfield from the properties object
localRulestackNametextfield from the properties object
negate_destinationtextfield from the properties object
negate_sourcetextfield from the properties object
prioritytextfield from the properties object
protocoltextfield from the properties object
protocol_port_listtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
rule_nametextfield from the properties object
rule_statetextfield from the properties object
sourcetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocalRulestackName, priority, resourceGroupName, subscriptionIdGet a LocalRulesResource
list_by_local_rulestacksSELECTlocalRulestackName, resourceGroupName, subscriptionIdList LocalRulesResource resources by LocalRulestacks
create_or_updateINSERTlocalRulestackName, priority, resourceGroupName, subscriptionId, data__propertiesCreate a LocalRulesResource
deleteDELETElocalRulestackName, priority, resourceGroupName, subscriptionIdDelete a LocalRulesResource
refresh_countersEXEClocalRulestackName, priority, resourceGroupName, subscriptionIdRefresh counters
reset_countersEXEClocalRulestackName, priority, resourceGroupName, subscriptionIdReset counters

SELECT examples

List LocalRulesResource resources by LocalRulestacks

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 }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.paloalto.local_rules (
localRulestackName,
priority,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ localRulestackName }}',
'{{ priority }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

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 }}';