Skip to main content

network_tap_rules

Creates, updates, deletes, gets or lists a network_tap_rules resource.

Overview

Namenetwork_tap_rules
TypeResource
Idazure.managed_network_fabric.network_tap_rules

Fields

NameDatatypeDescription
administrative_statetextfield from the properties object
annotationtextfield from the properties object
configuration_statetextfield from the properties object
configuration_typetextfield from the properties object
dynamic_match_configurationstextfield from the properties object
last_synced_timetextfield from the properties object
locationtextThe geo-location where the resource lives
match_configurationstextfield from the properties object
networkTapRuleNametextfield from the properties object
network_tap_idtextfield from the properties object
polling_interval_in_secondstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
tap_rules_urltextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkTapRuleName, resourceGroupName, subscriptionIdGet Network Tap Rule resource details.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the Network Tap Rule resources in the given resource group.
list_by_subscriptionSELECTsubscriptionIdList all the Network Tap Rule resources in the given subscription.
createINSERTnetworkTapRuleName, resourceGroupName, subscriptionId, data__propertiesCreate Network Tap Rule resource.
deleteDELETEnetworkTapRuleName, resourceGroupName, subscriptionIdDelete Network Tap Rule resource.
updateUPDATEnetworkTapRuleName, resourceGroupName, subscriptionIdUpdate certain properties of the Network Tap Rule resource.
resyncEXECnetworkTapRuleName, resourceGroupName, subscriptionIdImplements the operation to the underlying resources.
validate_configurationEXECnetworkTapRuleName, resourceGroupName, subscriptionIdImplements the operation to the underlying resources.

SELECT examples

List all the Network Tap Rule resources in the given subscription.

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 }}';

INSERT example

Use the following StackQL query and manifest file to create a new network_tap_rules resource.

/*+ 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 }}'
;

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 }}';