opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getAntiddosV1
Explore with Pulumi AI
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
Up-to-date reference of API arguments for EIP status you can get at documentation portal
Use this data source to query the status of EIP, regardless whether an EIP has been bound to an Elastic Cloud Server (ECS) or not.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const id = config.requireObject("id");
const antiddos = opentelekomcloud.getAntiddosV1({
floatingIpId: _var.eip_id,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
id = config.require_object("id")
antiddos = opentelekomcloud.get_antiddos_v1(floating_ip_id=var["eip_id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
id := cfg.RequireObject("id")
_, err := opentelekomcloud.LookupAntiddosV1(ctx, &opentelekomcloud.LookupAntiddosV1Args{
FloatingIpId: pulumi.StringRef(_var.Eip_id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var id = config.RequireObject<dynamic>("id");
var antiddos = Opentelekomcloud.GetAntiddosV1.Invoke(new()
{
FloatingIpId = @var.Eip_id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetAntiddosV1Args;
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 config = ctx.config();
final var id = config.get("id");
final var antiddos = OpentelekomcloudFunctions.getAntiddosV1(GetAntiddosV1Args.builder()
.floatingIpId(var_.eip_id())
.build());
}
}
configuration:
id:
type: dynamic
variables:
antiddos:
fn::invoke:
function: opentelekomcloud:getAntiddosV1
arguments:
floatingIpId: ${var.eip_id}
Using getAntiddosV1
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 getAntiddosV1(args: GetAntiddosV1Args, opts?: InvokeOptions): Promise<GetAntiddosV1Result>
function getAntiddosV1Output(args: GetAntiddosV1OutputArgs, opts?: InvokeOptions): Output<GetAntiddosV1Result>
def get_antiddos_v1(floating_ip_address: Optional[str] = None,
floating_ip_id: Optional[str] = None,
id: Optional[str] = None,
region: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAntiddosV1Result
def get_antiddos_v1_output(floating_ip_address: Optional[pulumi.Input[str]] = None,
floating_ip_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAntiddosV1Result]
func LookupAntiddosV1(ctx *Context, args *LookupAntiddosV1Args, opts ...InvokeOption) (*LookupAntiddosV1Result, error)
func LookupAntiddosV1Output(ctx *Context, args *LookupAntiddosV1OutputArgs, opts ...InvokeOption) LookupAntiddosV1ResultOutput
> Note: This function is named LookupAntiddosV1
in the Go SDK.
public static class GetAntiddosV1
{
public static Task<GetAntiddosV1Result> InvokeAsync(GetAntiddosV1Args args, InvokeOptions? opts = null)
public static Output<GetAntiddosV1Result> Invoke(GetAntiddosV1InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAntiddosV1Result> getAntiddosV1(GetAntiddosV1Args args, InvokeOptions options)
public static Output<GetAntiddosV1Result> getAntiddosV1(GetAntiddosV1Args args, InvokeOptions options)
fn::invoke:
function: opentelekomcloud:index/getAntiddosV1:getAntiddosV1
arguments:
# arguments dictionary
The following arguments are supported:
- Floating
Ip stringAddress - The Elastic IP address.
- Floating
Ip stringId - The Elastic IP ID.
- Id string
- Region string
- Status string
- The defense status.
- Floating
Ip stringAddress - The Elastic IP address.
- Floating
Ip stringId - The Elastic IP ID.
- Id string
- Region string
- Status string
- The defense status.
- floating
Ip StringAddress - The Elastic IP address.
- floating
Ip StringId - The Elastic IP ID.
- id String
- region String
- status String
- The defense status.
- floating
Ip stringAddress - The Elastic IP address.
- floating
Ip stringId - The Elastic IP ID.
- id string
- region string
- status string
- The defense status.
- floating_
ip_ straddress - The Elastic IP address.
- floating_
ip_ strid - The Elastic IP ID.
- id str
- region str
- status str
- The defense status.
- floating
Ip StringAddress - The Elastic IP address.
- floating
Ip StringId - The Elastic IP ID.
- id String
- region String
- status String
- The defense status.
getAntiddosV1 Result
The following output properties are available:
- Bps
Attacks List<double> - The Attack traffic in (bit/s).
- Bps
Ins List<double> - The inbound traffic in (bit/s).
- End
Times List<double> - The end time of cleaning and blackhole event.
- Floating
Ip stringAddress - Floating
Ip stringId - Id string
- Network
Type string - The EIP type.
- Period
Starts List<double> - The Start time.
- Pps
Attacks List<double> - The attack packet rate (number of packets per second).
- Pps
Ins List<double> - The inbound packet rate (number of packets per second).
- Region string
- Start
Times List<double> - The start time of cleaning and blackhole event.
- Status string
- Total
Bps List<double> - The total traffic.
- Total
Pps List<double> - The total packet rate.
- Traffic
Cleaning List<double>Statuses - The traffic cleaning status.
- Trigger
Bps List<double> - The traffic at the triggering point.
- Trigger
Http List<double>Pps - The HTTP request rate at the triggering point.
- Trigger
Pps List<double> - The packet rate at the triggering point.
- Bps
Attacks []float64 - The Attack traffic in (bit/s).
- Bps
Ins []float64 - The inbound traffic in (bit/s).
- End
Times []float64 - The end time of cleaning and blackhole event.
- Floating
Ip stringAddress - Floating
Ip stringId - Id string
- Network
Type string - The EIP type.
- Period
Starts []float64 - The Start time.
- Pps
Attacks []float64 - The attack packet rate (number of packets per second).
- Pps
Ins []float64 - The inbound packet rate (number of packets per second).
- Region string
- Start
Times []float64 - The start time of cleaning and blackhole event.
- Status string
- Total
Bps []float64 - The total traffic.
- Total
Pps []float64 - The total packet rate.
- Traffic
Cleaning []float64Statuses - The traffic cleaning status.
- Trigger
Bps []float64 - The traffic at the triggering point.
- Trigger
Http []float64Pps - The HTTP request rate at the triggering point.
- Trigger
Pps []float64 - The packet rate at the triggering point.
- bps
Attacks List<Double> - The Attack traffic in (bit/s).
- bps
Ins List<Double> - The inbound traffic in (bit/s).
- end
Times List<Double> - The end time of cleaning and blackhole event.
- floating
Ip StringAddress - floating
Ip StringId - id String
- network
Type String - The EIP type.
- period
Starts List<Double> - The Start time.
- pps
Attacks List<Double> - The attack packet rate (number of packets per second).
- pps
Ins List<Double> - The inbound packet rate (number of packets per second).
- region String
- start
Times List<Double> - The start time of cleaning and blackhole event.
- status String
- total
Bps List<Double> - The total traffic.
- total
Pps List<Double> - The total packet rate.
- traffic
Cleaning List<Double>Statuses - The traffic cleaning status.
- trigger
Bps List<Double> - The traffic at the triggering point.
- trigger
Http List<Double>Pps - The HTTP request rate at the triggering point.
- trigger
Pps List<Double> - The packet rate at the triggering point.
- bps
Attacks number[] - The Attack traffic in (bit/s).
- bps
Ins number[] - The inbound traffic in (bit/s).
- end
Times number[] - The end time of cleaning and blackhole event.
- floating
Ip stringAddress - floating
Ip stringId - id string
- network
Type string - The EIP type.
- period
Starts number[] - The Start time.
- pps
Attacks number[] - The attack packet rate (number of packets per second).
- pps
Ins number[] - The inbound packet rate (number of packets per second).
- region string
- start
Times number[] - The start time of cleaning and blackhole event.
- status string
- total
Bps number[] - The total traffic.
- total
Pps number[] - The total packet rate.
- traffic
Cleaning number[]Statuses - The traffic cleaning status.
- trigger
Bps number[] - The traffic at the triggering point.
- trigger
Http number[]Pps - The HTTP request rate at the triggering point.
- trigger
Pps number[] - The packet rate at the triggering point.
- bps_
attacks Sequence[float] - The Attack traffic in (bit/s).
- bps_
ins Sequence[float] - The inbound traffic in (bit/s).
- end_
times Sequence[float] - The end time of cleaning and blackhole event.
- floating_
ip_ straddress - floating_
ip_ strid - id str
- network_
type str - The EIP type.
- period_
starts Sequence[float] - The Start time.
- pps_
attacks Sequence[float] - The attack packet rate (number of packets per second).
- pps_
ins Sequence[float] - The inbound packet rate (number of packets per second).
- region str
- start_
times Sequence[float] - The start time of cleaning and blackhole event.
- status str
- total_
bps Sequence[float] - The total traffic.
- total_
pps Sequence[float] - The total packet rate.
- traffic_
cleaning_ Sequence[float]statuses - The traffic cleaning status.
- trigger_
bps Sequence[float] - The traffic at the triggering point.
- trigger_
http_ Sequence[float]pps - The HTTP request rate at the triggering point.
- trigger_
pps Sequence[float] - The packet rate at the triggering point.
- bps
Attacks List<Number> - The Attack traffic in (bit/s).
- bps
Ins List<Number> - The inbound traffic in (bit/s).
- end
Times List<Number> - The end time of cleaning and blackhole event.
- floating
Ip StringAddress - floating
Ip StringId - id String
- network
Type String - The EIP type.
- period
Starts List<Number> - The Start time.
- pps
Attacks List<Number> - The attack packet rate (number of packets per second).
- pps
Ins List<Number> - The inbound packet rate (number of packets per second).
- region String
- start
Times List<Number> - The start time of cleaning and blackhole event.
- status String
- total
Bps List<Number> - The total traffic.
- total
Pps List<Number> - The total packet rate.
- traffic
Cleaning List<Number>Statuses - The traffic cleaning status.
- trigger
Bps List<Number> - The traffic at the triggering point.
- trigger
Http List<Number>Pps - The HTTP request rate at the triggering point.
- trigger
Pps List<Number> - The packet rate at the triggering point.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud