ovh.CloudProject.FailoverIpAttach
Explore with Pulumi AI
Attaches a failover IP address to a compute instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const myfailoverip = new ovh.cloudproject.FailoverIpAttach("myfailoverip", {
ip: "XXXXXX",
routedTo: "XXXXXX",
serviceName: "XXXXXX",
});
import pulumi
import pulumi_ovh as ovh
myfailoverip = ovh.cloud_project.FailoverIpAttach("myfailoverip",
ip="XXXXXX",
routed_to="XXXXXX",
service_name="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
})
}
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 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());
}
}
resources:
myfailoverip:
type: ovh:CloudProject:FailoverIpAttach
properties:
ip: XXXXXX
routedTo: XXXXXX
serviceName: XXXXXX
Create FailoverIpAttach Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FailoverIpAttach(name: string, args: FailoverIpAttachArgs, opts?: CustomResourceOptions);
@overload
def FailoverIpAttach(resource_name: str,
args: FailoverIpAttachArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FailoverIpAttach(resource_name: str,
opts: Optional[ResourceOptions] = None,
service_name: Optional[str] = None,
block: Optional[str] = None,
continent_code: Optional[str] = None,
geo_loc: Optional[str] = None,
ip: Optional[str] = None,
routed_to: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var failoverIpAttachResource = new Ovh.CloudProject.FailoverIpAttach("failoverIpAttachResource", new()
{
ServiceName = "string",
Block = "string",
ContinentCode = "string",
GeoLoc = "string",
Ip = "string",
RoutedTo = "string",
});
example, err := CloudProject.NewFailoverIpAttach(ctx, "failoverIpAttachResource", &CloudProject.FailoverIpAttachArgs{
ServiceName: pulumi.String("string"),
Block: pulumi.String("string"),
ContinentCode: pulumi.String("string"),
GeoLoc: pulumi.String("string"),
Ip: pulumi.String("string"),
RoutedTo: pulumi.String("string"),
})
var failoverIpAttachResource = new FailoverIpAttach("failoverIpAttachResource", FailoverIpAttachArgs.builder()
.serviceName("string")
.block("string")
.continentCode("string")
.geoLoc("string")
.ip("string")
.routedTo("string")
.build());
failover_ip_attach_resource = ovh.cloud_project.FailoverIpAttach("failoverIpAttachResource",
service_name="string",
block="string",
continent_code="string",
geo_loc="string",
ip="string",
routed_to="string")
const failoverIpAttachResource = new ovh.cloudproject.FailoverIpAttach("failoverIpAttachResource", {
serviceName: "string",
block: "string",
continentCode: "string",
geoLoc: "string",
ip: "string",
routedTo: "string",
});
type: ovh:CloudProject:FailoverIpAttach
properties:
block: string
continentCode: string
geoLoc: string
ip: string
routedTo: string
serviceName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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
continentCode
- The Ip continent
- 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
continentCode
- The Ip continent
- 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
continentCode
- The Ip continent
- 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
continentCode
- The Ip continent
- 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
continentCode
- The Ip continent
- 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
continentCode
- The Ip continent
- 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
continentCode
- The Ip continent
- 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
routedTo
- Instance where ip is routed to
- 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
subType
- IP sub type, can becloud
orovh
- Sub
Type string - IP sub type
- Block string
- The IP block
continentCode
- The Ip continent
- 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
routedTo
- Instance where ip is routed to
- 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
subType
- IP sub type, can becloud
orovh
- Sub
Type string - IP sub type
- block String
- The IP block
continentCode
- The Ip continent
- 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
routedTo
- Instance where ip is routed to
- 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
subType
- IP sub type, can becloud
orovh
- sub
Type String - IP sub type
- block string
- The IP block
continentCode
- The Ip continent
- 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
routedTo
- Instance where ip is routed to
- 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
subType
- IP sub type, can becloud
orovh
- sub
Type string - IP sub type
- block str
- The IP block
continentCode
- The Ip continent
- 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
routedTo
- Instance where ip is routed to
- 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
subType
- IP sub type, can becloud
orovh
- sub_
type str - IP sub type
- block String
- The IP block
continentCode
- The Ip continent
- 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
routedTo
- Instance where ip is routed to
- 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
subType
- IP sub type, can becloud
orovh
- 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.