security_user_rule_collections
Creates, updates, deletes, gets or lists a security_user_rule_collections
resource.
Overview
Name | security_user_rule_collections |
Type | Resource |
Id | azure.network.security_user_rule_collections |
Fields
- vw_security_user_rule_collections
- security_user_rule_collections
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource name. |
description | text | field from the properties object |
applies_to_groups | text | field from the properties object |
configurationName | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
networkManagerName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_guid | text | field from the properties object |
ruleCollectionName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | Resource type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
properties | object | Defines the security user rule collection properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | configurationName, networkManagerName, resourceGroupName, ruleCollectionName, subscriptionId | Gets a network manager security user configuration rule collection. |
list | SELECT | configurationName, networkManagerName, resourceGroupName, subscriptionId | Lists all the security user rule collections in a security configuration, in a paginated format. |
create_or_update | INSERT | configurationName, networkManagerName, resourceGroupName, ruleCollectionName, subscriptionId | Creates or updates a security user rule collection. |
delete | DELETE | configurationName, networkManagerName, resourceGroupName, ruleCollectionName, subscriptionId | Deletes a Security User Rule collection. |
SELECT
examples
Lists all the security user rule collections in a security configuration, in a paginated format.
- vw_security_user_rule_collections
- security_user_rule_collections
SELECT
id,
name,
description,
applies_to_groups,
configurationName,
etag,
networkManagerName,
provisioning_state,
resourceGroupName,
resource_guid,
ruleCollectionName,
subscriptionId,
system_data,
type
FROM azure.network.vw_security_user_rule_collections
WHERE configurationName = '{{ configurationName }}'
AND networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.network.security_user_rule_collections
WHERE configurationName = '{{ configurationName }}'
AND networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new security_user_rule_collections
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.security_user_rule_collections (
configurationName,
networkManagerName,
resourceGroupName,
ruleCollectionName,
subscriptionId,
properties
)
SELECT
'{{ configurationName }}',
'{{ networkManagerName }}',
'{{ resourceGroupName }}',
'{{ ruleCollectionName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: appliesToGroups
value:
- - name: networkGroupId
value: string
- name: provisioningState
value: []
- name: resourceGuid
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: etag
value: string
DELETE
example
Deletes the specified security_user_rule_collections
resource.
/*+ delete */
DELETE FROM azure.network.security_user_rule_collections
WHERE configurationName = '{{ configurationName }}'
AND networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleCollectionName = '{{ ruleCollectionName }}'
AND subscriptionId = '{{ subscriptionId }}';