tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getVpcNetDetectStates
Start a Neo task
Explain and create a tencentcloud.getVpcNetDetectStates resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 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 dictionaryThe following arguments are supported:
- Filters
List<Get
Vpc Net Detect States Filter> - Filter conditions.
NetDetectIdsandFilterscannot be specified at the same time.net-detect-id - String - (Filter condition) The network detection instance ID, such as netd-12345678. - Id string
- Net
Detect List<string>Ids - The array of network detection instance
IDs, such as [netd-12345678]. - Result
Output stringFile - Used to save results.
- Filters
[]Get
Vpc Net Detect States Filter - Filter conditions.
NetDetectIdsandFilterscannot be specified at the same time.net-detect-id - String - (Filter condition) The network detection instance ID, such as netd-12345678. - Id string
- Net
Detect []stringIds - The array of network detection instance
IDs, such as [netd-12345678]. - Result
Output stringFile - Used to save results.
- filters
List<Get
Vpc Net Detect States Filter> - Filter conditions.
NetDetectIdsandFilterscannot be specified at the same time.net-detect-id - String - (Filter condition) The network detection instance ID, such as netd-12345678. - id String
- net
Detect List<String>Ids - The array of network detection instance
IDs, such as [netd-12345678]. - result
Output StringFile - Used to save results.
- filters
Get
Vpc Net Detect States Filter[] - Filter conditions.
NetDetectIdsandFilterscannot be specified at the same time.net-detect-id - String - (Filter condition) The network detection instance ID, such as netd-12345678. - id string
- net
Detect string[]Ids - The array of network detection instance
IDs, such as [netd-12345678]. - result
Output stringFile - Used to save results.
- filters
Sequence[Get
Vpc Net Detect States Filter] - Filter conditions.
NetDetectIdsandFilterscannot 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_ Sequence[str]ids - The array of network detection instance
IDs, such as [netd-12345678]. - result_
output_ strfile - Used to save results.
- filters List<Property Map>
- Filter conditions.
NetDetectIdsandFilterscannot be specified at the same time.net-detect-id - String - (Filter condition) The network detection instance ID, such as netd-12345678. - id String
- net
Detect List<String>Ids - The array of network detection instance
IDs, such as [netd-12345678]. - result
Output StringFile - Used to save results.
getVpcNetDetectStates Result
The following output properties are available:
- Id string
- Net
Detect List<GetState Sets Vpc Net Detect States Net Detect State Set> - 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<Get
Vpc Net Detect States Filter> - Net
Detect List<string>Ids - Result
Output stringFile
- Id string
- Net
Detect []GetState Sets Vpc Net Detect States Net Detect State Set - 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
[]Get
Vpc Net Detect States Filter - Net
Detect []stringIds - Result
Output stringFile
- id String
- net
Detect List<GetState Sets Vpc Net Detect States Net Detect State Set> - 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<Get
Vpc Net Detect States Filter> - net
Detect List<String>Ids - result
Output StringFile
- id string
- net
Detect GetState Sets Vpc Net Detect States Net Detect State Set[] - 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
Get
Vpc Net Detect States Filter[] - net
Detect string[]Ids - result
Output stringFile
- id str
- net_
detect_ Sequence[Getstate_ sets Vpc Net Detect States Net Detect State Set] - 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[Get
Vpc Net Detect States Filter] - net_
detect_ Sequence[str]ids - result_
output_ strfile
- id String
- net
Detect List<Property Map>State Sets - 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>
- net
Detect List<String>Ids - result
Output StringFile
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 aboolparameter, the valid values includeTRUEandFALSE.
- 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 aboolparameter, the valid values includeTRUEandFALSE.
- 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 aboolparameter, the valid values includeTRUEandFALSE.
- 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 aboolparameter, the valid values includeTRUEandFALSE.
- 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 aboolparameter, the valid values includeTRUEandFALSE.
- 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 aboolparameter, the valid values includeTRUEandFALSE.
GetVpcNetDetectStatesNetDetectStateSet
- Net
Detect stringId - The ID of a network detection instance, such as netd-12345678.
- Net
Detect List<GetIp State Sets Vpc Net Detect States Net Detect State Set Net Detect Ip State Set> - The array of network detection destination IP verification results.
- Net
Detect stringId - The ID of a network detection instance, such as netd-12345678.
- Net
Detect []GetIp State Sets Vpc Net Detect States Net Detect State Set Net Detect Ip State Set - The array of network detection destination IP verification results.
- net
Detect StringId - The ID of a network detection instance, such as netd-12345678.
- net
Detect List<GetIp State Sets Vpc Net Detect States Net Detect State Set Net Detect Ip State Set> - The array of network detection destination IP verification results.
- net
Detect stringId - The ID of a network detection instance, such as netd-12345678.
- net
Detect GetIp State Sets Vpc Net Detect States Net Detect State Set Net Detect Ip State Set[] - The array of network detection destination IP verification results.
- net_
detect_ strid - The ID of a network detection instance, such as netd-12345678.
- net_
detect_ Sequence[Getip_ state_ sets Vpc Net Detect States Net Detect State Set Net Detect Ip State Set] - The array of network detection destination IP verification results.
- net
Detect StringId - The ID of a network detection instance, such as netd-12345678.
- net
Detect List<Property Map>Ip State Sets - The array of network detection destination IP verification results.
GetVpcNetDetectStatesNetDetectStateSetNetDetectIpStateSet
- Delay double
- The latency. Unit: ms.
- Detect
Destination stringIp - The destination IPv4 address of network detection.
- 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 destination IPv4 address of network detection.
- 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 destination IPv4 address of network detection.
- 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 destination IPv4 address of network detection.
- 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 destination IPv4 address of network detection.
- 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 destination IPv4 address of network detection.
- 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
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
