Skip to main content

network_tap_rules

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

Overview

Namenetwork_tap_rules
TypeResource
Idazure_extras.managed_network_fabric.network_tap_rules

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. Known values are: "Enabled", "Disabled", "MAT", "RMA", "UnderMaintenance", and "EnabledDegraded". (Enabled, Disabled, MAT, RMA, UnderMaintenance, EnabledDegraded)
annotationstringSwitch configuration description.
configurationStatestringConfiguration 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)
configurationTypestringInput method to configure Network Tap Rule. Required. Known values are: "File" and "Inline". (File, Inline)
dynamicMatchConfigurationsarrayList of dynamic match configurations.
globalNetworkTapRuleActionsobjectGlobal network tap rule actions.
identityobjectThe managed service identities assigned to this resource.
identitySelectorobjectThe selection of the managed identity to use with this storage account. The identity type must be either system assigned or user assigned.
lastOperationobjectDetails of the last operation performed on the resource.
lastSyncedTimestring (date-time)The last sync timestamp.
locationstringThe geo-location where the resource lives. Required.
matchConfigurationsarrayList of match configurations.
networkFabricIdsarrayAssociated Network Fabric Resource IDs.
networkTapIdstringThe ARM resource Id of the NetworkTap.
networkTapIdsarrayThe ARM resource Id of the NetworkTap Rules.
pollingIntervalInSecondsintegerPolling interval in seconds.
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". (Accepted, Succeeded, Updating, Deleting, Failed, Canceled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
tapRulesUrlstringNetwork Tap Rules file URL.
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_rule_name, subscription_idGet Network Tap Rule resource details.
list_by_resource_groupselectresource_group_name, subscription_idList all the Network Tap Rule resources in the given resource group.
list_by_subscriptionselectsubscription_idList all the Network Tap Rule resources in the given subscription.
createinsertresource_group_name, network_tap_rule_name, subscription_id, location, propertiesCreate Network Tap Rule resource.
updateupdateresource_group_name, network_tap_rule_name, subscription_idUpdate certain properties of the Network Tap Rule resource.
deletedeleteresource_group_name, network_tap_rule_name, subscription_idDelete Network Tap Rule resource.
update_administrative_stateexecresource_group_name, network_tap_rule_name, subscription_idImplements the operation to the underlying resources.
resyncexecresource_group_name, network_tap_rule_name, subscription_idImplements the operation to the underlying resources.
validate_configurationexecresource_group_name, network_tap_rule_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_rule_namestringName of the Network Tap Rule. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get Network Tap Rule resource details.

SELECT
id,
name,
administrativeState,
annotation,
configurationState,
configurationType,
dynamicMatchConfigurations,
globalNetworkTapRuleActions,
identity,
identitySelector,
lastOperation,
lastSyncedTime,
location,
matchConfigurations,
networkFabricIds,
networkTapId,
networkTapIds,
pollingIntervalInSeconds,
provisioningState,
systemData,
tags,
tapRulesUrl,
type
FROM azure_extras.managed_network_fabric.network_tap_rules
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_tap_rule_name = '{{ network_tap_rule_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create Network Tap Rule resource.

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

UPDATE examples

Update certain properties of the Network Tap Rule resource.

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

DELETE examples

Delete Network Tap Rule resource.

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

Lifecycle Methods

Implements the operation to the underlying resources.

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