Viewing docs for ucloud 1.39.3
published on Wednesday, Mar 11, 2026 by ucloud
published on Wednesday, Mar 11, 2026 by ucloud
Viewing docs for ucloud 1.39.3
published on Wednesday, Mar 11, 2026 by ucloud
published on Wednesday, Mar 11, 2026 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 dictionaryThe 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
[]. - Name
Regex string - A regex string to filter result by name.
- Output
File 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
[]. - Name
Regex string - A regex string to filter result by name.
- Output
File 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
[]. - name
Regex String - A regex string to filter result by name.
- output
File 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
[]. - name
Regex string - A regex string to filter result by name.
- output
File 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
[]. - name
Regex String - A regex string to filter result by name.
- output
File 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<Get
Anti Ddos Instances Instance> - A list of Anti-DDoS instances. Each element contains the following attributes
- Total
Count double - Total number of Anti-DDoS instances that satisfy the condition.
- Name
Regex string - Output
File string
- Id string
- The ID of the resource.
- Ids []string
- Instances
[]Get
Anti Ddos Instances Instance - A list of Anti-DDoS instances. Each element contains the following attributes
- Total
Count float64 - Total number of Anti-DDoS instances that satisfy the condition.
- Name
Regex string - Output
File string
- id String
- The ID of the resource.
- ids List<String>
- instances
List<Get
Anti Ddos Instances Instance> - A list of Anti-DDoS instances. Each element contains the following attributes
- total
Count Double - Total number of Anti-DDoS instances that satisfy the condition.
- name
Regex String - output
File String
- id string
- The ID of the resource.
- ids string[]
- instances
Get
Anti Ddos Instances Instance[] - A list of Anti-DDoS instances. Each element contains the following attributes
- total
Count number - Total number of Anti-DDoS instances that satisfy the condition.
- name
Regex string - output
File string
- id str
- The ID of the resource.
- ids Sequence[str]
- instances
Sequence[Get
Anti Ddos Instances Instance] - 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
- total
Count Number - Total number of Anti-DDoS instances that satisfy the condition.
- name
Regex String - output
File String
Supporting Types
GetAntiDdosInstancesInstance
- Area string
- The area where the instance is deployed. The value can be
EastChinaorNorthChina. - Bandwidth double
- Size of the service bandwidth, whose unit is Mbps.
- Base
Defence doubleValue - Size of the base defence bandwidth, whose unit is Gbps and minimum value is 30.
- Charge
Type string - The charge type of Anti-DDoS instance, possible values are year and month (Default: month).
- Create
Time string - The creation time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
- Data
Center string - The data center where the instance is deployed. The value can be
Zaozhuang,YangzhouorTaizhouforEastChinaarea, andShijiazhuangforNorthChinaarea. - Expire
Time string - The expiration time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
- Id string
- The ID of the resource.
- Max
Defence doubleValue - 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,StoppedandExpired.
- Area string
- The area where the instance is deployed. The value can be
EastChinaorNorthChina. - Bandwidth float64
- Size of the service bandwidth, whose unit is Mbps.
- Base
Defence float64Value - Size of the base defence bandwidth, whose unit is Gbps and minimum value is 30.
- Charge
Type string - The charge type of Anti-DDoS instance, possible values are year and month (Default: month).
- Create
Time string - The creation time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
- Data
Center string - The data center where the instance is deployed. The value can be
Zaozhuang,YangzhouorTaizhouforEastChinaarea, andShijiazhuangforNorthChinaarea. - Expire
Time string - The expiration time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
- Id string
- The ID of the resource.
- Max
Defence float64Value - 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,StoppedandExpired.
- area String
- The area where the instance is deployed. The value can be
EastChinaorNorthChina. - bandwidth Double
- Size of the service bandwidth, whose unit is Mbps.
- base
Defence DoubleValue - Size of the base defence bandwidth, whose unit is Gbps and minimum value is 30.
- charge
Type String - The charge type of Anti-DDoS instance, possible values are year and month (Default: month).
- create
Time String - The creation time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
- data
Center String - The data center where the instance is deployed. The value can be
Zaozhuang,YangzhouorTaizhouforEastChinaarea, andShijiazhuangforNorthChinaarea. - expire
Time String - The expiration time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
- id String
- The ID of the resource.
- max
Defence DoubleValue - 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,StoppedandExpired.
- area string
- The area where the instance is deployed. The value can be
EastChinaorNorthChina. - bandwidth number
- Size of the service bandwidth, whose unit is Mbps.
- base
Defence numberValue - Size of the base defence bandwidth, whose unit is Gbps and minimum value is 30.
- charge
Type string - The charge type of Anti-DDoS instance, possible values are year and month (Default: month).
- create
Time string - The creation time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
- data
Center string - The data center where the instance is deployed. The value can be
Zaozhuang,YangzhouorTaizhouforEastChinaarea, andShijiazhuangforNorthChinaarea. - expire
Time string - The expiration time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
- id string
- The ID of the resource.
- max
Defence numberValue - 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,StoppedandExpired.
- area str
- The area where the instance is deployed. The value can be
EastChinaorNorthChina. - bandwidth float
- Size of the service bandwidth, whose unit is Mbps.
- base_
defence_ floatvalue - 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,YangzhouorTaizhouforEastChinaarea, andShijiazhuangforNorthChinaarea. - 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_ floatvalue - 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,StoppedandExpired.
- area String
- The area where the instance is deployed. The value can be
EastChinaorNorthChina. - bandwidth Number
- Size of the service bandwidth, whose unit is Mbps.
- base
Defence NumberValue - Size of the base defence bandwidth, whose unit is Gbps and minimum value is 30.
- charge
Type String - The charge type of Anti-DDoS instance, possible values are year and month (Default: month).
- create
Time String - The creation time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
- data
Center String - The data center where the instance is deployed. The value can be
Zaozhuang,YangzhouorTaizhouforEastChinaarea, andShijiazhuangforNorthChinaarea. - expire
Time String - The expiration time of ucloud_anti_ddos_instance, formatted in RFC3339 time string.
- id String
- The ID of the resource.
- max
Defence NumberValue - 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,StoppedandExpired.
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloudTerraform Provider.
Viewing docs for ucloud 1.39.3
published on Wednesday, Mar 11, 2026 by ucloud
published on Wednesday, Mar 11, 2026 by ucloud
