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

tencentcloud.getDayuDdosPolicyCases

Explore with Pulumi AI

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

    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,
    });
    
    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"])
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    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}
    

    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>
    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]
    func GetDayuDdosPolicyCases(ctx *Context, args *GetDayuDdosPolicyCasesArgs, opts ...InvokeOption) (*GetDayuDdosPolicyCasesResult, error)
    func GetDayuDdosPolicyCasesOutput(ctx *Context, args *GetDayuDdosPolicyCasesOutputArgs, opts ...InvokeOption) GetDayuDdosPolicyCasesResultOutput

    > 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)
    }
    public static CompletableFuture<GetDayuDdosPolicyCasesResult> getDayuDdosPolicyCases(GetDayuDdosPolicyCasesArgs args, InvokeOptions options)
    public static Output<GetDayuDdosPolicyCasesResult> getDayuDdosPolicyCases(GetDayuDdosPolicyCasesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDayuDdosPolicyCases:getDayuDdosPolicyCases
      arguments:
        # arguments dictionary

    The following arguments are supported:

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