GetDdosBgpInstances
This data source provides a list of Anti-DDoS Advanced instances in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.57.0+ .
Example Usage
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var instanceDdosBgpInstances = Output.Create(AliCloud.Ddos.GetDdosBgpInstances.InvokeAsync(new AliCloud.Ddos.GetDdosBgpInstancesArgs
{
NameRegex = "^ddosbgp",
}));
this.Instance = alicloud_ddosbgp_instances.Instance.Select(__item => __item.Id).ToList();
}
[Output("instance")]
public Output<string> Instance { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
instance_ddos_bgp_instances = alicloud.ddos.get_ddos_bgp_instances(name_regex="^ddosbgp")
pulumi.export("instance", [__item["id"] for __item in alicloud_ddosbgp_instances["instance"]])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const instanceDdosBgpInstances = pulumi.output(alicloud.ddos.getDdosBgpInstances({
nameRegex: "^ddosbgp",
}, { async: true }));
export const instance = alicloud_ddosbgp_instances_instance.map(v => v.id);Using GetDdosBgpInstances
function getDdosBgpInstances(args: GetDdosBgpInstancesArgs, opts?: InvokeOptions): Promise<GetDdosBgpInstancesResult>function get_ddos_bgp_instances(ids=None, name_regex=None, output_file=None, opts=None)func GetDdosBgpInstances(ctx *Context, args *GetDdosBgpInstancesArgs, opts ...InvokeOption) (*GetDdosBgpInstancesResult, error)public static class GetDdosBgpInstances {
public static Task<GetDdosBgpInstancesResult> InvokeAsync(GetDdosBgpInstancesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Ids List<string>
A list of instance IDs.
- Name
Regex string A regex string to filter results by the instance name.
- Output
File string
- ids List[str]
A list of instance IDs.
- name_
regex str A regex string to filter results by the instance name.
- output_
file str
GetDdosBgpInstances Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of instance IDs.
- Instances
List<Pulumi.
Ali Cloud. Ddos. Outputs. Get Ddos Bgp Instances Instance> A list of apis. Each element contains the following attributes:
- Names List<string>
A list of instance names.
- Name
Regex string - Output
File string
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of instance IDs.
- instances
List[Get
Ddos Bgp Instances Instance] A list of apis. Each element contains the following attributes:
- names List[str]
A list of instance names.
- name_
regex str - output_
file str
Supporting Types
GetDdosBgpInstancesInstance
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Bandwidth int
The instance’s elastic defend bandwidth.
- Base
Bandwidth int The instance’s base defend bandwidth.
- Id string
The instance’s id.
- Ip
Count int The instance’s count of ip config.
- Ip
Type string The instance’s IP version.
- Name string
The instance’s remark.
- Region string
A region of instance.
- Type string
The instance’s type.
- Bandwidth int
The instance’s elastic defend bandwidth.
- Base
Bandwidth int The instance’s base defend bandwidth.
- Id string
The instance’s id.
- Ip
Count int The instance’s count of ip config.
- Ip
Type string The instance’s IP version.
- Name string
The instance’s remark.
- Region string
A region of instance.
- Type string
The instance’s type.
- bandwidth number
The instance’s elastic defend bandwidth.
- base
Bandwidth number The instance’s base defend bandwidth.
- id string
The instance’s id.
- ip
Count number The instance’s count of ip config.
- ip
Type string The instance’s IP version.
- name string
The instance’s remark.
- region string
A region of instance.
- type string
The instance’s type.
- bandwidth float
The instance’s elastic defend bandwidth.
- base_
bandwidth float The instance’s base defend bandwidth.
- id str
The instance’s id.
- ip_
count float The instance’s count of ip config.
- ip_
type str The instance’s IP version.
- name str
The instance’s remark.
- region str
A region of instance.
- type str
The instance’s type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.