1. Packages
  2. OVH
  3. API Docs
  4. Vrack
  5. IpLoadbalancing
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

ovh.Vrack.IpLoadbalancing

Explore with Pulumi AI

ovh logo
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

    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/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.pulumi.ovh.Vrack.IpLoadbalancing;
    import com.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 string
    The unique name of the resource.
    args IpLoadbalancingArgs
    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 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 string
    The unique name of the resource.
    args IpLoadbalancingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IpLoadbalancingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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

    The IpLoadbalancing resource accepts the following input properties:

    LoadbalancingId string
    The id of the IP Load Balancing.
    ServiceName string
    The id of the vrack.
    LoadbalancingId string
    The id of the IP Load Balancing.
    ServiceName string
    The id of the vrack.
    LoadbalancingId String
    The id of the IP Load Balancing.
    serviceName String
    The id of the vrack.
    LoadbalancingId string
    The id of the IP Load Balancing.
    serviceName string
    The id of the vrack.
    loadbalancing_id str
    The id of the IP Load Balancing.
    service_name str
    The id of the vrack.
    LoadbalancingId String
    The id of the IP Load Balancing.
    serviceName String
    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)
    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:
    LoadbalancingId string
    The id of the IP Load Balancing.
    ServiceName string
    The id of the vrack.
    LoadbalancingId string
    The id of the IP Load Balancing.
    ServiceName string
    The id of the vrack.
    LoadbalancingId String
    The id of the IP Load Balancing.
    serviceName String
    The id of the vrack.
    LoadbalancingId string
    The id of the IP Load Balancing.
    serviceName string
    The id of the vrack.
    loadbalancing_id str
    The id of the IP Load Balancing.
    service_name str
    The id of the vrack.
    LoadbalancingId String
    The id of the IP Load Balancing.
    serviceName String
    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.
    ovh logo
    OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud