network_tap_rules
Creates, updates, deletes, gets or lists a network_tap_rules
resource.
Overview
Name | network_tap_rules |
Type | Resource |
Id | azure.managed_network_fabric.network_tap_rules |
Fields
- vw_network_tap_rules
- network_tap_rules
Name | Datatype | Description |
---|---|---|
administrative_state | text | field from the properties object |
annotation | text | field from the properties object |
configuration_state | text | field from the properties object |
configuration_type | text | field from the properties object |
dynamic_match_configurations | text | field from the properties object |
last_synced_time | text | field from the properties object |
location | text | The geo-location where the resource lives |
match_configurations | text | field from the properties object |
networkTapRuleName | text | field from the properties object |
network_tap_id | text | field from the properties object |
polling_interval_in_seconds | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
tap_rules_url | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Network Tap Rule Properties defines the resource properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | networkTapRuleName, resourceGroupName, subscriptionId | Get Network Tap Rule resource details. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List all the Network Tap Rule resources in the given resource group. |
list_by_subscription | SELECT | subscriptionId | List all the Network Tap Rule resources in the given subscription. |
create | INSERT | networkTapRuleName, resourceGroupName, subscriptionId, data__properties | Create Network Tap Rule resource. |
delete | DELETE | networkTapRuleName, resourceGroupName, subscriptionId | Delete Network Tap Rule resource. |
update | UPDATE | networkTapRuleName, resourceGroupName, subscriptionId | Update certain properties of the Network Tap Rule resource. |
resync | EXEC | networkTapRuleName, resourceGroupName, subscriptionId | Implements the operation to the underlying resources. |
validate_configuration | EXEC | networkTapRuleName, resourceGroupName, subscriptionId | Implements the operation to the underlying resources. |
SELECT
examples
List all the Network Tap Rule resources in the given subscription.
- vw_network_tap_rules
- network_tap_rules
SELECT
administrative_state,
annotation,
configuration_state,
configuration_type,
dynamic_match_configurations,
last_synced_time,
location,
match_configurations,
networkTapRuleName,
network_tap_id,
polling_interval_in_seconds,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
tap_rules_url
FROM azure.managed_network_fabric.vw_network_tap_rules
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.network_tap_rules
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new network_tap_rules
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.managed_network_fabric.network_tap_rules (
networkTapRuleName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ networkTapRuleName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: annotation
value: string
- name: configurationType
value: string
- name: tapRulesUrl
value: string
- name: matchConfigurations
value:
- - name: matchConfigurationName
value: string
- name: sequenceNumber
value: integer
- name: ipAddressType
value: []
- name: matchConditions
value:
- - name: encapsulationType
value: string
- name: portCondition
value:
- name: portType
value: string
- name: layer4Protocol
value: string
- name: ports
value:
- string
- name: portGroupNames
value:
- string
- name: protocolTypes
value:
- string
- name: vlanMatchCondition
value:
- name: vlans
value:
- string
- name: innerVlans
value:
- string
- name: vlanGroupNames
value:
- string
- name: ipCondition
value:
- name: type
value: string
- name: prefixType
value: string
- name: ipPrefixValues
value:
- string
- name: ipGroupNames
value:
- string
- name: actions
value:
- - name: type
value: string
- name: truncate
value: string
- name: isTimestampEnabled
value: []
- name: destinationId
value: string
- name: matchConfigurationName
value: string
- name: dynamicMatchConfigurations
value:
- - name: ipGroups
value:
- - name: name
value: string
- name: ipPrefixes
value:
- string
- name: vlanGroups
value:
- - name: name
value: string
- name: vlans
value:
- string
- name: portGroups
value:
- - name: name
value: string
- name: ports
value:
- string
- name: networkTapId
value: string
- name: pollingIntervalInSeconds
value: integer
- name: lastSyncedTime
value: string
- name: configurationState
value: []
- name: provisioningState
value: []
- name: administrativeState
value: []
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a network_tap_rules
resource.
/*+ update */
UPDATE azure.managed_network_fabric.network_tap_rules
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
networkTapRuleName = '{{ networkTapRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified network_tap_rules
resource.
/*+ delete */
DELETE FROM azure.managed_network_fabric.network_tap_rules
WHERE networkTapRuleName = '{{ networkTapRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';