tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getVpcNetDetectStateCheck
Explore with Pulumi AI
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:
- Detect
Destination List<string>Ips - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- Next
Hop stringDestination - 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 stringType - 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
- Net
Detect stringId - 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 stringName - 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 stringFile - Used to save results.
- Subnet
Id 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. - Vpc
Id 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 []stringIps - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- Next
Hop stringDestination - 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 stringType - 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
- Net
Detect stringId - 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 stringName - 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 stringFile - Used to save results.
- Subnet
Id 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. - Vpc
Id 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 List<String>Ips - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- next
Hop StringDestination - 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 StringType - 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
- net
Detect StringId - 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 StringName - 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 StringFile - Used to save results.
- subnet
Id 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. - vpc
Id 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 string[]Ips - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- next
Hop stringDestination - 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 stringType - 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
- net
Detect stringId - 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 stringName - 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 stringFile - Used to save results.
- subnet
Id 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. - vpc
Id 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_ Sequence[str]ips - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- next_
hop_ strdestination - 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_ strtype - 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_ strid - 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_ strname - 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_ strfile - 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.
- detect
Destination List<String>Ips - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- next
Hop StringDestination - 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 StringType - 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
- net
Detect StringId - 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 StringName - 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 StringFile - Used to save results.
- subnet
Id 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. - vpc
Id 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:
- Detect
Destination List<string>Ips - The destination IPv4 address of network detection.
- Id string
- Net
Detect List<GetIp State Sets Vpc Net Detect State Check Net Detect Ip State Set> - The array of network detection verification results.
- Next
Hop stringDestination - Next
Hop stringType - Net
Detect stringId - Net
Detect stringName - Result
Output stringFile - Subnet
Id string - Vpc
Id string
- Detect
Destination []stringIps - The destination IPv4 address of network detection.
- Id string
- Net
Detect []GetIp State Sets Vpc Net Detect State Check Net Detect Ip State Set - The array of network detection verification results.
- Next
Hop stringDestination - Next
Hop stringType - Net
Detect stringId - Net
Detect stringName - Result
Output stringFile - Subnet
Id string - Vpc
Id string
- detect
Destination List<String>Ips - The destination IPv4 address of network detection.
- id String
- net
Detect List<GetIp State Sets Vpc Net Detect State Check Net Detect Ip State Set> - The array of network detection verification results.
- next
Hop StringDestination - next
Hop StringType - net
Detect StringId - net
Detect StringName - result
Output StringFile - subnet
Id String - vpc
Id String
- detect
Destination string[]Ips - The destination IPv4 address of network detection.
- id string
- net
Detect GetIp State Sets Vpc Net Detect State Check Net Detect Ip State Set[] - The array of network detection verification results.
- next
Hop stringDestination - next
Hop stringType - net
Detect stringId - net
Detect stringName - result
Output stringFile - subnet
Id string - vpc
Id string
- detect_
destination_ Sequence[str]ips - The destination IPv4 address of network detection.
- id str
- net_
detect_ Sequence[Getip_ state_ sets Vpc Net Detect State Check Net Detect Ip State Set] - The array of network detection verification results.
- next_
hop_ strdestination - next_
hop_ strtype - net_
detect_ strid - net_
detect_ strname - result_
output_ strfile - subnet_
id str - vpc_
id str
- detect
Destination List<String>Ips - The destination IPv4 address of network detection.
- id String
- net
Detect List<Property Map>Ip State Sets - The array of network detection verification results.
- next
Hop StringDestination - next
Hop StringType - net
Detect StringId - net
Detect StringName - result
Output StringFile - subnet
Id String - vpc
Id String
Supporting Types
GetVpcNetDetectStateCheckNetDetectIpStateSet
- Delay double
- The latency. Unit: ms.
- Detect
Destination stringIp - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- Packet
Loss doubleRate - 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.
- Detect
Destination stringIp - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- Packet
Loss float64Rate - 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.
- detect
Destination StringIp - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- packet
Loss DoubleRate - 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.
- detect
Destination stringIp - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- packet
Loss numberRate - 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_ strip - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- packet_
loss_ floatrate - 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.
- detect
Destination StringIp - The array of detection destination IPv4 addresses, which contains at most two IP addresses.
- packet
Loss NumberRate - 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack