Skip to main content

admin_rules

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

Overview

Nameadmin_rules
TypeResource
Idazure.network.admin_rules

Fields

The following fields are returned by SELECT queries:

Successful operation

NameDatatypeDescription
idstringResource ID.
namestringResource name.
etagstringA unique read-only string that changes whenever the resource is updated.
kindstringWhether the rule is custom or default.
systemDataobjectThe system metadata related to this resource.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectGets a network manager security configuration admin rule.
listselectList all network manager security configuration admin rules.
create_or_updateinsertdata__kindCreates or updates an admin rule.
deletedeleteforceDeletes an admin rule.

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
forcebooleanDeletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete.

SELECT examples

Gets a network manager security configuration admin rule.

SELECT
id,
name,
etag,
kind,
systemData,
type
FROM azure.network.admin_rules
;

INSERT examples

Creates or updates an admin rule.

INSERT INTO azure.network.admin_rules (
data__kind
)
SELECT
'{{ kind }}' /* required */
RETURNING
id,
name,
etag,
kind,
systemData,
type
;

DELETE examples

Deletes an admin rule.

DELETE FROM azure.network.admin_rules
WHERE force = '{{ force }}'
;