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

tencentcloud.getVpcNetDetectStateCheck

Explore with Pulumi AI

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

    Use this data source to query detailed information of vpc net_detect_state_check

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const netDetectStateCheck = tencentcloud.getVpcNetDetectStateCheck({
        detectDestinationIps: [
            "10.0.0.3",
            "10.0.0.2",
        ],
        netDetectId: "netd-12345678",
        nextHopDestination: "10.0.0.4",
        nextHopType: "NORMAL_CVM",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    net_detect_state_check = tencentcloud.get_vpc_net_detect_state_check(detect_destination_ips=[
            "10.0.0.3",
            "10.0.0.2",
        ],
        net_detect_id="netd-12345678",
        next_hop_destination="10.0.0.4",
        next_hop_type="NORMAL_CVM")
    
    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.GetVpcNetDetectStateCheck(ctx, &tencentcloud.GetVpcNetDetectStateCheckArgs{
    			DetectDestinationIps: []string{
    				"10.0.0.3",
    				"10.0.0.2",
    			},
    			NetDetectId:        pulumi.StringRef("netd-12345678"),
    			NextHopDestination: "10.0.0.4",
    			NextHopType:        "NORMAL_CVM",
    		}, nil)
    		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 netDetectStateCheck = Tencentcloud.GetVpcNetDetectStateCheck.Invoke(new()
        {
            DetectDestinationIps = new[]
            {
                "10.0.0.3",
                "10.0.0.2",
            },
            NetDetectId = "netd-12345678",
            NextHopDestination = "10.0.0.4",
            NextHopType = "NORMAL_CVM",
        });
    
    });
    
    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.GetVpcNetDetectStateCheckArgs;
    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 netDetectStateCheck = TencentcloudFunctions.getVpcNetDetectStateCheck(GetVpcNetDetectStateCheckArgs.builder()
                .detectDestinationIps(            
                    "10.0.0.3",
                    "10.0.0.2")
                .netDetectId("netd-12345678")
                .nextHopDestination("10.0.0.4")
                .nextHopType("NORMAL_CVM")
                .build());
    
        }
    }
    
    variables:
      netDetectStateCheck:
        fn::invoke:
          function: tencentcloud:getVpcNetDetectStateCheck
          arguments:
            detectDestinationIps:
              - 10.0.0.3
              - 10.0.0.2
            netDetectId: netd-12345678
            nextHopDestination: 10.0.0.4
            nextHopType: NORMAL_CVM
    

    Using getVpcNetDetectStateCheck

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getVpcNetDetectStateCheck(args: GetVpcNetDetectStateCheckArgs, opts?: InvokeOptions): Promise<GetVpcNetDetectStateCheckResult>
    function getVpcNetDetectStateCheckOutput(args: GetVpcNetDetectStateCheckOutputArgs, opts?: InvokeOptions): Output<GetVpcNetDetectStateCheckResult>
    def get_vpc_net_detect_state_check(detect_destination_ips: Optional[Sequence[str]] = None,
                                       id: Optional[str] = None,
                                       net_detect_id: Optional[str] = None,
                                       net_detect_name: Optional[str] = None,
                                       next_hop_destination: Optional[str] = None,
                                       next_hop_type: Optional[str] = None,
                                       result_output_file: Optional[str] = None,
                                       subnet_id: Optional[str] = None,
                                       vpc_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetVpcNetDetectStateCheckResult
    def get_vpc_net_detect_state_check_output(detect_destination_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                       id: Optional[pulumi.Input[str]] = None,
                                       net_detect_id: Optional[pulumi.Input[str]] = None,
                                       net_detect_name: Optional[pulumi.Input[str]] = None,
                                       next_hop_destination: Optional[pulumi.Input[str]] = None,
                                       next_hop_type: Optional[pulumi.Input[str]] = None,
                                       result_output_file: Optional[pulumi.Input[str]] = None,
                                       subnet_id: Optional[pulumi.Input[str]] = None,
                                       vpc_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetVpcNetDetectStateCheckResult]
    func GetVpcNetDetectStateCheck(ctx *Context, args *GetVpcNetDetectStateCheckArgs, opts ...InvokeOption) (*GetVpcNetDetectStateCheckResult, error)
    func GetVpcNetDetectStateCheckOutput(ctx *Context, args *GetVpcNetDetectStateCheckOutputArgs, opts ...InvokeOption) GetVpcNetDetectStateCheckResultOutput

    > Note: This function is named GetVpcNetDetectStateCheck in the Go SDK.

    public static class GetVpcNetDetectStateCheck 
    {
        public static Task<GetVpcNetDetectStateCheckResult> InvokeAsync(GetVpcNetDetectStateCheckArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcNetDetectStateCheckResult> Invoke(GetVpcNetDetectStateCheckInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcNetDetectStateCheckResult> getVpcNetDetectStateCheck(GetVpcNetDetectStateCheckArgs args, InvokeOptions options)
    public static Output<GetVpcNetDetectStateCheckResult> getVpcNetDetectStateCheck(GetVpcNetDetectStateCheckArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getVpcNetDetectStateCheck:getVpcNetDetectStateCheck
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DetectDestinationIps List<string>
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    NextHopDestination string
    The next-hop destination gateway. The value is related to NextHopType.If NextHopType is set to VPN, the value of this parameter is the VPN gateway ID, such as vpngw-12345678.If NextHopType is set to DIRECTCONNECT, the value of this parameter is the direct connect gateway ID, such as dcg-12345678.If NextHopType is set to PEERCONNECTION, the value of this parameter is the peering connection ID, such as pcx-12345678.If NextHopType is set to NAT, the value of this parameter is the NAT gateway ID, such as nat-12345678.If NextHopType is set to NORMAL_CVM, the value of this parameter is the IPv4 address of the CVM, such as 10.0.0.12.
    NextHopType string
    The type of the next hop. Currently supported types are:VPN: VPN gateway;DIRECTCONNECT: direct connect gateway;PEERCONNECTION: peering connection;NAT: NAT gateway;NORMAL_CVM: normal CVM.
    Id string
    NetDetectId string
    ID of a network inspector instance, e.g. netd-12345678. Enter at least one of this parameter, VpcId, SubnetId, and NetDetectName. Use NetDetectId if it is present.
    NetDetectName string
    The name of a network inspector, up to 60 bytes in length. It is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    ResultOutputFile string
    Used to save results.
    SubnetId string
    ID of a subnet instance, e.g. subnet-12345678, which is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    VpcId string
    ID of a VPC instance, e.g. vpc-12345678, which is used together with SubnetId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    DetectDestinationIps []string
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    NextHopDestination string
    The next-hop destination gateway. The value is related to NextHopType.If NextHopType is set to VPN, the value of this parameter is the VPN gateway ID, such as vpngw-12345678.If NextHopType is set to DIRECTCONNECT, the value of this parameter is the direct connect gateway ID, such as dcg-12345678.If NextHopType is set to PEERCONNECTION, the value of this parameter is the peering connection ID, such as pcx-12345678.If NextHopType is set to NAT, the value of this parameter is the NAT gateway ID, such as nat-12345678.If NextHopType is set to NORMAL_CVM, the value of this parameter is the IPv4 address of the CVM, such as 10.0.0.12.
    NextHopType string
    The type of the next hop. Currently supported types are:VPN: VPN gateway;DIRECTCONNECT: direct connect gateway;PEERCONNECTION: peering connection;NAT: NAT gateway;NORMAL_CVM: normal CVM.
    Id string
    NetDetectId string
    ID of a network inspector instance, e.g. netd-12345678. Enter at least one of this parameter, VpcId, SubnetId, and NetDetectName. Use NetDetectId if it is present.
    NetDetectName string
    The name of a network inspector, up to 60 bytes in length. It is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    ResultOutputFile string
    Used to save results.
    SubnetId string
    ID of a subnet instance, e.g. subnet-12345678, which is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    VpcId string
    ID of a VPC instance, e.g. vpc-12345678, which is used together with SubnetId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    detectDestinationIps List<String>
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    nextHopDestination String
    The next-hop destination gateway. The value is related to NextHopType.If NextHopType is set to VPN, the value of this parameter is the VPN gateway ID, such as vpngw-12345678.If NextHopType is set to DIRECTCONNECT, the value of this parameter is the direct connect gateway ID, such as dcg-12345678.If NextHopType is set to PEERCONNECTION, the value of this parameter is the peering connection ID, such as pcx-12345678.If NextHopType is set to NAT, the value of this parameter is the NAT gateway ID, such as nat-12345678.If NextHopType is set to NORMAL_CVM, the value of this parameter is the IPv4 address of the CVM, such as 10.0.0.12.
    nextHopType String
    The type of the next hop. Currently supported types are:VPN: VPN gateway;DIRECTCONNECT: direct connect gateway;PEERCONNECTION: peering connection;NAT: NAT gateway;NORMAL_CVM: normal CVM.
    id String
    netDetectId String
    ID of a network inspector instance, e.g. netd-12345678. Enter at least one of this parameter, VpcId, SubnetId, and NetDetectName. Use NetDetectId if it is present.
    netDetectName String
    The name of a network inspector, up to 60 bytes in length. It is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    resultOutputFile String
    Used to save results.
    subnetId String
    ID of a subnet instance, e.g. subnet-12345678, which is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    vpcId String
    ID of a VPC instance, e.g. vpc-12345678, which is used together with SubnetId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    detectDestinationIps string[]
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    nextHopDestination string
    The next-hop destination gateway. The value is related to NextHopType.If NextHopType is set to VPN, the value of this parameter is the VPN gateway ID, such as vpngw-12345678.If NextHopType is set to DIRECTCONNECT, the value of this parameter is the direct connect gateway ID, such as dcg-12345678.If NextHopType is set to PEERCONNECTION, the value of this parameter is the peering connection ID, such as pcx-12345678.If NextHopType is set to NAT, the value of this parameter is the NAT gateway ID, such as nat-12345678.If NextHopType is set to NORMAL_CVM, the value of this parameter is the IPv4 address of the CVM, such as 10.0.0.12.
    nextHopType string
    The type of the next hop. Currently supported types are:VPN: VPN gateway;DIRECTCONNECT: direct connect gateway;PEERCONNECTION: peering connection;NAT: NAT gateway;NORMAL_CVM: normal CVM.
    id string
    netDetectId string
    ID of a network inspector instance, e.g. netd-12345678. Enter at least one of this parameter, VpcId, SubnetId, and NetDetectName. Use NetDetectId if it is present.
    netDetectName string
    The name of a network inspector, up to 60 bytes in length. It is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    resultOutputFile string
    Used to save results.
    subnetId string
    ID of a subnet instance, e.g. subnet-12345678, which is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    vpcId string
    ID of a VPC instance, e.g. vpc-12345678, which is used together with SubnetId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    detect_destination_ips Sequence[str]
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    next_hop_destination str
    The next-hop destination gateway. The value is related to NextHopType.If NextHopType is set to VPN, the value of this parameter is the VPN gateway ID, such as vpngw-12345678.If NextHopType is set to DIRECTCONNECT, the value of this parameter is the direct connect gateway ID, such as dcg-12345678.If NextHopType is set to PEERCONNECTION, the value of this parameter is the peering connection ID, such as pcx-12345678.If NextHopType is set to NAT, the value of this parameter is the NAT gateway ID, such as nat-12345678.If NextHopType is set to NORMAL_CVM, the value of this parameter is the IPv4 address of the CVM, such as 10.0.0.12.
    next_hop_type str
    The type of the next hop. Currently supported types are:VPN: VPN gateway;DIRECTCONNECT: direct connect gateway;PEERCONNECTION: peering connection;NAT: NAT gateway;NORMAL_CVM: normal CVM.
    id str
    net_detect_id str
    ID of a network inspector instance, e.g. netd-12345678. Enter at least one of this parameter, VpcId, SubnetId, and NetDetectName. Use NetDetectId if it is present.
    net_detect_name str
    The name of a network inspector, up to 60 bytes in length. It is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    result_output_file str
    Used to save results.
    subnet_id str
    ID of a subnet instance, e.g. subnet-12345678, which is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    vpc_id str
    ID of a VPC instance, e.g. vpc-12345678, which is used together with SubnetId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    detectDestinationIps List<String>
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    nextHopDestination String
    The next-hop destination gateway. The value is related to NextHopType.If NextHopType is set to VPN, the value of this parameter is the VPN gateway ID, such as vpngw-12345678.If NextHopType is set to DIRECTCONNECT, the value of this parameter is the direct connect gateway ID, such as dcg-12345678.If NextHopType is set to PEERCONNECTION, the value of this parameter is the peering connection ID, such as pcx-12345678.If NextHopType is set to NAT, the value of this parameter is the NAT gateway ID, such as nat-12345678.If NextHopType is set to NORMAL_CVM, the value of this parameter is the IPv4 address of the CVM, such as 10.0.0.12.
    nextHopType String
    The type of the next hop. Currently supported types are:VPN: VPN gateway;DIRECTCONNECT: direct connect gateway;PEERCONNECTION: peering connection;NAT: NAT gateway;NORMAL_CVM: normal CVM.
    id String
    netDetectId String
    ID of a network inspector instance, e.g. netd-12345678. Enter at least one of this parameter, VpcId, SubnetId, and NetDetectName. Use NetDetectId if it is present.
    netDetectName String
    The name of a network inspector, up to 60 bytes in length. It is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    resultOutputFile String
    Used to save results.
    subnetId String
    ID of a subnet instance, e.g. subnet-12345678, which is used together with VpcId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.
    vpcId String
    ID of a VPC instance, e.g. vpc-12345678, which is used together with SubnetId and NetDetectName. You should enter either this parameter or NetDetectId, or both. Use NetDetectId if it is present.

    getVpcNetDetectStateCheck Result

    The following output properties are available:

    DetectDestinationIps List<string>
    The destination IPv4 address of network detection.
    Id string
    NetDetectIpStateSets List<GetVpcNetDetectStateCheckNetDetectIpStateSet>
    The array of network detection verification results.
    NextHopDestination string
    NextHopType string
    NetDetectId string
    NetDetectName string
    ResultOutputFile string
    SubnetId string
    VpcId string
    DetectDestinationIps []string
    The destination IPv4 address of network detection.
    Id string
    NetDetectIpStateSets []GetVpcNetDetectStateCheckNetDetectIpStateSet
    The array of network detection verification results.
    NextHopDestination string
    NextHopType string
    NetDetectId string
    NetDetectName string
    ResultOutputFile string
    SubnetId string
    VpcId string
    detectDestinationIps List<String>
    The destination IPv4 address of network detection.
    id String
    netDetectIpStateSets List<GetVpcNetDetectStateCheckNetDetectIpStateSet>
    The array of network detection verification results.
    nextHopDestination String
    nextHopType String
    netDetectId String
    netDetectName String
    resultOutputFile String
    subnetId String
    vpcId String
    detectDestinationIps string[]
    The destination IPv4 address of network detection.
    id string
    netDetectIpStateSets GetVpcNetDetectStateCheckNetDetectIpStateSet[]
    The array of network detection verification results.
    nextHopDestination string
    nextHopType string
    netDetectId string
    netDetectName string
    resultOutputFile string
    subnetId string
    vpcId string
    detect_destination_ips Sequence[str]
    The destination IPv4 address of network detection.
    id str
    net_detect_ip_state_sets Sequence[GetVpcNetDetectStateCheckNetDetectIpStateSet]
    The array of network detection verification results.
    next_hop_destination str
    next_hop_type str
    net_detect_id str
    net_detect_name str
    result_output_file str
    subnet_id str
    vpc_id str
    detectDestinationIps List<String>
    The destination IPv4 address of network detection.
    id String
    netDetectIpStateSets List<Property Map>
    The array of network detection verification results.
    nextHopDestination String
    nextHopType String
    netDetectId String
    netDetectName String
    resultOutputFile String
    subnetId String
    vpcId String

    Supporting Types

    GetVpcNetDetectStateCheckNetDetectIpStateSet

    Delay double
    The latency. Unit: ms.
    DetectDestinationIp string
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    PacketLossRate double
    The packet loss rate.
    State double
    The detection result.0: successful;-1: no packet loss occurred during routing;-2: packet loss occurred when outbound traffic is blocked by the ACL;-3: packet loss occurred when inbound traffic is blocked by the ACL;-4: other errors.
    Delay float64
    The latency. Unit: ms.
    DetectDestinationIp string
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    PacketLossRate float64
    The packet loss rate.
    State float64
    The detection result.0: successful;-1: no packet loss occurred during routing;-2: packet loss occurred when outbound traffic is blocked by the ACL;-3: packet loss occurred when inbound traffic is blocked by the ACL;-4: other errors.
    delay Double
    The latency. Unit: ms.
    detectDestinationIp String
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    packetLossRate Double
    The packet loss rate.
    state Double
    The detection result.0: successful;-1: no packet loss occurred during routing;-2: packet loss occurred when outbound traffic is blocked by the ACL;-3: packet loss occurred when inbound traffic is blocked by the ACL;-4: other errors.
    delay number
    The latency. Unit: ms.
    detectDestinationIp string
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    packetLossRate number
    The packet loss rate.
    state number
    The detection result.0: successful;-1: no packet loss occurred during routing;-2: packet loss occurred when outbound traffic is blocked by the ACL;-3: packet loss occurred when inbound traffic is blocked by the ACL;-4: other errors.
    delay float
    The latency. Unit: ms.
    detect_destination_ip str
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    packet_loss_rate float
    The packet loss rate.
    state float
    The detection result.0: successful;-1: no packet loss occurred during routing;-2: packet loss occurred when outbound traffic is blocked by the ACL;-3: packet loss occurred when inbound traffic is blocked by the ACL;-4: other errors.
    delay Number
    The latency. Unit: ms.
    detectDestinationIp String
    The array of detection destination IPv4 addresses, which contains at most two IP addresses.
    packetLossRate Number
    The packet loss rate.
    state Number
    The detection result.0: successful;-1: no packet loss occurred during routing;-2: packet loss occurred when outbound traffic is blocked by the ACL;-3: packet loss occurred when inbound traffic is blocked by the ACL;-4: other errors.

    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