1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. getFailoverIpAttach
OVHCloud v2.8.0 published on Wednesday, Sep 24, 2025 by OVHcloud

ovh.CloudProject.getFailoverIpAttach

Start a Neo task
Explain and create an ovh.CloudProject.getFailoverIpAttach resource
ovh logo
OVHCloud v2.8.0 published on Wednesday, Sep 24, 2025 by OVHcloud

    Use this data source to get the details of a failover IP address of a service in a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const myFailoverIp = ovh.CloudProject.getFailoverIpAttach({
        serviceName: "XXXXXX",
        ip: "XXXXXX",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    my_failover_ip = ovh.CloudProject.get_failover_ip_attach(service_name="XXXXXX",
        ip="XXXXXX")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudproject.GetFailoverIpAttach(ctx, &cloudproject.GetFailoverIpAttachArgs{
    			ServiceName: "XXXXXX",
    			Ip:          pulumi.StringRef("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 myFailoverIp = Ovh.CloudProject.GetFailoverIpAttach.Invoke(new()
        {
            ServiceName = "XXXXXX",
            Ip = "XXXXXX",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
    import com.pulumi.ovh.CloudProject.inputs.GetFailoverIpAttachArgs;
    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 myFailoverIp = CloudProjectFunctions.getFailoverIpAttach(GetFailoverIpAttachArgs.builder()
                .serviceName("XXXXXX")
                .ip("XXXXXX")
                .build());
    
        }
    }
    
    variables:
      myFailoverIp:
        fn::invoke:
          function: ovh:CloudProject:getFailoverIpAttach
          arguments:
            serviceName: XXXXXX
            ip: XXXXXX
    

    Using getFailoverIpAttach

    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 getFailoverIpAttach(args: GetFailoverIpAttachArgs, opts?: InvokeOptions): Promise<GetFailoverIpAttachResult>
    function getFailoverIpAttachOutput(args: GetFailoverIpAttachOutputArgs, opts?: InvokeOptions): Output<GetFailoverIpAttachResult>
    def get_failover_ip_attach(block: Optional[str] = None,
                               continent_code: Optional[str] = None,
                               geo_loc: Optional[str] = None,
                               ip: Optional[str] = None,
                               routed_to: Optional[str] = None,
                               service_name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetFailoverIpAttachResult
    def get_failover_ip_attach_output(block: Optional[pulumi.Input[str]] = None,
                               continent_code: Optional[pulumi.Input[str]] = None,
                               geo_loc: Optional[pulumi.Input[str]] = None,
                               ip: Optional[pulumi.Input[str]] = None,
                               routed_to: Optional[pulumi.Input[str]] = None,
                               service_name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetFailoverIpAttachResult]
    func LookupFailoverIpAttach(ctx *Context, args *LookupFailoverIpAttachArgs, opts ...InvokeOption) (*LookupFailoverIpAttachResult, error)
    func LookupFailoverIpAttachOutput(ctx *Context, args *LookupFailoverIpAttachOutputArgs, opts ...InvokeOption) LookupFailoverIpAttachResultOutput

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

    public static class GetFailoverIpAttach 
    {
        public static Task<GetFailoverIpAttachResult> InvokeAsync(GetFailoverIpAttachArgs args, InvokeOptions? opts = null)
        public static Output<GetFailoverIpAttachResult> Invoke(GetFailoverIpAttachInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFailoverIpAttachResult> getFailoverIpAttach(GetFailoverIpAttachArgs args, InvokeOptions options)
    public static Output<GetFailoverIpAttachResult> getFailoverIpAttach(GetFailoverIpAttachArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:CloudProject/getFailoverIpAttach:getFailoverIpAttach
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    Block string
    The IP block

    • continentCode - The Ip continent
    ContinentCode string
    GeoLoc string
    Ip string
    The failover ip address to query
    RoutedTo string
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    Block string
    The IP block

    • continentCode - The Ip continent
    ContinentCode string
    GeoLoc string
    Ip string
    The failover ip address to query
    RoutedTo string
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    block String
    The IP block

    • continentCode - The Ip continent
    continentCode String
    geoLoc String
    ip String
    The failover ip address to query
    routedTo String
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    block string
    The IP block

    • continentCode - The Ip continent
    continentCode string
    geoLoc string
    ip string
    The failover ip address to query
    routedTo string
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    block str
    The IP block

    • continentCode - The Ip continent
    continent_code str
    geo_loc str
    ip str
    The failover ip address to query
    routed_to str
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    block String
    The IP block

    • continentCode - The Ip continent
    continentCode String
    geoLoc String
    ip String
    The failover ip address to query
    routedTo String

    getFailoverIpAttach Result

    The following output properties are available:

    Block string
    The IP block

    • continentCode - The Ip continent
    ContinentCode string
    GeoLoc string
    Id string
    The Ip id
    Ip string
    The Ip Address
    Progress int
    Current operation progress in percent

    • routedTo - Instance where ip is routed to
    RoutedTo string
    ServiceName string
    Status string
    Ip status, can be ok or operationPending

    • subType - IP sub type, can be cloud or ovh
    SubType string
    Block string
    The IP block

    • continentCode - The Ip continent
    ContinentCode string
    GeoLoc string
    Id string
    The Ip id
    Ip string
    The Ip Address
    Progress int
    Current operation progress in percent

    • routedTo - Instance where ip is routed to
    RoutedTo string
    ServiceName string
    Status string
    Ip status, can be ok or operationPending

    • subType - IP sub type, can be cloud or ovh
    SubType string
    block String
    The IP block

    • continentCode - The Ip continent
    continentCode String
    geoLoc String
    id String
    The Ip id
    ip String
    The Ip Address
    progress Integer
    Current operation progress in percent

    • routedTo - Instance where ip is routed to
    routedTo String
    serviceName String
    status String
    Ip status, can be ok or operationPending

    • subType - IP sub type, can be cloud or ovh
    subType String
    block string
    The IP block

    • continentCode - The Ip continent
    continentCode string
    geoLoc string
    id string
    The Ip id
    ip string
    The Ip Address
    progress number
    Current operation progress in percent

    • routedTo - Instance where ip is routed to
    routedTo string
    serviceName string
    status string
    Ip status, can be ok or operationPending

    • subType - IP sub type, can be cloud or ovh
    subType string
    block str
    The IP block

    • continentCode - The Ip continent
    continent_code str
    geo_loc str
    id str
    The Ip id
    ip str
    The Ip Address
    progress int
    Current operation progress in percent

    • routedTo - Instance where ip is routed to
    routed_to str
    service_name str
    status str
    Ip status, can be ok or operationPending

    • subType - IP sub type, can be cloud or ovh
    sub_type str
    block String
    The IP block

    • continentCode - The Ip continent
    continentCode String
    geoLoc String
    id String
    The Ip id
    ip String
    The Ip Address
    progress Number
    Current operation progress in percent

    • routedTo - Instance where ip is routed to
    routedTo String
    serviceName String
    status String
    Ip status, can be ok or operationPending

    • subType - IP sub type, can be cloud or ovh
    subType String

    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 v2.8.0 published on Wednesday, Sep 24, 2025 by OVHcloud
      Meet Neo: Your AI Platform Teammate