ovh.IpLoadBalancing.LoadBalancer

Orders an IP load balancing.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Lbrlabs.PulumiPackage.Ovh;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var mycart = Ovh.Order.GetCart.Invoke(new()
    {
        OvhSubsidiary = "fr",
        Description = "mycart",
    });

    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",
        PaymentMean = "ovh-account",
        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 main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh/IpLoadBalancing"
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh/Order"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mycart, err := Order.GetCart(ctx, &order.GetCartArgs{
			OvhSubsidiary: "fr",
			Description:   pulumi.StringRef("mycart"),
		}, 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"),
			PaymentMean:   pulumi.String("ovh-account"),
			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
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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 mycart = OrderFunctions.getCart(GetCartArgs.builder()
            .ovhSubsidiary("fr")
            .description("mycart")
            .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")
            .paymentMean("ovh-account")
            .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());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh
import pulumi_ovh as ovh

mycart = ovh.Order.get_cart(ovh_subsidiary="fr",
    description="mycart")
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",
    payment_mean="ovh-account",
    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,
    )])
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@lbrlabs/pulumi-ovh";
import * as ovh from "@pulumi/ovh";

const mycart = ovh.Order.getCart({
    ovhSubsidiary: "fr",
    description: "mycart",
});
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",
    paymentMean: "ovh-account",
    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),
    }],
});
resources:
  iplb-lb1:
    type: ovh:IpLoadBalancing:LoadBalancer
    properties:
      ovhSubsidiary: ${mycart.ovhSubsidiary}
      displayName: my ip loadbalancing
      paymentMean: ovh-account
      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:
  mycart:
    fn::invoke:
      Function: ovh:Order:getCart
      Arguments:
        ovhSubsidiary: fr
        description: mycart
  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

PaymentMean string

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

Plan Lbrlabs.PulumiPackage.Ovh.IpLoadBalancing.Inputs.LoadBalancerPlanArgs

Product Plan to order

DisplayName string

Set the name displayed in ManagerV6 for your iplb (max 50 chars)

PlanOptions List<Lbrlabs.PulumiPackage.Ovh.IpLoadBalancing.Inputs.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

PaymentMean string

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

Plan LoadBalancerPlanArgs

Product Plan to order

DisplayName string

Set the name displayed in ManagerV6 for your iplb (max 50 chars)

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

paymentMean String

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

plan LoadBalancerPlanArgs

Product Plan to order

displayName String

Set the name displayed in ManagerV6 for your iplb (max 50 chars)

planOptions List<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

paymentMean string

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

plan LoadBalancerPlanArgs

Product Plan to order

displayName string

Set the name displayed in ManagerV6 for your iplb (max 50 chars)

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".

ovh_subsidiary str

OVHcloud Subsidiary

payment_mean str

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

plan LoadBalancerPlanArgs

Product Plan to order

display_name str

Set the name displayed in ManagerV6 for your iplb (max 50 chars)

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

paymentMean String

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

plan Property Map

Product Plan to order

displayName String

Set the name displayed in ManagerV6 for your iplb (max 50 chars)

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.

MetricsToken string

The metrics token associated with your IP load balancing

Offer string

The offer of your IP load balancing

OrderableZones List<Lbrlabs.PulumiPackage.Ovh.IpLoadBalancing.Outputs.LoadBalancerOrderableZone>

Available additional zone for your Load Balancer

Orders List<Lbrlabs.PulumiPackage.Ovh.IpLoadBalancing.Outputs.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.

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

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

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.

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

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,
        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.

MetricsToken string

The metrics token associated with your IP load balancing

Offer string

The offer of your IP load balancing

OrderableZones List<Lbrlabs.PulumiPackage.Ovh.IpLoadBalancing.Inputs.LoadBalancerOrderableZoneArgs>

Available additional zone for your Load Balancer

Orders List<Lbrlabs.PulumiPackage.Ovh.IpLoadBalancing.Inputs.LoadBalancerOrderArgs>

Details about an Order

OvhSubsidiary string

OVHcloud Subsidiary

PaymentMean string

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

Plan Lbrlabs.PulumiPackage.Ovh.IpLoadBalancing.Inputs.LoadBalancerPlanArgs

Product Plan to order

PlanOptions List<Lbrlabs.PulumiPackage.Ovh.IpLoadBalancing.Inputs.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 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.

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

PaymentMean string

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

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

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<LoadBalancerOrderableZoneArgs>

Available additional zone for your Load Balancer

orders List<LoadBalancerOrderArgs>

Details about an Order

ovhSubsidiary String

OVHcloud Subsidiary

paymentMean String

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

plan LoadBalancerPlanArgs

Product Plan to order

planOptions List<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 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

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 LoadBalancerOrderableZoneArgs[]

Available additional zone for your Load Balancer

orders LoadBalancerOrderArgs[]

Details about an Order

ovhSubsidiary string

OVHcloud Subsidiary

paymentMean string

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

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 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.

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

payment_mean str

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

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

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

paymentMean String

OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")

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

Date string

date

Details List<Lbrlabs.PulumiPackage.Ovh.IpLoadBalancing.Inputs.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

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

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

Duration string

duration

PlanCode string

Plan code

PricingMode string

Pricing model identifier

CatalogName string

Catalog name

Configurations List<Lbrlabs.PulumiPackage.Ovh.IpLoadBalancing.Inputs.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

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

Duration string

duration

PlanCode string

Plan code

PricingMode string

Pricing model identifier

CatalogName string

Catalog name

Configurations List<Lbrlabs.PulumiPackage.Ovh.IpLoadBalancing.Inputs.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

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

Import

ant

WARNING This resource orders an OVHcloud product for a long period of time and may generate heavy costs! Use with caution.

NOTE The “default-payment-mean” will scan your registered bank accounts, credit card and paypal payment means to find your default payment mean.

Package Details

Repository
ovh lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.