Network Tap Args
data class NetworkTapArgs(val annotation: Output<String>? = null, val destinations: Output<List<NetworkTapPropertiesDestinationsArgs>>? = null, val location: Output<String>? = null, val networkPacketBrokerId: Output<String>? = null, val networkTapName: Output<String>? = null, val pollingType: Output<Either<String, PollingType>>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NetworkTapArgs>
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" },
},
});
});
Content copied to clipboard
package main
import (
managednetworkfabric "github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v2"
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(annotation: Output<String>? = null, destinations: Output<List<NetworkTapPropertiesDestinationsArgs>>? = null, location: Output<String>? = null, networkPacketBrokerId: Output<String>? = null, networkTapName: Output<String>? = null, pollingType: Output<Either<String, PollingType>>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
Switch configuration description.
Link copied to clipboard
List of destinations to send the filter traffic.
Link copied to clipboard
ARM resource ID of the Network Packet Broker.
Link copied to clipboard
Name of the Network Tap.
Link copied to clipboard
Polling type.
Link copied to clipboard
The name of the resource group. The name is case insensitive.