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:
- Ovh
Subsidiary string OVHcloud Subsidiary
- Payment
Mean string OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")
- Plan
Lbrlabs.
Pulumi Package. Ovh. Ip Load Balancing. Inputs. Load Balancer Plan Args Product Plan to order
- Display
Name string Set the name displayed in ManagerV6 for your iplb (max 50 chars)
- Plan
Options List<Lbrlabs.Pulumi Package. Ovh. Ip Load Balancing. Inputs. Load Balancer Plan Option Args> Product Plan to order
- Ssl
Configuration 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 string OVHcloud Subsidiary
- Payment
Mean string OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")
- Plan
Load
Balancer Plan Args Product Plan to order
- Display
Name string Set the name displayed in ManagerV6 for your iplb (max 50 chars)
- Plan
Options []LoadBalancer Plan Option Args Product Plan to order
- Ssl
Configuration 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 String OVHcloud Subsidiary
- payment
Mean String OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")
- plan
Load
Balancer Plan Args Product Plan to order
- display
Name String Set the name displayed in ManagerV6 for your iplb (max 50 chars)
- plan
Options List<LoadBalancer Plan Option Args> Product Plan to order
- ssl
Configuration 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 string OVHcloud Subsidiary
- payment
Mean string OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")
- plan
Load
Balancer Plan Args Product Plan to order
- display
Name string Set the name displayed in ManagerV6 for your iplb (max 50 chars)
- plan
Options LoadBalancer Plan Option Args[] Product Plan to order
- ssl
Configuration 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
Load
Balancer Plan Args Product Plan to order
- display_
name str Set the name displayed in ManagerV6 for your iplb (max 50 chars)
- plan_
options LoadBalancer Plan Option Args] 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".
- ovh
Subsidiary String OVHcloud Subsidiary
- payment
Mean String OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")
- plan Property Map
Product Plan to order
- display
Name String Set the name displayed in ManagerV6 for your iplb (max 50 chars)
- plan
Options List<Property Map> Product Plan to order
- ssl
Configuration 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.
- Ip
Loadbalancing 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.
- Metrics
Token string The metrics token associated with your IP load balancing
- Offer string
The offer of your IP load balancing
- Orderable
Zones List<Lbrlabs.Pulumi Package. Ovh. Ip Load Balancing. Outputs. Load Balancer Orderable Zone> Available additional zone for your Load Balancer
- Orders
List<Lbrlabs.
Pulumi Package. Ovh. Ip Load Balancing. Outputs. Load Balancer Order> Details about an Order
- Service
Name string The internal name of your IP load balancing
- State string
Current state of your IP
- Vrack
Eligibility bool Vrack eligibility
- Vrack
Name 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.
- Ip
Loadbalancing 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.
- Metrics
Token string The metrics token associated with your IP load balancing
- Offer string
The offer of your IP load balancing
- Orderable
Zones []LoadBalancer Orderable Zone Available additional zone for your Load Balancer
- Orders
[]Load
Balancer Order Details about an Order
- Service
Name string The internal name of your IP load balancing
- State string
Current state of your IP
- Vrack
Eligibility bool Vrack eligibility
- Vrack
Name 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.
- ip
Loadbalancing 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.
- metrics
Token String The metrics token associated with your IP load balancing
- offer String
The offer of your IP load balancing
- orderable
Zones List<LoadBalancer Orderable Zone> Available additional zone for your Load Balancer
- orders
List<Load
Balancer Order> Details about an Order
- service
Name String The internal name of your IP load balancing
- state String
Current state of your IP
- vrack
Eligibility Boolean Vrack eligibility
- vrack
Name 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.
- ip
Loadbalancing 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.
- metrics
Token string The metrics token associated with your IP load balancing
- offer string
The offer of your IP load balancing
- orderable
Zones LoadBalancer Orderable Zone[] Available additional zone for your Load Balancer
- orders
Load
Balancer Order[] Details about an Order
- service
Name string The internal name of your IP load balancing
- state string
Current state of your IP
- vrack
Eligibility boolean Vrack eligibility
- vrack
Name 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 LoadBalancer Orderable Zone] Available additional zone for your Load Balancer
- orders
Load
Balancer Order] 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.
- ip
Loadbalancing 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.
- metrics
Token String The metrics token associated with your IP load balancing
- offer String
The offer of your IP load balancing
- orderable
Zones List<Property Map> Available additional zone for your Load Balancer
- orders List<Property Map>
Details about an Order
- service
Name String The internal name of your IP load balancing
- state String
Current state of your IP
- vrack
Eligibility Boolean Vrack eligibility
- vrack
Name 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.
- Display
Name string Set the name displayed in ManagerV6 for your iplb (max 50 chars)
- Ip
Loadbalancing 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.
- Metrics
Token string The metrics token associated with your IP load balancing
- Offer string
The offer of your IP load balancing
- Orderable
Zones List<Lbrlabs.Pulumi Package. Ovh. Ip Load Balancing. Inputs. Load Balancer Orderable Zone Args> Available additional zone for your Load Balancer
- Orders
List<Lbrlabs.
Pulumi Package. Ovh. Ip Load Balancing. Inputs. Load Balancer Order Args> Details about an Order
- Ovh
Subsidiary string OVHcloud Subsidiary
- Payment
Mean string OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")
- Plan
Lbrlabs.
Pulumi Package. Ovh. Ip Load Balancing. Inputs. Load Balancer Plan Args Product Plan to order
- Plan
Options List<Lbrlabs.Pulumi Package. Ovh. Ip Load Balancing. Inputs. Load Balancer Plan Option Args> Product Plan to order
- Service
Name string The internal name of your IP load balancing
- Ssl
Configuration 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
- Vrack
Eligibility bool Vrack eligibility
- Vrack
Name 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
- Display
Name string Set the name displayed in ManagerV6 for your iplb (max 50 chars)
- Ip
Loadbalancing 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.
- Metrics
Token string The metrics token associated with your IP load balancing
- Offer string
The offer of your IP load balancing
- Orderable
Zones []LoadBalancer Orderable Zone Args Available additional zone for your Load Balancer
- Orders
[]Load
Balancer Order Args Details about an Order
- Ovh
Subsidiary string OVHcloud Subsidiary
- Payment
Mean string OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")
- Plan
Load
Balancer Plan Args Product Plan to order
- Plan
Options []LoadBalancer Plan Option Args Product Plan to order
- Service
Name string The internal name of your IP load balancing
- Ssl
Configuration 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
- Vrack
Eligibility bool Vrack eligibility
- Vrack
Name 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 String Set the name displayed in ManagerV6 for your iplb (max 50 chars)
- ip
Loadbalancing 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.
- metrics
Token String The metrics token associated with your IP load balancing
- offer String
The offer of your IP load balancing
- orderable
Zones List<LoadBalancer Orderable Zone Args> Available additional zone for your Load Balancer
- orders
List<Load
Balancer Order Args> Details about an Order
- ovh
Subsidiary String OVHcloud Subsidiary
- payment
Mean String OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")
- plan
Load
Balancer Plan Args Product Plan to order
- plan
Options List<LoadBalancer Plan Option Args> Product Plan to order
- service
Name String The internal name of your IP load balancing
- ssl
Configuration 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
- vrack
Eligibility Boolean Vrack eligibility
- vrack
Name 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
- display
Name string Set the name displayed in ManagerV6 for your iplb (max 50 chars)
- ip
Loadbalancing 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.
- metrics
Token string The metrics token associated with your IP load balancing
- offer string
The offer of your IP load balancing
- orderable
Zones LoadBalancer Orderable Zone Args[] Available additional zone for your Load Balancer
- orders
Load
Balancer Order Args[] Details about an Order
- ovh
Subsidiary string OVHcloud Subsidiary
- payment
Mean string OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")
- plan
Load
Balancer Plan Args Product Plan to order
- plan
Options LoadBalancer Plan Option Args[] Product Plan to order
- service
Name string The internal name of your IP load balancing
- ssl
Configuration 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
- vrack
Eligibility boolean Vrack eligibility
- vrack
Name 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 LoadBalancer Orderable Zone Args] Available additional zone for your Load Balancer
- orders
Load
Balancer Order Args] Details about an Order
- ovh_
subsidiary str OVHcloud Subsidiary
- payment_
mean str OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")
- plan
Load
Balancer Plan Args Product Plan to order
- plan_
options LoadBalancer Plan Option Args] 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
- display
Name String Set the name displayed in ManagerV6 for your iplb (max 50 chars)
- ip
Loadbalancing 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.
- metrics
Token String The metrics token associated with your IP load balancing
- offer String
The offer of your IP load balancing
- orderable
Zones List<Property Map> Available additional zone for your Load Balancer
- orders List<Property Map>
Details about an Order
- ovh
Subsidiary String OVHcloud Subsidiary
- payment
Mean String OVHcloud payment mode (One of "default-payment-mean", "fidelity", "ovh-account")
- plan Property Map
Product Plan to order
- plan
Options List<Property Map> Product Plan to order
- service
Name String The internal name of your IP load balancing
- ssl
Configuration 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
- vrack
Eligibility Boolean Vrack eligibility
- vrack
Name 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.
Pulumi Package. Ovh. Ip Load Balancing. Inputs. Load Balancer Order Detail> Information about a Bill entry
- Expiration
Date string expiration date
- Order
Id int order id
- Date string
date
- Details
[]Load
Balancer Order Detail Information about a Bill entry
- Expiration
Date string expiration date
- Order
Id int order id
- date String
date
- details
List<Load
Balancer Order Detail> Information about a Bill entry
- expiration
Date String expiration date
- order
Id Integer order id
- date string
date
- details
Load
Balancer Order Detail[] Information about a Bill entry
- expiration
Date string expiration date
- order
Id number order id
- date str
date
- details
Load
Balancer Order Detail] 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
- expiration
Date String expiration date
- order
Id Number order id
LoadBalancerOrderDetail
- Description string
description
- Domain string
expiration date
- Order
Detail intId order detail id
- Quantity string
quantity
- Description string
description
- Domain string
expiration date
- Order
Detail intId order detail id
- Quantity string
quantity
- description String
description
- domain String
expiration date
- order
Detail IntegerId order detail id
- quantity String
quantity
- description string
description
- domain string
expiration date
- order
Detail numberId order detail id
- quantity string
quantity
- description str
description
- domain str
expiration date
- order_
detail_ intid order detail id
- quantity str
quantity
- description String
description
- domain String
expiration date
- order
Detail NumberId order detail id
- quantity String
quantity
LoadBalancerOrderableZone
LoadBalancerPlan
- Duration string
duration
- Plan
Code string Plan code
- Pricing
Mode string Pricing model identifier
- Catalog
Name string Catalog name
- Configurations
List<Lbrlabs.
Pulumi Package. Ovh. Ip Load Balancing. Inputs. Load Balancer Plan Configuration> Representation of a configuration item for personalizing product
- Duration string
duration
- Plan
Code string Plan code
- Pricing
Mode string Pricing model identifier
- Catalog
Name string Catalog name
- Configurations
[]Load
Balancer Plan Configuration Representation of a configuration item for personalizing product
- duration String
duration
- plan
Code String Plan code
- pricing
Mode String Pricing model identifier
- catalog
Name String Catalog name
- configurations
List<Load
Balancer Plan Configuration> Representation of a configuration item for personalizing product
- duration string
duration
- plan
Code string Plan code
- pricing
Mode string Pricing model identifier
- catalog
Name string Catalog name
- configurations
Load
Balancer Plan Configuration[] 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
Load
Balancer Plan Configuration] Representation of a configuration item for personalizing product
- duration String
duration
- plan
Code String Plan code
- pricing
Mode String Pricing model identifier
- catalog
Name String Catalog name
- configurations List<Property Map>
Representation of a configuration item for personalizing product
LoadBalancerPlanConfiguration
LoadBalancerPlanOption
- Duration string
duration
- Plan
Code string Plan code
- Pricing
Mode string Pricing model identifier
- Catalog
Name string Catalog name
- Configurations
List<Lbrlabs.
Pulumi Package. Ovh. Ip Load Balancing. Inputs. Load Balancer Plan Option Configuration> Representation of a configuration item for personalizing product
- Duration string
duration
- Plan
Code string Plan code
- Pricing
Mode string Pricing model identifier
- Catalog
Name string Catalog name
- Configurations
[]Load
Balancer Plan Option Configuration Representation of a configuration item for personalizing product
- duration String
duration
- plan
Code String Plan code
- pricing
Mode String Pricing model identifier
- catalog
Name String Catalog name
- configurations
List<Load
Balancer Plan Option Configuration> Representation of a configuration item for personalizing product
- duration string
duration
- plan
Code string Plan code
- pricing
Mode string Pricing model identifier
- catalog
Name string Catalog name
- configurations
Load
Balancer Plan Option Configuration[] 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
Load
Balancer Plan Option Configuration] Representation of a configuration item for personalizing product
- duration String
duration
- plan
Code String Plan code
- pricing
Mode String Pricing model identifier
- catalog
Name String Catalog name
- configurations List<Property Map>
Representation of a configuration item for personalizing product
LoadBalancerPlanOptionConfiguration
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.