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

tencentcloud.getVpcNetDetectStates

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_states

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const netDetectStates = tencentcloud.getVpcNetDetectStates({
        netDetectIds: ["netd-12345678"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    net_detect_states = tencentcloud.get_vpc_net_detect_states(net_detect_ids=["netd-12345678"])
    
    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.GetVpcNetDetectStates(ctx, &tencentcloud.GetVpcNetDetectStatesArgs{
    			NetDetectIds: []string{
    				"netd-12345678",
    			},
    		}, 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 netDetectStates = Tencentcloud.GetVpcNetDetectStates.Invoke(new()
        {
            NetDetectIds = new[]
            {
                "netd-12345678",
            },
        });
    
    });
    
    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.GetVpcNetDetectStatesArgs;
    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 netDetectStates = TencentcloudFunctions.getVpcNetDetectStates(GetVpcNetDetectStatesArgs.builder()
                .netDetectIds("netd-12345678")
                .build());
    
        }
    }
    
    variables:
      netDetectStates:
        fn::invoke:
          function: tencentcloud:getVpcNetDetectStates
          arguments:
            netDetectIds:
              - netd-12345678
    

    Using getVpcNetDetectStates

    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 getVpcNetDetectStates(args: GetVpcNetDetectStatesArgs, opts?: InvokeOptions): Promise<GetVpcNetDetectStatesResult>
    function getVpcNetDetectStatesOutput(args: GetVpcNetDetectStatesOutputArgs, opts?: InvokeOptions): Output<GetVpcNetDetectStatesResult>
    def get_vpc_net_detect_states(filters: Optional[Sequence[GetVpcNetDetectStatesFilter]] = None,
                                  id: Optional[str] = None,
                                  net_detect_ids: Optional[Sequence[str]] = None,
                                  result_output_file: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetVpcNetDetectStatesResult
    def get_vpc_net_detect_states_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVpcNetDetectStatesFilterArgs]]]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  net_detect_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  result_output_file: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetVpcNetDetectStatesResult]
    func GetVpcNetDetectStates(ctx *Context, args *GetVpcNetDetectStatesArgs, opts ...InvokeOption) (*GetVpcNetDetectStatesResult, error)
    func GetVpcNetDetectStatesOutput(ctx *Context, args *GetVpcNetDetectStatesOutputArgs, opts ...InvokeOption) GetVpcNetDetectStatesResultOutput

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

    public static class GetVpcNetDetectStates 
    {
        public static Task<GetVpcNetDetectStatesResult> InvokeAsync(GetVpcNetDetectStatesArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcNetDetectStatesResult> Invoke(GetVpcNetDetectStatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcNetDetectStatesResult> getVpcNetDetectStates(GetVpcNetDetectStatesArgs args, InvokeOptions options)
    public static Output<GetVpcNetDetectStatesResult> getVpcNetDetectStates(GetVpcNetDetectStatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getVpcNetDetectStates:getVpcNetDetectStates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetVpcNetDetectStatesFilter>
    Filter conditions. NetDetectIds and Filters cannot be specified at the same time.net-detect-id - String - (Filter condition) The network detection instance ID, such as netd-12345678.
    Id string
    NetDetectIds List<string>
    The array of network detection instance IDs, such as [netd-12345678].
    ResultOutputFile string
    Used to save results.
    Filters []GetVpcNetDetectStatesFilter
    Filter conditions. NetDetectIds and Filters cannot be specified at the same time.net-detect-id - String - (Filter condition) The network detection instance ID, such as netd-12345678.
    Id string
    NetDetectIds []string
    The array of network detection instance IDs, such as [netd-12345678].
    ResultOutputFile string
    Used to save results.
    filters List<GetVpcNetDetectStatesFilter>
    Filter conditions. NetDetectIds and Filters cannot be specified at the same time.net-detect-id - String - (Filter condition) The network detection instance ID, such as netd-12345678.
    id String
    netDetectIds List<String>
    The array of network detection instance IDs, such as [netd-12345678].
    resultOutputFile String
    Used to save results.
    filters GetVpcNetDetectStatesFilter[]
    Filter conditions. NetDetectIds and Filters cannot be specified at the same time.net-detect-id - String - (Filter condition) The network detection instance ID, such as netd-12345678.
    id string
    netDetectIds string[]
    The array of network detection instance IDs, such as [netd-12345678].
    resultOutputFile string
    Used to save results.
    filters Sequence[GetVpcNetDetectStatesFilter]
    Filter conditions. NetDetectIds and Filters cannot be specified at the same time.net-detect-id - String - (Filter condition) The network detection instance ID, such as netd-12345678.
    id str
    net_detect_ids Sequence[str]
    The array of network detection instance IDs, such as [netd-12345678].
    result_output_file str
    Used to save results.
    filters List<Property Map>
    Filter conditions. NetDetectIds and Filters cannot be specified at the same time.net-detect-id - String - (Filter condition) The network detection instance ID, such as netd-12345678.
    id String
    netDetectIds List<String>
    The array of network detection instance IDs, such as [netd-12345678].
    resultOutputFile String
    Used to save results.

    getVpcNetDetectStates Result

    The following output properties are available:

    Id string
    NetDetectStateSets List<GetVpcNetDetectStatesNetDetectStateSet>
    The array of network detection verification results that meet requirements.Note: This field may return null, indicating that no valid values can be obtained.
    Filters List<GetVpcNetDetectStatesFilter>
    NetDetectIds List<string>
    ResultOutputFile string
    Id string
    NetDetectStateSets []GetVpcNetDetectStatesNetDetectStateSet
    The array of network detection verification results that meet requirements.Note: This field may return null, indicating that no valid values can be obtained.
    Filters []GetVpcNetDetectStatesFilter
    NetDetectIds []string
    ResultOutputFile string
    id String
    netDetectStateSets List<GetVpcNetDetectStatesNetDetectStateSet>
    The array of network detection verification results that meet requirements.Note: This field may return null, indicating that no valid values can be obtained.
    filters List<GetVpcNetDetectStatesFilter>
    netDetectIds List<String>
    resultOutputFile String
    id string
    netDetectStateSets GetVpcNetDetectStatesNetDetectStateSet[]
    The array of network detection verification results that meet requirements.Note: This field may return null, indicating that no valid values can be obtained.
    filters GetVpcNetDetectStatesFilter[]
    netDetectIds string[]
    resultOutputFile string
    id str
    net_detect_state_sets Sequence[GetVpcNetDetectStatesNetDetectStateSet]
    The array of network detection verification results that meet requirements.Note: This field may return null, indicating that no valid values can be obtained.
    filters Sequence[GetVpcNetDetectStatesFilter]
    net_detect_ids Sequence[str]
    result_output_file str
    id String
    netDetectStateSets List<Property Map>
    The array of network detection verification results that meet requirements.Note: This field may return null, indicating that no valid values can be obtained.
    filters List<Property Map>
    netDetectIds List<String>
    resultOutputFile String

    Supporting Types

    GetVpcNetDetectStatesFilter

    Name string
    The attribute name. If more than one Filter exists, the logical relation between these Filters is AND.
    Values List<string>
    Attribute value. If multiple values exist in one filter, the logical relationship between these values is OR. For a bool parameter, the valid values include TRUE and FALSE.
    Name string
    The attribute name. If more than one Filter exists, the logical relation between these Filters is AND.
    Values []string
    Attribute value. If multiple values exist in one filter, the logical relationship between these values is OR. For a bool parameter, the valid values include TRUE and FALSE.
    name String
    The attribute name. If more than one Filter exists, the logical relation between these Filters is AND.
    values List<String>
    Attribute value. If multiple values exist in one filter, the logical relationship between these values is OR. For a bool parameter, the valid values include TRUE and FALSE.
    name string
    The attribute name. If more than one Filter exists, the logical relation between these Filters is AND.
    values string[]
    Attribute value. If multiple values exist in one filter, the logical relationship between these values is OR. For a bool parameter, the valid values include TRUE and FALSE.
    name str
    The attribute name. If more than one Filter exists, the logical relation between these Filters is AND.
    values Sequence[str]
    Attribute value. If multiple values exist in one filter, the logical relationship between these values is OR. For a bool parameter, the valid values include TRUE and FALSE.
    name String
    The attribute name. If more than one Filter exists, the logical relation between these Filters is AND.
    values List<String>
    Attribute value. If multiple values exist in one filter, the logical relationship between these values is OR. For a bool parameter, the valid values include TRUE and FALSE.

    GetVpcNetDetectStatesNetDetectStateSet

    NetDetectId string
    The ID of a network detection instance, such as netd-12345678.
    NetDetectIpStateSets List<GetVpcNetDetectStatesNetDetectStateSetNetDetectIpStateSet>
    The array of network detection destination IP verification results.
    NetDetectId string
    The ID of a network detection instance, such as netd-12345678.
    NetDetectIpStateSets []GetVpcNetDetectStatesNetDetectStateSetNetDetectIpStateSet
    The array of network detection destination IP verification results.
    netDetectId String
    The ID of a network detection instance, such as netd-12345678.
    netDetectIpStateSets List<GetVpcNetDetectStatesNetDetectStateSetNetDetectIpStateSet>
    The array of network detection destination IP verification results.
    netDetectId string
    The ID of a network detection instance, such as netd-12345678.
    netDetectIpStateSets GetVpcNetDetectStatesNetDetectStateSetNetDetectIpStateSet[]
    The array of network detection destination IP verification results.
    net_detect_id str
    The ID of a network detection instance, such as netd-12345678.
    net_detect_ip_state_sets Sequence[GetVpcNetDetectStatesNetDetectStateSetNetDetectIpStateSet]
    The array of network detection destination IP verification results.
    netDetectId String
    The ID of a network detection instance, such as netd-12345678.
    netDetectIpStateSets List<Property Map>
    The array of network detection destination IP verification results.

    GetVpcNetDetectStatesNetDetectStateSetNetDetectIpStateSet

    Delay double
    The latency. Unit: ms.
    DetectDestinationIp string
    The destination IPv4 address of network detection.
    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 destination IPv4 address of network detection.
    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 destination IPv4 address of network detection.
    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 destination IPv4 address of network detection.
    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 destination IPv4 address of network detection.
    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 destination IPv4 address of network detection.
    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