ovh.Vrack.IpLoadbalancing
Explore with Pulumi AI
Attach an IP Load Balancing to a VRack.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const viplb = new ovh.vrack.IpLoadbalancing("viplb", {
LoadbalancingId: "yyy",
serviceName: "xxx",
});
import pulumi
import pulumi_ovh as ovh
viplb = ovh.vrack.IpLoadbalancing("viplb",
loadbalancing_id="yyy",
service_name="xxx")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/vrack"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vrack.NewIpLoadbalancing(ctx, "viplb", &vrack.IpLoadbalancingArgs{
LoadbalancingId: pulumi.String("yyy"),
ServiceName: pulumi.String("xxx"),
})
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 viplb = new Ovh.Vrack.IpLoadbalancing("viplb", new()
{
LoadbalancingId = "yyy",
ServiceName = "xxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.Vrack.IpLoadbalancing;
import com.ovhcloud.pulumi.ovh.Vrack.IpLoadbalancingArgs;
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 viplb = new IpLoadbalancing("viplb", IpLoadbalancingArgs.builder()
.LoadbalancingId("yyy")
.serviceName("xxx")
.build());
}
}
resources:
viplb:
type: ovh:Vrack:IpLoadbalancing
properties:
LoadbalancingId: yyy
serviceName: xxx
Create IpLoadbalancing Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpLoadbalancing(name: string, args: IpLoadbalancingArgs, opts?: CustomResourceOptions);
@overload
def IpLoadbalancing(resource_name: str,
args: IpLoadbalancingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IpLoadbalancing(resource_name: str,
opts: Optional[ResourceOptions] = None,
loadbalancing_id: Optional[str] = None,
service_name: Optional[str] = None)
func NewIpLoadbalancing(ctx *Context, name string, args IpLoadbalancingArgs, opts ...ResourceOption) (*IpLoadbalancing, error)
public IpLoadbalancing(string name, IpLoadbalancingArgs args, CustomResourceOptions? opts = null)
public IpLoadbalancing(String name, IpLoadbalancingArgs args)
public IpLoadbalancing(String name, IpLoadbalancingArgs args, CustomResourceOptions options)
type: ovh:Vrack:IpLoadbalancing
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. IpLoadbalancingArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. IpLoadbalancingArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. IpLoadbalancingArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. IpLoadbalancingArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. IpLoadbalancingArgs - 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 ipLoadbalancingResource = new Ovh.Vrack.IpLoadbalancing("ipLoadbalancingResource", new()
{
LoadbalancingId = "string",
ServiceName = "string",
});
example, err := Vrack.NewIpLoadbalancing(ctx, "ipLoadbalancingResource", &Vrack.IpLoadbalancingArgs{
LoadbalancingId: pulumi.String("string"),
ServiceName: pulumi.String("string"),
})
var ipLoadbalancingResource = new IpLoadbalancing("ipLoadbalancingResource", IpLoadbalancingArgs.builder()
.LoadbalancingId("string")
.serviceName("string")
.build());
ip_loadbalancing_resource = ovh.vrack.IpLoadbalancing("ipLoadbalancingResource",
loadbalancing_id="string",
service_name="string")
const ipLoadbalancingResource = new ovh.vrack.IpLoadbalancing("ipLoadbalancingResource", {
LoadbalancingId: "string",
serviceName: "string",
});
type: ovh:Vrack:IpLoadbalancing
properties:
LoadbalancingId: string
serviceName: string
IpLoadbalancing 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 IpLoadbalancing resource accepts the following input properties:
- Loadbalancing
Id This property is required. Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- Service
Name This property is required. Changes to this property will trigger replacement.
- The id of the vrack.
- Loadbalancing
Id This property is required. Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- Service
Name This property is required. Changes to this property will trigger replacement.
- The id of the vrack.
- Loadbalancing
Id This property is required. Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- service
Name This property is required. Changes to this property will trigger replacement.
- The id of the vrack.
- Loadbalancing
Id This property is required. Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- service
Name This property is required. Changes to this property will trigger replacement.
- The id of the vrack.
- loadbalancing_
id This property is required. Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- service_
name This property is required. Changes to this property will trigger replacement.
- The id of the vrack.
- Loadbalancing
Id This property is required. Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- service
Name This property is required. Changes to this property will trigger replacement.
- The id of the vrack.
Outputs
All input properties are implicitly available as output properties. Additionally, the IpLoadbalancing resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing IpLoadbalancing Resource
Get an existing IpLoadbalancing 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?: IpLoadbalancingState, opts?: CustomResourceOptions): IpLoadbalancing
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
loadbalancing_id: Optional[str] = None,
service_name: Optional[str] = None) -> IpLoadbalancing
func GetIpLoadbalancing(ctx *Context, name string, id IDInput, state *IpLoadbalancingState, opts ...ResourceOption) (*IpLoadbalancing, error)
public static IpLoadbalancing Get(string name, Input<string> id, IpLoadbalancingState? state, CustomResourceOptions? opts = null)
public static IpLoadbalancing get(String name, Output<String> id, IpLoadbalancingState state, CustomResourceOptions options)
resources: _: type: ovh:Vrack:IpLoadbalancing get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Loadbalancing
Id Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- Service
Name Changes to this property will trigger replacement.
- The id of the vrack.
- Loadbalancing
Id Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- Service
Name Changes to this property will trigger replacement.
- The id of the vrack.
- Loadbalancing
Id Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- service
Name Changes to this property will trigger replacement.
- The id of the vrack.
- Loadbalancing
Id Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- service
Name Changes to this property will trigger replacement.
- The id of the vrack.
- loadbalancing_
id Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- service_
name Changes to this property will trigger replacement.
- The id of the vrack.
- Loadbalancing
Id Changes to this property will trigger replacement.
- The id of the IP Load Balancing.
- service
Name Changes to this property will trigger replacement.
- The id of the vrack.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.