import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/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 iplbLb1 = 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 * * OVHcloud IP load balancing services can be imported using its `service_name`. * * Using the following configuration: * * terraform * * import { * * to = ovh_iploadbalancing.iplb * * id = "" * * } * * You can then run: * * bash * * $ pulumi preview -generate-config-out=iplb.tf * * $ pulumi up * * The file `iplb.tf` will then contain the imported resource's configuration, that can be copied next to the `import` block above. See https://developer.hashicorp.com/terraform/language/import/generating-configuration for more details. */ export declare class LoadBalancer extends pulumi.CustomResource { /** * Get an existing LoadBalancer resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: LoadBalancerState, opts?: pulumi.CustomResourceOptions): LoadBalancer; /** * Returns true if the given object is an instance of LoadBalancer. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is LoadBalancer; /** * URN of the load balancer, used when writing IAM policies */ readonly LoadBalancerURN: pulumi.Output; /** * Set the name displayed in ManagerV6 for your iplb (max 50 chars) */ readonly displayName: pulumi.Output; /** * Your IP load balancing */ readonly ipLoadbalancing: pulumi.Output; /** * The IPV4 associated to your IP load balancing */ readonly ipv4: pulumi.Output; /** * The IPV6 associated to your IP load balancing. DEPRECATED. */ readonly ipv6: pulumi.Output; /** * The metrics token associated with your IP load balancing */ readonly metricsToken: pulumi.Output; /** * The offer of your IP load balancing */ readonly offer: pulumi.Output; /** * Available additional zone for your Load Balancer */ readonly orderableZones: pulumi.Output; /** * Details about an Order */ readonly orders: pulumi.Output; /** * 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`](https://eu.api.ovh.com/1.0/me.json) */ readonly ovhSubsidiary: pulumi.Output; /** * 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. */ readonly paymentMean: pulumi.Output; /** * Product Plan to order */ readonly plan: pulumi.Output; /** * Product Plan to order */ readonly planOptions: pulumi.Output; /** * The internal name of your IP load balancing */ readonly serviceName: pulumi.Output; /** * 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". */ readonly sslConfiguration: pulumi.Output; /** * Current state of your IP */ readonly state: pulumi.Output; /** * Vrack eligibility */ readonly vrackEligibility: pulumi.Output; /** * Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product */ readonly vrackName: pulumi.Output; /** * Location where your service is */ readonly zones: pulumi.Output; /** * Create a LoadBalancer resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: LoadBalancerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LoadBalancer resources. */ export interface LoadBalancerState { /** * URN of the load balancer, used when writing IAM policies */ LoadBalancerURN?: pulumi.Input; /** * Set the name displayed in ManagerV6 for your iplb (max 50 chars) */ displayName?: pulumi.Input; /** * Your IP load balancing */ ipLoadbalancing?: pulumi.Input; /** * The IPV4 associated to your IP load balancing */ ipv4?: pulumi.Input; /** * The IPV6 associated to your IP load balancing. DEPRECATED. */ ipv6?: pulumi.Input; /** * The metrics token associated with your IP load balancing */ metricsToken?: pulumi.Input; /** * The offer of your IP load balancing */ offer?: pulumi.Input; /** * Available additional zone for your Load Balancer */ orderableZones?: pulumi.Input[]>; /** * Details about an Order */ orders?: pulumi.Input[]>; /** * 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`](https://eu.api.ovh.com/1.0/me.json) */ ovhSubsidiary?: pulumi.Input; /** * 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. */ paymentMean?: pulumi.Input; /** * Product Plan to order */ plan?: pulumi.Input; /** * Product Plan to order */ planOptions?: pulumi.Input[]>; /** * The internal name of your IP load balancing */ serviceName?: pulumi.Input; /** * 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". */ sslConfiguration?: pulumi.Input; /** * Current state of your IP */ state?: pulumi.Input; /** * Vrack eligibility */ vrackEligibility?: pulumi.Input; /** * Name of the vRack on which the current Load Balancer is attached to, as it is named on vRack product */ vrackName?: pulumi.Input; /** * Location where your service is */ zones?: pulumi.Input[]>; } /** * The set of arguments for constructing a LoadBalancer resource. */ export interface LoadBalancerArgs { /** * Set the name displayed in ManagerV6 for your iplb (max 50 chars) */ displayName?: pulumi.Input; /** * Details about an Order */ orders?: pulumi.Input[]>; /** * 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`](https://eu.api.ovh.com/1.0/me.json) */ ovhSubsidiary?: pulumi.Input; /** * 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. */ paymentMean?: pulumi.Input; /** * Product Plan to order */ plan?: pulumi.Input; /** * Product Plan to order */ planOptions?: pulumi.Input[]>; /** * 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". */ sslConfiguration?: pulumi.Input; }