Skip to main content

pre_rules

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

Overview

Namepre_rules
TypeResource
Idazure_isv.paloaltonetworksngfw.pre_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
actionTypestringrule action. Known values are: "Allow", "DenySilent", "DenyResetServer", and "DenyResetBoth".
applicationsarrayarray of rule applications.
auditCommentstringrule comment.
categoryobjectrule category.
decryptionRuleTypestringenable or disable decryption. Known values are: "SSLOutboundInspection", "SSLInboundInspection", and "None".
descriptionstringrule description.
destinationobjectdestination address.
enableLoggingstringenable or disable logging. Known values are: "DISABLED" and "ENABLED".
etagstringetag info.
inboundInspectionCertificatestringinbound Inspection Certificate.
negateDestinationstringcidr should not be 'any'. Known values are: "TRUE" and "FALSE".
negateSourcestringcidr should not be 'any'. Known values are: "TRUE" and "FALSE".
priorityinteger:vartype priority: int
protocolstringany, application-default, TCP:number, UDP:number.
protocolPortListarrayprot port list.
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified".
ruleNamestringrule name. Required.
ruleStatestringstate of this rule. Known values are: "DISABLED" and "ENABLED".
sourceobjectsource address.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsarraytag for rule.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectglobal_rulestack_name, priorityGet a PreRulesResource.
listselectglobal_rulestack_nameList PreRulesResource resources by Tenant.
create_or_updateinsertglobal_rulestack_name, priority, propertiesCreate a PreRulesResource.
create_or_updatereplaceglobal_rulestack_name, priority, propertiesCreate a PreRulesResource.
deletedeleteglobal_rulestack_name, priorityDelete a PreRulesResource.
get_countersexecglobal_rulestack_name, priorityfirewallNameGet counters.
refresh_countersexecglobal_rulestack_name, priorityfirewallNameRefresh counters.
reset_countersexecglobal_rulestack_name, priorityfirewallNameReset counters.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
global_rulestack_namestringGlobalRulestack resource name. Required.
prioritystringPre Rule priority. Required.
firewallNamestringDefault value is None.

SELECT examples

Get a PreRulesResource.

SELECT
id,
name,
actionType,
applications,
auditComment,
category,
decryptionRuleType,
description,
destination,
enableLogging,
etag,
inboundInspectionCertificate,
negateDestination,
negateSource,
priority,
protocol,
protocolPortList,
provisioningState,
ruleName,
ruleState,
source,
systemData,
tags,
type
FROM azure_isv.paloaltonetworksngfw.pre_rules
WHERE global_rulestack_name = '{{ global_rulestack_name }}' -- required
AND priority = '{{ priority }}' -- required
;

INSERT examples

Create a PreRulesResource.

INSERT INTO azure_isv.paloaltonetworksngfw.pre_rules (
properties,
global_rulestack_name,
priority
)
SELECT
'{{ properties }}' /* required */,
'{{ global_rulestack_name }}',
'{{ priority }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Create a PreRulesResource.

REPLACE azure_isv.paloaltonetworksngfw.pre_rules
SET
properties = '{{ properties }}'
WHERE
global_rulestack_name = '{{ global_rulestack_name }}' --required
AND priority = '{{ priority }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a PreRulesResource.

DELETE FROM azure_isv.paloaltonetworksngfw.pre_rules
WHERE global_rulestack_name = '{{ global_rulestack_name }}' --required
AND priority = '{{ priority }}' --required
;

Lifecycle Methods

Get counters.

EXEC azure_isv.paloaltonetworksngfw.pre_rules.get_counters 
@global_rulestack_name='{{ global_rulestack_name }}' --required,
@priority='{{ priority }}' --required,
@firewallName='{{ firewallName }}'
;