1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. FailoverIpAttach
OVHCloud v0.35.0 published on Monday, Nov 13, 2023 by OVHcloud

ovh.CloudProject.FailoverIpAttach

Explore with Pulumi AI

ovh logo
OVHCloud v0.35.0 published on Monday, Nov 13, 2023 by OVHcloud

    Attaches a failover IP address to a compute instance

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var myfailoverip = new Ovh.CloudProject.FailoverIpAttach("myfailoverip", new()
        {
            Ip = "XXXXXX",
            RoutedTo = "XXXXXX",
            ServiceName = "XXXXXX",
        });
    
    });
    
    package main
    
    import (
    	"github.com/ovh/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.NewFailoverIpAttach(ctx, "myfailoverip", &CloudProject.FailoverIpAttachArgs{
    			Ip:          pulumi.String("XXXXXX"),
    			RoutedTo:    pulumi.String("XXXXXX"),
    			ServiceName: pulumi.String("XXXXXX"),
    		})
    		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.FailoverIpAttach;
    import com.pulumi.ovh.CloudProject.FailoverIpAttachArgs;
    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) {
            var myfailoverip = new FailoverIpAttach("myfailoverip", FailoverIpAttachArgs.builder()        
                .ip("XXXXXX")
                .routedTo("XXXXXX")
                .serviceName("XXXXXX")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_ovh as ovh
    
    myfailoverip = ovh.cloud_project.FailoverIpAttach("myfailoverip",
        ip="XXXXXX",
        routed_to="XXXXXX",
        service_name="XXXXXX")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovh-devrelteam/pulumi-ovh";
    
    const myfailoverip = new ovh.cloudproject.FailoverIpAttach("myfailoverip", {
        ip: "XXXXXX",
        routedTo: "XXXXXX",
        serviceName: "XXXXXX",
    });
    
    resources:
      myfailoverip:
        type: ovh:CloudProject:FailoverIpAttach
        properties:
          ip: XXXXXX
          routedTo: XXXXXX
          serviceName: XXXXXX
    

    Create FailoverIpAttach Resource

    new FailoverIpAttach(name: string, args: FailoverIpAttachArgs, opts?: CustomResourceOptions);
    @overload
    def FailoverIpAttach(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         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)
    @overload
    def FailoverIpAttach(resource_name: str,
                         args: FailoverIpAttachArgs,
                         opts: Optional[ResourceOptions] = None)
    func NewFailoverIpAttach(ctx *Context, name string, args FailoverIpAttachArgs, opts ...ResourceOption) (*FailoverIpAttach, error)
    public FailoverIpAttach(string name, FailoverIpAttachArgs args, CustomResourceOptions? opts = null)
    public FailoverIpAttach(String name, FailoverIpAttachArgs args)
    public FailoverIpAttach(String name, FailoverIpAttachArgs args, CustomResourceOptions options)
    
    type: ovh:CloudProject:FailoverIpAttach
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args FailoverIpAttachArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FailoverIpAttachArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FailoverIpAttachArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FailoverIpAttachArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FailoverIpAttachArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    FailoverIpAttach Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The FailoverIpAttach resource accepts the following input properties:

    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

    Ip continent

    GeoLoc string

    Ip location

    Ip string

    The failover ip address to attach

    RoutedTo string

    The GUID of an instance to which the failover IP address is be attached

    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

    Ip continent

    GeoLoc string

    Ip location

    Ip string

    The failover ip address to attach

    RoutedTo string

    The GUID of an instance to which the failover IP address is be attached

    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

    Ip continent

    geoLoc String

    Ip location

    ip String

    The failover ip address to attach

    routedTo String

    The GUID of an instance to which the failover IP address is be attached

    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

    Ip continent

    geoLoc string

    Ip location

    ip string

    The failover ip address to attach

    routedTo string

    The GUID of an instance to which the failover IP address is be attached

    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

    Ip continent

    geo_loc str

    Ip location

    ip str

    The failover ip address to attach

    routed_to str

    The GUID of an instance to which the failover IP address is be attached

    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

    Ip continent

    geoLoc String

    Ip location

    ip String

    The failover ip address to attach

    routedTo String

    The GUID of an instance to which the failover IP address is be attached

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FailoverIpAttach resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Progress int

    Current operation progress in percent

    Status string

    Ip status, can be ok or operationPending

    SubType string

    IP sub type

    Id string

    The provider-assigned unique ID for this managed resource.

    Progress int

    Current operation progress in percent

    Status string

    Ip status, can be ok or operationPending

    SubType string

    IP sub type

    id String

    The provider-assigned unique ID for this managed resource.

    progress Integer

    Current operation progress in percent

    status String

    Ip status, can be ok or operationPending

    subType String

    IP sub type

    id string

    The provider-assigned unique ID for this managed resource.

    progress number

    Current operation progress in percent

    status string

    Ip status, can be ok or operationPending

    subType string

    IP sub type

    id str

    The provider-assigned unique ID for this managed resource.

    progress int

    Current operation progress in percent

    status str

    Ip status, can be ok or operationPending

    sub_type str

    IP sub type

    id String

    The provider-assigned unique ID for this managed resource.

    progress Number

    Current operation progress in percent

    status String

    Ip status, can be ok or operationPending

    subType String

    IP sub type

    Look up Existing FailoverIpAttach Resource

    Get an existing FailoverIpAttach resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FailoverIpAttachState, opts?: CustomResourceOptions): FailoverIpAttach
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            block: Optional[str] = None,
            continent_code: Optional[str] = None,
            geo_loc: Optional[str] = None,
            ip: Optional[str] = None,
            progress: Optional[int] = None,
            routed_to: Optional[str] = None,
            service_name: Optional[str] = None,
            status: Optional[str] = None,
            sub_type: Optional[str] = None) -> FailoverIpAttach
    func GetFailoverIpAttach(ctx *Context, name string, id IDInput, state *FailoverIpAttachState, opts ...ResourceOption) (*FailoverIpAttach, error)
    public static FailoverIpAttach Get(string name, Input<string> id, FailoverIpAttachState? state, CustomResourceOptions? opts = null)
    public static FailoverIpAttach get(String name, Output<String> id, FailoverIpAttachState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Block string

    The IP block

    ContinentCode string

    Ip continent

    GeoLoc string

    Ip location

    Ip string

    The failover ip address to attach

    Progress int

    Current operation progress in percent

    RoutedTo string

    The GUID of an instance to which the failover IP address is be attached

    ServiceName string

    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    Status string

    Ip status, can be ok or operationPending

    SubType string

    IP sub type

    Block string

    The IP block

    ContinentCode string

    Ip continent

    GeoLoc string

    Ip location

    Ip string

    The failover ip address to attach

    Progress int

    Current operation progress in percent

    RoutedTo string

    The GUID of an instance to which the failover IP address is be attached

    ServiceName string

    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    Status string

    Ip status, can be ok or operationPending

    SubType string

    IP sub type

    block String

    The IP block

    continentCode String

    Ip continent

    geoLoc String

    Ip location

    ip String

    The failover ip address to attach

    progress Integer

    Current operation progress in percent

    routedTo String

    The GUID of an instance to which the failover IP address is be attached

    serviceName String

    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    status String

    Ip status, can be ok or operationPending

    subType String

    IP sub type

    block string

    The IP block

    continentCode string

    Ip continent

    geoLoc string

    Ip location

    ip string

    The failover ip address to attach

    progress number

    Current operation progress in percent

    routedTo string

    The GUID of an instance to which the failover IP address is be attached

    serviceName string

    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    status string

    Ip status, can be ok or operationPending

    subType string

    IP sub type

    block str

    The IP block

    continent_code str

    Ip continent

    geo_loc str

    Ip location

    ip str

    The failover ip address to attach

    progress int

    Current operation progress in percent

    routed_to str

    The GUID of an instance to which the failover IP address is be attached

    service_name str

    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    status str

    Ip status, can be ok or operationPending

    sub_type str

    IP sub type

    block String

    The IP block

    continentCode String

    Ip continent

    geoLoc String

    Ip location

    ip String

    The failover ip address to attach

    progress Number

    Current operation progress in percent

    routedTo String

    The GUID of an instance to which the failover IP address is be attached

    serviceName String

    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    status String

    Ip status, can be ok or operationPending

    subType String

    IP sub type

    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.35.0 published on Monday, Nov 13, 2023 by OVHcloud