1. Packages
  2. OVH
  3. API Docs
  4. IpLoadBalancing
  5. LoadBalancer
OVHCloud v0.40.1 published on Tuesday, Mar 26, 2024 by OVHcloud

ovh.IpLoadBalancing.LoadBalancer

Explore with Pulumi AI

ovh logo
OVHCloud v0.40.1 published on Tuesday, Mar 26, 2024 by OVHcloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    import * as ovh from "@pulumi/ovh";
    
    const myaccount = ovh.Me.getMe({});
    const mycart = myaccount.then(myaccount => ovh.Order.getCart({
        ovhSubsidiary: myaccount.ovhSubsidiary,
    }));
    const iplb = mycart.then(mycart => ovh.Order.getCartProductPlan({
        cartId: mycart.id,
        priceCapacity: "renew",
        product: "ipLoadbalancing",
        planCode: "iplb-lb1",
    }));
    const bhs = Promise.all([iplb, iplb, iplb, iplb]).then(([iplb, iplb1, iplb2, iplb3]) => ovh.Order.getCartProductOptionsPlan({
        cartId: iplb.cartId,
        priceCapacity: iplb1.priceCapacity,
        product: iplb2.product,
        planCode: iplb3.planCode,
        optionsPlanCode: "iplb-zone-lb1-rbx",
    }));
    const iplb_lb1 = new ovh.iploadbalancing.LoadBalancer("iplb-lb1", {
        ovhSubsidiary: mycart.then(mycart => mycart.ovhSubsidiary),
        displayName: "my ip loadbalancing",
        plan: {
            duration: iplb.then(iplb => iplb.selectedPrices?.[0]?.duration),
            planCode: iplb.then(iplb => iplb.planCode),
            pricingMode: iplb.then(iplb => iplb.selectedPrices?.[0]?.pricingMode),
        },
        planOptions: [{
            duration: bhs.then(bhs => bhs.selectedPrices?.[0]?.duration),
            planCode: bhs.then(bhs => bhs.planCode),
            pricingMode: bhs.then(bhs => bhs.selectedPrices?.[0]?.pricingMode),
        }],
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    myaccount = ovh.Me.get_me()
    mycart = ovh.Order.get_cart(ovh_subsidiary=myaccount.ovh_subsidiary)
    iplb = ovh.Order.get_cart_product_plan(cart_id=mycart.id,
        price_capacity="renew",
        product="ipLoadbalancing",
        plan_code="iplb-lb1")
    bhs = ovh.Order.get_cart_product_options_plan(cart_id=iplb.cart_id,
        price_capacity=iplb.price_capacity,
        product=iplb.product,
        plan_code=iplb.plan_code,
        options_plan_code="iplb-zone-lb1-rbx")
    iplb_lb1 = ovh.ip_load_balancing.LoadBalancer("iplb-lb1",
        ovh_subsidiary=mycart.ovh_subsidiary,
        display_name="my ip loadbalancing",
        plan=ovh.ip_load_balancing.LoadBalancerPlanArgs(
            duration=iplb.selected_prices[0].duration,
            plan_code=iplb.plan_code,
            pricing_mode=iplb.selected_prices[0].pricing_mode,
        ),
        plan_options=[ovh.ip_load_balancing.LoadBalancerPlanOptionArgs(
            duration=bhs.selected_prices[0].duration,
            plan_code=bhs.plan_code,
            pricing_mode=bhs.selected_prices[0].pricing_mode,
        )])
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/IpLoadBalancing"
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Me"
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Order"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		myaccount, err := Me.GetMe(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		mycart, err := Order.GetCart(ctx, &order.GetCartArgs{
    			OvhSubsidiary: myaccount.OvhSubsidiary,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		iplb, err := Order.GetCartProductPlan(ctx, &order.GetCartProductPlanArgs{
    			CartId:        mycart.Id,
    			PriceCapacity: "renew",
    			Product:       "ipLoadbalancing",
    			PlanCode:      "iplb-lb1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		bhs, err := Order.GetCartProductOptionsPlan(ctx, &order.GetCartProductOptionsPlanArgs{
    			CartId:          iplb.CartId,
    			PriceCapacity:   iplb.PriceCapacity,
    			Product:         iplb.Product,
    			PlanCode:        iplb.PlanCode,
    			OptionsPlanCode: "iplb-zone-lb1-rbx",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = IpLoadBalancing.NewLoadBalancer(ctx, "iplb-lb1", &IpLoadBalancing.LoadBalancerArgs{
    			OvhSubsidiary: pulumi.String(mycart.OvhSubsidiary),
    			DisplayName:   pulumi.String("my ip loadbalancing"),
    			Plan: &iploadbalancing.LoadBalancerPlanArgs{
    				Duration:    pulumi.String(iplb.SelectedPrices[0].Duration),
    				PlanCode:    pulumi.String(iplb.PlanCode),
    				PricingMode: pulumi.String(iplb.SelectedPrices[0].PricingMode),
    			},
    			PlanOptions: iploadbalancing.LoadBalancerPlanOptionArray{
    				&iploadbalancing.LoadBalancerPlanOptionArgs{
    					Duration:    pulumi.String(bhs.SelectedPrices[0].Duration),
    					PlanCode:    pulumi.String(bhs.PlanCode),
    					PricingMode: pulumi.String(bhs.SelectedPrices[0].PricingMode),
    				},
    			},
    		})
    		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 myaccount = Ovh.Me.GetMe.Invoke();
    
        var mycart = Ovh.Order.GetCart.Invoke(new()
        {
            OvhSubsidiary = myaccount.Apply(getMeResult => getMeResult.OvhSubsidiary),
        });
    
        var iplb = Ovh.Order.GetCartProductPlan.Invoke(new()
        {
            CartId = mycart.Apply(getCartResult => getCartResult.Id),
            PriceCapacity = "renew",
            Product = "ipLoadbalancing",
            PlanCode = "iplb-lb1",
        });
    
        var bhs = Ovh.Order.GetCartProductOptionsPlan.Invoke(new()
        {
            CartId = iplb.Apply(getCartProductPlanResult => getCartProductPlanResult.CartId),
            PriceCapacity = iplb.Apply(getCartProductPlanResult => getCartProductPlanResult.PriceCapacity),
            Product = iplb.Apply(getCartProductPlanResult => getCartProductPlanResult.Product),
            PlanCode = iplb.Apply(getCartProductPlanResult => getCartProductPlanResult.PlanCode),
            OptionsPlanCode = "iplb-zone-lb1-rbx",
        });
    
        var iplb_lb1 = new Ovh.IpLoadBalancing.LoadBalancer("iplb-lb1", new()
        {
            OvhSubsidiary = mycart.Apply(getCartResult => getCartResult.OvhSubsidiary),
            DisplayName = "my ip loadbalancing",
            Plan = new Ovh.IpLoadBalancing.Inputs.LoadBalancerPlanArgs
            {
                Duration = iplb.Apply(getCartProductPlanResult => getCartProductPlanResult.SelectedPrices[0]?.Duration),
                PlanCode = iplb.Apply(getCartProductPlanResult => getCartProductPlanResult.PlanCode),
                PricingMode = iplb.Apply(getCartProductPlanResult => getCartProductPlanResult.SelectedPrices[0]?.PricingMode),
            },
            PlanOptions = new[]
            {
                new Ovh.IpLoadBalancing.Inputs.LoadBalancerPlanOptionArgs
                {
                    Duration = bhs.Apply(getCartProductOptionsPlanResult => getCartProductOptionsPlanResult.SelectedPrices[0]?.Duration),
                    PlanCode = bhs.Apply(getCartProductOptionsPlanResult => getCartProductOptionsPlanResult.PlanCode),
                    PricingMode = bhs.Apply(getCartProductOptionsPlanResult => getCartProductOptionsPlanResult.SelectedPrices[0]?.PricingMode),
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Me.MeFunctions;
    import com.pulumi.ovh.Order.OrderFunctions;
    import com.pulumi.ovh.Order.inputs.GetCartArgs;
    import com.pulumi.ovh.Order.inputs.GetCartProductPlanArgs;
    import com.pulumi.ovh.Order.inputs.GetCartProductOptionsPlanArgs;
    import com.pulumi.ovh.IpLoadBalancing.LoadBalancer;
    import com.pulumi.ovh.IpLoadBalancing.LoadBalancerArgs;
    import com.pulumi.ovh.IpLoadBalancing.inputs.LoadBalancerPlanArgs;
    import com.pulumi.ovh.IpLoadBalancing.inputs.LoadBalancerPlanOptionArgs;
    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) {
            final var myaccount = MeFunctions.getMe();
    
            final var mycart = OrderFunctions.getCart(GetCartArgs.builder()
                .ovhSubsidiary(myaccount.applyValue(getMeResult -> getMeResult.ovhSubsidiary()))
                .build());
    
            final var iplb = OrderFunctions.getCartProductPlan(GetCartProductPlanArgs.builder()
                .cartId(mycart.applyValue(getCartResult -> getCartResult.id()))
                .priceCapacity("renew")
                .product("ipLoadbalancing")
                .planCode("iplb-lb1")
                .build());
    
            final var bhs = OrderFunctions.getCartProductOptionsPlan(GetCartProductOptionsPlanArgs.builder()
                .cartId(iplb.applyValue(getCartProductPlanResult -> getCartProductPlanResult.cartId()))
                .priceCapacity(iplb.applyValue(getCartProductPlanResult -> getCartProductPlanResult.priceCapacity()))
                .product(iplb.applyValue(getCartProductPlanResult -> getCartProductPlanResult.product()))
                .planCode(iplb.applyValue(getCartProductPlanResult -> getCartProductPlanResult.planCode()))
                .optionsPlanCode("iplb-zone-lb1-rbx")
                .build());
    
            var iplb_lb1 = new LoadBalancer("iplb-lb1", LoadBalancerArgs.builder()        
                .ovhSubsidiary(mycart.applyValue(getCartResult -> getCartResult.ovhSubsidiary()))
                .displayName("my ip loadbalancing")
                .plan(LoadBalancerPlanArgs.builder()
                    .duration(iplb.applyValue(getCartProductPlanResult -> getCartProductPlanResult.selectedPrices()[0].duration()))
                    .planCode(iplb.applyValue(getCartProductPlanResult -> getCartProductPlanResult.planCode()))
                    .pricingMode(iplb.applyValue(getCartProductPlanResult -> getCartProductPlanResult.selectedPrices()[0].pricingMode()))
                    .build())
                .planOptions(LoadBalancerPlanOptionArgs.builder()
                    .duration(bhs.applyValue(getCartProductOptionsPlanResult -> getCartProductOptionsPlanResult.selectedPrices()[0].duration()))
                    .planCode(bhs.applyValue(getCartProductOptionsPlanResult -> getCartProductOptionsPlanResult.planCode()))
                    .pricingMode(bhs.applyValue(getCartProductOptionsPlanResult -> getCartProductOptionsPlanResult.selectedPrices()[0].pricingMode()))
                    .build())
                .build());
    
        }
    }
    
    resources:
      iplb-lb1:
        type: ovh:IpLoadBalancing:LoadBalancer
        properties:
          ovhSubsidiary: ${mycart.ovhSubsidiary}
          displayName: my ip loadbalancing
          plan:
            duration: ${iplb.selectedPrices[0].duration}
            planCode: ${iplb.planCode}
            pricingMode: ${iplb.selectedPrices[0].pricingMode}
          planOptions:
            - duration: ${bhs.selectedPrices[0].duration}
              planCode: ${bhs.planCode}
              pricingMode: ${bhs.selectedPrices[0].pricingMode}
    variables:
      myaccount:
        fn::invoke:
          Function: ovh:Me:getMe
          Arguments: {}
      mycart:
        fn::invoke:
          Function: ovh:Order:getCart
          Arguments:
            ovhSubsidiary: ${myaccount.ovhSubsidiary}
      iplb:
        fn::invoke:
          Function: ovh:Order:getCartProductPlan
          Arguments:
            cartId: ${mycart.id}
            priceCapacity: renew
            product: ipLoadbalancing
            planCode: iplb-lb1
      bhs:
        fn::invoke:
          Function: ovh:Order:getCartProductOptionsPlan
          Arguments:
            cartId: ${iplb.cartId}
            priceCapacity: ${iplb.priceCapacity}
            product: ${iplb.product}
            planCode: ${iplb.planCode}
            optionsPlanCode: iplb-zone-lb1-rbx
    

    Create LoadBalancer Resource

    new LoadBalancer(name: string, args: LoadBalancerArgs, opts?: CustomResourceOptions);
    @overload
    def LoadBalancer(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     display_name: Optional[str] = None,
                     ovh_subsidiary: Optional[str] = None,
                     payment_mean: Optional[str] = None,
                     plan: Optional[_iploadbalancing.LoadBalancerPlanArgs] = None,
                     plan_options: Optional[Sequence[_iploadbalancing.LoadBalancerPlanOptionArgs]] = None,
                     ssl_configuration: Optional[str] = None)
    @overload
    def LoadBalancer(resource_name: str,
                     args: LoadBalancerArgs,
                     opts: Optional[ResourceOptions] = None)
    func NewLoadBalancer(ctx *Context, name string, args LoadBalancerArgs, opts ...ResourceOption) (*LoadBalancer, error)
    public LoadBalancer(string name, LoadBalancerArgs args, CustomResourceOptions? opts = null)
    public LoadBalancer(String name, LoadBalancerArgs args)
    public LoadBalancer(String name, LoadBalancerArgs args, CustomResourceOptions options)
    
    type: ovh:IpLoadBalancing:LoadBalancer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args LoadBalancerArgs
    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 LoadBalancerArgs
    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 LoadBalancerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoadBalancerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoadBalancerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    LoadBalancer 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 LoadBalancer resource accepts the following input properties:

    OvhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    Plan LoadBalancerPlan
    Product Plan to order
    DisplayName string
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    PaymentMean string
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    PlanOptions List<LoadBalancerPlanOption>
    Product Plan to order
    SslConfiguration string
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".
    OvhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    Plan LoadBalancerPlanArgs
    Product Plan to order
    DisplayName string
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    PaymentMean string
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    PlanOptions []LoadBalancerPlanOptionArgs
    Product Plan to order
    SslConfiguration string
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".
    ovhSubsidiary String
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    plan LoadBalancerPlan
    Product Plan to order
    displayName String
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    paymentMean String
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    planOptions List<LoadBalancerPlanOption>
    Product Plan to order
    sslConfiguration String
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".
    ovhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    plan LoadBalancerPlan
    Product Plan to order
    displayName string
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    paymentMean string
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    planOptions LoadBalancerPlanOption[]
    Product Plan to order
    sslConfiguration string
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".
    ovh_subsidiary str
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    plan LoadBalancerPlanArgs
    Product Plan to order
    display_name str
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    payment_mean str
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    plan_options LoadBalancerPlanOptionArgs]
    Product Plan to order
    ssl_configuration str
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".
    ovhSubsidiary String
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    plan Property Map
    Product Plan to order
    displayName String
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    paymentMean String
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    planOptions List<Property Map>
    Product Plan to order
    sslConfiguration String
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LoadBalancer resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    IpLoadbalancing string
    Your IP load balancing
    Ipv4 string
    The IPV4 associated to your IP load balancing
    Ipv6 string
    The IPV6 associated to your IP load balancing. DEPRECATED.
    LoadBalancerURN string
    URN of the load balancer, used when writing IAM policies
    MetricsToken string
    The metrics token associated with your IP load balancing
    Offer string
    The offer of your IP load balancing
    OrderableZones List<LoadBalancerOrderableZone>
    Available additional zone for your Load Balancer
    Orders List<LoadBalancerOrder>
    Details about an Order
    ServiceName string
    The internal name of your IP load balancing
    State string
    Current state of your IP
    VrackEligibility bool
    Vrack eligibility
    VrackName string
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    Zones List<string>
    Location where your service is
    Id string
    The provider-assigned unique ID for this managed resource.
    IpLoadbalancing string
    Your IP load balancing
    Ipv4 string
    The IPV4 associated to your IP load balancing
    Ipv6 string
    The IPV6 associated to your IP load balancing. DEPRECATED.
    LoadBalancerURN string
    URN of the load balancer, used when writing IAM policies
    MetricsToken string
    The metrics token associated with your IP load balancing
    Offer string
    The offer of your IP load balancing
    OrderableZones []LoadBalancerOrderableZone
    Available additional zone for your Load Balancer
    Orders []LoadBalancerOrder
    Details about an Order
    ServiceName string
    The internal name of your IP load balancing
    State string
    Current state of your IP
    VrackEligibility bool
    Vrack eligibility
    VrackName string
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    Zones []string
    Location where your service is
    LoadBalancerURN String
    URN of the load balancer, used when writing IAM policies
    id String
    The provider-assigned unique ID for this managed resource.
    ipLoadbalancing String
    Your IP load balancing
    ipv4 String
    The IPV4 associated to your IP load balancing
    ipv6 String
    The IPV6 associated to your IP load balancing. DEPRECATED.
    metricsToken String
    The metrics token associated with your IP load balancing
    offer String
    The offer of your IP load balancing
    orderableZones List<LoadBalancerOrderableZone>
    Available additional zone for your Load Balancer
    orders List<LoadBalancerOrder>
    Details about an Order
    serviceName String
    The internal name of your IP load balancing
    state String
    Current state of your IP
    vrackEligibility Boolean
    Vrack eligibility
    vrackName String
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    zones List<String>
    Location where your service is
    LoadBalancerURN string
    URN of the load balancer, used when writing IAM policies
    id string
    The provider-assigned unique ID for this managed resource.
    ipLoadbalancing string
    Your IP load balancing
    ipv4 string
    The IPV4 associated to your IP load balancing
    ipv6 string
    The IPV6 associated to your IP load balancing. DEPRECATED.
    metricsToken string
    The metrics token associated with your IP load balancing
    offer string
    The offer of your IP load balancing
    orderableZones LoadBalancerOrderableZone[]
    Available additional zone for your Load Balancer
    orders LoadBalancerOrder[]
    Details about an Order
    serviceName string
    The internal name of your IP load balancing
    state string
    Current state of your IP
    vrackEligibility boolean
    Vrack eligibility
    vrackName string
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    zones string[]
    Location where your service is
    id str
    The provider-assigned unique ID for this managed resource.
    ip_loadbalancing str
    Your IP load balancing
    ipv4 str
    The IPV4 associated to your IP load balancing
    ipv6 str
    The IPV6 associated to your IP load balancing. DEPRECATED.
    load_balancer_urn str
    URN of the load balancer, used when writing IAM policies
    metrics_token str
    The metrics token associated with your IP load balancing
    offer str
    The offer of your IP load balancing
    orderable_zones LoadBalancerOrderableZone]
    Available additional zone for your Load Balancer
    orders LoadBalancerOrder]
    Details about an Order
    service_name str
    The internal name of your IP load balancing
    state str
    Current state of your IP
    vrack_eligibility bool
    Vrack eligibility
    vrack_name str
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    zones Sequence[str]
    Location where your service is
    LoadBalancerURN String
    URN of the load balancer, used when writing IAM policies
    id String
    The provider-assigned unique ID for this managed resource.
    ipLoadbalancing String
    Your IP load balancing
    ipv4 String
    The IPV4 associated to your IP load balancing
    ipv6 String
    The IPV6 associated to your IP load balancing. DEPRECATED.
    metricsToken String
    The metrics token associated with your IP load balancing
    offer String
    The offer of your IP load balancing
    orderableZones List<Property Map>
    Available additional zone for your Load Balancer
    orders List<Property Map>
    Details about an Order
    serviceName String
    The internal name of your IP load balancing
    state String
    Current state of your IP
    vrackEligibility Boolean
    Vrack eligibility
    vrackName String
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    zones List<String>
    Location where your service is

    Look up Existing LoadBalancer Resource

    Get an existing LoadBalancer 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?: LoadBalancerState, opts?: CustomResourceOptions): LoadBalancer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            load_balancer_urn: Optional[str] = None,
            display_name: Optional[str] = None,
            ip_loadbalancing: Optional[str] = None,
            ipv4: Optional[str] = None,
            ipv6: Optional[str] = None,
            metrics_token: Optional[str] = None,
            offer: Optional[str] = None,
            orderable_zones: Optional[Sequence[_iploadbalancing.LoadBalancerOrderableZoneArgs]] = None,
            orders: Optional[Sequence[_iploadbalancing.LoadBalancerOrderArgs]] = None,
            ovh_subsidiary: Optional[str] = None,
            payment_mean: Optional[str] = None,
            plan: Optional[_iploadbalancing.LoadBalancerPlanArgs] = None,
            plan_options: Optional[Sequence[_iploadbalancing.LoadBalancerPlanOptionArgs]] = None,
            service_name: Optional[str] = None,
            ssl_configuration: Optional[str] = None,
            state: Optional[str] = None,
            vrack_eligibility: Optional[bool] = None,
            vrack_name: Optional[str] = None,
            zones: Optional[Sequence[str]] = None) -> LoadBalancer
    func GetLoadBalancer(ctx *Context, name string, id IDInput, state *LoadBalancerState, opts ...ResourceOption) (*LoadBalancer, error)
    public static LoadBalancer Get(string name, Input<string> id, LoadBalancerState? state, CustomResourceOptions? opts = null)
    public static LoadBalancer get(String name, Output<String> id, LoadBalancerState 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:
    DisplayName string
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    IpLoadbalancing string
    Your IP load balancing
    Ipv4 string
    The IPV4 associated to your IP load balancing
    Ipv6 string
    The IPV6 associated to your IP load balancing. DEPRECATED.
    LoadBalancerURN string
    URN of the load balancer, used when writing IAM policies
    MetricsToken string
    The metrics token associated with your IP load balancing
    Offer string
    The offer of your IP load balancing
    OrderableZones List<LoadBalancerOrderableZone>
    Available additional zone for your Load Balancer
    Orders List<LoadBalancerOrder>
    Details about an Order
    OvhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    PaymentMean string
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    Plan LoadBalancerPlan
    Product Plan to order
    PlanOptions List<LoadBalancerPlanOption>
    Product Plan to order
    ServiceName string
    The internal name of your IP load balancing
    SslConfiguration string
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".
    State string
    Current state of your IP
    VrackEligibility bool
    Vrack eligibility
    VrackName string
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    Zones List<string>
    Location where your service is
    DisplayName string
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    IpLoadbalancing string
    Your IP load balancing
    Ipv4 string
    The IPV4 associated to your IP load balancing
    Ipv6 string
    The IPV6 associated to your IP load balancing. DEPRECATED.
    LoadBalancerURN string
    URN of the load balancer, used when writing IAM policies
    MetricsToken string
    The metrics token associated with your IP load balancing
    Offer string
    The offer of your IP load balancing
    OrderableZones []LoadBalancerOrderableZoneArgs
    Available additional zone for your Load Balancer
    Orders []LoadBalancerOrderArgs
    Details about an Order
    OvhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    PaymentMean string
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    Plan LoadBalancerPlanArgs
    Product Plan to order
    PlanOptions []LoadBalancerPlanOptionArgs
    Product Plan to order
    ServiceName string
    The internal name of your IP load balancing
    SslConfiguration string
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".
    State string
    Current state of your IP
    VrackEligibility bool
    Vrack eligibility
    VrackName string
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    Zones []string
    Location where your service is
    LoadBalancerURN String
    URN of the load balancer, used when writing IAM policies
    displayName String
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    ipLoadbalancing String
    Your IP load balancing
    ipv4 String
    The IPV4 associated to your IP load balancing
    ipv6 String
    The IPV6 associated to your IP load balancing. DEPRECATED.
    metricsToken String
    The metrics token associated with your IP load balancing
    offer String
    The offer of your IP load balancing
    orderableZones List<LoadBalancerOrderableZone>
    Available additional zone for your Load Balancer
    orders List<LoadBalancerOrder>
    Details about an Order
    ovhSubsidiary String
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    paymentMean String
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    plan LoadBalancerPlan
    Product Plan to order
    planOptions List<LoadBalancerPlanOption>
    Product Plan to order
    serviceName String
    The internal name of your IP load balancing
    sslConfiguration String
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".
    state String
    Current state of your IP
    vrackEligibility Boolean
    Vrack eligibility
    vrackName String
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    zones List<String>
    Location where your service is
    LoadBalancerURN string
    URN of the load balancer, used when writing IAM policies
    displayName string
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    ipLoadbalancing string
    Your IP load balancing
    ipv4 string
    The IPV4 associated to your IP load balancing
    ipv6 string
    The IPV6 associated to your IP load balancing. DEPRECATED.
    metricsToken string
    The metrics token associated with your IP load balancing
    offer string
    The offer of your IP load balancing
    orderableZones LoadBalancerOrderableZone[]
    Available additional zone for your Load Balancer
    orders LoadBalancerOrder[]
    Details about an Order
    ovhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    paymentMean string
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    plan LoadBalancerPlan
    Product Plan to order
    planOptions LoadBalancerPlanOption[]
    Product Plan to order
    serviceName string
    The internal name of your IP load balancing
    sslConfiguration string
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".
    state string
    Current state of your IP
    vrackEligibility boolean
    Vrack eligibility
    vrackName string
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    zones string[]
    Location where your service is
    display_name str
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    ip_loadbalancing str
    Your IP load balancing
    ipv4 str
    The IPV4 associated to your IP load balancing
    ipv6 str
    The IPV6 associated to your IP load balancing. DEPRECATED.
    load_balancer_urn str
    URN of the load balancer, used when writing IAM policies
    metrics_token str
    The metrics token associated with your IP load balancing
    offer str
    The offer of your IP load balancing
    orderable_zones LoadBalancerOrderableZoneArgs]
    Available additional zone for your Load Balancer
    orders LoadBalancerOrderArgs]
    Details about an Order
    ovh_subsidiary str
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    payment_mean str
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    plan LoadBalancerPlanArgs
    Product Plan to order
    plan_options LoadBalancerPlanOptionArgs]
    Product Plan to order
    service_name str
    The internal name of your IP load balancing
    ssl_configuration str
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".
    state str
    Current state of your IP
    vrack_eligibility bool
    Vrack eligibility
    vrack_name str
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    zones Sequence[str]
    Location where your service is
    LoadBalancerURN String
    URN of the load balancer, used when writing IAM policies
    displayName String
    Set the name displayed in ManagerV6 for your iplb (max 50 chars)
    ipLoadbalancing String
    Your IP load balancing
    ipv4 String
    The IPV4 associated to your IP load balancing
    ipv6 String
    The IPV6 associated to your IP load balancing. DEPRECATED.
    metricsToken String
    The metrics token associated with your IP load balancing
    offer String
    The offer of your IP load balancing
    orderableZones List<Property Map>
    Available additional zone for your Load Balancer
    orders List<Property Map>
    Details about an Order
    ovhSubsidiary String
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    paymentMean String
    Ovh payment mode

    Deprecated:This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.

    plan Property Map
    Product Plan to order
    planOptions List<Property Map>
    Product Plan to order
    serviceName String
    The internal name of your IP load balancing
    sslConfiguration String
    Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. one of "intermediate", "modern".
    state String
    Current state of your IP
    vrackEligibility Boolean
    Vrack eligibility
    vrackName String
    Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product
    zones List<String>
    Location where your service is

    Supporting Types

    LoadBalancerOrder, LoadBalancerOrderArgs

    Date string
    date
    Details List<LoadBalancerOrderDetail>
    Information about a Bill entry
    ExpirationDate string
    expiration date
    OrderId int
    order id
    Date string
    date
    Details []LoadBalancerOrderDetail
    Information about a Bill entry
    ExpirationDate string
    expiration date
    OrderId int
    order id
    date String
    date
    details List<LoadBalancerOrderDetail>
    Information about a Bill entry
    expirationDate String
    expiration date
    orderId Integer
    order id
    date string
    date
    details LoadBalancerOrderDetail[]
    Information about a Bill entry
    expirationDate string
    expiration date
    orderId number
    order id
    date str
    date
    details LoadBalancerOrderDetail]
    Information about a Bill entry
    expiration_date str
    expiration date
    order_id int
    order id
    date String
    date
    details List<Property Map>
    Information about a Bill entry
    expirationDate String
    expiration date
    orderId Number
    order id

    LoadBalancerOrderDetail, LoadBalancerOrderDetailArgs

    Description string
    description
    Domain string
    expiration date
    OrderDetailId int
    order detail id
    Quantity string
    quantity
    Description string
    description
    Domain string
    expiration date
    OrderDetailId int
    order detail id
    Quantity string
    quantity
    description String
    description
    domain String
    expiration date
    orderDetailId Integer
    order detail id
    quantity String
    quantity
    description string
    description
    domain string
    expiration date
    orderDetailId number
    order detail id
    quantity string
    quantity
    description str
    description
    domain str
    expiration date
    order_detail_id int
    order detail id
    quantity str
    quantity
    description String
    description
    domain String
    expiration date
    orderDetailId Number
    order detail id
    quantity String
    quantity

    LoadBalancerOrderableZone, LoadBalancerOrderableZoneArgs

    Name string
    The zone three letter code
    PlanCode string
    Plan code
    Name string
    The zone three letter code
    PlanCode string
    Plan code
    name String
    The zone three letter code
    planCode String
    Plan code
    name string
    The zone three letter code
    planCode string
    Plan code
    name str
    The zone three letter code
    plan_code str
    Plan code
    name String
    The zone three letter code
    planCode String
    Plan code

    LoadBalancerPlan, LoadBalancerPlanArgs

    Duration string
    duration
    PlanCode string
    Plan code
    PricingMode string
    Pricing model identifier
    CatalogName string
    Catalog name
    Configurations List<LoadBalancerPlanConfiguration>
    Representation of a configuration item for personalizing product
    Duration string
    duration
    PlanCode string
    Plan code
    PricingMode string
    Pricing model identifier
    CatalogName string
    Catalog name
    Configurations []LoadBalancerPlanConfiguration
    Representation of a configuration item for personalizing product
    duration String
    duration
    planCode String
    Plan code
    pricingMode String
    Pricing model identifier
    catalogName String
    Catalog name
    configurations List<LoadBalancerPlanConfiguration>
    Representation of a configuration item for personalizing product
    duration string
    duration
    planCode string
    Plan code
    pricingMode string
    Pricing model identifier
    catalogName string
    Catalog name
    configurations LoadBalancerPlanConfiguration[]
    Representation of a configuration item for personalizing product
    duration str
    duration
    plan_code str
    Plan code
    pricing_mode str
    Pricing model identifier
    catalog_name str
    Catalog name
    configurations LoadBalancerPlanConfiguration]
    Representation of a configuration item for personalizing product
    duration String
    duration
    planCode String
    Plan code
    pricingMode String
    Pricing model identifier
    catalogName String
    Catalog name
    configurations List<Property Map>
    Representation of a configuration item for personalizing product

    LoadBalancerPlanConfiguration, LoadBalancerPlanConfigurationArgs

    Label string
    Identifier of the resource
    Value string
    Path to the resource in API.OVH.COM
    Label string
    Identifier of the resource
    Value string
    Path to the resource in API.OVH.COM
    label String
    Identifier of the resource
    value String
    Path to the resource in API.OVH.COM
    label string
    Identifier of the resource
    value string
    Path to the resource in API.OVH.COM
    label str
    Identifier of the resource
    value str
    Path to the resource in API.OVH.COM
    label String
    Identifier of the resource
    value String
    Path to the resource in API.OVH.COM

    LoadBalancerPlanOption, LoadBalancerPlanOptionArgs

    Duration string
    duration
    PlanCode string
    Plan code
    PricingMode string
    Pricing model identifier
    CatalogName string
    Catalog name
    Configurations List<LoadBalancerPlanOptionConfiguration>
    Representation of a configuration item for personalizing product
    Duration string
    duration
    PlanCode string
    Plan code
    PricingMode string
    Pricing model identifier
    CatalogName string
    Catalog name
    Configurations []LoadBalancerPlanOptionConfiguration
    Representation of a configuration item for personalizing product
    duration String
    duration
    planCode String
    Plan code
    pricingMode String
    Pricing model identifier
    catalogName String
    Catalog name
    configurations List<LoadBalancerPlanOptionConfiguration>
    Representation of a configuration item for personalizing product
    duration string
    duration
    planCode string
    Plan code
    pricingMode string
    Pricing model identifier
    catalogName string
    Catalog name
    configurations LoadBalancerPlanOptionConfiguration[]
    Representation of a configuration item for personalizing product
    duration str
    duration
    plan_code str
    Plan code
    pricing_mode str
    Pricing model identifier
    catalog_name str
    Catalog name
    configurations LoadBalancerPlanOptionConfiguration]
    Representation of a configuration item for personalizing product
    duration String
    duration
    planCode String
    Plan code
    pricingMode String
    Pricing model identifier
    catalogName String
    Catalog name
    configurations List<Property Map>
    Representation of a configuration item for personalizing product

    LoadBalancerPlanOptionConfiguration, LoadBalancerPlanOptionConfigurationArgs

    Label string
    Identifier of the resource
    Value string
    Path to the resource in API.OVH.COM
    Label string
    Identifier of the resource
    Value string
    Path to the resource in API.OVH.COM
    label String
    Identifier of the resource
    value String
    Path to the resource in API.OVH.COM
    label string
    Identifier of the resource
    value string
    Path to the resource in API.OVH.COM
    label str
    Identifier of the resource
    value str
    Path to the resource in API.OVH.COM
    label String
    Identifier of the resource
    value String
    Path to the resource in API.OVH.COM

    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.40.1 published on Tuesday, Mar 26, 2024 by OVHcloud