1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ddos
  5. getDdosCooInstances
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.ddos.getDdosCooInstances

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides the BGP-Line Anti-DDoS Pro(DdosCoo) instances of the current Alibaba Cloud user.

NOTE: Available since v1.39.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.ddos.getDdosCooInstances({
    nameRegex: "tf",
});
export const instance = _default.then(_default => _default.instances.map(__item => __item.id));
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.ddos.get_ddos_coo_instances(name_regex="tf")
pulumi.export("instance", [__item.id for __item in default.instances])
Copy
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 {
_default, err := ddos.GetDdosCooInstances(ctx, &ddos.GetDdosCooInstancesArgs{
NameRegex: pulumi.StringRef("tf"),
}, nil);
if err != nil {
return err
}
ctx.Export("instance", pulumi.StringArray(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:6,11-34)))
return nil
})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.Ddos.GetDdosCooInstances.Invoke(new()
    {
        NameRegex = "tf",
    });

    return new Dictionary<string, object?>
    {
        ["instance"] = @default.Apply(@default => @default.Apply(getDdosCooInstancesResult => getDdosCooInstancesResult.Instances).Select(__item => __item.Id).ToList()),
    };
});
Copy
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 default = DdosFunctions.getDdosCooInstances(GetDdosCooInstancesArgs.builder()
            .nameRegex("tf")
            .build());

        ctx.export("instance", default_.instances().stream().map(element -> element.id()).collect(toList()));
    }
}
Copy
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>
Copy
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]
Copy
func GetDdosCooInstances(ctx *Context, args *GetDdosCooInstancesArgs, opts ...InvokeOption) (*GetDdosCooInstancesResult, error)
func GetDdosCooInstancesOutput(ctx *Context, args *GetDdosCooInstancesOutputArgs, opts ...InvokeOption) GetDdosCooInstancesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDdosCooInstancesResult> getDdosCooInstances(GetDdosCooInstancesArgs args, InvokeOptions options)
public static Output<GetDdosCooInstancesResult> getDdosCooInstances(GetDdosCooInstancesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:ddos/getDdosCooInstances:getDdosCooInstances
  arguments:
    # arguments dictionary
Copy

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>
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
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>
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[]
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]
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>
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 This property is required. int
The instance's elastic defend bandwidth.
BaseBandwidth This property is required. int
The instance's base defend bandwidth.
CreateTime This property is required. int
The creation time of the instance.
DebtStatus This property is required. int
The debt status of the instance.
DomainCount This property is required. int
The instance's count of domain retransmission config.
Edition This property is required. int
The edition of the instance.
Enabled This property is required. int
The enabled of the instance.
ExpireTime This property is required. int
The expiry time of the instance.
Id This property is required. string
The instance's id.
IpMode This property is required. string
The ip mode of the instance.
IpVersion This property is required. string
The ip version of the instance.
Name This property is required. string
The instance's remark.
PortCount This property is required. int
The instance's count of port retransmission config.
Remark This property is required. string
The remark of the instance.
ServiceBandwidth This property is required. int
The instance's business bandwidth.
Status This property is required. int
The status of the instance.
Bandwidth This property is required. int
The instance's elastic defend bandwidth.
BaseBandwidth This property is required. int
The instance's base defend bandwidth.
CreateTime This property is required. int
The creation time of the instance.
DebtStatus This property is required. int
The debt status of the instance.
DomainCount This property is required. int
The instance's count of domain retransmission config.
Edition This property is required. int
The edition of the instance.
Enabled This property is required. int
The enabled of the instance.
ExpireTime This property is required. int
The expiry time of the instance.
Id This property is required. string
The instance's id.
IpMode This property is required. string
The ip mode of the instance.
IpVersion This property is required. string
The ip version of the instance.
Name This property is required. string
The instance's remark.
PortCount This property is required. int
The instance's count of port retransmission config.
Remark This property is required. string
The remark of the instance.
ServiceBandwidth This property is required. int
The instance's business bandwidth.
Status This property is required. int
The status of the instance.
bandwidth This property is required. Integer
The instance's elastic defend bandwidth.
baseBandwidth This property is required. Integer
The instance's base defend bandwidth.
createTime This property is required. Integer
The creation time of the instance.
debtStatus This property is required. Integer
The debt status of the instance.
domainCount This property is required. Integer
The instance's count of domain retransmission config.
edition This property is required. Integer
The edition of the instance.
enabled This property is required. Integer
The enabled of the instance.
expireTime This property is required. Integer
The expiry time of the instance.
id This property is required. String
The instance's id.
ipMode This property is required. String
The ip mode of the instance.
ipVersion This property is required. String
The ip version of the instance.
name This property is required. String
The instance's remark.
portCount This property is required. Integer
The instance's count of port retransmission config.
remark This property is required. String
The remark of the instance.
serviceBandwidth This property is required. Integer
The instance's business bandwidth.
status This property is required. Integer
The status of the instance.
bandwidth This property is required. number
The instance's elastic defend bandwidth.
baseBandwidth This property is required. number
The instance's base defend bandwidth.
createTime This property is required. number
The creation time of the instance.
debtStatus This property is required. number
The debt status of the instance.
domainCount This property is required. number
The instance's count of domain retransmission config.
edition This property is required. number
The edition of the instance.
enabled This property is required. number
The enabled of the instance.
expireTime This property is required. number
The expiry time of the instance.
id This property is required. string
The instance's id.
ipMode This property is required. string
The ip mode of the instance.
ipVersion This property is required. string
The ip version of the instance.
name This property is required. string
The instance's remark.
portCount This property is required. number
The instance's count of port retransmission config.
remark This property is required. string
The remark of the instance.
serviceBandwidth This property is required. number
The instance's business bandwidth.
status This property is required. number
The status of the instance.
bandwidth This property is required. int
The instance's elastic defend bandwidth.
base_bandwidth This property is required. int
The instance's base defend bandwidth.
create_time This property is required. int
The creation time of the instance.
debt_status This property is required. int
The debt status of the instance.
domain_count This property is required. int
The instance's count of domain retransmission config.
edition This property is required. int
The edition of the instance.
enabled This property is required. int
The enabled of the instance.
expire_time This property is required. int
The expiry time of the instance.
id This property is required. str
The instance's id.
ip_mode This property is required. str
The ip mode of the instance.
ip_version This property is required. str
The ip version of the instance.
name This property is required. str
The instance's remark.
port_count This property is required. int
The instance's count of port retransmission config.
remark This property is required. str
The remark of the instance.
service_bandwidth This property is required. int
The instance's business bandwidth.
status This property is required. int
The status of the instance.
bandwidth This property is required. Number
The instance's elastic defend bandwidth.
baseBandwidth This property is required. Number
The instance's base defend bandwidth.
createTime This property is required. Number
The creation time of the instance.
debtStatus This property is required. Number
The debt status of the instance.
domainCount This property is required. Number
The instance's count of domain retransmission config.
edition This property is required. Number
The edition of the instance.
enabled This property is required. Number
The enabled of the instance.
expireTime This property is required. Number
The expiry time of the instance.
id This property is required. String
The instance's id.
ipMode This property is required. String
The ip mode of the instance.
ipVersion This property is required. String
The ip version of the instance.
name This property is required. String
The instance's remark.
portCount This property is required. Number
The instance's count of port retransmission config.
remark This property is required. String
The remark of the instance.
serviceBandwidth This property is required. Number
The instance's business bandwidth.
status This property is required. Number
The status of the instance.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi