1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. VpcNetDetect
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.VpcNetDetect

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a vpc net_detect

    Example Usage

    Create a basic Net Detect

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const zones = tencentcloud.getAvailabilityZones({});
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const subnet = new tencentcloud.Subnet("subnet", {
        vpcId: vpc.vpcId,
        cidrBlock: "10.0.0.0/16",
        availabilityZone: zones.then(zones => zones.zones?.[0]?.name),
    });
    const example = new tencentcloud.VpcNetDetect("example", {
        netDetectName: "tf-example",
        vpcId: vpc.vpcId,
        subnetId: subnet.subnetId,
        detectDestinationIps: [
            "10.0.0.1",
            "10.0.0.2",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    zones = tencentcloud.get_availability_zones()
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    subnet = tencentcloud.Subnet("subnet",
        vpc_id=vpc.vpc_id,
        cidr_block="10.0.0.0/16",
        availability_zone=zones.zones[0].name)
    example = tencentcloud.VpcNetDetect("example",
        net_detect_name="tf-example",
        vpc_id=vpc.vpc_id,
        subnet_id=subnet.subnet_id,
        detect_destination_ips=[
            "10.0.0.1",
            "10.0.0.2",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		zones, err := tencentcloud.GetAvailabilityZones(ctx, &tencentcloud.GetAvailabilityZonesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			VpcId:            vpc.VpcId,
    			CidrBlock:        pulumi.String("10.0.0.0/16"),
    			AvailabilityZone: pulumi.String(zones.Zones[0].Name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewVpcNetDetect(ctx, "example", &tencentcloud.VpcNetDetectArgs{
    			NetDetectName: pulumi.String("tf-example"),
    			VpcId:         vpc.VpcId,
    			SubnetId:      subnet.SubnetId,
    			DetectDestinationIps: pulumi.StringArray{
    				pulumi.String("10.0.0.1"),
    				pulumi.String("10.0.0.2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var zones = Tencentcloud.GetAvailabilityZones.Invoke();
    
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            VpcId = vpc.VpcId,
            CidrBlock = "10.0.0.0/16",
            AvailabilityZone = zones.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Zones[0]?.Name),
        });
    
        var example = new Tencentcloud.VpcNetDetect("example", new()
        {
            NetDetectName = "tf-example",
            VpcId = vpc.VpcId,
            SubnetId = subnet.SubnetId,
            DetectDestinationIps = new[]
            {
                "10.0.0.1",
                "10.0.0.2",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesArgs;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.VpcNetDetect;
    import com.pulumi.tencentcloud.VpcNetDetectArgs;
    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) {
            final var zones = TencentcloudFunctions.getAvailabilityZones();
    
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .vpcId(vpc.vpcId())
                .cidrBlock("10.0.0.0/16")
                .availabilityZone(zones.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.zones()[0].name()))
                .build());
    
            var example = new VpcNetDetect("example", VpcNetDetectArgs.builder()
                .netDetectName("tf-example")
                .vpcId(vpc.vpcId())
                .subnetId(subnet.subnetId())
                .detectDestinationIps(            
                    "10.0.0.1",
                    "10.0.0.2")
                .build());
    
        }
    }
    
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      subnet:
        type: tencentcloud:Subnet
        properties:
          vpcId: ${vpc.vpcId}
          cidrBlock: 10.0.0.0/16
          availabilityZone: ${zones.zones[0].name}
      example:
        type: tencentcloud:VpcNetDetect
        properties:
          netDetectName: tf-example
          vpcId: ${vpc.vpcId}
          subnetId: ${subnet.subnetId}
          detectDestinationIps:
            - 10.0.0.1
            - 10.0.0.2
    variables:
      zones:
        fn::invoke:
          function: tencentcloud:getAvailabilityZones
          arguments: {}
    
    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const vpn = new tencentcloud.VpnGateway("vpn", {
        bandwidth: 100,
        zone: data.tencentcloud_availability_zones.zones.zones[0].name,
        type: "SSL",
        vpcId: tencentcloud_vpc.vpc.id,
        tags: {
            test: "test",
        },
    });
    const example = new tencentcloud.VpcNetDetect("example", {
        netDetectName: "tf-example",
        vpcId: tencentcloud_vpc.vpc.id,
        subnetId: tencentcloud_subnet.subnet.id,
        nextHopType: "VPN",
        nextHopDestination: vpn.vpnGatewayId,
        detectDestinationIps: [
            "192.16.10.10",
            "172.16.10.22",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    vpn = tencentcloud.VpnGateway("vpn",
        bandwidth=100,
        zone=data["tencentcloud_availability_zones"]["zones"]["zones"][0]["name"],
        type="SSL",
        vpc_id=tencentcloud_vpc["vpc"]["id"],
        tags={
            "test": "test",
        })
    example = tencentcloud.VpcNetDetect("example",
        net_detect_name="tf-example",
        vpc_id=tencentcloud_vpc["vpc"]["id"],
        subnet_id=tencentcloud_subnet["subnet"]["id"],
        next_hop_type="VPN",
        next_hop_destination=vpn.vpn_gateway_id,
        detect_destination_ips=[
            "192.16.10.10",
            "172.16.10.22",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		vpn, err := tencentcloud.NewVpnGateway(ctx, "vpn", &tencentcloud.VpnGatewayArgs{
    			Bandwidth: pulumi.Float64(100),
    			Zone:      pulumi.Any(data.Tencentcloud_availability_zones.Zones.Zones[0].Name),
    			Type:      pulumi.String("SSL"),
    			VpcId:     pulumi.Any(tencentcloud_vpc.Vpc.Id),
    			Tags: pulumi.StringMap{
    				"test": pulumi.String("test"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewVpcNetDetect(ctx, "example", &tencentcloud.VpcNetDetectArgs{
    			NetDetectName:      pulumi.String("tf-example"),
    			VpcId:              pulumi.Any(tencentcloud_vpc.Vpc.Id),
    			SubnetId:           pulumi.Any(tencentcloud_subnet.Subnet.Id),
    			NextHopType:        pulumi.String("VPN"),
    			NextHopDestination: vpn.VpnGatewayId,
    			DetectDestinationIps: pulumi.StringArray{
    				pulumi.String("192.16.10.10"),
    				pulumi.String("172.16.10.22"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var vpn = new Tencentcloud.VpnGateway("vpn", new()
        {
            Bandwidth = 100,
            Zone = data.Tencentcloud_availability_zones.Zones.Zones[0].Name,
            Type = "SSL",
            VpcId = tencentcloud_vpc.Vpc.Id,
            Tags = 
            {
                { "test", "test" },
            },
        });
    
        var example = new Tencentcloud.VpcNetDetect("example", new()
        {
            NetDetectName = "tf-example",
            VpcId = tencentcloud_vpc.Vpc.Id,
            SubnetId = tencentcloud_subnet.Subnet.Id,
            NextHopType = "VPN",
            NextHopDestination = vpn.VpnGatewayId,
            DetectDestinationIps = new[]
            {
                "192.16.10.10",
                "172.16.10.22",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.VpnGateway;
    import com.pulumi.tencentcloud.VpnGatewayArgs;
    import com.pulumi.tencentcloud.VpcNetDetect;
    import com.pulumi.tencentcloud.VpcNetDetectArgs;
    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 vpn = new VpnGateway("vpn", VpnGatewayArgs.builder()
                .bandwidth(100)
                .zone(data.tencentcloud_availability_zones().zones().zones()[0].name())
                .type("SSL")
                .vpcId(tencentcloud_vpc.vpc().id())
                .tags(Map.of("test", "test"))
                .build());
    
            var example = new VpcNetDetect("example", VpcNetDetectArgs.builder()
                .netDetectName("tf-example")
                .vpcId(tencentcloud_vpc.vpc().id())
                .subnetId(tencentcloud_subnet.subnet().id())
                .nextHopType("VPN")
                .nextHopDestination(vpn.vpnGatewayId())
                .detectDestinationIps(            
                    "192.16.10.10",
                    "172.16.10.22")
                .build());
    
        }
    }
    
    resources:
      vpn:
        type: tencentcloud:VpnGateway
        properties:
          bandwidth: 100
          zone: ${data.tencentcloud_availability_zones.zones.zones[0].name}
          type: SSL
          vpcId: ${tencentcloud_vpc.vpc.id}
          tags:
            test: test
      example:
        type: tencentcloud:VpcNetDetect
        properties:
          netDetectName: tf-example
          vpcId: ${tencentcloud_vpc.vpc.id}
          subnetId: ${tencentcloud_subnet.subnet.id}
          nextHopType: VPN
          nextHopDestination: ${vpn.vpnGatewayId}
          detectDestinationIps:
            - 192.16.10.10
            - 172.16.10.22
    
    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const exampleDcGateway = new tencentcloud.DcGateway("exampleDcGateway", {
        networkInstanceId: tencentcloud_vpc.vpc.id,
        networkType: "VPC",
        gatewayType: "NAT",
    });
    const exampleVpcNetDetect = new tencentcloud.VpcNetDetect("exampleVpcNetDetect", {
        netDetectName: "tf-example",
        vpcId: tencentcloud_vpc.vpc.id,
        subnetId: tencentcloud_subnet.subnet.id,
        nextHopType: "DIRECTCONNECT",
        nextHopDestination: exampleDcGateway.dcGatewayId,
        detectDestinationIps: [
            "192.16.10.10",
            "172.16.10.22",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example_dc_gateway = tencentcloud.DcGateway("exampleDcGateway",
        network_instance_id=tencentcloud_vpc["vpc"]["id"],
        network_type="VPC",
        gateway_type="NAT")
    example_vpc_net_detect = tencentcloud.VpcNetDetect("exampleVpcNetDetect",
        net_detect_name="tf-example",
        vpc_id=tencentcloud_vpc["vpc"]["id"],
        subnet_id=tencentcloud_subnet["subnet"]["id"],
        next_hop_type="DIRECTCONNECT",
        next_hop_destination=example_dc_gateway.dc_gateway_id,
        detect_destination_ips=[
            "192.16.10.10",
            "172.16.10.22",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleDcGateway, err := tencentcloud.NewDcGateway(ctx, "exampleDcGateway", &tencentcloud.DcGatewayArgs{
    			NetworkInstanceId: pulumi.Any(tencentcloud_vpc.Vpc.Id),
    			NetworkType:       pulumi.String("VPC"),
    			GatewayType:       pulumi.String("NAT"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewVpcNetDetect(ctx, "exampleVpcNetDetect", &tencentcloud.VpcNetDetectArgs{
    			NetDetectName:      pulumi.String("tf-example"),
    			VpcId:              pulumi.Any(tencentcloud_vpc.Vpc.Id),
    			SubnetId:           pulumi.Any(tencentcloud_subnet.Subnet.Id),
    			NextHopType:        pulumi.String("DIRECTCONNECT"),
    			NextHopDestination: exampleDcGateway.DcGatewayId,
    			DetectDestinationIps: pulumi.StringArray{
    				pulumi.String("192.16.10.10"),
    				pulumi.String("172.16.10.22"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleDcGateway = new Tencentcloud.DcGateway("exampleDcGateway", new()
        {
            NetworkInstanceId = tencentcloud_vpc.Vpc.Id,
            NetworkType = "VPC",
            GatewayType = "NAT",
        });
    
        var exampleVpcNetDetect = new Tencentcloud.VpcNetDetect("exampleVpcNetDetect", new()
        {
            NetDetectName = "tf-example",
            VpcId = tencentcloud_vpc.Vpc.Id,
            SubnetId = tencentcloud_subnet.Subnet.Id,
            NextHopType = "DIRECTCONNECT",
            NextHopDestination = exampleDcGateway.DcGatewayId,
            DetectDestinationIps = new[]
            {
                "192.16.10.10",
                "172.16.10.22",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DcGateway;
    import com.pulumi.tencentcloud.DcGatewayArgs;
    import com.pulumi.tencentcloud.VpcNetDetect;
    import com.pulumi.tencentcloud.VpcNetDetectArgs;
    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 exampleDcGateway = new DcGateway("exampleDcGateway", DcGatewayArgs.builder()
                .networkInstanceId(tencentcloud_vpc.vpc().id())
                .networkType("VPC")
                .gatewayType("NAT")
                .build());
    
            var exampleVpcNetDetect = new VpcNetDetect("exampleVpcNetDetect", VpcNetDetectArgs.builder()
                .netDetectName("tf-example")
                .vpcId(tencentcloud_vpc.vpc().id())
                .subnetId(tencentcloud_subnet.subnet().id())
                .nextHopType("DIRECTCONNECT")
                .nextHopDestination(exampleDcGateway.dcGatewayId())
                .detectDestinationIps(            
                    "192.16.10.10",
                    "172.16.10.22")
                .build());
    
        }
    }
    
    resources:
      exampleDcGateway:
        type: tencentcloud:DcGateway
        properties:
          networkInstanceId: ${tencentcloud_vpc.vpc.id}
          networkType: VPC
          gatewayType: NAT
      exampleVpcNetDetect:
        type: tencentcloud:VpcNetDetect
        properties:
          netDetectName: tf-example
          vpcId: ${tencentcloud_vpc.vpc.id}
          subnetId: ${tencentcloud_subnet.subnet.id}
          nextHopType: DIRECTCONNECT
          nextHopDestination: ${exampleDcGateway.dcGatewayId}
          detectDestinationIps:
            - 192.16.10.10
            - 172.16.10.22
    
    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const eipExample1 = new tencentcloud.Eip("eipExample1", {});
    const eipExample2 = new tencentcloud.Eip("eipExample2", {});
    const exampleNatGateway = new tencentcloud.NatGateway("exampleNatGateway", {
        vpcId: tencentcloud_vpc.vpc.id,
        bandwidth: 100,
        maxConcurrent: 1000000,
        assignedEipSets: [
            eipExample1.publicIp,
            eipExample2.publicIp,
        ],
        tags: {
            tf_tag_key: "tf_tag_value",
        },
    });
    const exampleVpcNetDetect = new tencentcloud.VpcNetDetect("exampleVpcNetDetect", {
        netDetectName: "tf-example",
        vpcId: tencentcloud_vpc.vpc.id,
        subnetId: tencentcloud_subnet.subnet.id,
        nextHopType: "NAT",
        nextHopDestination: exampleNatGateway.natGatewayId,
        detectDestinationIps: [
            "192.16.10.10",
            "172.16.10.22",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    eip_example1 = tencentcloud.Eip("eipExample1")
    eip_example2 = tencentcloud.Eip("eipExample2")
    example_nat_gateway = tencentcloud.NatGateway("exampleNatGateway",
        vpc_id=tencentcloud_vpc["vpc"]["id"],
        bandwidth=100,
        max_concurrent=1000000,
        assigned_eip_sets=[
            eip_example1.public_ip,
            eip_example2.public_ip,
        ],
        tags={
            "tf_tag_key": "tf_tag_value",
        })
    example_vpc_net_detect = tencentcloud.VpcNetDetect("exampleVpcNetDetect",
        net_detect_name="tf-example",
        vpc_id=tencentcloud_vpc["vpc"]["id"],
        subnet_id=tencentcloud_subnet["subnet"]["id"],
        next_hop_type="NAT",
        next_hop_destination=example_nat_gateway.nat_gateway_id,
        detect_destination_ips=[
            "192.16.10.10",
            "172.16.10.22",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		eipExample1, err := tencentcloud.NewEip(ctx, "eipExample1", nil)
    		if err != nil {
    			return err
    		}
    		eipExample2, err := tencentcloud.NewEip(ctx, "eipExample2", nil)
    		if err != nil {
    			return err
    		}
    		exampleNatGateway, err := tencentcloud.NewNatGateway(ctx, "exampleNatGateway", &tencentcloud.NatGatewayArgs{
    			VpcId:         pulumi.Any(tencentcloud_vpc.Vpc.Id),
    			Bandwidth:     pulumi.Float64(100),
    			MaxConcurrent: pulumi.Float64(1000000),
    			AssignedEipSets: pulumi.StringArray{
    				eipExample1.PublicIp,
    				eipExample2.PublicIp,
    			},
    			Tags: pulumi.StringMap{
    				"tf_tag_key": pulumi.String("tf_tag_value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewVpcNetDetect(ctx, "exampleVpcNetDetect", &tencentcloud.VpcNetDetectArgs{
    			NetDetectName:      pulumi.String("tf-example"),
    			VpcId:              pulumi.Any(tencentcloud_vpc.Vpc.Id),
    			SubnetId:           pulumi.Any(tencentcloud_subnet.Subnet.Id),
    			NextHopType:        pulumi.String("NAT"),
    			NextHopDestination: exampleNatGateway.NatGatewayId,
    			DetectDestinationIps: pulumi.StringArray{
    				pulumi.String("192.16.10.10"),
    				pulumi.String("172.16.10.22"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var eipExample1 = new Tencentcloud.Eip("eipExample1");
    
        var eipExample2 = new Tencentcloud.Eip("eipExample2");
    
        var exampleNatGateway = new Tencentcloud.NatGateway("exampleNatGateway", new()
        {
            VpcId = tencentcloud_vpc.Vpc.Id,
            Bandwidth = 100,
            MaxConcurrent = 1000000,
            AssignedEipSets = new[]
            {
                eipExample1.PublicIp,
                eipExample2.PublicIp,
            },
            Tags = 
            {
                { "tf_tag_key", "tf_tag_value" },
            },
        });
    
        var exampleVpcNetDetect = new Tencentcloud.VpcNetDetect("exampleVpcNetDetect", new()
        {
            NetDetectName = "tf-example",
            VpcId = tencentcloud_vpc.Vpc.Id,
            SubnetId = tencentcloud_subnet.Subnet.Id,
            NextHopType = "NAT",
            NextHopDestination = exampleNatGateway.NatGatewayId,
            DetectDestinationIps = new[]
            {
                "192.16.10.10",
                "172.16.10.22",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Eip;
    import com.pulumi.tencentcloud.NatGateway;
    import com.pulumi.tencentcloud.NatGatewayArgs;
    import com.pulumi.tencentcloud.VpcNetDetect;
    import com.pulumi.tencentcloud.VpcNetDetectArgs;
    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 eipExample1 = new Eip("eipExample1");
    
            var eipExample2 = new Eip("eipExample2");
    
            var exampleNatGateway = new NatGateway("exampleNatGateway", NatGatewayArgs.builder()
                .vpcId(tencentcloud_vpc.vpc().id())
                .bandwidth(100)
                .maxConcurrent(1000000)
                .assignedEipSets(            
                    eipExample1.publicIp(),
                    eipExample2.publicIp())
                .tags(Map.of("tf_tag_key", "tf_tag_value"))
                .build());
    
            var exampleVpcNetDetect = new VpcNetDetect("exampleVpcNetDetect", VpcNetDetectArgs.builder()
                .netDetectName("tf-example")
                .vpcId(tencentcloud_vpc.vpc().id())
                .subnetId(tencentcloud_subnet.subnet().id())
                .nextHopType("NAT")
                .nextHopDestination(exampleNatGateway.natGatewayId())
                .detectDestinationIps(            
                    "192.16.10.10",
                    "172.16.10.22")
                .build());
    
        }
    }
    
    resources:
      eipExample1:
        type: tencentcloud:Eip
      eipExample2:
        type: tencentcloud:Eip
      exampleNatGateway:
        type: tencentcloud:NatGateway
        properties:
          vpcId: ${tencentcloud_vpc.vpc.id}
          bandwidth: 100
          maxConcurrent: 1e+06
          assignedEipSets:
            - ${eipExample1.publicIp}
            - ${eipExample2.publicIp}
          tags:
            tf_tag_key: tf_tag_value
      exampleVpcNetDetect:
        type: tencentcloud:VpcNetDetect
        properties:
          netDetectName: tf-example
          vpcId: ${tencentcloud_vpc.vpc.id}
          subnetId: ${tencentcloud_subnet.subnet.id}
          nextHopType: NAT
          nextHopDestination: ${exampleNatGateway.natGatewayId}
          detectDestinationIps:
            - 192.16.10.10
            - 172.16.10.22
    
    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const image = tencentcloud.getImages({
        imageTypes: ["PUBLIC_IMAGE"],
        osName: "TencentOS Server 3.2 (Final)",
    });
    const instanceTypes = tencentcloud.getInstanceTypes({
        filters: [
            {
                name: "zone",
                values: [data.tencentcloud_availability_zones.zones.zones[0].name],
            },
            {
                name: "instance-family",
                values: ["S5"],
            },
        ],
        cpuCoreCount: 2,
        excludeSoldOut: true,
    });
    const exampleInstance = new tencentcloud.Instance("exampleInstance", {
        instanceName: "tf_example",
        availabilityZone: data.tencentcloud_availability_zones.zones.zones[0].name,
        imageId: image.then(image => image.images?.[0]?.imageId),
        instanceType: instanceTypes.then(instanceTypes => instanceTypes.instanceTypes?.[0]?.instanceType),
        systemDiskType: "CLOUD_PREMIUM",
        systemDiskSize: 50,
        hostname: "user",
        projectId: 0,
        vpcId: tencentcloud_vpc.vpc.id,
        subnetId: tencentcloud_subnet.subnet.id,
    });
    const exampleVpcNetDetect = new tencentcloud.VpcNetDetect("exampleVpcNetDetect", {
        netDetectName: "tf-example",
        vpcId: tencentcloud_vpc.vpc.id,
        subnetId: tencentcloud_subnet.subnet.id,
        nextHopType: "NORMAL_CVM",
        nextHopDestination: exampleInstance.privateIp,
        detectDestinationIps: [
            "192.16.10.10",
            "172.16.10.22",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    image = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
        os_name="TencentOS Server 3.2 (Final)")
    instance_types = tencentcloud.get_instance_types(filters=[
            {
                "name": "zone",
                "values": [data["tencentcloud_availability_zones"]["zones"]["zones"][0]["name"]],
            },
            {
                "name": "instance-family",
                "values": ["S5"],
            },
        ],
        cpu_core_count=2,
        exclude_sold_out=True)
    example_instance = tencentcloud.Instance("exampleInstance",
        instance_name="tf_example",
        availability_zone=data["tencentcloud_availability_zones"]["zones"]["zones"][0]["name"],
        image_id=image.images[0].image_id,
        instance_type=instance_types.instance_types[0].instance_type,
        system_disk_type="CLOUD_PREMIUM",
        system_disk_size=50,
        hostname="user",
        project_id=0,
        vpc_id=tencentcloud_vpc["vpc"]["id"],
        subnet_id=tencentcloud_subnet["subnet"]["id"])
    example_vpc_net_detect = tencentcloud.VpcNetDetect("exampleVpcNetDetect",
        net_detect_name="tf-example",
        vpc_id=tencentcloud_vpc["vpc"]["id"],
        subnet_id=tencentcloud_subnet["subnet"]["id"],
        next_hop_type="NORMAL_CVM",
        next_hop_destination=example_instance.private_ip,
        detect_destination_ips=[
            "192.16.10.10",
            "172.16.10.22",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    image, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
    ImageTypes: []string{
    "PUBLIC_IMAGE",
    },
    OsName: pulumi.StringRef("TencentOS Server 3.2 (Final)"),
    }, nil);
    if err != nil {
    return err
    }
    instanceTypes, err := tencentcloud.GetInstanceTypes(ctx, &tencentcloud.GetInstanceTypesArgs{
    Filters: []tencentcloud.GetInstanceTypesFilter{
    {
    Name: "zone",
    Values: interface{}{
    data.Tencentcloud_availability_zones.Zones.Zones[0].Name,
    },
    },
    {
    Name: "instance-family",
    Values: []string{
    "S5",
    },
    },
    },
    CpuCoreCount: pulumi.Float64Ref(2),
    ExcludeSoldOut: pulumi.BoolRef(true),
    }, nil);
    if err != nil {
    return err
    }
    exampleInstance, err := tencentcloud.NewInstance(ctx, "exampleInstance", &tencentcloud.InstanceArgs{
    InstanceName: pulumi.String("tf_example"),
    AvailabilityZone: pulumi.Any(data.Tencentcloud_availability_zones.Zones.Zones[0].Name),
    ImageId: pulumi.String(image.Images[0].ImageId),
    InstanceType: pulumi.String(instanceTypes.InstanceTypes[0].InstanceType),
    SystemDiskType: pulumi.String("CLOUD_PREMIUM"),
    SystemDiskSize: pulumi.Float64(50),
    Hostname: pulumi.String("user"),
    ProjectId: pulumi.Float64(0),
    VpcId: pulumi.Any(tencentcloud_vpc.Vpc.Id),
    SubnetId: pulumi.Any(tencentcloud_subnet.Subnet.Id),
    })
    if err != nil {
    return err
    }
    _, err = tencentcloud.NewVpcNetDetect(ctx, "exampleVpcNetDetect", &tencentcloud.VpcNetDetectArgs{
    NetDetectName: pulumi.String("tf-example"),
    VpcId: pulumi.Any(tencentcloud_vpc.Vpc.Id),
    SubnetId: pulumi.Any(tencentcloud_subnet.Subnet.Id),
    NextHopType: pulumi.String("NORMAL_CVM"),
    NextHopDestination: exampleInstance.PrivateIp,
    DetectDestinationIps: pulumi.StringArray{
    pulumi.String("192.16.10.10"),
    pulumi.String("172.16.10.22"),
    },
    })
    if err != nil {
    return err
    }
    return nil
    })
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var image = Tencentcloud.GetImages.Invoke(new()
        {
            ImageTypes = new[]
            {
                "PUBLIC_IMAGE",
            },
            OsName = "TencentOS Server 3.2 (Final)",
        });
    
        var instanceTypes = Tencentcloud.GetInstanceTypes.Invoke(new()
        {
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetInstanceTypesFilterInputArgs
                {
                    Name = "zone",
                    Values = new[]
                    {
                        data.Tencentcloud_availability_zones.Zones.Zones[0].Name,
                    },
                },
                new Tencentcloud.Inputs.GetInstanceTypesFilterInputArgs
                {
                    Name = "instance-family",
                    Values = new[]
                    {
                        "S5",
                    },
                },
            },
            CpuCoreCount = 2,
            ExcludeSoldOut = true,
        });
    
        var exampleInstance = new Tencentcloud.Instance("exampleInstance", new()
        {
            InstanceName = "tf_example",
            AvailabilityZone = data.Tencentcloud_availability_zones.Zones.Zones[0].Name,
            ImageId = image.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
            InstanceType = instanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.InstanceType),
            SystemDiskType = "CLOUD_PREMIUM",
            SystemDiskSize = 50,
            Hostname = "user",
            ProjectId = 0,
            VpcId = tencentcloud_vpc.Vpc.Id,
            SubnetId = tencentcloud_subnet.Subnet.Id,
        });
    
        var exampleVpcNetDetect = new Tencentcloud.VpcNetDetect("exampleVpcNetDetect", new()
        {
            NetDetectName = "tf-example",
            VpcId = tencentcloud_vpc.Vpc.Id,
            SubnetId = tencentcloud_subnet.Subnet.Id,
            NextHopType = "NORMAL_CVM",
            NextHopDestination = exampleInstance.PrivateIp,
            DetectDestinationIps = new[]
            {
                "192.16.10.10",
                "172.16.10.22",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetImagesArgs;
    import com.pulumi.tencentcloud.inputs.GetInstanceTypesArgs;
    import com.pulumi.tencentcloud.Instance;
    import com.pulumi.tencentcloud.InstanceArgs;
    import com.pulumi.tencentcloud.VpcNetDetect;
    import com.pulumi.tencentcloud.VpcNetDetectArgs;
    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) {
            final var image = TencentcloudFunctions.getImages(GetImagesArgs.builder()
                .imageTypes("PUBLIC_IMAGE")
                .osName("TencentOS Server 3.2 (Final)")
                .build());
    
            final var instanceTypes = TencentcloudFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
                .filters(            
                    GetInstanceTypesFilterArgs.builder()
                        .name("zone")
                        .values(data.tencentcloud_availability_zones().zones().zones()[0].name())
                        .build(),
                    GetInstanceTypesFilterArgs.builder()
                        .name("instance-family")
                        .values("S5")
                        .build())
                .cpuCoreCount(2)
                .excludeSoldOut(true)
                .build());
    
            var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
                .instanceName("tf_example")
                .availabilityZone(data.tencentcloud_availability_zones().zones().zones()[0].name())
                .imageId(image.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
                .instanceType(instanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].instanceType()))
                .systemDiskType("CLOUD_PREMIUM")
                .systemDiskSize(50)
                .hostname("user")
                .projectId(0)
                .vpcId(tencentcloud_vpc.vpc().id())
                .subnetId(tencentcloud_subnet.subnet().id())
                .build());
    
            var exampleVpcNetDetect = new VpcNetDetect("exampleVpcNetDetect", VpcNetDetectArgs.builder()
                .netDetectName("tf-example")
                .vpcId(tencentcloud_vpc.vpc().id())
                .subnetId(tencentcloud_subnet.subnet().id())
                .nextHopType("NORMAL_CVM")
                .nextHopDestination(exampleInstance.privateIp())
                .detectDestinationIps(            
                    "192.16.10.10",
                    "172.16.10.22")
                .build());
    
        }
    }
    
    resources:
      exampleInstance:
        type: tencentcloud:Instance
        properties:
          instanceName: tf_example
          availabilityZone: ${data.tencentcloud_availability_zones.zones.zones[0].name}
          imageId: ${image.images[0].imageId}
          instanceType: ${instanceTypes.instanceTypes[0].instanceType}
          systemDiskType: CLOUD_PREMIUM
          systemDiskSize: 50
          hostname: user
          projectId: 0
          vpcId: ${tencentcloud_vpc.vpc.id}
          subnetId: ${tencentcloud_subnet.subnet.id}
      exampleVpcNetDetect:
        type: tencentcloud:VpcNetDetect
        properties:
          netDetectName: tf-example
          vpcId: ${tencentcloud_vpc.vpc.id}
          subnetId: ${tencentcloud_subnet.subnet.id}
          nextHopType: NORMAL_CVM
          nextHopDestination: ${exampleInstance.privateIp}
          detectDestinationIps:
            - 192.16.10.10
            - 172.16.10.22
    variables:
      image:
        fn::invoke:
          function: tencentcloud:getImages
          arguments:
            imageTypes:
              - PUBLIC_IMAGE
            osName: TencentOS Server 3.2 (Final)
      instanceTypes:
        fn::invoke:
          function: tencentcloud:getInstanceTypes
          arguments:
            filters:
              - name: zone
                values:
                  - ${data.tencentcloud_availability_zones.zones.zones[0].name}
              - name: instance-family
                values:
                  - S5
            cpuCoreCount: 2
            excludeSoldOut: true
    
    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const exampleCcn = new tencentcloud.Ccn("exampleCcn", {
        description: "desc.",
        qos: "AU",
        chargeType: "POSTPAID",
        bandwidthLimitType: "OUTER_REGION_LIMIT",
    });
    const exampleVpcNetDetect = new tencentcloud.VpcNetDetect("exampleVpcNetDetect", {
        netDetectName: "tf-example",
        vpcId: tencentcloud_vpc.vpc.id,
        subnetId: tencentcloud_subnet.subnet.id,
        nextHopType: "CCN",
        nextHopDestination: exampleCcn.ccnId,
        detectDestinationIps: [
            "172.10.0.1",
            "172.10.0.2",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example_ccn = tencentcloud.Ccn("exampleCcn",
        description="desc.",
        qos="AU",
        charge_type="POSTPAID",
        bandwidth_limit_type="OUTER_REGION_LIMIT")
    example_vpc_net_detect = tencentcloud.VpcNetDetect("exampleVpcNetDetect",
        net_detect_name="tf-example",
        vpc_id=tencentcloud_vpc["vpc"]["id"],
        subnet_id=tencentcloud_subnet["subnet"]["id"],
        next_hop_type="CCN",
        next_hop_destination=example_ccn.ccn_id,
        detect_destination_ips=[
            "172.10.0.1",
            "172.10.0.2",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleCcn, err := tencentcloud.NewCcn(ctx, "exampleCcn", &tencentcloud.CcnArgs{
    			Description:        pulumi.String("desc."),
    			Qos:                pulumi.String("AU"),
    			ChargeType:         pulumi.String("POSTPAID"),
    			BandwidthLimitType: pulumi.String("OUTER_REGION_LIMIT"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewVpcNetDetect(ctx, "exampleVpcNetDetect", &tencentcloud.VpcNetDetectArgs{
    			NetDetectName:      pulumi.String("tf-example"),
    			VpcId:              pulumi.Any(tencentcloud_vpc.Vpc.Id),
    			SubnetId:           pulumi.Any(tencentcloud_subnet.Subnet.Id),
    			NextHopType:        pulumi.String("CCN"),
    			NextHopDestination: exampleCcn.CcnId,
    			DetectDestinationIps: pulumi.StringArray{
    				pulumi.String("172.10.0.1"),
    				pulumi.String("172.10.0.2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleCcn = new Tencentcloud.Ccn("exampleCcn", new()
        {
            Description = "desc.",
            Qos = "AU",
            ChargeType = "POSTPAID",
            BandwidthLimitType = "OUTER_REGION_LIMIT",
        });
    
        var exampleVpcNetDetect = new Tencentcloud.VpcNetDetect("exampleVpcNetDetect", new()
        {
            NetDetectName = "tf-example",
            VpcId = tencentcloud_vpc.Vpc.Id,
            SubnetId = tencentcloud_subnet.Subnet.Id,
            NextHopType = "CCN",
            NextHopDestination = exampleCcn.CcnId,
            DetectDestinationIps = new[]
            {
                "172.10.0.1",
                "172.10.0.2",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Ccn;
    import com.pulumi.tencentcloud.CcnArgs;
    import com.pulumi.tencentcloud.VpcNetDetect;
    import com.pulumi.tencentcloud.VpcNetDetectArgs;
    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 exampleCcn = new Ccn("exampleCcn", CcnArgs.builder()
                .description("desc.")
                .qos("AU")
                .chargeType("POSTPAID")
                .bandwidthLimitType("OUTER_REGION_LIMIT")
                .build());
    
            var exampleVpcNetDetect = new VpcNetDetect("exampleVpcNetDetect", VpcNetDetectArgs.builder()
                .netDetectName("tf-example")
                .vpcId(tencentcloud_vpc.vpc().id())
                .subnetId(tencentcloud_subnet.subnet().id())
                .nextHopType("CCN")
                .nextHopDestination(exampleCcn.ccnId())
                .detectDestinationIps(            
                    "172.10.0.1",
                    "172.10.0.2")
                .build());
    
        }
    }
    
    resources:
      exampleCcn:
        type: tencentcloud:Ccn
        properties:
          description: desc.
          qos: AU
          chargeType: POSTPAID
          bandwidthLimitType: OUTER_REGION_LIMIT
      exampleVpcNetDetect:
        type: tencentcloud:VpcNetDetect
        properties:
          netDetectName: tf-example
          vpcId: ${tencentcloud_vpc.vpc.id}
          subnetId: ${tencentcloud_subnet.subnet.id}
          nextHopType: CCN
          nextHopDestination: ${exampleCcn.ccnId}
          detectDestinationIps:
            - 172.10.0.1
            - 172.10.0.2
    
    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.VpcNetDetect("example", {
        netDetectName: "tf-example",
        vpcId: tencentcloud_vpc.vpc.id,
        subnetId: tencentcloud_subnet.subnet.id,
        nextHopType: "NONEXTHOP",
        detectDestinationIps: [
            "10.0.0.1",
            "10.0.0.2",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.VpcNetDetect("example",
        net_detect_name="tf-example",
        vpc_id=tencentcloud_vpc["vpc"]["id"],
        subnet_id=tencentcloud_subnet["subnet"]["id"],
        next_hop_type="NONEXTHOP",
        detect_destination_ips=[
            "10.0.0.1",
            "10.0.0.2",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewVpcNetDetect(ctx, "example", &tencentcloud.VpcNetDetectArgs{
    			NetDetectName: pulumi.String("tf-example"),
    			VpcId:         pulumi.Any(tencentcloud_vpc.Vpc.Id),
    			SubnetId:      pulumi.Any(tencentcloud_subnet.Subnet.Id),
    			NextHopType:   pulumi.String("NONEXTHOP"),
    			DetectDestinationIps: pulumi.StringArray{
    				pulumi.String("10.0.0.1"),
    				pulumi.String("10.0.0.2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.VpcNetDetect("example", new()
        {
            NetDetectName = "tf-example",
            VpcId = tencentcloud_vpc.Vpc.Id,
            SubnetId = tencentcloud_subnet.Subnet.Id,
            NextHopType = "NONEXTHOP",
            DetectDestinationIps = new[]
            {
                "10.0.0.1",
                "10.0.0.2",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.VpcNetDetect;
    import com.pulumi.tencentcloud.VpcNetDetectArgs;
    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 example = new VpcNetDetect("example", VpcNetDetectArgs.builder()
                .netDetectName("tf-example")
                .vpcId(tencentcloud_vpc.vpc().id())
                .subnetId(tencentcloud_subnet.subnet().id())
                .nextHopType("NONEXTHOP")
                .detectDestinationIps(            
                    "10.0.0.1",
                    "10.0.0.2")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:VpcNetDetect
        properties:
          netDetectName: tf-example
          vpcId: ${tencentcloud_vpc.vpc.id}
          subnetId: ${tencentcloud_subnet.subnet.id}
          nextHopType: NONEXTHOP
          detectDestinationIps:
            - 10.0.0.1
            - 10.0.0.2
    

    Create VpcNetDetect Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpcNetDetect(name: string, args: VpcNetDetectArgs, opts?: CustomResourceOptions);
    @overload
    def VpcNetDetect(resource_name: str,
                     args: VpcNetDetectArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcNetDetect(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     detect_destination_ips: Optional[Sequence[str]] = None,
                     net_detect_name: Optional[str] = None,
                     subnet_id: Optional[str] = None,
                     vpc_id: Optional[str] = None,
                     net_detect_description: Optional[str] = None,
                     next_hop_destination: Optional[str] = None,
                     next_hop_type: Optional[str] = None,
                     vpc_net_detect_id: Optional[str] = None)
    func NewVpcNetDetect(ctx *Context, name string, args VpcNetDetectArgs, opts ...ResourceOption) (*VpcNetDetect, error)
    public VpcNetDetect(string name, VpcNetDetectArgs args, CustomResourceOptions? opts = null)
    public VpcNetDetect(String name, VpcNetDetectArgs args)
    public VpcNetDetect(String name, VpcNetDetectArgs args, CustomResourceOptions options)
    
    type: tencentcloud:VpcNetDetect
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VpcNetDetectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VpcNetDetectArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VpcNetDetectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcNetDetectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcNetDetectArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VpcNetDetect Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VpcNetDetect resource accepts the following input properties:

    DetectDestinationIps List<string>
    An array of probe destination IPv4 addresses. Up to two.
    NetDetectName string
    Network probe name, the maximum length cannot exceed 60 bytes.
    SubnetId string
    Subnet instance ID. Such as:subnet-12345678.
    VpcId string
    VPC instance ID. Such as:vpc-12345678.
    NetDetectDescription string
    Network probe description.
    NextHopDestination string
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    NextHopType string
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    VpcNetDetectId string
    ID of the resource.
    DetectDestinationIps []string
    An array of probe destination IPv4 addresses. Up to two.
    NetDetectName string
    Network probe name, the maximum length cannot exceed 60 bytes.
    SubnetId string
    Subnet instance ID. Such as:subnet-12345678.
    VpcId string
    VPC instance ID. Such as:vpc-12345678.
    NetDetectDescription string
    Network probe description.
    NextHopDestination string
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    NextHopType string
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    VpcNetDetectId string
    ID of the resource.
    detectDestinationIps List<String>
    An array of probe destination IPv4 addresses. Up to two.
    netDetectName String
    Network probe name, the maximum length cannot exceed 60 bytes.
    subnetId String
    Subnet instance ID. Such as:subnet-12345678.
    vpcId String
    VPC instance ID. Such as:vpc-12345678.
    netDetectDescription String
    Network probe description.
    nextHopDestination String
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    nextHopType String
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    vpcNetDetectId String
    ID of the resource.
    detectDestinationIps string[]
    An array of probe destination IPv4 addresses. Up to two.
    netDetectName string
    Network probe name, the maximum length cannot exceed 60 bytes.
    subnetId string
    Subnet instance ID. Such as:subnet-12345678.
    vpcId string
    VPC instance ID. Such as:vpc-12345678.
    netDetectDescription string
    Network probe description.
    nextHopDestination string
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    nextHopType string
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    vpcNetDetectId string
    ID of the resource.
    detect_destination_ips Sequence[str]
    An array of probe destination IPv4 addresses. Up to two.
    net_detect_name str
    Network probe name, the maximum length cannot exceed 60 bytes.
    subnet_id str
    Subnet instance ID. Such as:subnet-12345678.
    vpc_id str
    VPC instance ID. Such as:vpc-12345678.
    net_detect_description str
    Network probe description.
    next_hop_destination str
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    next_hop_type str
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    vpc_net_detect_id str
    ID of the resource.
    detectDestinationIps List<String>
    An array of probe destination IPv4 addresses. Up to two.
    netDetectName String
    Network probe name, the maximum length cannot exceed 60 bytes.
    subnetId String
    Subnet instance ID. Such as:subnet-12345678.
    vpcId String
    VPC instance ID. Such as:vpc-12345678.
    netDetectDescription String
    Network probe description.
    nextHopDestination String
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    nextHopType String
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    vpcNetDetectId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcNetDetect resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VpcNetDetect Resource

    Get an existing VpcNetDetect resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VpcNetDetectState, opts?: CustomResourceOptions): VpcNetDetect
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            detect_destination_ips: Optional[Sequence[str]] = None,
            net_detect_description: Optional[str] = None,
            net_detect_name: Optional[str] = None,
            next_hop_destination: Optional[str] = None,
            next_hop_type: Optional[str] = None,
            subnet_id: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vpc_net_detect_id: Optional[str] = None) -> VpcNetDetect
    func GetVpcNetDetect(ctx *Context, name string, id IDInput, state *VpcNetDetectState, opts ...ResourceOption) (*VpcNetDetect, error)
    public static VpcNetDetect Get(string name, Input<string> id, VpcNetDetectState? state, CustomResourceOptions? opts = null)
    public static VpcNetDetect get(String name, Output<String> id, VpcNetDetectState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:VpcNetDetect    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DetectDestinationIps List<string>
    An array of probe destination IPv4 addresses. Up to two.
    NetDetectDescription string
    Network probe description.
    NetDetectName string
    Network probe name, the maximum length cannot exceed 60 bytes.
    NextHopDestination string
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    NextHopType string
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    SubnetId string
    Subnet instance ID. Such as:subnet-12345678.
    VpcId string
    VPC instance ID. Such as:vpc-12345678.
    VpcNetDetectId string
    ID of the resource.
    DetectDestinationIps []string
    An array of probe destination IPv4 addresses. Up to two.
    NetDetectDescription string
    Network probe description.
    NetDetectName string
    Network probe name, the maximum length cannot exceed 60 bytes.
    NextHopDestination string
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    NextHopType string
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    SubnetId string
    Subnet instance ID. Such as:subnet-12345678.
    VpcId string
    VPC instance ID. Such as:vpc-12345678.
    VpcNetDetectId string
    ID of the resource.
    detectDestinationIps List<String>
    An array of probe destination IPv4 addresses. Up to two.
    netDetectDescription String
    Network probe description.
    netDetectName String
    Network probe name, the maximum length cannot exceed 60 bytes.
    nextHopDestination String
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    nextHopType String
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    subnetId String
    Subnet instance ID. Such as:subnet-12345678.
    vpcId String
    VPC instance ID. Such as:vpc-12345678.
    vpcNetDetectId String
    ID of the resource.
    detectDestinationIps string[]
    An array of probe destination IPv4 addresses. Up to two.
    netDetectDescription string
    Network probe description.
    netDetectName string
    Network probe name, the maximum length cannot exceed 60 bytes.
    nextHopDestination string
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    nextHopType string
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    subnetId string
    Subnet instance ID. Such as:subnet-12345678.
    vpcId string
    VPC instance ID. Such as:vpc-12345678.
    vpcNetDetectId string
    ID of the resource.
    detect_destination_ips Sequence[str]
    An array of probe destination IPv4 addresses. Up to two.
    net_detect_description str
    Network probe description.
    net_detect_name str
    Network probe name, the maximum length cannot exceed 60 bytes.
    next_hop_destination str
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    next_hop_type str
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    subnet_id str
    Subnet instance ID. Such as:subnet-12345678.
    vpc_id str
    VPC instance ID. Such as:vpc-12345678.
    vpc_net_detect_id str
    ID of the resource.
    detectDestinationIps List<String>
    An array of probe destination IPv4 addresses. Up to two.
    netDetectDescription String
    Network probe description.
    netDetectName String
    Network probe name, the maximum length cannot exceed 60 bytes.
    nextHopDestination String
    The destination gateway of the next hop, the value is related to the next hop type. If the next hop type is VPN, and the value is the VPN gateway ID, such as: vpngw-12345678; If the next hop type is DIRECTCONNECT, and the value is the private line gateway ID, such as: dcg-12345678; If the next hop type is PEERCONNECTION, which takes the value of the peer connection ID, such as: pcx-12345678; If the next hop type is NAT, and the value is Nat gateway, such as: nat-12345678; If the next hop type is NORMAL_CVM, which takes the IPv4 address of the cloud server, such as: 10.0.0.12; If the next hop type is CCN, and the value is the cloud network ID, such as: ccn-12345678; If the next hop type is NONEXTHOP, and the specified network probe is a network probe without a next hop.
    nextHopType String
    The next hop type, currently we support the following types: VPN: VPN gateway; DIRECTCONNECT: private line gateway; PEERCONNECTION: peer connection; NAT: NAT gateway; NORMAL_CVM: normal cloud server; CCN: cloud networking gateway; NONEXTHOP: no next hop.
    subnetId String
    Subnet instance ID. Such as:subnet-12345678.
    vpcId String
    VPC instance ID. Such as:vpc-12345678.
    vpcNetDetectId String
    ID of the resource.

    Import

    vpc net_detect can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/vpcNetDetect:VpcNetDetect net_detect net_detect_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack