1. Packages
  2. Ucloud Provider
  3. API Docs
  4. getAntiDdosInstances
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.getAntiDdosInstances

Explore with Pulumi AI

ucloud logo
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

    Provides a list of Anti-DDoS instance resources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const instance = ucloud.getAntiDdosInstances({
        outputFile: "instances.json",
    });
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    instance = ucloud.get_anti_ddos_instances(output_file="instances.json")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ucloud.GetAntiDdosInstances(ctx, &ucloud.GetAntiDdosInstancesArgs{
    			OutputFile: pulumi.StringRef("instances.json"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        var instance = Ucloud.GetAntiDdosInstances.Invoke(new()
        {
            OutputFile = "instances.json",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ucloud.UcloudFunctions;
    import com.pulumi.ucloud.inputs.GetAntiDdosInstancesArgs;
    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 instance = UcloudFunctions.getAntiDdosInstances(GetAntiDdosInstancesArgs.builder()
                .outputFile("instances.json")
                .build());
    
        }
    }
    
    variables:
      instance:
        fn::invoke:
          function: ucloud:getAntiDdosInstances
          arguments:
            outputFile: instances.json
    

    Using getAntiDdosInstances

    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 getAntiDdosInstances(args: GetAntiDdosInstancesArgs, opts?: InvokeOptions): Promise<GetAntiDdosInstancesResult>
    function getAntiDdosInstancesOutput(args: GetAntiDdosInstancesOutputArgs, opts?: InvokeOptions): Output<GetAntiDdosInstancesResult>
    def get_anti_ddos_instances(id: Optional[str] = None,
                                ids: Optional[Sequence[str]] = None,
                                name_regex: Optional[str] = None,
                                output_file: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetAntiDdosInstancesResult
    def get_anti_ddos_instances_output(id: Optional[pulumi.Input[str]] = None,
                                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[GetAntiDdosInstancesResult]
    func GetAntiDdosInstances(ctx *Context, args *GetAntiDdosInstancesArgs, opts ...InvokeOption) (*GetAntiDdosInstancesResult, error)
    func GetAntiDdosInstancesOutput(ctx *Context, args *GetAntiDdosInstancesOutputArgs, opts ...InvokeOption) GetAntiDdosInstancesResultOutput

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

    public static class GetAntiDdosInstances 
    {
        public static Task<GetAntiDdosInstancesResult> InvokeAsync(GetAntiDdosInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetAntiDdosInstancesResult> Invoke(GetAntiDdosInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAntiDdosInstancesResult> getAntiDdosInstances(GetAntiDdosInstancesArgs args, InvokeOptions options)
    public static Output<GetAntiDdosInstancesResult> getAntiDdosInstances(GetAntiDdosInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ucloud:index/getAntiDdosInstances:getAntiDdosInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the resource.
    Ids List<string>
    A list of Anti-DDoS instance IDs, all the Anti-DDoS instances will be retrieved if the ID is [].
    NameRegex string
    A regex string to filter result by name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Id string
    The ID of the resource.
    Ids []string
    A list of Anti-DDoS instance IDs, all the Anti-DDoS instances will be retrieved if the ID is [].
    NameRegex string
    A regex string to filter result by name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    id String
    The ID of the resource.
    ids List<String>
    A list of Anti-DDoS instance IDs, all the Anti-DDoS instances will be retrieved if the ID is [].
    nameRegex String
    A regex string to filter result by name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    id string
    The ID of the resource.
    ids string[]
    A list of Anti-DDoS instance IDs, all the Anti-DDoS instances will be retrieved if the ID is [].
    nameRegex string
    A regex string to filter result by name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    id str
    The ID of the resource.
    ids Sequence[str]
    A list of Anti-DDoS instance IDs, all the Anti-DDoS instances will be retrieved if the ID is [].
    name_regex str
    A regex string to filter result by name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    id String
    The ID of the resource.
    ids List<String>
    A list of Anti-DDoS instance IDs, all the Anti-DDoS instances will be retrieved if the ID is [].
    nameRegex String
    A regex string to filter result by name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getAntiDdosInstances Result

    The following output properties are available:

    Id string
    The ID of the resource.
    Ids List<string>
    Instances List<GetAntiDdosInstancesInstance>
    A list of Anti-DDoS instances. Each element contains the following attributes
    TotalCount double
    Total number of Anti-DDoS instances that satisfy the condition.
    NameRegex string
    OutputFile string
    Id string
    The ID of the resource.
    Ids []string
    Instances []GetAntiDdosInstancesInstance
    A list of Anti-DDoS instances. Each element contains the following attributes
    TotalCount float64
    Total number of Anti-DDoS instances that satisfy the condition.
    NameRegex string
    OutputFile string
    id String
    The ID of the resource.
    ids List<String>
    instances List<GetAntiDdosInstancesInstance>
    A list of Anti-DDoS instances. Each element contains the following attributes
    totalCount Double
    Total number of Anti-DDoS instances that satisfy the condition.
    nameRegex String
    outputFile String
    id string
    The ID of the resource.
    ids string[]
    instances GetAntiDdosInstancesInstance[]
    A list of Anti-DDoS instances. Each element contains the following attributes
    totalCount number
    Total number of Anti-DDoS instances that satisfy the condition.
    nameRegex string
    outputFile string
    id str
    The ID of the resource.
    ids Sequence[str]
    instances Sequence[GetAntiDdosInstancesInstance]
    A list of Anti-DDoS instances. Each element contains the following attributes
    total_count float
    Total number of Anti-DDoS instances that satisfy the condition.
    name_regex str
    output_file str
    id String
    The ID of the resource.
    ids List<String>
    instances List<Property Map>
    A list of Anti-DDoS instances. Each element contains the following attributes
    totalCount Number
    Total number of Anti-DDoS instances that satisfy the condition.
    nameRegex String
    outputFile String

    Supporting Types

    GetAntiDdosInstancesInstance

    Area string
    The area where the instance is deployed. The value can be EastChina or NorthChina.
    Bandwidth double
    Size of the service bandwidth, whose unit is Mbps.
    BaseDefenceValue double
    Size of the base defence bandwidth, whose unit is Gbps and minimum value is 30.
    ChargeType string
    The charge type of Anti-DDoS instance, possible values are year and month (Default: month).
    CreateTime string
    The creation time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    DataCenter string
    The data center where the instance is deployed. The value can be Zaozhuang, Yangzhou or Taizhou for EastChina area, and Shijiazhuang for NorthChina area.
    ExpireTime string
    The expiration time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    Id string
    The ID of the resource.
    MaxDefenceValue double
    Size of the maximum defence bandwidth, whose unit is Gbps and value cannot be less than base_defence_value.
    Name string
    The name of the resource.
    Status string
    The status of ucloud_anti_ddos_instance. Possible values are Started, Stopped and Expired.
    Area string
    The area where the instance is deployed. The value can be EastChina or NorthChina.
    Bandwidth float64
    Size of the service bandwidth, whose unit is Mbps.
    BaseDefenceValue float64
    Size of the base defence bandwidth, whose unit is Gbps and minimum value is 30.
    ChargeType string
    The charge type of Anti-DDoS instance, possible values are year and month (Default: month).
    CreateTime string
    The creation time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    DataCenter string
    The data center where the instance is deployed. The value can be Zaozhuang, Yangzhou or Taizhou for EastChina area, and Shijiazhuang for NorthChina area.
    ExpireTime string
    The expiration time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    Id string
    The ID of the resource.
    MaxDefenceValue float64
    Size of the maximum defence bandwidth, whose unit is Gbps and value cannot be less than base_defence_value.
    Name string
    The name of the resource.
    Status string
    The status of ucloud_anti_ddos_instance. Possible values are Started, Stopped and Expired.
    area String
    The area where the instance is deployed. The value can be EastChina or NorthChina.
    bandwidth Double
    Size of the service bandwidth, whose unit is Mbps.
    baseDefenceValue Double
    Size of the base defence bandwidth, whose unit is Gbps and minimum value is 30.
    chargeType String
    The charge type of Anti-DDoS instance, possible values are year and month (Default: month).
    createTime String
    The creation time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    dataCenter String
    The data center where the instance is deployed. The value can be Zaozhuang, Yangzhou or Taizhou for EastChina area, and Shijiazhuang for NorthChina area.
    expireTime String
    The expiration time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    id String
    The ID of the resource.
    maxDefenceValue Double
    Size of the maximum defence bandwidth, whose unit is Gbps and value cannot be less than base_defence_value.
    name String
    The name of the resource.
    status String
    The status of ucloud_anti_ddos_instance. Possible values are Started, Stopped and Expired.
    area string
    The area where the instance is deployed. The value can be EastChina or NorthChina.
    bandwidth number
    Size of the service bandwidth, whose unit is Mbps.
    baseDefenceValue number
    Size of the base defence bandwidth, whose unit is Gbps and minimum value is 30.
    chargeType string
    The charge type of Anti-DDoS instance, possible values are year and month (Default: month).
    createTime string
    The creation time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    dataCenter string
    The data center where the instance is deployed. The value can be Zaozhuang, Yangzhou or Taizhou for EastChina area, and Shijiazhuang for NorthChina area.
    expireTime string
    The expiration time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    id string
    The ID of the resource.
    maxDefenceValue number
    Size of the maximum defence bandwidth, whose unit is Gbps and value cannot be less than base_defence_value.
    name string
    The name of the resource.
    status string
    The status of ucloud_anti_ddos_instance. Possible values are Started, Stopped and Expired.
    area str
    The area where the instance is deployed. The value can be EastChina or NorthChina.
    bandwidth float
    Size of the service bandwidth, whose unit is Mbps.
    base_defence_value float
    Size of the base defence bandwidth, whose unit is Gbps and minimum value is 30.
    charge_type str
    The charge type of Anti-DDoS instance, possible values are year and month (Default: month).
    create_time str
    The creation time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    data_center str
    The data center where the instance is deployed. The value can be Zaozhuang, Yangzhou or Taizhou for EastChina area, and Shijiazhuang for NorthChina area.
    expire_time str
    The expiration time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    id str
    The ID of the resource.
    max_defence_value float
    Size of the maximum defence bandwidth, whose unit is Gbps and value cannot be less than base_defence_value.
    name str
    The name of the resource.
    status str
    The status of ucloud_anti_ddos_instance. Possible values are Started, Stopped and Expired.
    area String
    The area where the instance is deployed. The value can be EastChina or NorthChina.
    bandwidth Number
    Size of the service bandwidth, whose unit is Mbps.
    baseDefenceValue Number
    Size of the base defence bandwidth, whose unit is Gbps and minimum value is 30.
    chargeType String
    The charge type of Anti-DDoS instance, possible values are year and month (Default: month).
    createTime String
    The creation time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    dataCenter String
    The data center where the instance is deployed. The value can be Zaozhuang, Yangzhou or Taizhou for EastChina area, and Shijiazhuang for NorthChina area.
    expireTime String
    The expiration time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
    id String
    The ID of the resource.
    maxDefenceValue Number
    Size of the maximum defence bandwidth, whose unit is Gbps and value cannot be less than base_defence_value.
    name String
    The name of the resource.
    status String
    The status of ucloud_anti_ddos_instance. Possible values are Started, Stopped and Expired.

    Package Details

    Repository
    ucloud ucloud/terraform-provider-ucloud
    License
    Notes
    This Pulumi package is based on the ucloud Terraform Provider.
    ucloud logo
    ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud