Skip to main content

virtual_network_taps

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

Overview​

Namevirtual_network_taps
TypeResource
Idazure.network.virtual_network_taps

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
destinationLoadBalancerFrontEndIPConfigurationobjectFrontend IP address of the load balancer.
destinationNetworkInterfaceIPConfigurationobjectIPConfiguration in a network interface.
destinationPortintegerThe VXLAN destination port that will receive the tapped traffic.
etagstringA unique read-only string that changes whenever the resource is updated.
locationstringResource location.
networkInterfaceTapConfigurationsarraySpecifies the list of resource IDs for the network interface IP configuration that needs to be tapped.
provisioningStatestringThe provisioning state of the virtual network tap resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
resourceGuidstringThe resource GUID property of the virtual network tap resource.
tagsobjectResource tags.
typestringResource type.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, tap_name, subscription_idGet a VirtualNetworkTap.
list_by_resource_groupselectresource_group_name, subscription_idGets all the VirtualNetworkTaps in a subscription.
list_allselectsubscription_idGets all the VirtualNetworkTaps in a subscription.
create_or_updateinsertresource_group_name, tap_name, subscription_idCreate a VirtualNetworkTap.
update_tagsupdateresource_group_name, tap_name, subscription_idUpdate a VirtualNetworkTap.
create_or_updatereplaceresource_group_name, tap_name, subscription_idCreate a VirtualNetworkTap.
deletedeleteresource_group_name, tap_name, subscription_idDelete a VirtualNetworkTap.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
tap_namestringThe name of virtual network tap. Required.

SELECT examples​

Get a VirtualNetworkTap.

SELECT
id,
name,
destinationLoadBalancerFrontEndIPConfiguration,
destinationNetworkInterfaceIPConfiguration,
destinationPort,
etag,
location,
networkInterfaceTapConfigurations,
provisioningState,
resourceGuid,
tags,
type
FROM azure.network.virtual_network_taps
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND tap_name = '{{ tap_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples​

Create a VirtualNetworkTap.

INSERT INTO azure.network.virtual_network_taps (
id,
location,
tags,
properties,
resource_group_name,
tap_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ tap_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
tags,
type
;

UPDATE examples​

Update a VirtualNetworkTap.

UPDATE azure.network.virtual_network_taps
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND tap_name = '{{ tap_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;

REPLACE examples​

Create a VirtualNetworkTap.

REPLACE azure.network.virtual_network_taps
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND tap_name = '{{ tap_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;

DELETE examples​

Delete a VirtualNetworkTap.

DELETE FROM azure.network.virtual_network_taps
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND tap_name = '{{ tap_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;