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 vrack = myCart.then(myCart => ovh.Order.getCartProductPlan({ * cartId: myCart.id, * priceCapacity: "renew", * product: "vrack", * planCode: "vrack", * })); * const vrackVrack = new ovh.vrack.Vrack("vrack", { * ovhSubsidiary: myCart.then(myCart => myCart.ovhSubsidiary), * name: "my_vrack", * description: "my vrack", * plan: { * duration: vrack.then(vrack => vrack.selectedPrices?.[0]?.duration), * planCode: vrack.then(vrack => vrack.planCode), * pricingMode: vrack.then(vrack => vrack.selectedPrices?.[0]?.pricingMode), * }, * }); * ``` * * ## Import * * A vRack can be imported using the `service_name`. Using the following configuration: * * terraform * * import { * * to = ovh_vrack.vrack * * id = "" * * } * * You can then run: * * bash * * $ pulumi preview -generate-config-out=vrack.tf * * $ pulumi up * * The file `vrack.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 Vrack extends pulumi.CustomResource { /** * Get an existing Vrack 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?: VrackState, opts?: pulumi.CustomResourceOptions): Vrack; /** * Returns true if the given object is an instance of Vrack. 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 Vrack; /** * The URN of the vrack, used with IAM permissions */ readonly VrackURN: pulumi.Output; /** * yourvrackdescription */ readonly description: pulumi.Output; /** * yourvrackname */ readonly name: 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 vrack */ readonly serviceName: pulumi.Output; /** * Create a Vrack 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?: VrackArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Vrack resources. */ export interface VrackState { /** * The URN of the vrack, used with IAM permissions */ VrackURN?: pulumi.Input; /** * yourvrackdescription */ description?: pulumi.Input; /** * yourvrackname */ name?: 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 vrack */ serviceName?: pulumi.Input; } /** * The set of arguments for constructing a Vrack resource. */ export interface VrackArgs { /** * yourvrackdescription */ description?: pulumi.Input; /** * yourvrackname */ name?: 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[]>; }