Skip to main content

global_rulestack

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

Overview

Nameglobal_rulestack
TypeResource
Idazure_isv.paloaltonetworksngfw.global_rulestack

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.
associatedSubscriptionsarraysubscription scope of global rulestack.
defaultModestringMode for default rules creation. Known values are: "IPS", "FIREWALL", and "NONE".
descriptionstringrulestack description.
identityobjectThe managed service identities assigned to this resource.
locationstringGlobal Location. Required.
minAppIdVersionstringminimum version.
panEtagstringPanEtag info.
panLocationstringRulestack Location, Required for GlobalRulestacks, Not for LocalRulestacks.
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified".
scopestringRulestack Type. Known values are: "LOCAL", "GLOBAL", and "GLOBAL".
securityServicesobjectSecurity Profile.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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_nameGet a GlobalRulestackResource.
listselectList GlobalRulestackResource resources by Tenant.
create_or_updateinsertglobal_rulestack_name, locationCreate a GlobalRulestackResource.
updateupdateglobal_rulestack_nameUpdate a GlobalRulestackResource.
create_or_updatereplaceglobal_rulestack_name, locationCreate a GlobalRulestackResource.
deletedeleteglobal_rulestack_nameDelete a GlobalRulestackResource.
list_advanced_security_objectsexecglobal_rulestack_name, typeskip, topGet the list of advanced security objects.
list_app_idsexecglobal_rulestack_nameappIdVersion, appPrefix, skip, topList of AppIds for GlobalRulestack ApiVersion.
list_countriesexecglobal_rulestack_nameskip, topList of countries for Rulestack.
list_firewallsexecglobal_rulestack_nameList of Firewalls associated with Rulestack.
list_predefined_url_categoriesexecglobal_rulestack_nameskip, topList predefined URL categories for rulestack.
list_security_servicesexecglobal_rulestack_name, typeskip, topList the security services for rulestack.
get_change_logexecglobal_rulestack_nameGet changelog.
commitexecglobal_rulestack_nameCommit rulestack configuration.
revertexecglobal_rulestack_nameRevert rulestack configuration.

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.
typestringKnown values are: "antiSpyware", "antiVirus", "ipsVulnerability", "urlFiltering", "fileBlocking", and "dnsSubscription". Required.
appIdVersionstringDefault value is None.
appPrefixstringDefault value is None.
skipstringDefault value is None.
topintegerDefault value is None.

SELECT examples

Get a GlobalRulestackResource.

SELECT
id,
name,
associatedSubscriptions,
defaultMode,
description,
identity,
location,
minAppIdVersion,
panEtag,
panLocation,
provisioningState,
scope,
securityServices,
systemData,
type
FROM azure_isv.paloaltonetworksngfw.global_rulestack
WHERE global_rulestack_name = '{{ global_rulestack_name }}' -- required
;

INSERT examples

Create a GlobalRulestackResource.

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

UPDATE examples

Update a GlobalRulestackResource.

UPDATE azure_isv.paloaltonetworksngfw.global_rulestack
SET
location = '{{ location }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
global_rulestack_name = '{{ global_rulestack_name }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
type;

REPLACE examples

Create a GlobalRulestackResource.

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

DELETE examples

Delete a GlobalRulestackResource.

DELETE FROM azure_isv.paloaltonetworksngfw.global_rulestack
WHERE global_rulestack_name = '{{ global_rulestack_name }}' --required
;

Lifecycle Methods

Get the list of advanced security objects.

EXEC azure_isv.paloaltonetworksngfw.global_rulestack.list_advanced_security_objects 
@global_rulestack_name='{{ global_rulestack_name }}' --required,
@type='{{ type }}' --required,
@skip='{{ skip }}',
@top='{{ top }}'
;