tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getDayuDdosPolicyAttachments
Start a Neo task
Explain and create a tencentcloud.getDayuDdosPolicyAttachments resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of dayu DDoS policy attachments
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const fooType = tencentcloud.getDayuDdosPolicyAttachments({
resourceType: dayuDdosPolicyAttachment.resourceType,
});
const fooResource = tencentcloud.getDayuDdosPolicyAttachments({
resourceId: dayuDdosPolicyAttachment.resourceId,
resourceType: dayuDdosPolicyAttachment.resourceType,
});
const fooPolicy = tencentcloud.getDayuDdosPolicyAttachments({
resourceType: dayuDdosPolicyAttachment.resourceType,
policyId: dayuDdosPolicyAttachment.policyId,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo_type = tencentcloud.get_dayu_ddos_policy_attachments(resource_type=dayu_ddos_policy_attachment["resourceType"])
foo_resource = tencentcloud.get_dayu_ddos_policy_attachments(resource_id=dayu_ddos_policy_attachment["resourceId"],
resource_type=dayu_ddos_policy_attachment["resourceType"])
foo_policy = tencentcloud.get_dayu_ddos_policy_attachments(resource_type=dayu_ddos_policy_attachment["resourceType"],
policy_id=dayu_ddos_policy_attachment["policyId"])
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.GetDayuDdosPolicyAttachments(ctx, &tencentcloud.GetDayuDdosPolicyAttachmentsArgs{
ResourceType: dayuDdosPolicyAttachment.ResourceType,
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.GetDayuDdosPolicyAttachments(ctx, &tencentcloud.GetDayuDdosPolicyAttachmentsArgs{
ResourceId: pulumi.StringRef(dayuDdosPolicyAttachment.ResourceId),
ResourceType: dayuDdosPolicyAttachment.ResourceType,
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.GetDayuDdosPolicyAttachments(ctx, &tencentcloud.GetDayuDdosPolicyAttachmentsArgs{
ResourceType: dayuDdosPolicyAttachment.ResourceType,
PolicyId: pulumi.StringRef(dayuDdosPolicyAttachment.PolicyId),
}, 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 fooType = Tencentcloud.GetDayuDdosPolicyAttachments.Invoke(new()
{
ResourceType = dayuDdosPolicyAttachment.ResourceType,
});
var fooResource = Tencentcloud.GetDayuDdosPolicyAttachments.Invoke(new()
{
ResourceId = dayuDdosPolicyAttachment.ResourceId,
ResourceType = dayuDdosPolicyAttachment.ResourceType,
});
var fooPolicy = Tencentcloud.GetDayuDdosPolicyAttachments.Invoke(new()
{
ResourceType = dayuDdosPolicyAttachment.ResourceType,
PolicyId = dayuDdosPolicyAttachment.PolicyId,
});
});
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.GetDayuDdosPolicyAttachmentsArgs;
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 fooType = TencentcloudFunctions.getDayuDdosPolicyAttachments(GetDayuDdosPolicyAttachmentsArgs.builder()
.resourceType(dayuDdosPolicyAttachment.resourceType())
.build());
final var fooResource = TencentcloudFunctions.getDayuDdosPolicyAttachments(GetDayuDdosPolicyAttachmentsArgs.builder()
.resourceId(dayuDdosPolicyAttachment.resourceId())
.resourceType(dayuDdosPolicyAttachment.resourceType())
.build());
final var fooPolicy = TencentcloudFunctions.getDayuDdosPolicyAttachments(GetDayuDdosPolicyAttachmentsArgs.builder()
.resourceType(dayuDdosPolicyAttachment.resourceType())
.policyId(dayuDdosPolicyAttachment.policyId())
.build());
}
}
variables:
fooType:
fn::invoke:
function: tencentcloud:getDayuDdosPolicyAttachments
arguments:
resourceType: ${dayuDdosPolicyAttachment.resourceType}
fooResource:
fn::invoke:
function: tencentcloud:getDayuDdosPolicyAttachments
arguments:
resourceId: ${dayuDdosPolicyAttachment.resourceId}
resourceType: ${dayuDdosPolicyAttachment.resourceType}
fooPolicy:
fn::invoke:
function: tencentcloud:getDayuDdosPolicyAttachments
arguments:
resourceType: ${dayuDdosPolicyAttachment.resourceType}
policyId: ${dayuDdosPolicyAttachment.policyId}
Using getDayuDdosPolicyAttachments
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 getDayuDdosPolicyAttachments(args: GetDayuDdosPolicyAttachmentsArgs, opts?: InvokeOptions): Promise<GetDayuDdosPolicyAttachmentsResult>
function getDayuDdosPolicyAttachmentsOutput(args: GetDayuDdosPolicyAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetDayuDdosPolicyAttachmentsResult>def get_dayu_ddos_policy_attachments(id: Optional[str] = None,
policy_id: Optional[str] = None,
resource_id: Optional[str] = None,
resource_type: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDayuDdosPolicyAttachmentsResult
def get_dayu_ddos_policy_attachments_output(id: Optional[pulumi.Input[str]] = None,
policy_id: Optional[pulumi.Input[str]] = None,
resource_id: Optional[pulumi.Input[str]] = None,
resource_type: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDayuDdosPolicyAttachmentsResult]func GetDayuDdosPolicyAttachments(ctx *Context, args *GetDayuDdosPolicyAttachmentsArgs, opts ...InvokeOption) (*GetDayuDdosPolicyAttachmentsResult, error)
func GetDayuDdosPolicyAttachmentsOutput(ctx *Context, args *GetDayuDdosPolicyAttachmentsOutputArgs, opts ...InvokeOption) GetDayuDdosPolicyAttachmentsResultOutput> Note: This function is named GetDayuDdosPolicyAttachments in the Go SDK.
public static class GetDayuDdosPolicyAttachments
{
public static Task<GetDayuDdosPolicyAttachmentsResult> InvokeAsync(GetDayuDdosPolicyAttachmentsArgs args, InvokeOptions? opts = null)
public static Output<GetDayuDdosPolicyAttachmentsResult> Invoke(GetDayuDdosPolicyAttachmentsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDayuDdosPolicyAttachmentsResult> getDayuDdosPolicyAttachments(GetDayuDdosPolicyAttachmentsArgs args, InvokeOptions options)
public static Output<GetDayuDdosPolicyAttachmentsResult> getDayuDdosPolicyAttachments(GetDayuDdosPolicyAttachmentsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDayuDdosPolicyAttachments:getDayuDdosPolicyAttachments
arguments:
# arguments dictionaryThe following arguments are supported:
- Resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet. - Id string
- Policy
Id string - Id of the policy to be queried.
- Resource
Id string - ID of the attached resource to be queried.
- Result
Output stringFile - Used to save results.
- Resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet. - Id string
- Policy
Id string - Id of the policy to be queried.
- Resource
Id string - ID of the attached resource to be queried.
- Result
Output stringFile - Used to save results.
- resource
Type String - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet. - id String
- policy
Id String - Id of the policy to be queried.
- resource
Id String - ID of the attached resource to be queried.
- result
Output StringFile - Used to save results.
- resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet. - id string
- policy
Id string - Id of the policy to be queried.
- resource
Id string - ID of the attached resource to be queried.
- result
Output stringFile - Used to save results.
- resource_
type str - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet. - id str
- policy_
id str - Id of the policy to be queried.
- resource_
id str - ID of the attached resource to be queried.
- result_
output_ strfile - Used to save results.
- resource
Type String - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet. - id String
- policy
Id String - Id of the policy to be queried.
- resource
Id String - ID of the attached resource to be queried.
- result
Output StringFile - Used to save results.
getDayuDdosPolicyAttachments Result
The following output properties are available:
- Dayu
Ddos List<GetPolicy Attachment Lists Dayu Ddos Policy Attachments Dayu Ddos Policy Attachment List> - A list of dayu DDoS policy attachments. Each element contains the following attributes:
- Id string
- Resource
Type string - Type of the resource that the DDoS policy works for.
- Policy
Id string - ID of the policy.
- Resource
Id string - ID of the attached resource.
- Result
Output stringFile
- Dayu
Ddos []GetPolicy Attachment Lists Dayu Ddos Policy Attachments Dayu Ddos Policy Attachment List - A list of dayu DDoS policy attachments. Each element contains the following attributes:
- Id string
- Resource
Type string - Type of the resource that the DDoS policy works for.
- Policy
Id string - ID of the policy.
- Resource
Id string - ID of the attached resource.
- Result
Output stringFile
- dayu
Ddos List<GetPolicy Attachment Lists Dayu Ddos Policy Attachments Dayu Ddos Policy Attachment List> - A list of dayu DDoS policy attachments. Each element contains the following attributes:
- id String
- resource
Type String - Type of the resource that the DDoS policy works for.
- policy
Id String - ID of the policy.
- resource
Id String - ID of the attached resource.
- result
Output StringFile
- dayu
Ddos GetPolicy Attachment Lists Dayu Ddos Policy Attachments Dayu Ddos Policy Attachment List[] - A list of dayu DDoS policy attachments. Each element contains the following attributes:
- id string
- resource
Type string - Type of the resource that the DDoS policy works for.
- policy
Id string - ID of the policy.
- resource
Id string - ID of the attached resource.
- result
Output stringFile
- dayu_
ddos_ Sequence[Getpolicy_ attachment_ lists Dayu Ddos Policy Attachments Dayu Ddos Policy Attachment List] - A list of dayu DDoS policy attachments. Each element contains the following attributes:
- id str
- resource_
type str - Type of the resource that the DDoS policy works for.
- policy_
id str - ID of the policy.
- resource_
id str - ID of the attached resource.
- result_
output_ strfile
- dayu
Ddos List<Property Map>Policy Attachment Lists - A list of dayu DDoS policy attachments. Each element contains the following attributes:
- id String
- resource
Type String - Type of the resource that the DDoS policy works for.
- policy
Id String - ID of the policy.
- resource
Id String - ID of the attached resource.
- result
Output StringFile
Supporting Types
GetDayuDdosPolicyAttachmentsDayuDdosPolicyAttachmentList
- Policy
Id string - Id of the policy to be queried.
- Resource
Id string - ID of the attached resource to be queried.
- Resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet.
- Policy
Id string - Id of the policy to be queried.
- Resource
Id string - ID of the attached resource to be queried.
- Resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet.
- policy
Id String - Id of the policy to be queried.
- resource
Id String - ID of the attached resource to be queried.
- resource
Type String - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet.
- policy
Id string - Id of the policy to be queried.
- resource
Id string - ID of the attached resource to be queried.
- resource
Type string - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet.
- policy_
id str - Id of the policy to be queried.
- resource_
id str - ID of the attached resource to be queried.
- resource_
type str - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet.
- policy
Id String - Id of the policy to be queried.
- resource
Id String - ID of the attached resource to be queried.
- resource
Type String - Type of the resource that the DDoS policy works for, valid values are
bgpip,bgp,bgp-multipandnet.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
