Skip to main content

network_taps

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

Overview

Namenetwork_taps
TypeResource
Idazure_extras.managed_network_fabric.network_taps

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
administrativeStatestringAdministrative state of the resource. Example -Enabled/Disabled. Known values are: "Enabled", "Disabled", "MAT", "RMA", "UnderMaintenance", and "EnabledDegraded". (Enabled, Disabled, MAT, RMA, UnderMaintenance, EnabledDegraded)
annotationstringSwitch configuration description.
configurationStatestringGets the configurations state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", "PendingCommit", and "PendingAdministrativeUpdate". (Succeeded, Failed, Rejected, Accepted, Provisioned, ErrorProvisioning, Deprovisioning, Deprovisioned, ErrorDeprovisioning, DeferredControl, Provisioning, PendingCommit, PendingAdministrativeUpdate)
destinationsarrayList of destinations to send the filter traffic. Required.
identityobjectThe managed service identities assigned to this resource.
lastOperationobjectDetails of the last operation performed on the resource.
locationstringThe geo-location where the resource lives. Required.
networkFabricIdsarrayAssociated Network Fabric Resource IDs.
networkPacketBrokerIdstringARM resource ID of the Network Packet Broker. Required.
pollingTypestringPolling type. Known values are: "Pull" and "Push". (Pull, Push)
provisioningStatestringProvides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on the status of Network Tap provisioning. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". (Accepted, Succeeded, Updating, Deleting, Failed, Canceled)
sourceTapRuleIdstringSource Tap Rule Id. ARM Resource ID of the Network Tap Rule.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, network_tap_name, subscription_idRetrieves details of this Network Tap.
list_by_resource_groupselectresource_group_name, subscription_idDisplays Network Taps list by resource group GET method.
list_by_subscriptionselectsubscription_idDisplays Network Taps list by subscription GET method.
createinsertresource_group_name, network_tap_name, subscription_id, location, propertiesCreates a Network Tap.
updateupdateresource_group_name, network_tap_name, subscription_idAPI to update certain properties of the Network Tap resource.
deletedeleteresource_group_name, network_tap_name, subscription_idDeletes Network Tap.
update_administrative_stateexecresource_group_name, network_tap_name, subscription_idImplements the operation to the underlying resources.
resyncexecresource_group_name, network_tap_name, subscription_idImplements 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
network_tap_namestringName of the Network Tap. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Retrieves details of this Network Tap.

SELECT
id,
name,
administrativeState,
annotation,
configurationState,
destinations,
identity,
lastOperation,
location,
networkFabricIds,
networkPacketBrokerId,
pollingType,
provisioningState,
sourceTapRuleId,
systemData,
tags,
type
FROM azure_extras.managed_network_fabric.network_taps
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_tap_name = '{{ network_tap_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a Network Tap.

INSERT INTO azure_extras.managed_network_fabric.network_taps (
tags,
location,
properties,
identity,
resource_group_name,
network_tap_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ identity }}',
'{{ resource_group_name }}',
'{{ network_tap_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

API to update certain properties of the Network Tap resource.

UPDATE azure_extras.managed_network_fabric.network_taps
SET
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_tap_name = '{{ network_tap_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes Network Tap.

DELETE FROM azure_extras.managed_network_fabric.network_taps
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_tap_name = '{{ network_tap_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Implements the operation to the underlying resources.

EXEC azure_extras.managed_network_fabric.network_taps.update_administrative_state 
@resource_group_name='{{ resource_group_name }}' --required,
@network_tap_name='{{ network_tap_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"resourceIds": "{{ resourceIds }}",
"state": "{{ state }}"
}'
;