Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 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 dictionaryThe following arguments are supported:
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - Block string
- The IP block
continentCode- The Ip continent
- Continent
Code string - Geo
Loc string - Ip string
- The failover ip address to query
- Routed
To string
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - Block string
- The IP block
continentCode- The Ip continent
- Continent
Code string - Geo
Loc string - Ip string
- The failover ip address to query
- Routed
To string
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - block String
- The IP block
continentCode- The Ip continent
- continent
Code String - geo
Loc String - ip String
- The failover ip address to query
- routed
To String
- service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - block string
- The IP block
continentCode- The Ip continent
- continent
Code string - geo
Loc string - ip string
- The failover ip address to query
- routed
To string
- service_
name str - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment 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
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - block String
- The IP block
continentCode- The Ip continent
- continent
Code String - geo
Loc String - ip String
- The failover ip address to query
- routed
To String
getFailoverIpAttach Result
The following output properties are available:
- Block string
- The IP block
continentCode- The Ip continent
- Continent
Code string - Geo
Loc 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
- Routed
To string - Service
Name string - Status string
- Ip status, can be
okoroperationPendingsubType- IP sub type, can becloudorovh
- Sub
Type string
- Block string
- The IP block
continentCode- The Ip continent
- Continent
Code string - Geo
Loc 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
- Routed
To string - Service
Name string - Status string
- Ip status, can be
okoroperationPendingsubType- IP sub type, can becloudorovh
- Sub
Type string
- block String
- The IP block
continentCode- The Ip continent
- continent
Code String - geo
Loc 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
- routed
To String - service
Name String - status String
- Ip status, can be
okoroperationPendingsubType- IP sub type, can becloudorovh
- sub
Type String
- block string
- The IP block
continentCode- The Ip continent
- continent
Code string - geo
Loc 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
- routed
To string - service
Name string - status string
- Ip status, can be
okoroperationPendingsubType- IP sub type, can becloudorovh
- sub
Type 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
okoroperationPendingsubType- IP sub type, can becloudorovh
- sub_
type str
- block String
- The IP block
continentCode- The Ip continent
- continent
Code String - geo
Loc 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
- routed
To String - service
Name String - status String
- Ip status, can be
okoroperationPendingsubType- IP sub type, can becloudorovh
- sub
Type String
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
