Ovh

v0.1.0 published on Friday, Nov 4, 2022 by lbrlabs

getFailoverIpAttach

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

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var myfailoverip = Ovh.CloudProject.GetFailoverIpAttach.Invoke(new()
    {
        Ip = "XXXXXX",
        ServiceName = "XXXXXX",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/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{
			Ip:          pulumi.StringRef("XXXXXX"),
			ServiceName: "XXXXXX",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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()
            .ip("XXXXXX")
            .serviceName("XXXXXX")
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

myfailoverip = ovh.CloudProject.get_failover_ip_attach(ip="XXXXXX",
    service_name="XXXXXX")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const myfailoverip = pulumi.output(ovh.CloudProject.getFailoverIpAttach({
    ip: "XXXXXX",
    serviceName: "XXXXXX",
}));
variables:
  myfailoverip:
    fn::invoke:
      Function: ovh:CloudProject:getFailoverIpAttach
      Arguments:
        ip: XXXXXX
        serviceName: 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 GetFailoverIpAttach(ctx *Context, args *GetFailoverIpAttachArgs, opts ...InvokeOption) (*GetFailoverIpAttachResult, error)
func GetFailoverIpAttachOutput(ctx *Context, args *GetFailoverIpAttachOutputArgs, opts ...InvokeOption) GetFailoverIpAttachResultOutput

> Note: This function is named GetFailoverIpAttach 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)
// Output-based functions aren't available in Java yet
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 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 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 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 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

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 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 string
GeoLoc string
Id string

The Ip id

Ip string

The Ip Address

Progress int

Current operation progress in percent

RoutedTo string
ServiceName string
Status string

Ip status, can be ok or operationPending

SubType string
Block string

The IP block

ContinentCode string
GeoLoc string
Id string

The Ip id

Ip string

The Ip Address

Progress int

Current operation progress in percent

RoutedTo string
ServiceName string
Status string

Ip status, can be ok or operationPending

SubType string
block String

The IP block

continentCode String
geoLoc String
id String

The Ip id

ip String

The Ip Address

progress Integer

Current operation progress in percent

routedTo String
serviceName String
status String

Ip status, can be ok or operationPending

subType String
block string

The IP block

continentCode string
geoLoc string
id string

The Ip id

ip string

The Ip Address

progress number

Current operation progress in percent

routedTo string
serviceName string
status string

Ip status, can be ok or operationPending

subType string
block str

The IP block

continent_code str
geo_loc str
id str

The Ip id

ip str

The Ip Address

progress int

Current operation progress in percent

routed_to str
service_name str
status str

Ip status, can be ok or operationPending

sub_type str
block String

The IP block

continentCode String
geoLoc String
id String

The Ip id

ip String

The Ip Address

progress Number

Current operation progress in percent

routedTo String
serviceName String
status String

Ip status, can be ok or operationPending

subType String

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.