Network Tap
The Network Tap resource definition. Uses Azure REST API version 2023-06-15. In version 2.x of the Azure Native provider, it used API version 2023-06-15.
Example Usage
NetworkTaps_Create_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var networkTap = new AzureNative.ManagedNetworkFabric.NetworkTap("networkTap", new()
{
Annotation = "annotation",
Destinations = new[]
{
new AzureNative.ManagedNetworkFabric.Inputs.NetworkTapPropertiesDestinationsArgs
{
DestinationId = "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/l3IsloationDomains/example-l3Domain/internalNetworks/example-internalNetwork",
DestinationTapRuleId = "/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkTapRules/example-destinationTapRule",
DestinationType = AzureNative.ManagedNetworkFabric.DestinationType.IsolationDomain,
IsolationDomainProperties = new AzureNative.ManagedNetworkFabric.Inputs.IsolationDomainPropertiesArgs
{
Encapsulation = AzureNative.ManagedNetworkFabric.Encapsulation.None,
NeighborGroupIds = new[]
{
"/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/neighborGroups/example-neighborGroup",
},
},
Name = "example-destinaionName",
},
},
Location = "eastuseuap",
NetworkPacketBrokerId = "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/example-networkPacketBroker",
NetworkTapName = "example-networkTap",
PollingType = AzureNative.ManagedNetworkFabric.PollingType.Pull,
ResourceGroupName = "example-rg",
Tags =
{
{ "key6024", "1234" },
},
});
});
package main
import (
managednetworkfabric "github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := managednetworkfabric.NewNetworkTap(ctx, "networkTap", &managednetworkfabric.NetworkTapArgs{
Annotation: pulumi.String("annotation"),
Destinations: managednetworkfabric.NetworkTapPropertiesDestinationsArray{
&managednetworkfabric.NetworkTapPropertiesDestinationsArgs{
DestinationId: pulumi.String("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/l3IsloationDomains/example-l3Domain/internalNetworks/example-internalNetwork"),
DestinationTapRuleId: pulumi.String("/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkTapRules/example-destinationTapRule"),
DestinationType: pulumi.String(managednetworkfabric.DestinationTypeIsolationDomain),
IsolationDomainProperties: &managednetworkfabric.IsolationDomainPropertiesArgs{
Encapsulation: pulumi.String(managednetworkfabric.EncapsulationNone),
NeighborGroupIds: pulumi.StringArray{
pulumi.String("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/neighborGroups/example-neighborGroup"),
},
},
Name: pulumi.String("example-destinaionName"),
},
},
Location: pulumi.String("eastuseuap"),
NetworkPacketBrokerId: pulumi.String("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/example-networkPacketBroker"),
NetworkTapName: pulumi.String("example-networkTap"),
PollingType: pulumi.String(managednetworkfabric.PollingTypePull),
ResourceGroupName: pulumi.String("example-rg"),
Tags: pulumi.StringMap{
"key6024": pulumi.String("1234"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.managednetworkfabric.NetworkTap;
import com.pulumi.azurenative.managednetworkfabric.NetworkTapArgs;
import com.pulumi.azurenative.managednetworkfabric.inputs.NetworkTapPropertiesDestinationsArgs;
import com.pulumi.azurenative.managednetworkfabric.inputs.IsolationDomainPropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var networkTap = new NetworkTap("networkTap", NetworkTapArgs.builder()
.annotation("annotation")
.destinations(NetworkTapPropertiesDestinationsArgs.builder()
.destinationId("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/l3IsloationDomains/example-l3Domain/internalNetworks/example-internalNetwork")
.destinationTapRuleId("/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkTapRules/example-destinationTapRule")
.destinationType("IsolationDomain")
.isolationDomainProperties(IsolationDomainPropertiesArgs.builder()
.encapsulation("None")
.neighborGroupIds("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/neighborGroups/example-neighborGroup")
.build())
.name("example-destinaionName")
.build())
.location("eastuseuap")
.networkPacketBrokerId("/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/example-networkPacketBroker")
.networkTapName("example-networkTap")
.pollingType("Pull")
.resourceGroupName("example-rg")
.tags(Map.of("key6024", "1234"))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:managednetworkfabric:NetworkTap example-networkTap /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}
Properties
Administrative state of the resource. Example -Enabled/Disabled
Switch configuration description.
The Azure API version of the resource.
Gets the configurations state of the resource.
List of destinations to send the filter traffic.
ARM resource ID of the Network Packet Broker.
Polling type.
Provides 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.
Source Tap Rule Id. ARM Resource ID of the Network Tap Rule.
Azure Resource Manager metadata containing createdBy and modifiedBy information.