Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

CloudProjectFailoverIpAttach

Attaches a failover IP address to a compute instance

Example Usage

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

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

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.NewCloudProjectFailoverIpAttach(ctx, "myfailoverip", &ovh.CloudProjectFailoverIpAttachArgs{
			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.CloudProjectFailoverIpAttach;
import com.pulumi.ovh.CloudProjectFailoverIpAttachArgs;
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 CloudProjectFailoverIpAttach("myfailoverip", CloudProjectFailoverIpAttachArgs.builder()        
            .ip("XXXXXX")
            .routedTo("XXXXXX")
            .serviceName("XXXXXX")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh

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

const myfailoverip = new ovh.CloudProjectFailoverIpAttach("myfailoverip", {
    ip: "XXXXXX",
    routedTo: "XXXXXX",
    serviceName: "XXXXXX",
});
resources:
  myfailoverip:
    type: ovh:CloudProjectFailoverIpAttach
    properties:
      ip: XXXXXX
      routedTo: XXXXXX
      serviceName: XXXXXX

Create a CloudProjectFailoverIpAttach Resource

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

name string
The unique name of the resource.
args CloudProjectFailoverIpAttachArgs
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 CloudProjectFailoverIpAttachArgs
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 CloudProjectFailoverIpAttachArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CloudProjectFailoverIpAttachArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CloudProjectFailoverIpAttachArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CloudProjectFailoverIpAttach 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 CloudProjectFailoverIpAttach 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 CloudProjectFailoverIpAttach 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 an Existing CloudProjectFailoverIpAttach Resource

Get an existing CloudProjectFailoverIpAttach 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?: CloudProjectFailoverIpAttachState, opts?: CustomResourceOptions): CloudProjectFailoverIpAttach
@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) -> CloudProjectFailoverIpAttach
func GetCloudProjectFailoverIpAttach(ctx *Context, name string, id IDInput, state *CloudProjectFailoverIpAttachState, opts ...ResourceOption) (*CloudProjectFailoverIpAttach, error)
public static CloudProjectFailoverIpAttach Get(string name, Input<string> id, CloudProjectFailoverIpAttachState? state, CustomResourceOptions? opts = null)
public static CloudProjectFailoverIpAttach get(String name, Output<String> id, CloudProjectFailoverIpAttachState 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
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.