1. Packages
  2. OVH
  3. API Docs
  4. Ip
  5. getMitigation
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

ovh.Ip.getMitigation

Explore with Pulumi AI

ovh logo
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

    Use this resource to retrieve information about an IP permanent mitigation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const mitigationData = ovh.Ip.getMitigation({
        ip: "XXXXXX",
        ipOnMitigation: "XXXXXX",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    mitigation_data = ovh.Ip.get_mitigation(ip="XXXXXX",
        ip_on_mitigation="XXXXXX")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Ip"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Ip.GetMitigation(ctx, &ip.GetMitigationArgs{
    			Ip:             "XXXXXX",
    			IpOnMitigation: "XXXXXX",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var mitigationData = Ovh.Ip.GetMitigation.Invoke(new()
        {
            Ip = "XXXXXX",
            IpOnMitigation = "XXXXXX",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Ip.IpFunctions;
    import com.pulumi.ovh.Ip.inputs.GetMitigationArgs;
    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 mitigationData = IpFunctions.getMitigation(GetMitigationArgs.builder()
                .ip("XXXXXX")
                .ipOnMitigation("XXXXXX")
                .build());
    
        }
    }
    
    variables:
      mitigationData:
        fn::invoke:
          Function: ovh:Ip:getMitigation
          Arguments:
            ip: XXXXXX
            ipOnMitigation: XXXXXX
    

    Using getMitigation

    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 getMitigation(args: GetMitigationArgs, opts?: InvokeOptions): Promise<GetMitigationResult>
    function getMitigationOutput(args: GetMitigationOutputArgs, opts?: InvokeOptions): Output<GetMitigationResult>
    def get_mitigation(ip: Optional[str] = None,
                       ip_on_mitigation: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetMitigationResult
    def get_mitigation_output(ip: Optional[pulumi.Input[str]] = None,
                       ip_on_mitigation: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetMitigationResult]
    func GetMitigation(ctx *Context, args *GetMitigationArgs, opts ...InvokeOption) (*GetMitigationResult, error)
    func GetMitigationOutput(ctx *Context, args *GetMitigationOutputArgs, opts ...InvokeOption) GetMitigationResultOutput

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

    public static class GetMitigation 
    {
        public static Task<GetMitigationResult> InvokeAsync(GetMitigationArgs args, InvokeOptions? opts = null)
        public static Output<GetMitigationResult> Invoke(GetMitigationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMitigationResult> getMitigation(GetMitigationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Ip/getMitigation:getMitigation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ip string
    The IP or the CIDR
    IpOnMitigation string
    IPv4 address
    Ip string
    The IP or the CIDR
    IpOnMitigation string
    IPv4 address
    ip String
    The IP or the CIDR
    ipOnMitigation String
    IPv4 address
    ip string
    The IP or the CIDR
    ipOnMitigation string
    IPv4 address
    ip str
    The IP or the CIDR
    ip_on_mitigation str
    IPv4 address
    ip String
    The IP or the CIDR
    ipOnMitigation String
    IPv4 address

    getMitigation Result

    The following output properties are available:

    Auto bool
    Set on true if the IP is on auto-mitigation
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    The IP or the CIDR
    IpOnMitigation string
    IPv4 address

    • permanent - Set on true if the IP is on permanent mitigation
    Permanent bool
    State string
    Current state of the IP on mitigation
    Auto bool
    Set on true if the IP is on auto-mitigation
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    The IP or the CIDR
    IpOnMitigation string
    IPv4 address

    • permanent - Set on true if the IP is on permanent mitigation
    Permanent bool
    State string
    Current state of the IP on mitigation
    auto Boolean
    Set on true if the IP is on auto-mitigation
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    The IP or the CIDR
    ipOnMitigation String
    IPv4 address

    • permanent - Set on true if the IP is on permanent mitigation
    permanent Boolean
    state String
    Current state of the IP on mitigation
    auto boolean
    Set on true if the IP is on auto-mitigation
    id string
    The provider-assigned unique ID for this managed resource.
    ip string
    The IP or the CIDR
    ipOnMitigation string
    IPv4 address

    • permanent - Set on true if the IP is on permanent mitigation
    permanent boolean
    state string
    Current state of the IP on mitigation
    auto bool
    Set on true if the IP is on auto-mitigation
    id str
    The provider-assigned unique ID for this managed resource.
    ip str
    The IP or the CIDR
    ip_on_mitigation str
    IPv4 address

    • permanent - Set on true if the IP is on permanent mitigation
    permanent bool
    state str
    Current state of the IP on mitigation
    auto Boolean
    Set on true if the IP is on auto-mitigation
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    The IP or the CIDR
    ipOnMitigation String
    IPv4 address

    • permanent - Set on true if the IP is on permanent mitigation
    permanent Boolean
    state String
    Current state of the IP on mitigation

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud