alicloud logo
Alibaba Cloud v3.37.0, May 15 23

alicloud.ddos.getDdosCooInstances

Explore with Pulumi AI

This data source provides a list of BGP-Line Anti-DDoS Pro instances in an Alibaba Cloud account according to the specified filters.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var instanceDdosCooInstances = AliCloud.Ddos.GetDdosCooInstances.Invoke(new()
    {
        NameRegex = "^ddoscoo",
    });

    return new Dictionary<string, object?>
    {
        ["instance"] = alicloud_ddoscoo_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.GetDdosCooInstances(ctx, &ddos.GetDdosCooInstancesArgs{
			NameRegex: pulumi.StringRef("^ddoscoo"),
		}, nil)
		if err != nil {
			return err
		}
		var splat0 []interface{}
		for _, val0 := range alicloud_ddoscoo_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.GetDdosCooInstancesArgs;
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 instanceDdosCooInstances = DdosFunctions.getDdosCooInstances(GetDdosCooInstancesArgs.builder()
            .nameRegex("^ddoscoo")
            .build());

        ctx.export("instance", alicloud_ddoscoo_instances.instance().stream().map(element -> element.id()).collect(toList()));
    }
}
import pulumi
import pulumi_alicloud as alicloud

instance_ddos_coo_instances = alicloud.ddos.get_ddos_coo_instances(name_regex="^ddoscoo")
pulumi.export("instance", [__item["id"] for __item in alicloud_ddoscoo_instances["instance"]])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const instanceDdosCooInstances = alicloud.ddos.getDdosCooInstances({
    nameRegex: "^ddoscoo",
});
export const instance = alicloud_ddoscoo_instances.instance.map(__item => __item.id);

Coming soon!

Using getDdosCooInstances

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 getDdosCooInstances(args: GetDdosCooInstancesArgs, opts?: InvokeOptions): Promise<GetDdosCooInstancesResult>
function getDdosCooInstancesOutput(args: GetDdosCooInstancesOutputArgs, opts?: InvokeOptions): Output<GetDdosCooInstancesResult>
def get_ddos_coo_instances(ids: Optional[Sequence[str]] = None,
                           name_regex: Optional[str] = None,
                           output_file: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDdosCooInstancesResult
def get_ddos_coo_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[GetDdosCooInstancesResult]
func GetDdosCooInstances(ctx *Context, args *GetDdosCooInstancesArgs, opts ...InvokeOption) (*GetDdosCooInstancesResult, error)
func GetDdosCooInstancesOutput(ctx *Context, args *GetDdosCooInstancesOutputArgs, opts ...InvokeOption) GetDdosCooInstancesResultOutput

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

public static class GetDdosCooInstances 
{
    public static Task<GetDdosCooInstancesResult> InvokeAsync(GetDdosCooInstancesArgs args, InvokeOptions? opts = null)
    public static Output<GetDdosCooInstancesResult> Invoke(GetDdosCooInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDdosCooInstancesResult> getDdosCooInstances(GetDdosCooInstancesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:ddos/getDdosCooInstances:getDdosCooInstances
  arguments:
    # arguments dictionary

The following arguments are supported:

Ids List<string>

A list of instance IDs.

NameRegex string

A regex string to filter results by the instance name.

OutputFile string

File name where to save data source results (after running pulumi preview).

Ids []string

A list of instance IDs.

NameRegex string

A regex string to filter results by the instance name.

OutputFile string

File name where to save data source results (after running pulumi preview).

ids List<String>

A list of instance IDs.

nameRegex String

A regex string to filter results by the instance name.

outputFile String

File name where to save data source results (after running pulumi preview).

ids string[]

A list of instance IDs.

nameRegex string

A regex string to filter results by the instance name.

outputFile 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.

nameRegex String

A regex string to filter results by the instance name.

outputFile String

File name where to save data source results (after running pulumi preview).

getDdosCooInstances 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.AliCloud.Ddos.Outputs.GetDdosCooInstancesInstance>

A list of apis. Each element contains the following attributes:

Names List<string>

A list of instance names.

NameRegex string
OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of instance IDs.

Instances []GetDdosCooInstancesInstance

A list of apis. Each element contains the following attributes:

Names []string

A list of instance names.

NameRegex string
OutputFile string
id String

The provider-assigned unique ID for this managed resource.

ids List<String>

A list of instance IDs.

instances List<GetDdosCooInstancesInstance>

A list of apis. Each element contains the following attributes:

names List<String>

A list of instance names.

nameRegex String
outputFile String
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of instance IDs.

instances GetDdosCooInstancesInstance[]

A list of apis. Each element contains the following attributes:

names string[]

A list of instance names.

nameRegex string
outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]

A list of instance IDs.

instances Sequence[GetDdosCooInstancesInstance]

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.

nameRegex String
outputFile String

Supporting Types

GetDdosCooInstancesInstance

Bandwidth int

The instance's elastic defend bandwidth.

BaseBandwidth int

The instance's base defend bandwidth.

CreateTime int

The creation time of the instance.

DebtStatus int

The debt status of the instance.

DomainCount int

The instance's count of domain retransmission config.

Edition int

The edition of the instance. The Valid Values : 0, 1, 2, 9.

Enabled int

The enabled of the instance. The Valid Values : 0, 1.

ExpireTime int

The expiry time of the instance.

Id string

The instance's id.

IpMode string

The ip mode of the instance. The Valid Values : fnat, v6tov4.

IpVersion string

The ip version of the instance. The Valid Values : Ipv4, Ipv6.

Name string

The instance's remark.

PortCount int

The instance's count of port retransmission config.

Remark string

The remark of the instance.

ServiceBandwidth int

The instance's business bandwidth.

Status int

The status of the instance. The Valid Values : 1, 2.

Bandwidth int

The instance's elastic defend bandwidth.

BaseBandwidth int

The instance's base defend bandwidth.

CreateTime int

The creation time of the instance.

DebtStatus int

The debt status of the instance.

DomainCount int

The instance's count of domain retransmission config.

Edition int

The edition of the instance. The Valid Values : 0, 1, 2, 9.

Enabled int

The enabled of the instance. The Valid Values : 0, 1.

ExpireTime int

The expiry time of the instance.

Id string

The instance's id.

IpMode string

The ip mode of the instance. The Valid Values : fnat, v6tov4.

IpVersion string

The ip version of the instance. The Valid Values : Ipv4, Ipv6.

Name string

The instance's remark.

PortCount int

The instance's count of port retransmission config.

Remark string

The remark of the instance.

ServiceBandwidth int

The instance's business bandwidth.

Status int

The status of the instance. The Valid Values : 1, 2.

bandwidth Integer

The instance's elastic defend bandwidth.

baseBandwidth Integer

The instance's base defend bandwidth.

createTime Integer

The creation time of the instance.

debtStatus Integer

The debt status of the instance.

domainCount Integer

The instance's count of domain retransmission config.

edition Integer

The edition of the instance. The Valid Values : 0, 1, 2, 9.

enabled Integer

The enabled of the instance. The Valid Values : 0, 1.

expireTime Integer

The expiry time of the instance.

id String

The instance's id.

ipMode String

The ip mode of the instance. The Valid Values : fnat, v6tov4.

ipVersion String

The ip version of the instance. The Valid Values : Ipv4, Ipv6.

name String

The instance's remark.

portCount Integer

The instance's count of port retransmission config.

remark String

The remark of the instance.

serviceBandwidth Integer

The instance's business bandwidth.

status Integer

The status of the instance. The Valid Values : 1, 2.

bandwidth number

The instance's elastic defend bandwidth.

baseBandwidth number

The instance's base defend bandwidth.

createTime number

The creation time of the instance.

debtStatus number

The debt status of the instance.

domainCount number

The instance's count of domain retransmission config.

edition number

The edition of the instance. The Valid Values : 0, 1, 2, 9.

enabled number

The enabled of the instance. The Valid Values : 0, 1.

expireTime number

The expiry time of the instance.

id string

The instance's id.

ipMode string

The ip mode of the instance. The Valid Values : fnat, v6tov4.

ipVersion string

The ip version of the instance. The Valid Values : Ipv4, Ipv6.

name string

The instance's remark.

portCount number

The instance's count of port retransmission config.

remark string

The remark of the instance.

serviceBandwidth number

The instance's business bandwidth.

status number

The status of the instance. The Valid Values : 1, 2.

bandwidth int

The instance's elastic defend bandwidth.

base_bandwidth int

The instance's base defend bandwidth.

create_time int

The creation time of the instance.

debt_status int

The debt status of the instance.

domain_count int

The instance's count of domain retransmission config.

edition int

The edition of the instance. The Valid Values : 0, 1, 2, 9.

enabled int

The enabled of the instance. The Valid Values : 0, 1.

expire_time int

The expiry time of the instance.

id str

The instance's id.

ip_mode str

The ip mode of the instance. The Valid Values : fnat, v6tov4.

ip_version str

The ip version of the instance. The Valid Values : Ipv4, Ipv6.

name str

The instance's remark.

port_count int

The instance's count of port retransmission config.

remark str

The remark of the instance.

service_bandwidth int

The instance's business bandwidth.

status int

The status of the instance. The Valid Values : 1, 2.

bandwidth Number

The instance's elastic defend bandwidth.

baseBandwidth Number

The instance's base defend bandwidth.

createTime Number

The creation time of the instance.

debtStatus Number

The debt status of the instance.

domainCount Number

The instance's count of domain retransmission config.

edition Number

The edition of the instance. The Valid Values : 0, 1, 2, 9.

enabled Number

The enabled of the instance. The Valid Values : 0, 1.

expireTime Number

The expiry time of the instance.

id String

The instance's id.

ipMode String

The ip mode of the instance. The Valid Values : fnat, v6tov4.

ipVersion String

The ip version of the instance. The Valid Values : Ipv4, Ipv6.

name String

The instance's remark.

portCount Number

The instance's count of port retransmission config.

remark String

The remark of the instance.

serviceBandwidth Number

The instance's business bandwidth.

status Number

The status of the instance. The Valid Values : 1, 2.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.