Skip to main content

security_user_rules

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

Overview

Namesecurity_user_rules
TypeResource
Idazure.network.security_user_rules

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
descriptiontextfield from the properties object
configurationNametextfield from the properties object
destination_port_rangestextfield from the properties object
destinationstextfield from the properties object
directiontextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
networkManagerNametextfield from the properties object
protocoltextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
ruleCollectionNametextfield from the properties object
ruleNametextfield from the properties object
source_port_rangestextfield from the properties object
sourcestextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionIdGets a security user rule.
listSELECTconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, subscriptionIdLists all Security User Rules in a rule collection.
create_or_updateINSERTconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionIdCreates or updates a security user rule.
deleteDELETEconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionIdDeletes a security user rule.

SELECT examples

Lists all Security User Rules in a rule collection.

SELECT
id,
name,
description,
configurationName,
destination_port_ranges,
destinations,
direction,
etag,
networkManagerName,
protocol,
provisioning_state,
resourceGroupName,
resource_guid,
ruleCollectionName,
ruleName,
source_port_ranges,
sources,
subscriptionId,
system_data,
type
FROM azure.network.vw_security_user_rules
WHERE configurationName = '{{ configurationName }}'
AND networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleCollectionName = '{{ ruleCollectionName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.security_user_rules (
configurationName,
networkManagerName,
resourceGroupName,
ruleCollectionName,
ruleName,
subscriptionId,
properties
)
SELECT
'{{ configurationName }}',
'{{ networkManagerName }}',
'{{ resourceGroupName }}',
'{{ ruleCollectionName }}',
'{{ ruleName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified security_user_rules resource.

/*+ delete */
DELETE FROM azure.network.security_user_rules
WHERE configurationName = '{{ configurationName }}'
AND networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleCollectionName = '{{ ruleCollectionName }}'
AND ruleName = '{{ ruleName }}'
AND subscriptionId = '{{ subscriptionId }}';