Skip to main content

network_taps

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

Overview

Namenetwork_taps
TypeResource
Idazure.managed_network_fabric.network_taps

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, networkTapNameRetrieves details of this Network Tap.
list_by_resource_groupselectsubscriptionId, resourceGroupNameDisplays Network Taps list by resource group GET method.
list_by_subscriptionselectsubscriptionIdDisplays Network Taps list by subscription GET method.
createinsertsubscriptionId, resourceGroupName, networkTapName, data__propertiesCreates a Network Tap.
updateupdatesubscriptionId, resourceGroupName, networkTapNameAPI to update certain properties of the Network Tap resource.
deletedeletesubscriptionId, resourceGroupName, networkTapNameDeletes Network Tap.
resyncexecsubscriptionId, resourceGroupName, networkTapNameImplements 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
networkTapNamestringName of the Network Tap.
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

Retrieves details of this Network Tap.

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

INSERT examples

Creates a Network Tap.

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

UPDATE examples

API to update certain properties of the Network Tap resource.

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

DELETE examples

Deletes Network Tap.

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

Lifecycle Methods

Implements the operation to the underlying resources.

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