admin_rules
Creates, updates, deletes, gets or lists a admin_rules
resource.
Overview
Name | admin_rules |
Type | Resource |
Id | azure.network.admin_rules |
Fields
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. |
kind | string | Whether the rule is custom or default. |
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, ruleName, subscriptionId | Gets a network manager security configuration admin rule. |
list | SELECT | configurationName, networkManagerName, resourceGroupName, ruleCollectionName, subscriptionId | List all network manager security configuration admin rules. |
create_or_update | INSERT | configurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionId, data__kind | Creates or updates an admin rule. |
delete | DELETE | configurationName, networkManagerName, resourceGroupName, ruleCollectionName, ruleName, subscriptionId | Deletes 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: kind
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 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 }}';