alicloud.ddos.getDdosBgpInstances
Explore with Pulumi AI
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.183.0+ .
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var instanceDdosBgpInstances = AliCloud.Ddos.GetDdosBgpInstances.Invoke(new()
{
NameRegex = "^ddosbgp",
});
return new Dictionary<string, object?>
{
["instance"] = alicloud_ddosbgp_instances.Instance.Select(__item => __item.Id).ToList(),
};
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ddos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ddos.GetDdosBgpInstances(ctx, &ddos.GetDdosBgpInstancesArgs{
NameRegex: pulumi.StringRef("^ddosbgp"),
}, nil)
if err != nil {
return err
}
var splat0 []interface{}
for _, val0 := range alicloud_ddosbgp_instances.Instance {
splat0 = append(splat0, val0.Id)
}
ctx.Export("instance", splat0)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ddos.DdosFunctions;
import com.pulumi.alicloud.ddos.inputs.GetDdosBgpInstancesArgs;
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 instanceDdosBgpInstances = DdosFunctions.getDdosBgpInstances(GetDdosBgpInstancesArgs.builder()
.nameRegex("^ddosbgp")
.build());
ctx.export("instance", alicloud_ddosbgp_instances.instance().stream().map(element -> element.id()).collect(toList()));
}
}
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 = alicloud.ddos.getDdosBgpInstances({
nameRegex: "^ddosbgp",
});
export const instance = alicloud_ddosbgp_instances.instance.map(__item => __item.id);
Coming soon!
Using getDdosBgpInstances
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 getDdosBgpInstances(args: GetDdosBgpInstancesArgs, opts?: InvokeOptions): Promise<GetDdosBgpInstancesResult>
function getDdosBgpInstancesOutput(args: GetDdosBgpInstancesOutputArgs, opts?: InvokeOptions): Output<GetDdosBgpInstancesResult>
def get_ddos_bgp_instances(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDdosBgpInstancesResult
def get_ddos_bgp_instances_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDdosBgpInstancesResult]
func GetDdosBgpInstances(ctx *Context, args *GetDdosBgpInstancesArgs, opts ...InvokeOption) (*GetDdosBgpInstancesResult, error)
func GetDdosBgpInstancesOutput(ctx *Context, args *GetDdosBgpInstancesOutputArgs, opts ...InvokeOption) GetDdosBgpInstancesResultOutput
> Note: This function is named GetDdosBgpInstances
in the Go SDK.
public static class GetDdosBgpInstances
{
public static Task<GetDdosBgpInstancesResult> InvokeAsync(GetDdosBgpInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetDdosBgpInstancesResult> Invoke(GetDdosBgpInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDdosBgpInstancesResult> getDdosBgpInstances(GetDdosBgpInstancesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:ddos/getDdosBgpInstances:getDdosBgpInstances
arguments:
# arguments dictionary
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 File name where to save data source results (after running
pulumi preview
).
- Ids []string
A list of instance IDs.
- Name
Regex string A regex string to filter results by the instance name.
- Output
File string File name where to save data source results (after running
pulumi preview
).
- ids List<String>
A list of instance IDs.
- name
Regex String A regex string to filter results by the instance name.
- output
File String File name where to save data source results (after running
pulumi preview
).
- ids string[]
A list of instance IDs.
- name
Regex string A regex string to filter results by the instance name.
- output
File string File name where to save data source results (after running
pulumi preview
).
- ids Sequence[str]
A list of instance IDs.
- name_
regex str A regex string to filter results by the instance name.
- output_
file str File name where to save data source results (after running
pulumi preview
).
- ids List<String>
A list of instance IDs.
- name
Regex String A regex string to filter results by the instance name.
- output
File String File name where to save data source results (after running
pulumi preview
).
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 string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of instance IDs.
- Instances
[]Get
Ddos Bgp Instances Instance A list of apis. Each element contains the following attributes:
- Names []string
A list of instance names.
- Name
Regex string - Output
File string
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
A list of instance IDs.
- instances
List<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 string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of instance IDs.
- instances
Get
Ddos Bgp Instances Instance[] A list of apis. Each element contains the following attributes:
- names string[]
A list of instance names.
- name
Regex string - output
File string
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
A list of instance IDs.
- instances
Sequence[Get
Ddos Bgp Instances Instance] A list of apis. Each element contains the following attributes:
- names Sequence[str]
A list of instance names.
- name_
regex str - output_
file str
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
A list of instance IDs.
- instances List<Property Map>
A list of apis. Each element contains the following attributes:
- names List<String>
A list of instance names.
- name
Regex String - output
File String
Supporting Types
GetDdosBgpInstancesInstance
- 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.
- Normal
Bandwidth int Normal defend bandwidth of the instance. The unit is Gbps.
- 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.
- Normal
Bandwidth int Normal defend bandwidth of the instance. The unit is Gbps.
- Region string
A region of instance.
- Type string
The instance's type.
- bandwidth Integer
The instance's elastic defend bandwidth.
- base
Bandwidth Integer The instance's base defend bandwidth.
- id String
The instance's id.
- ip
Count Integer The instance's count of ip config.
- ip
Type String The instance's IP version.
- name String
The instance's remark.
- normal
Bandwidth Integer Normal defend bandwidth of the instance. The unit is Gbps.
- 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.
- normal
Bandwidth number Normal defend bandwidth of the instance. The unit is Gbps.
- 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 str
The instance's id.
- ip_
count int The instance's count of ip config.
- ip_
type str The instance's IP version.
- name str
The instance's remark.
- normal_
bandwidth int Normal defend bandwidth of the instance. The unit is Gbps.
- region str
A region of instance.
- type str
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.
- normal
Bandwidth Number Normal defend bandwidth of the instance. The unit is Gbps.
- region String
A region of instance.
- type String
The instance's type.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.