1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getAntiddosBgpInstances
tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack
tencentcloud logo
tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of AntiDDoS bgp instances

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getAntiddosBgpInstances({
        filterRegion: "ap-guangzhou",
        filterInstanceIdLists: [
            "bgp-00000fv1",
            "bgp-00000fwx",
            "bgp-00000fwy",
        ],
        filterTags: [{
            tagKey: "createBy",
            tagValue: "Terraform",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_antiddos_bgp_instances(filter_region="ap-guangzhou",
        filter_instance_id_lists=[
            "bgp-00000fv1",
            "bgp-00000fwx",
            "bgp-00000fwy",
        ],
        filter_tags=[{
            "tag_key": "createBy",
            "tag_value": "Terraform",
        }])
    
    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.GetAntiddosBgpInstances(ctx, &tencentcloud.GetAntiddosBgpInstancesArgs{
    			FilterRegion: "ap-guangzhou",
    			FilterInstanceIdLists: []string{
    				"bgp-00000fv1",
    				"bgp-00000fwx",
    				"bgp-00000fwy",
    			},
    			FilterTags: []tencentcloud.GetAntiddosBgpInstancesFilterTag{
    				{
    					TagKey:   "createBy",
    					TagValue: "Terraform",
    				},
    			},
    		}, 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 example = Tencentcloud.GetAntiddosBgpInstances.Invoke(new()
        {
            FilterRegion = "ap-guangzhou",
            FilterInstanceIdLists = new[]
            {
                "bgp-00000fv1",
                "bgp-00000fwx",
                "bgp-00000fwy",
            },
            FilterTags = new[]
            {
                new Tencentcloud.Inputs.GetAntiddosBgpInstancesFilterTagInputArgs
                {
                    TagKey = "createBy",
                    TagValue = "Terraform",
                },
            },
        });
    
    });
    
    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.GetAntiddosBgpInstancesArgs;
    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 example = TencentcloudFunctions.getAntiddosBgpInstances(GetAntiddosBgpInstancesArgs.builder()
                .filterRegion("ap-guangzhou")
                .filterInstanceIdLists(            
                    "bgp-00000fv1",
                    "bgp-00000fwx",
                    "bgp-00000fwy")
                .filterTags(GetAntiddosBgpInstancesFilterTagArgs.builder()
                    .tagKey("createBy")
                    .tagValue("Terraform")
                    .build())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getAntiddosBgpInstances
          arguments:
            filterRegion: ap-guangzhou
            filterInstanceIdLists:
              - bgp-00000fv1
              - bgp-00000fwx
              - bgp-00000fwy
            filterTags:
              - tagKey: createBy
                tagValue: Terraform
    

    Using getAntiddosBgpInstances

    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 getAntiddosBgpInstances(args: GetAntiddosBgpInstancesArgs, opts?: InvokeOptions): Promise<GetAntiddosBgpInstancesResult>
    function getAntiddosBgpInstancesOutput(args: GetAntiddosBgpInstancesOutputArgs, opts?: InvokeOptions): Output<GetAntiddosBgpInstancesResult>
    def get_antiddos_bgp_instances(filter_instance_id_lists: Optional[Sequence[str]] = None,
                                   filter_region: Optional[str] = None,
                                   filter_tags: Optional[Sequence[GetAntiddosBgpInstancesFilterTag]] = None,
                                   id: Optional[str] = None,
                                   result_output_file: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetAntiddosBgpInstancesResult
    def get_antiddos_bgp_instances_output(filter_instance_id_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                   filter_region: Optional[pulumi.Input[str]] = None,
                                   filter_tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetAntiddosBgpInstancesFilterTagArgs]]]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   result_output_file: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetAntiddosBgpInstancesResult]
    func GetAntiddosBgpInstances(ctx *Context, args *GetAntiddosBgpInstancesArgs, opts ...InvokeOption) (*GetAntiddosBgpInstancesResult, error)
    func GetAntiddosBgpInstancesOutput(ctx *Context, args *GetAntiddosBgpInstancesOutputArgs, opts ...InvokeOption) GetAntiddosBgpInstancesResultOutput

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

    public static class GetAntiddosBgpInstances 
    {
        public static Task<GetAntiddosBgpInstancesResult> InvokeAsync(GetAntiddosBgpInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetAntiddosBgpInstancesResult> Invoke(GetAntiddosBgpInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAntiddosBgpInstancesResult> getAntiddosBgpInstances(GetAntiddosBgpInstancesArgs args, InvokeOptions options)
    public static Output<GetAntiddosBgpInstancesResult> getAntiddosBgpInstances(GetAntiddosBgpInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getAntiddosBgpInstances:getAntiddosBgpInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FilterRegion string
    Region.
    FilterInstanceIdLists List<string>
    Instance ID list.
    FilterTags List<GetAntiddosBgpInstancesFilterTag>
    Filter by tag key and value.
    Id string
    ResultOutputFile string
    Used to save results.
    FilterRegion string
    Region.
    FilterInstanceIdLists []string
    Instance ID list.
    FilterTags []GetAntiddosBgpInstancesFilterTag
    Filter by tag key and value.
    Id string
    ResultOutputFile string
    Used to save results.
    filterRegion String
    Region.
    filterInstanceIdLists List<String>
    Instance ID list.
    filterTags List<GetAntiddosBgpInstancesFilterTag>
    Filter by tag key and value.
    id String
    resultOutputFile String
    Used to save results.
    filterRegion string
    Region.
    filterInstanceIdLists string[]
    Instance ID list.
    filterTags GetAntiddosBgpInstancesFilterTag[]
    Filter by tag key and value.
    id string
    resultOutputFile string
    Used to save results.
    filter_region str
    Region.
    filter_instance_id_lists Sequence[str]
    Instance ID list.
    filter_tags Sequence[GetAntiddosBgpInstancesFilterTag]
    Filter by tag key and value.
    id str
    result_output_file str
    Used to save results.
    filterRegion String
    Region.
    filterInstanceIdLists List<String>
    Instance ID list.
    filterTags List<Property Map>
    Filter by tag key and value.
    id String
    resultOutputFile String
    Used to save results.

    getAntiddosBgpInstances Result

    The following output properties are available:

    bgpInstanceLists List<Property Map>
    Returns purchased Anti-DDoS package information.
    filterRegion String
    id String
    filterInstanceIdLists List<String>
    filterTags List<Property Map>
    resultOutputFile String

    Supporting Types

    GetAntiddosBgpInstancesBgpInstanceList

    enterprisePackageConfigs List<Property Map>
    Enterprise edition Anti-DDoS package configuration.
    instanceChargePrepaids List<Property Map>
    Renewal period related.
    instanceChargeType String
    Payment method.
    instanceId String
    Instance ID.
    packageType String
    Anti-DDoS package type.
    standardPackageConfigs List<Property Map>
    Standard edition Anti-DDoS package configuration.
    standardPlusPackageConfigs List<Property Map>
    Standard edition 2.0 Anti-DDoS package configuration.
    tagInfoLists List<Property Map>
    Tag information.

    GetAntiddosBgpInstancesBgpInstanceListEnterprisePackageConfig

    Bandwidth double
    Protection bandwidth 50Mbps.
    BasicProtectBandwidth double
    Basic protection bandwidth.
    ElasticBandwidthFlag bool
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    ElasticProtectBandwidth double
    Elastic bandwidth in Gbps, selectable elastic bandwidth [0,400,500,600,800,1000]. Default is 0.
    ProtectIpCount double
    Number of protected IPs.
    Region string
    Region where the Anti-DDoS package is purchased.
    Bandwidth float64
    Protection bandwidth 50Mbps.
    BasicProtectBandwidth float64
    Basic protection bandwidth.
    ElasticBandwidthFlag bool
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    ElasticProtectBandwidth float64
    Elastic bandwidth in Gbps, selectable elastic bandwidth [0,400,500,600,800,1000]. Default is 0.
    ProtectIpCount float64
    Number of protected IPs.
    Region string
    Region where the Anti-DDoS package is purchased.
    bandwidth Double
    Protection bandwidth 50Mbps.
    basicProtectBandwidth Double
    Basic protection bandwidth.
    elasticBandwidthFlag Boolean
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    elasticProtectBandwidth Double
    Elastic bandwidth in Gbps, selectable elastic bandwidth [0,400,500,600,800,1000]. Default is 0.
    protectIpCount Double
    Number of protected IPs.
    region String
    Region where the Anti-DDoS package is purchased.
    bandwidth number
    Protection bandwidth 50Mbps.
    basicProtectBandwidth number
    Basic protection bandwidth.
    elasticBandwidthFlag boolean
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    elasticProtectBandwidth number
    Elastic bandwidth in Gbps, selectable elastic bandwidth [0,400,500,600,800,1000]. Default is 0.
    protectIpCount number
    Number of protected IPs.
    region string
    Region where the Anti-DDoS package is purchased.
    bandwidth float
    Protection bandwidth 50Mbps.
    basic_protect_bandwidth float
    Basic protection bandwidth.
    elastic_bandwidth_flag bool
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    elastic_protect_bandwidth float
    Elastic bandwidth in Gbps, selectable elastic bandwidth [0,400,500,600,800,1000]. Default is 0.
    protect_ip_count float
    Number of protected IPs.
    region str
    Region where the Anti-DDoS package is purchased.
    bandwidth Number
    Protection bandwidth 50Mbps.
    basicProtectBandwidth Number
    Basic protection bandwidth.
    elasticBandwidthFlag Boolean
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    elasticProtectBandwidth Number
    Elastic bandwidth in Gbps, selectable elastic bandwidth [0,400,500,600,800,1000]. Default is 0.
    protectIpCount Number
    Number of protected IPs.
    region String
    Region where the Anti-DDoS package is purchased.

    GetAntiddosBgpInstancesBgpInstanceListInstanceChargePrepaid

    Period double
    Purchase duration: unit in months.
    RenewFlag string
    NOTIFY_AND_MANUAL_RENEW: Notify expiration without automatic renewal. NOTIFY_AND_AUTO_RENEW: Notify expiration and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: No notification and no automatic renewal. Default: Notify expiration without automatic renewal.
    Period float64
    Purchase duration: unit in months.
    RenewFlag string
    NOTIFY_AND_MANUAL_RENEW: Notify expiration without automatic renewal. NOTIFY_AND_AUTO_RENEW: Notify expiration and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: No notification and no automatic renewal. Default: Notify expiration without automatic renewal.
    period Double
    Purchase duration: unit in months.
    renewFlag String
    NOTIFY_AND_MANUAL_RENEW: Notify expiration without automatic renewal. NOTIFY_AND_AUTO_RENEW: Notify expiration and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: No notification and no automatic renewal. Default: Notify expiration without automatic renewal.
    period number
    Purchase duration: unit in months.
    renewFlag string
    NOTIFY_AND_MANUAL_RENEW: Notify expiration without automatic renewal. NOTIFY_AND_AUTO_RENEW: Notify expiration and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: No notification and no automatic renewal. Default: Notify expiration without automatic renewal.
    period float
    Purchase duration: unit in months.
    renew_flag str
    NOTIFY_AND_MANUAL_RENEW: Notify expiration without automatic renewal. NOTIFY_AND_AUTO_RENEW: Notify expiration and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: No notification and no automatic renewal. Default: Notify expiration without automatic renewal.
    period Number
    Purchase duration: unit in months.
    renewFlag String
    NOTIFY_AND_MANUAL_RENEW: Notify expiration without automatic renewal. NOTIFY_AND_AUTO_RENEW: Notify expiration and automatically renew. DISABLE_NOTIFY_AND_MANUAL_RENEW: No notification and no automatic renewal. Default: Notify expiration without automatic renewal.

    GetAntiddosBgpInstancesBgpInstanceListStandardPackageConfig

    Bandwidth double
    Protection bandwidth 50Mbps.
    ElasticBandwidthFlag bool
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    ProtectIpCount double
    Number of protected IPs.
    Region string
    Region where the Anti-DDoS package is purchased.
    Bandwidth float64
    Protection bandwidth 50Mbps.
    ElasticBandwidthFlag bool
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    ProtectIpCount float64
    Number of protected IPs.
    Region string
    Region where the Anti-DDoS package is purchased.
    bandwidth Double
    Protection bandwidth 50Mbps.
    elasticBandwidthFlag Boolean
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    protectIpCount Double
    Number of protected IPs.
    region String
    Region where the Anti-DDoS package is purchased.
    bandwidth number
    Protection bandwidth 50Mbps.
    elasticBandwidthFlag boolean
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    protectIpCount number
    Number of protected IPs.
    region string
    Region where the Anti-DDoS package is purchased.
    bandwidth float
    Protection bandwidth 50Mbps.
    elastic_bandwidth_flag bool
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    protect_ip_count float
    Number of protected IPs.
    region str
    Region where the Anti-DDoS package is purchased.
    bandwidth Number
    Protection bandwidth 50Mbps.
    elasticBandwidthFlag Boolean
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    protectIpCount Number
    Number of protected IPs.
    region String
    Region where the Anti-DDoS package is purchased.

    GetAntiddosBgpInstancesBgpInstanceListStandardPlusPackageConfig

    Bandwidth double
    Protection bandwidth 50Mbps.
    ElasticBandwidthFlag bool
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    ProtectCount string
    Protection count: TWO_TIMES: two full protections, UNLIMITED: unlimited protections.
    ProtectIpCount double
    Number of protected IPs.
    Region string
    Region where the Anti-DDoS package is purchased.
    Bandwidth float64
    Protection bandwidth 50Mbps.
    ElasticBandwidthFlag bool
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    ProtectCount string
    Protection count: TWO_TIMES: two full protections, UNLIMITED: unlimited protections.
    ProtectIpCount float64
    Number of protected IPs.
    Region string
    Region where the Anti-DDoS package is purchased.
    bandwidth Double
    Protection bandwidth 50Mbps.
    elasticBandwidthFlag Boolean
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    protectCount String
    Protection count: TWO_TIMES: two full protections, UNLIMITED: unlimited protections.
    protectIpCount Double
    Number of protected IPs.
    region String
    Region where the Anti-DDoS package is purchased.
    bandwidth number
    Protection bandwidth 50Mbps.
    elasticBandwidthFlag boolean
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    protectCount string
    Protection count: TWO_TIMES: two full protections, UNLIMITED: unlimited protections.
    protectIpCount number
    Number of protected IPs.
    region string
    Region where the Anti-DDoS package is purchased.
    bandwidth float
    Protection bandwidth 50Mbps.
    elastic_bandwidth_flag bool
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    protect_count str
    Protection count: TWO_TIMES: two full protections, UNLIMITED: unlimited protections.
    protect_ip_count float
    Number of protected IPs.
    region str
    Region where the Anti-DDoS package is purchased.
    bandwidth Number
    Protection bandwidth 50Mbps.
    elasticBandwidthFlag Boolean
    Whether to enable elastic business bandwidth. true: enable false: disable Default is disable.
    protectCount String
    Protection count: TWO_TIMES: two full protections, UNLIMITED: unlimited protections.
    protectIpCount Number
    Number of protected IPs.
    region String
    Region where the Anti-DDoS package is purchased.

    GetAntiddosBgpInstancesBgpInstanceListTagInfoList

    TagKey string
    Tag key.
    TagValue string
    Tag value.
    TagKey string
    Tag key.
    TagValue string
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.
    tagKey string
    Tag key.
    tagValue string
    Tag value.
    tag_key str
    Tag key.
    tag_value str
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.

    GetAntiddosBgpInstancesFilterTag

    TagKey string
    Tag key.
    TagValue string
    Tag value.
    TagKey string
    Tag key.
    TagValue string
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.
    tagKey string
    Tag key.
    tagValue string
    Tag value.
    tag_key str
    Tag key.
    tag_value str
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate