IonosCloud v0.2.3 published on Tuesday, May 13, 2025 by ionos-cloud
ionoscloud.compute.getIPFailover
Start a Neo task
Explain and create an ionoscloud.compute.getIPFailover resource
The IP Failover data source can be used to search for and return an existing IP Failover object. You need to provide the datacenter_id and the id of the lan to get the ip failover object for the provided datacenter. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.compute.getIPFailover({
datacenterId: "datacenter_id",
lanId: "lan_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.compute.get_ip_failover(datacenter_id="datacenter_id",
lan_id="lan_id")
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.LookupIPFailover(ctx, &compute.LookupIPFailoverArgs{
DatacenterId: "datacenter_id",
LanId: "lan_id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.Compute.GetIPFailover.Invoke(new()
{
DatacenterId = "datacenter_id",
LanId = "lan_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.compute.ComputeFunctions;
import com.pulumi.ionoscloud.compute.inputs.GetIPFailoverArgs;
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 example = ComputeFunctions.getIPFailover(GetIPFailoverArgs.builder()
.datacenterId("datacenter_id")
.lanId("lan_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:compute:getIPFailover
arguments:
datacenterId: datacenter_id
lanId: lan_id
Using getIPFailover
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 getIPFailover(args: GetIPFailoverArgs, opts?: InvokeOptions): Promise<GetIPFailoverResult>
function getIPFailoverOutput(args: GetIPFailoverOutputArgs, opts?: InvokeOptions): Output<GetIPFailoverResult>def get_ip_failover(datacenter_id: Optional[str] = None,
ip: Optional[str] = None,
lan_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIPFailoverResult
def get_ip_failover_output(datacenter_id: Optional[pulumi.Input[str]] = None,
ip: Optional[pulumi.Input[str]] = None,
lan_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIPFailoverResult]func LookupIPFailover(ctx *Context, args *LookupIPFailoverArgs, opts ...InvokeOption) (*LookupIPFailoverResult, error)
func LookupIPFailoverOutput(ctx *Context, args *LookupIPFailoverOutputArgs, opts ...InvokeOption) LookupIPFailoverResultOutput> Note: This function is named LookupIPFailover in the Go SDK.
public static class GetIPFailover
{
public static Task<GetIPFailoverResult> InvokeAsync(GetIPFailoverArgs args, InvokeOptions? opts = null)
public static Output<GetIPFailoverResult> Invoke(GetIPFailoverInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIPFailoverResult> getIPFailover(GetIPFailoverArgs args, InvokeOptions options)
public static Output<GetIPFailoverResult> getIPFailover(GetIPFailoverArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:compute/getIPFailover:getIPFailover
arguments:
# arguments dictionaryThe following arguments are supported:
- Datacenter
Id string - The ID of the datacenter containing the ip failover datasource
- Ip string
- The reserved IP address to be used in the IP failover group.
- Lan
Id string - The id of the lan of which the IP failover belongs
- Datacenter
Id string - The ID of the datacenter containing the ip failover datasource
- Ip string
- The reserved IP address to be used in the IP failover group.
- Lan
Id string - The id of the lan of which the IP failover belongs
- datacenter
Id String - The ID of the datacenter containing the ip failover datasource
- ip String
- The reserved IP address to be used in the IP failover group.
- lan
Id String - The id of the lan of which the IP failover belongs
- datacenter
Id string - The ID of the datacenter containing the ip failover datasource
- ip string
- The reserved IP address to be used in the IP failover group.
- lan
Id string - The id of the lan of which the IP failover belongs
- datacenter_
id str - The ID of the datacenter containing the ip failover datasource
- ip str
- The reserved IP address to be used in the IP failover group.
- lan_
id str - The id of the lan of which the IP failover belongs
- datacenter
Id String - The ID of the datacenter containing the ip failover datasource
- ip String
- The reserved IP address to be used in the IP failover group.
- lan
Id String - The id of the lan of which the IP failover belongs
getIPFailover Result
The following output properties are available:
- Datacenter
Id string - The ID of a Data Center.
- Id string
- Ip string
- The reserved IP address to be used in the IP failover group.
- Lan
Id string - The ID of a LAN.
- Nicuuid string
- The ID of a NIC.
- Datacenter
Id string - The ID of a Data Center.
- Id string
- Ip string
- The reserved IP address to be used in the IP failover group.
- Lan
Id string - The ID of a LAN.
- Nicuuid string
- The ID of a NIC.
- datacenter
Id String - The ID of a Data Center.
- id String
- ip String
- The reserved IP address to be used in the IP failover group.
- lan
Id String - The ID of a LAN.
- nicuuid String
- The ID of a NIC.
- datacenter
Id string - The ID of a Data Center.
- id string
- ip string
- The reserved IP address to be used in the IP failover group.
- lan
Id string - The ID of a LAN.
- nicuuid string
- The ID of a NIC.
- datacenter_
id str - The ID of a Data Center.
- id str
- ip str
- The reserved IP address to be used in the IP failover group.
- lan_
id str - The ID of a LAN.
- nicuuid str
- The ID of a NIC.
- datacenter
Id String - The ID of a Data Center.
- id String
- ip String
- The reserved IP address to be used in the IP failover group.
- lan
Id String - The ID of a LAN.
- nicuuid String
- The ID of a NIC.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloudTerraform Provider.
