Skip to main content

admin_rules

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

Overview

Nameadmin_rules
TypeResource
Idazure.network.admin_rules

Fields

NameDatatypeDescription
idstringResource ID.
namestringResource name.
etagstringA unique read-only string that changes whenever the resource is updated.
kindstringWhether the rule is custom or default.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionIdGets a network manager security configuration admin rule.
listSELECTconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, subscriptionIdList all network manager security configuration admin rules.
create_or_updateINSERTconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionId, data__kindCreates or updates an admin rule.
deleteDELETEconfigurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionIdDeletes an admin rule.

SELECT examples

List all network manager security configuration admin rules.

SELECT
id,
name,
etag,
kind,
systemData,
type
FROM azure.network.admin_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 admin_rules resource.

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

DELETE example

Deletes the specified admin_rules resource.

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