1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDayuDdosPolicyCases
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getDayuDdosPolicyCases

Explore with Pulumi AI

Use this data source to query dayu DDoS policy cases

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const idTest = tencentcloud.getDayuDdosPolicyCases({
    resourceType: tencentcloud_dayu_ddos_policy_case.test_policy_case.resource_type,
    sceneId: tencentcloud_dayu_ddos_policy_case.test_policy_case.scene_id,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

id_test = tencentcloud.get_dayu_ddos_policy_cases(resource_type=tencentcloud_dayu_ddos_policy_case["test_policy_case"]["resource_type"],
    scene_id=tencentcloud_dayu_ddos_policy_case["test_policy_case"]["scene_id"])
Copy
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.GetDayuDdosPolicyCases(ctx, &tencentcloud.GetDayuDdosPolicyCasesArgs{
			ResourceType: tencentcloud_dayu_ddos_policy_case.Test_policy_case.Resource_type,
			SceneId:      tencentcloud_dayu_ddos_policy_case.Test_policy_case.Scene_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var idTest = Tencentcloud.GetDayuDdosPolicyCases.Invoke(new()
    {
        ResourceType = tencentcloud_dayu_ddos_policy_case.Test_policy_case.Resource_type,
        SceneId = tencentcloud_dayu_ddos_policy_case.Test_policy_case.Scene_id,
    });

});
Copy
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.GetDayuDdosPolicyCasesArgs;
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 idTest = TencentcloudFunctions.getDayuDdosPolicyCases(GetDayuDdosPolicyCasesArgs.builder()
            .resourceType(tencentcloud_dayu_ddos_policy_case.test_policy_case().resource_type())
            .sceneId(tencentcloud_dayu_ddos_policy_case.test_policy_case().scene_id())
            .build());

    }
}
Copy
variables:
  idTest:
    fn::invoke:
      function: tencentcloud:getDayuDdosPolicyCases
      arguments:
        resourceType: ${tencentcloud_dayu_ddos_policy_case.test_policy_case.resource_type}
        sceneId: ${tencentcloud_dayu_ddos_policy_case.test_policy_case.scene_id}
Copy

Using getDayuDdosPolicyCases

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 getDayuDdosPolicyCases(args: GetDayuDdosPolicyCasesArgs, opts?: InvokeOptions): Promise<GetDayuDdosPolicyCasesResult>
function getDayuDdosPolicyCasesOutput(args: GetDayuDdosPolicyCasesOutputArgs, opts?: InvokeOptions): Output<GetDayuDdosPolicyCasesResult>
Copy
def get_dayu_ddos_policy_cases(id: Optional[str] = None,
                               resource_type: Optional[str] = None,
                               result_output_file: Optional[str] = None,
                               scene_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetDayuDdosPolicyCasesResult
def get_dayu_ddos_policy_cases_output(id: Optional[pulumi.Input[str]] = None,
                               resource_type: Optional[pulumi.Input[str]] = None,
                               result_output_file: Optional[pulumi.Input[str]] = None,
                               scene_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetDayuDdosPolicyCasesResult]
Copy
func GetDayuDdosPolicyCases(ctx *Context, args *GetDayuDdosPolicyCasesArgs, opts ...InvokeOption) (*GetDayuDdosPolicyCasesResult, error)
func GetDayuDdosPolicyCasesOutput(ctx *Context, args *GetDayuDdosPolicyCasesOutputArgs, opts ...InvokeOption) GetDayuDdosPolicyCasesResultOutput
Copy

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

public static class GetDayuDdosPolicyCases 
{
    public static Task<GetDayuDdosPolicyCasesResult> InvokeAsync(GetDayuDdosPolicyCasesArgs args, InvokeOptions? opts = null)
    public static Output<GetDayuDdosPolicyCasesResult> Invoke(GetDayuDdosPolicyCasesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDayuDdosPolicyCasesResult> getDayuDdosPolicyCases(GetDayuDdosPolicyCasesArgs args, InvokeOptions options)
public static Output<GetDayuDdosPolicyCasesResult> getDayuDdosPolicyCases(GetDayuDdosPolicyCasesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getDayuDdosPolicyCases:getDayuDdosPolicyCases
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ResourceType This property is required. string
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
SceneId This property is required. string
ID of the DDoS policy case to be query.
Id string
ResultOutputFile string
Used to save results.
ResourceType This property is required. string
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
SceneId This property is required. string
ID of the DDoS policy case to be query.
Id string
ResultOutputFile string
Used to save results.
resourceType This property is required. String
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
sceneId This property is required. String
ID of the DDoS policy case to be query.
id String
resultOutputFile String
Used to save results.
resourceType This property is required. string
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
sceneId This property is required. string
ID of the DDoS policy case to be query.
id string
resultOutputFile string
Used to save results.
resource_type This property is required. str
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
scene_id This property is required. str
ID of the DDoS policy case to be query.
id str
result_output_file str
Used to save results.
resourceType This property is required. String
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
sceneId This property is required. String
ID of the DDoS policy case to be query.
id String
resultOutputFile String
Used to save results.

getDayuDdosPolicyCases Result

The following output properties are available:

Id string
Lists List<GetDayuDdosPolicyCasesList>
A list of DDoS policy cases. Each element contains the following attributes:
ResourceType string
Type of the resource that the DDoS policy case works for.
SceneId string
ID of the DDoS policy case.
ResultOutputFile string
Id string
Lists []GetDayuDdosPolicyCasesList
A list of DDoS policy cases. Each element contains the following attributes:
ResourceType string
Type of the resource that the DDoS policy case works for.
SceneId string
ID of the DDoS policy case.
ResultOutputFile string
id String
lists List<GetDayuDdosPolicyCasesList>
A list of DDoS policy cases. Each element contains the following attributes:
resourceType String
Type of the resource that the DDoS policy case works for.
sceneId String
ID of the DDoS policy case.
resultOutputFile String
id string
lists GetDayuDdosPolicyCasesList[]
A list of DDoS policy cases. Each element contains the following attributes:
resourceType string
Type of the resource that the DDoS policy case works for.
sceneId string
ID of the DDoS policy case.
resultOutputFile string
id str
lists Sequence[GetDayuDdosPolicyCasesList]
A list of DDoS policy cases. Each element contains the following attributes:
resource_type str
Type of the resource that the DDoS policy case works for.
scene_id str
ID of the DDoS policy case.
result_output_file str
id String
lists List<Property Map>
A list of DDoS policy cases. Each element contains the following attributes:
resourceType String
Type of the resource that the DDoS policy case works for.
sceneId String
ID of the DDoS policy case.
resultOutputFile String

Supporting Types

GetDayuDdosPolicyCasesList

AppProtocols This property is required. List<string>
App protocol set of the DDoS policy case.
AppType This property is required. string
App type of the DDoS policy case.
CreateTime This property is required. string
Create time of the DDoS policy case.
HasAbroad This property is required. string
Indicate whether the service involves overseas or not.
HasInitiateTcp This property is required. string
Indicate whether the service actively initiates TCP requests or not.
HasInitiateUdp This property is required. string
Indicate whether the actively initiate UDP requests or not.
HasVpn This property is required. string
Indicate whether the service involves VPN service or not.
MaxTcpPackageLen This property is required. string
The max length of TCP message package.
MaxUdpPackageLen This property is required. string
The max length of UDP message package.
MinTcpPackageLen This property is required. string
The minimum length of TCP message package.
MinUdpPackageLen This property is required. string
The minimum length of UDP message package.
Name This property is required. string
Name of the DDoS policy case.
PeerTcpPort This property is required. string
The port that actively initiates TCP requests.
PeerUdpPort This property is required. string
The port that actively initiates UDP requests.
PlatformTypes This property is required. List<string>
Platform set of the DDoS policy case.
ResourceType This property is required. string
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
SceneId This property is required. string
ID of the DDoS policy case to be query.
TcpEndPort This property is required. string
End port of the TCP service.
TcpFootprint This property is required. string
The fixed signature of TCP protocol load.
TcpStartPort This property is required. string
Start port of the TCP service.
UdpEndPort This property is required. string
End port of the UDP service.
UdpFootprint This property is required. string
The fixed signature of TCP protocol load.
UdpStartPort This property is required. string
Start port of the UDP service.
WebApiUrls This property is required. List<string>
Web API url set.
AppProtocols This property is required. []string
App protocol set of the DDoS policy case.
AppType This property is required. string
App type of the DDoS policy case.
CreateTime This property is required. string
Create time of the DDoS policy case.
HasAbroad This property is required. string
Indicate whether the service involves overseas or not.
HasInitiateTcp This property is required. string
Indicate whether the service actively initiates TCP requests or not.
HasInitiateUdp This property is required. string
Indicate whether the actively initiate UDP requests or not.
HasVpn This property is required. string
Indicate whether the service involves VPN service or not.
MaxTcpPackageLen This property is required. string
The max length of TCP message package.
MaxUdpPackageLen This property is required. string
The max length of UDP message package.
MinTcpPackageLen This property is required. string
The minimum length of TCP message package.
MinUdpPackageLen This property is required. string
The minimum length of UDP message package.
Name This property is required. string
Name of the DDoS policy case.
PeerTcpPort This property is required. string
The port that actively initiates TCP requests.
PeerUdpPort This property is required. string
The port that actively initiates UDP requests.
PlatformTypes This property is required. []string
Platform set of the DDoS policy case.
ResourceType This property is required. string
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
SceneId This property is required. string
ID of the DDoS policy case to be query.
TcpEndPort This property is required. string
End port of the TCP service.
TcpFootprint This property is required. string
The fixed signature of TCP protocol load.
TcpStartPort This property is required. string
Start port of the TCP service.
UdpEndPort This property is required. string
End port of the UDP service.
UdpFootprint This property is required. string
The fixed signature of TCP protocol load.
UdpStartPort This property is required. string
Start port of the UDP service.
WebApiUrls This property is required. []string
Web API url set.
appProtocols This property is required. List<String>
App protocol set of the DDoS policy case.
appType This property is required. String
App type of the DDoS policy case.
createTime This property is required. String
Create time of the DDoS policy case.
hasAbroad This property is required. String
Indicate whether the service involves overseas or not.
hasInitiateTcp This property is required. String
Indicate whether the service actively initiates TCP requests or not.
hasInitiateUdp This property is required. String
Indicate whether the actively initiate UDP requests or not.
hasVpn This property is required. String
Indicate whether the service involves VPN service or not.
maxTcpPackageLen This property is required. String
The max length of TCP message package.
maxUdpPackageLen This property is required. String
The max length of UDP message package.
minTcpPackageLen This property is required. String
The minimum length of TCP message package.
minUdpPackageLen This property is required. String
The minimum length of UDP message package.
name This property is required. String
Name of the DDoS policy case.
peerTcpPort This property is required. String
The port that actively initiates TCP requests.
peerUdpPort This property is required. String
The port that actively initiates UDP requests.
platformTypes This property is required. List<String>
Platform set of the DDoS policy case.
resourceType This property is required. String
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
sceneId This property is required. String
ID of the DDoS policy case to be query.
tcpEndPort This property is required. String
End port of the TCP service.
tcpFootprint This property is required. String
The fixed signature of TCP protocol load.
tcpStartPort This property is required. String
Start port of the TCP service.
udpEndPort This property is required. String
End port of the UDP service.
udpFootprint This property is required. String
The fixed signature of TCP protocol load.
udpStartPort This property is required. String
Start port of the UDP service.
webApiUrls This property is required. List<String>
Web API url set.
appProtocols This property is required. string[]
App protocol set of the DDoS policy case.
appType This property is required. string
App type of the DDoS policy case.
createTime This property is required. string
Create time of the DDoS policy case.
hasAbroad This property is required. string
Indicate whether the service involves overseas or not.
hasInitiateTcp This property is required. string
Indicate whether the service actively initiates TCP requests or not.
hasInitiateUdp This property is required. string
Indicate whether the actively initiate UDP requests or not.
hasVpn This property is required. string
Indicate whether the service involves VPN service or not.
maxTcpPackageLen This property is required. string
The max length of TCP message package.
maxUdpPackageLen This property is required. string
The max length of UDP message package.
minTcpPackageLen This property is required. string
The minimum length of TCP message package.
minUdpPackageLen This property is required. string
The minimum length of UDP message package.
name This property is required. string
Name of the DDoS policy case.
peerTcpPort This property is required. string
The port that actively initiates TCP requests.
peerUdpPort This property is required. string
The port that actively initiates UDP requests.
platformTypes This property is required. string[]
Platform set of the DDoS policy case.
resourceType This property is required. string
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
sceneId This property is required. string
ID of the DDoS policy case to be query.
tcpEndPort This property is required. string
End port of the TCP service.
tcpFootprint This property is required. string
The fixed signature of TCP protocol load.
tcpStartPort This property is required. string
Start port of the TCP service.
udpEndPort This property is required. string
End port of the UDP service.
udpFootprint This property is required. string
The fixed signature of TCP protocol load.
udpStartPort This property is required. string
Start port of the UDP service.
webApiUrls This property is required. string[]
Web API url set.
app_protocols This property is required. Sequence[str]
App protocol set of the DDoS policy case.
app_type This property is required. str
App type of the DDoS policy case.
create_time This property is required. str
Create time of the DDoS policy case.
has_abroad This property is required. str
Indicate whether the service involves overseas or not.
has_initiate_tcp This property is required. str
Indicate whether the service actively initiates TCP requests or not.
has_initiate_udp This property is required. str
Indicate whether the actively initiate UDP requests or not.
has_vpn This property is required. str
Indicate whether the service involves VPN service or not.
max_tcp_package_len This property is required. str
The max length of TCP message package.
max_udp_package_len This property is required. str
The max length of UDP message package.
min_tcp_package_len This property is required. str
The minimum length of TCP message package.
min_udp_package_len This property is required. str
The minimum length of UDP message package.
name This property is required. str
Name of the DDoS policy case.
peer_tcp_port This property is required. str
The port that actively initiates TCP requests.
peer_udp_port This property is required. str
The port that actively initiates UDP requests.
platform_types This property is required. Sequence[str]
Platform set of the DDoS policy case.
resource_type This property is required. str
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
scene_id This property is required. str
ID of the DDoS policy case to be query.
tcp_end_port This property is required. str
End port of the TCP service.
tcp_footprint This property is required. str
The fixed signature of TCP protocol load.
tcp_start_port This property is required. str
Start port of the TCP service.
udp_end_port This property is required. str
End port of the UDP service.
udp_footprint This property is required. str
The fixed signature of TCP protocol load.
udp_start_port This property is required. str
Start port of the UDP service.
web_api_urls This property is required. Sequence[str]
Web API url set.
appProtocols This property is required. List<String>
App protocol set of the DDoS policy case.
appType This property is required. String
App type of the DDoS policy case.
createTime This property is required. String
Create time of the DDoS policy case.
hasAbroad This property is required. String
Indicate whether the service involves overseas or not.
hasInitiateTcp This property is required. String
Indicate whether the service actively initiates TCP requests or not.
hasInitiateUdp This property is required. String
Indicate whether the actively initiate UDP requests or not.
hasVpn This property is required. String
Indicate whether the service involves VPN service or not.
maxTcpPackageLen This property is required. String
The max length of TCP message package.
maxUdpPackageLen This property is required. String
The max length of UDP message package.
minTcpPackageLen This property is required. String
The minimum length of TCP message package.
minUdpPackageLen This property is required. String
The minimum length of UDP message package.
name This property is required. String
Name of the DDoS policy case.
peerTcpPort This property is required. String
The port that actively initiates TCP requests.
peerUdpPort This property is required. String
The port that actively initiates UDP requests.
platformTypes This property is required. List<String>
Platform set of the DDoS policy case.
resourceType This property is required. String
Type of the resource that the DDoS policy case works for, valid values are bgpip, bgp, bgp-multip and net.
sceneId This property is required. String
ID of the DDoS policy case to be query.
tcpEndPort This property is required. String
End port of the TCP service.
tcpFootprint This property is required. String
The fixed signature of TCP protocol load.
tcpStartPort This property is required. String
Start port of the TCP service.
udpEndPort This property is required. String
End port of the UDP service.
udpFootprint This property is required. String
The fixed signature of TCP protocol load.
udpStartPort This property is required. String
Start port of the UDP service.
webApiUrls This property is required. List<String>
Web API url set.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.