1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getAntiddosV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getAntiddosV1

Explore with Pulumi AI

opentelekomcloud logo
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:

    FloatingIpAddress string
    The Elastic IP address.
    FloatingIpId string
    The Elastic IP ID.
    Id string
    Region string
    Status string
    The defense status.
    FloatingIpAddress string
    The Elastic IP address.
    FloatingIpId string
    The Elastic IP ID.
    Id string
    Region string
    Status string
    The defense status.
    floatingIpAddress String
    The Elastic IP address.
    floatingIpId String
    The Elastic IP ID.
    id String
    region String
    status String
    The defense status.
    floatingIpAddress string
    The Elastic IP address.
    floatingIpId string
    The Elastic IP ID.
    id string
    region string
    status string
    The defense status.
    floating_ip_address str
    The Elastic IP address.
    floating_ip_id str
    The Elastic IP ID.
    id str
    region str
    status str
    The defense status.
    floatingIpAddress String
    The Elastic IP address.
    floatingIpId String
    The Elastic IP ID.
    id String
    region String
    status String
    The defense status.

    getAntiddosV1 Result

    The following output properties are available:

    BpsAttacks List<double>
    The Attack traffic in (bit/s).
    BpsIns List<double>
    The inbound traffic in (bit/s).
    EndTimes List<double>
    The end time of cleaning and blackhole event.
    FloatingIpAddress string
    FloatingIpId string
    Id string
    NetworkType string
    The EIP type.
    PeriodStarts List<double>
    The Start time.
    PpsAttacks List<double>
    The attack packet rate (number of packets per second).
    PpsIns List<double>
    The inbound packet rate (number of packets per second).
    Region string
    StartTimes List<double>
    The start time of cleaning and blackhole event.
    Status string
    TotalBps List<double>
    The total traffic.
    TotalPps List<double>
    The total packet rate.
    TrafficCleaningStatuses List<double>
    The traffic cleaning status.
    TriggerBps List<double>
    The traffic at the triggering point.
    TriggerHttpPps List<double>
    The HTTP request rate at the triggering point.
    TriggerPps List<double>
    The packet rate at the triggering point.
    BpsAttacks []float64
    The Attack traffic in (bit/s).
    BpsIns []float64
    The inbound traffic in (bit/s).
    EndTimes []float64
    The end time of cleaning and blackhole event.
    FloatingIpAddress string
    FloatingIpId string
    Id string
    NetworkType string
    The EIP type.
    PeriodStarts []float64
    The Start time.
    PpsAttacks []float64
    The attack packet rate (number of packets per second).
    PpsIns []float64
    The inbound packet rate (number of packets per second).
    Region string
    StartTimes []float64
    The start time of cleaning and blackhole event.
    Status string
    TotalBps []float64
    The total traffic.
    TotalPps []float64
    The total packet rate.
    TrafficCleaningStatuses []float64
    The traffic cleaning status.
    TriggerBps []float64
    The traffic at the triggering point.
    TriggerHttpPps []float64
    The HTTP request rate at the triggering point.
    TriggerPps []float64
    The packet rate at the triggering point.
    bpsAttacks List<Double>
    The Attack traffic in (bit/s).
    bpsIns List<Double>
    The inbound traffic in (bit/s).
    endTimes List<Double>
    The end time of cleaning and blackhole event.
    floatingIpAddress String
    floatingIpId String
    id String
    networkType String
    The EIP type.
    periodStarts List<Double>
    The Start time.
    ppsAttacks List<Double>
    The attack packet rate (number of packets per second).
    ppsIns List<Double>
    The inbound packet rate (number of packets per second).
    region String
    startTimes List<Double>
    The start time of cleaning and blackhole event.
    status String
    totalBps List<Double>
    The total traffic.
    totalPps List<Double>
    The total packet rate.
    trafficCleaningStatuses List<Double>
    The traffic cleaning status.
    triggerBps List<Double>
    The traffic at the triggering point.
    triggerHttpPps List<Double>
    The HTTP request rate at the triggering point.
    triggerPps List<Double>
    The packet rate at the triggering point.
    bpsAttacks number[]
    The Attack traffic in (bit/s).
    bpsIns number[]
    The inbound traffic in (bit/s).
    endTimes number[]
    The end time of cleaning and blackhole event.
    floatingIpAddress string
    floatingIpId string
    id string
    networkType string
    The EIP type.
    periodStarts number[]
    The Start time.
    ppsAttacks number[]
    The attack packet rate (number of packets per second).
    ppsIns number[]
    The inbound packet rate (number of packets per second).
    region string
    startTimes number[]
    The start time of cleaning and blackhole event.
    status string
    totalBps number[]
    The total traffic.
    totalPps number[]
    The total packet rate.
    trafficCleaningStatuses number[]
    The traffic cleaning status.
    triggerBps number[]
    The traffic at the triggering point.
    triggerHttpPps number[]
    The HTTP request rate at the triggering point.
    triggerPps 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_address str
    floating_ip_id str
    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_statuses Sequence[float]
    The traffic cleaning status.
    trigger_bps Sequence[float]
    The traffic at the triggering point.
    trigger_http_pps Sequence[float]
    The HTTP request rate at the triggering point.
    trigger_pps Sequence[float]
    The packet rate at the triggering point.
    bpsAttacks List<Number>
    The Attack traffic in (bit/s).
    bpsIns List<Number>
    The inbound traffic in (bit/s).
    endTimes List<Number>
    The end time of cleaning and blackhole event.
    floatingIpAddress String
    floatingIpId String
    id String
    networkType String
    The EIP type.
    periodStarts List<Number>
    The Start time.
    ppsAttacks List<Number>
    The attack packet rate (number of packets per second).
    ppsIns List<Number>
    The inbound packet rate (number of packets per second).
    region String
    startTimes List<Number>
    The start time of cleaning and blackhole event.
    status String
    totalBps List<Number>
    The total traffic.
    totalPps List<Number>
    The total packet rate.
    trafficCleaningStatuses List<Number>
    The traffic cleaning status.
    triggerBps List<Number>
    The traffic at the triggering point.
    triggerHttpPps List<Number>
    The HTTP request rate at the triggering point.
    triggerPps 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 logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud