Skip to main content

admin_rule_collections

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

Overview

Nameadmin_rule_collections
TypeResource
Idazure.network.admin_rule_collections

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.
propertiesobjectIndicates the properties for the network manager admin rule collection.
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 admin configuration rule collection.
listselectsubscriptionId, resourceGroupName, networkManagerName, configurationName$top, $skipTokenLists all the rule collections in a security admin configuration, in a paginated format.
create_or_updateinsertCreates or updates an admin rule collection.
deletedeleteforceDeletes an admin rule collection.

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
configurationNamestringThe name of the network manager Security Configuration.
networkManagerNamestringThe name of the network manager.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$skipTokenstringSkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.
$topinteger (int32)An optional query parameter which specifies the maximum number of records to be returned by the server.
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 admin configuration rule collection.

SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.network.admin_rule_collections
;

INSERT examples

Creates or updates an admin rule collection.

INSERT INTO azure.network.admin_rule_collections (
data__properties
)
SELECT
'{{ properties }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

DELETE examples

Deletes an admin rule collection.

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