ovh.CloudProject.FailoverIpAttach
Explore with Pulumi AI
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:
- Service
Name string The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.- Block string
The IP block
- Continent
Code string Ip continent
- Geo
Loc string Ip location
- Ip string
The failover ip address to attach
- Routed
To string The GUID of an instance to which the failover IP address is be attached
- Service
Name string The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.- Block string
The IP block
- Continent
Code string Ip continent
- Geo
Loc string Ip location
- Ip string
The failover ip address to attach
- Routed
To string The GUID of an instance to which the failover IP address is be attached
- service
Name String The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.- block String
The IP block
- continent
Code String Ip continent
- geo
Loc String Ip location
- ip String
The failover ip address to attach
- routed
To String The GUID of an instance to which the failover IP address is be attached
- service
Name string The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.- block string
The IP block
- continent
Code string Ip continent
- geo
Loc string Ip location
- ip string
The failover ip address to attach
- routed
To 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
- service
Name String The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.- block String
The IP block
- continent
Code String Ip continent
- geo
Loc String Ip location
- ip String
The failover ip address to attach
- routed
To 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:
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.
- Block string
The IP block
- Continent
Code string Ip continent
- Geo
Loc string Ip location
- Ip string
The failover ip address to attach
- Progress int
Current operation progress in percent
- Routed
To string The GUID of an instance to which the failover IP address is be attached
- Service
Name 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
oroperationPending
- Sub
Type string IP sub type
- Block string
The IP block
- Continent
Code string Ip continent
- Geo
Loc string Ip location
- Ip string
The failover ip address to attach
- Progress int
Current operation progress in percent
- Routed
To string The GUID of an instance to which the failover IP address is be attached
- Service
Name 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
oroperationPending
- Sub
Type string IP sub type
- block String
The IP block
- continent
Code String Ip continent
- geo
Loc String Ip location
- ip String
The failover ip address to attach
- progress Integer
Current operation progress in percent
- routed
To String The GUID of an instance to which the failover IP address is be attached
- service
Name 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
oroperationPending
- sub
Type String IP sub type
- block string
The IP block
- continent
Code string Ip continent
- geo
Loc string Ip location
- ip string
The failover ip address to attach
- progress number
Current operation progress in percent
- routed
To string The GUID of an instance to which the failover IP address is be attached
- service
Name 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
oroperationPending
- sub
Type 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
oroperationPending
- sub_
type str IP sub type
- block String
The IP block
- continent
Code String Ip continent
- geo
Loc String Ip location
- ip String
The failover ip address to attach
- progress Number
Current operation progress in percent
- routed
To String The GUID of an instance to which the failover IP address is be attached
- service
Name 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
oroperationPending
- sub
Type 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.