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

The following fields are returned by SELECT queries:

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectResource properties.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, networkTapRuleNameGet Network Tap Rule resource details.
list_by_resource_groupselectsubscriptionId, resourceGroupNameList all the Network Tap Rule resources in the given resource group.
list_by_subscriptionselectsubscriptionIdList all the Network Tap Rule resources in the given subscription.
createinsertsubscriptionId, resourceGroupName, networkTapRuleName, data__propertiesCreate Network Tap Rule resource.
updateupdatesubscriptionId, resourceGroupName, networkTapRuleNameUpdate certain properties of the Network Tap Rule resource.
deletedeletesubscriptionId, resourceGroupName, networkTapRuleNameDelete Network Tap Rule resource.
resyncexecsubscriptionId, resourceGroupName, networkTapRuleNameImplements the operation to the underlying resources.
validate_configurationexecsubscriptionId, resourceGroupName, networkTapRuleNameImplements the operation to the underlying resources.

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
networkTapRuleNamestringName of the Network Tap Rule.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get Network Tap Rule resource details.

SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.network_tap_rules
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND networkTapRuleName = '{{ networkTapRuleName }}' -- required
;

INSERT examples

Create Network Tap Rule resource.

INSERT INTO azure.managed_network_fabric.network_tap_rules (
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
networkTapRuleName
)
SELECT
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ networkTapRuleName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Update certain properties of the Network Tap Rule resource.

UPDATE azure.managed_network_fabric.network_tap_rules
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND networkTapRuleName = '{{ networkTapRuleName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Delete Network Tap Rule resource.

DELETE FROM azure.managed_network_fabric.network_tap_rules
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND networkTapRuleName = '{{ networkTapRuleName }}' --required
;

Lifecycle Methods

Implements the operation to the underlying resources.

EXEC azure.managed_network_fabric.network_tap_rules.resync 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@networkTapRuleName='{{ networkTapRuleName }}' --required
;