1. Packages
  2. OVH
  3. API Docs
  4. Vrack
  5. Vrack
OVHCloud v1.6.0 published on Monday, Feb 10, 2025 by OVHcloud

ovh.Vrack.Vrack

Explore with Pulumi AI

ovh logo
OVHCloud v1.6.0 published on Monday, Feb 10, 2025 by OVHcloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    import * as ovh from "@pulumi/ovh";
    
    const myAccount = ovh.Me.getMe({});
    const myCart = myAccount.then(myAccount => ovh.Order.getCart({
        ovhSubsidiary: myAccount.ovhSubsidiary,
    }));
    const vrackCartProductPlan = myCart.then(myCart => ovh.Order.getCartProductPlan({
        cartId: myCart.id,
        priceCapacity: "renew",
        product: "vrack",
        planCode: "vrack",
    }));
    const vrackVrack = new ovh.vrack.Vrack("vrackVrack", {
        ovhSubsidiary: myCart.then(myCart => myCart.ovhSubsidiary),
        description: "my vrack",
        plan: {
            duration: vrackCartProductPlan.then(vrackCartProductPlan => vrackCartProductPlan.selectedPrices?.[0]?.duration),
            planCode: vrackCartProductPlan.then(vrackCartProductPlan => vrackCartProductPlan.planCode),
            pricingMode: vrackCartProductPlan.then(vrackCartProductPlan => vrackCartProductPlan.selectedPrices?.[0]?.pricingMode),
        },
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    my_account = ovh.Me.get_me()
    my_cart = ovh.Order.get_cart(ovh_subsidiary=my_account.ovh_subsidiary)
    vrack_cart_product_plan = ovh.Order.get_cart_product_plan(cart_id=my_cart.id,
        price_capacity="renew",
        product="vrack",
        plan_code="vrack")
    vrack_vrack = ovh.vrack.Vrack("vrackVrack",
        ovh_subsidiary=my_cart.ovh_subsidiary,
        description="my vrack",
        plan={
            "duration": vrack_cart_product_plan.selected_prices[0].duration,
            "plan_code": vrack_cart_product_plan.plan_code,
            "pricing_mode": vrack_cart_product_plan.selected_prices[0].pricing_mode,
        })
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/me"
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/order"
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/vrack"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		myAccount, err := me.GetMe(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		myCart, err := order.GetCart(ctx, &order.GetCartArgs{
    			OvhSubsidiary: myAccount.OvhSubsidiary,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		vrackCartProductPlan, err := order.GetCartProductPlan(ctx, &order.GetCartProductPlanArgs{
    			CartId:        myCart.Id,
    			PriceCapacity: "renew",
    			Product:       "vrack",
    			PlanCode:      "vrack",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = vrack.NewVrack(ctx, "vrackVrack", &vrack.VrackArgs{
    			OvhSubsidiary: pulumi.String(myCart.OvhSubsidiary),
    			Description:   pulumi.String("my vrack"),
    			Plan: &vrack.VrackPlanArgs{
    				Duration:    pulumi.String(vrackCartProductPlan.SelectedPrices[0].Duration),
    				PlanCode:    pulumi.String(vrackCartProductPlan.PlanCode),
    				PricingMode: pulumi.String(vrackCartProductPlan.SelectedPrices[0].PricingMode),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var myAccount = Ovh.Me.GetMe.Invoke();
    
        var myCart = Ovh.Order.GetCart.Invoke(new()
        {
            OvhSubsidiary = myAccount.Apply(getMeResult => getMeResult.OvhSubsidiary),
        });
    
        var vrackCartProductPlan = Ovh.Order.GetCartProductPlan.Invoke(new()
        {
            CartId = myCart.Apply(getCartResult => getCartResult.Id),
            PriceCapacity = "renew",
            Product = "vrack",
            PlanCode = "vrack",
        });
    
        var vrackVrack = new Ovh.Vrack.Vrack("vrackVrack", new()
        {
            OvhSubsidiary = myCart.Apply(getCartResult => getCartResult.OvhSubsidiary),
            Description = "my vrack",
            Plan = new Ovh.Vrack.Inputs.VrackPlanArgs
            {
                Duration = vrackCartProductPlan.Apply(getCartProductPlanResult => getCartProductPlanResult.SelectedPrices[0]?.Duration),
                PlanCode = vrackCartProductPlan.Apply(getCartProductPlanResult => getCartProductPlanResult.PlanCode),
                PricingMode = vrackCartProductPlan.Apply(getCartProductPlanResult => getCartProductPlanResult.SelectedPrices[0]?.PricingMode),
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Me.MeFunctions;
    import com.pulumi.ovh.Order.OrderFunctions;
    import com.pulumi.ovh.Order.inputs.GetCartArgs;
    import com.pulumi.ovh.Order.inputs.GetCartProductPlanArgs;
    import com.pulumi.ovh.Vrack.Vrack;
    import com.pulumi.ovh.Vrack.VrackArgs;
    import com.pulumi.ovh.Vrack.inputs.VrackPlanArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var myAccount = MeFunctions.getMe();
    
            final var myCart = OrderFunctions.getCart(GetCartArgs.builder()
                .ovhSubsidiary(myAccount.applyValue(getMeResult -> getMeResult.ovhSubsidiary()))
                .build());
    
            final var vrackCartProductPlan = OrderFunctions.getCartProductPlan(GetCartProductPlanArgs.builder()
                .cartId(myCart.applyValue(getCartResult -> getCartResult.id()))
                .priceCapacity("renew")
                .product("vrack")
                .planCode("vrack")
                .build());
    
            var vrackVrack = new Vrack("vrackVrack", VrackArgs.builder()
                .ovhSubsidiary(myCart.applyValue(getCartResult -> getCartResult.ovhSubsidiary()))
                .description("my vrack")
                .plan(VrackPlanArgs.builder()
                    .duration(vrackCartProductPlan.applyValue(getCartProductPlanResult -> getCartProductPlanResult.selectedPrices()[0].duration()))
                    .planCode(vrackCartProductPlan.applyValue(getCartProductPlanResult -> getCartProductPlanResult.planCode()))
                    .pricingMode(vrackCartProductPlan.applyValue(getCartProductPlanResult -> getCartProductPlanResult.selectedPrices()[0].pricingMode()))
                    .build())
                .build());
    
        }
    }
    
    resources:
      vrackVrack:
        type: ovh:Vrack:Vrack
        properties:
          ovhSubsidiary: ${myCart.ovhSubsidiary}
          description: my vrack
          plan:
            duration: ${vrackCartProductPlan.selectedPrices[0].duration}
            planCode: ${vrackCartProductPlan.planCode}
            pricingMode: ${vrackCartProductPlan.selectedPrices[0].pricingMode}
    variables:
      myAccount:
        fn::invoke:
          function: ovh:Me:getMe
          arguments: {}
      myCart:
        fn::invoke:
          function: ovh:Order:getCart
          arguments:
            ovhSubsidiary: ${myAccount.ovhSubsidiary}
      vrackCartProductPlan:
        fn::invoke:
          function: ovh:Order:getCartProductPlan
          arguments:
            cartId: ${myCart.id}
            priceCapacity: renew
            product: vrack
            planCode: vrack
    

    Create Vrack Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Vrack(name: string, args?: VrackArgs, opts?: CustomResourceOptions);
    @overload
    def Vrack(resource_name: str,
              args: Optional[VrackArgs] = None,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Vrack(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              description: Optional[str] = None,
              name: Optional[str] = None,
              orders: Optional[Sequence[_vrack.VrackOrderArgs]] = None,
              ovh_subsidiary: Optional[str] = None,
              payment_mean: Optional[str] = None,
              plan: Optional[_vrack.VrackPlanArgs] = None,
              plan_options: Optional[Sequence[_vrack.VrackPlanOptionArgs]] = None)
    func NewVrack(ctx *Context, name string, args *VrackArgs, opts ...ResourceOption) (*Vrack, error)
    public Vrack(string name, VrackArgs? args = null, CustomResourceOptions? opts = null)
    public Vrack(String name, VrackArgs args)
    public Vrack(String name, VrackArgs args, CustomResourceOptions options)
    
    type: ovh:Vrack:Vrack
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VrackArgs
    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 VrackArgs
    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 VrackArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VrackArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VrackArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var vrackResource = new Ovh.Vrack.Vrack("vrackResource", new()
    {
        Description = "string",
        Name = "string",
        Orders = new[]
        {
            new Ovh.Vrack.Inputs.VrackOrderArgs
            {
                Date = "string",
                Details = new[]
                {
                    new Ovh.Vrack.Inputs.VrackOrderDetailArgs
                    {
                        Description = "string",
                        Domain = "string",
                        OrderDetailId = 0,
                        Quantity = "string",
                    },
                },
                ExpirationDate = "string",
                OrderId = 0,
            },
        },
        OvhSubsidiary = "string",
        Plan = new Ovh.Vrack.Inputs.VrackPlanArgs
        {
            Duration = "string",
            PlanCode = "string",
            PricingMode = "string",
            CatalogName = "string",
            Configurations = new[]
            {
                new Ovh.Vrack.Inputs.VrackPlanConfigurationArgs
                {
                    Label = "string",
                    Value = "string",
                },
            },
        },
        PlanOptions = new[]
        {
            new Ovh.Vrack.Inputs.VrackPlanOptionArgs
            {
                Duration = "string",
                PlanCode = "string",
                PricingMode = "string",
                CatalogName = "string",
                Configurations = new[]
                {
                    new Ovh.Vrack.Inputs.VrackPlanOptionConfigurationArgs
                    {
                        Label = "string",
                        Value = "string",
                    },
                },
            },
        },
    });
    
    example, err := Vrack.NewVrack(ctx, "vrackResource", &Vrack.VrackArgs{
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Orders: vrack.VrackOrderArray{
    		&vrack.VrackOrderArgs{
    			Date: pulumi.String("string"),
    			Details: vrack.VrackOrderDetailArray{
    				&vrack.VrackOrderDetailArgs{
    					Description:   pulumi.String("string"),
    					Domain:        pulumi.String("string"),
    					OrderDetailId: pulumi.Int(0),
    					Quantity:      pulumi.String("string"),
    				},
    			},
    			ExpirationDate: pulumi.String("string"),
    			OrderId:        pulumi.Int(0),
    		},
    	},
    	OvhSubsidiary: pulumi.String("string"),
    	Plan: &vrack.VrackPlanArgs{
    		Duration:    pulumi.String("string"),
    		PlanCode:    pulumi.String("string"),
    		PricingMode: pulumi.String("string"),
    		CatalogName: pulumi.String("string"),
    		Configurations: vrack.VrackPlanConfigurationArray{
    			&vrack.VrackPlanConfigurationArgs{
    				Label: pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    	},
    	PlanOptions: vrack.VrackPlanOptionArray{
    		&vrack.VrackPlanOptionArgs{
    			Duration:    pulumi.String("string"),
    			PlanCode:    pulumi.String("string"),
    			PricingMode: pulumi.String("string"),
    			CatalogName: pulumi.String("string"),
    			Configurations: vrack.VrackPlanOptionConfigurationArray{
    				&vrack.VrackPlanOptionConfigurationArgs{
    					Label: pulumi.String("string"),
    					Value: pulumi.String("string"),
    				},
    			},
    		},
    	},
    })
    
    var vrackResource = new Vrack("vrackResource", VrackArgs.builder()
        .description("string")
        .name("string")
        .orders(VrackOrderArgs.builder()
            .date("string")
            .details(VrackOrderDetailArgs.builder()
                .description("string")
                .domain("string")
                .orderDetailId(0)
                .quantity("string")
                .build())
            .expirationDate("string")
            .orderId(0)
            .build())
        .ovhSubsidiary("string")
        .plan(VrackPlanArgs.builder()
            .duration("string")
            .planCode("string")
            .pricingMode("string")
            .catalogName("string")
            .configurations(VrackPlanConfigurationArgs.builder()
                .label("string")
                .value("string")
                .build())
            .build())
        .planOptions(VrackPlanOptionArgs.builder()
            .duration("string")
            .planCode("string")
            .pricingMode("string")
            .catalogName("string")
            .configurations(VrackPlanOptionConfigurationArgs.builder()
                .label("string")
                .value("string")
                .build())
            .build())
        .build());
    
    vrack_resource = ovh.vrack.Vrack("vrackResource",
        description="string",
        name="string",
        orders=[{
            "date": "string",
            "details": [{
                "description": "string",
                "domain": "string",
                "order_detail_id": 0,
                "quantity": "string",
            }],
            "expiration_date": "string",
            "order_id": 0,
        }],
        ovh_subsidiary="string",
        plan={
            "duration": "string",
            "plan_code": "string",
            "pricing_mode": "string",
            "catalog_name": "string",
            "configurations": [{
                "label": "string",
                "value": "string",
            }],
        },
        plan_options=[{
            "duration": "string",
            "plan_code": "string",
            "pricing_mode": "string",
            "catalog_name": "string",
            "configurations": [{
                "label": "string",
                "value": "string",
            }],
        }])
    
    const vrackResource = new ovh.vrack.Vrack("vrackResource", {
        description: "string",
        name: "string",
        orders: [{
            date: "string",
            details: [{
                description: "string",
                domain: "string",
                orderDetailId: 0,
                quantity: "string",
            }],
            expirationDate: "string",
            orderId: 0,
        }],
        ovhSubsidiary: "string",
        plan: {
            duration: "string",
            planCode: "string",
            pricingMode: "string",
            catalogName: "string",
            configurations: [{
                label: "string",
                value: "string",
            }],
        },
        planOptions: [{
            duration: "string",
            planCode: "string",
            pricingMode: "string",
            catalogName: "string",
            configurations: [{
                label: "string",
                value: "string",
            }],
        }],
    });
    
    type: ovh:Vrack:Vrack
    properties:
        description: string
        name: string
        orders:
            - date: string
              details:
                - description: string
                  domain: string
                  orderDetailId: 0
                  quantity: string
              expirationDate: string
              orderId: 0
        ovhSubsidiary: string
        plan:
            catalogName: string
            configurations:
                - label: string
                  value: string
            duration: string
            planCode: string
            pricingMode: string
        planOptions:
            - catalogName: string
              configurations:
                - label: string
                  value: string
              duration: string
              planCode: string
              pricingMode: string
    

    Vrack Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Vrack resource accepts the following input properties:

    Description string
    yourvrackdescription
    Name string
    yourvrackname
    Orders List<VrackOrder>
    Details about an Order
    OvhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    PaymentMean string
    Ovh payment mode

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

    Plan VrackPlan
    Product Plan to order
    PlanOptions List<VrackPlanOption>
    Product Plan to order
    Description string
    yourvrackdescription
    Name string
    yourvrackname
    Orders []VrackOrderArgs
    Details about an Order
    OvhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    PaymentMean string
    Ovh payment mode

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

    Plan VrackPlanArgs
    Product Plan to order
    PlanOptions []VrackPlanOptionArgs
    Product Plan to order
    description String
    yourvrackdescription
    name String
    yourvrackname
    orders List<Order>
    Details about an Order
    ovhSubsidiary String
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    paymentMean String
    Ovh payment mode

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

    plan Plan
    Product Plan to order
    planOptions List<PlanOption>
    Product Plan to order
    description string
    yourvrackdescription
    name string
    yourvrackname
    orders VrackOrder[]
    Details about an Order
    ovhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    paymentMean string
    Ovh payment mode

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

    plan VrackPlan
    Product Plan to order
    planOptions VrackPlanOption[]
    Product Plan to order
    description str
    yourvrackdescription
    name str
    yourvrackname
    orders Sequence[vrack.VrackOrderArgs]
    Details about an Order
    ovh_subsidiary str
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    payment_mean str
    Ovh payment mode

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

    plan vrack.VrackPlanArgs
    Product Plan to order
    plan_options Sequence[vrack.VrackPlanOptionArgs]
    Product Plan to order
    description String
    yourvrackdescription
    name String
    yourvrackname
    orders List<Property Map>
    Details about an Order
    ovhSubsidiary String
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    paymentMean String
    Ovh payment mode

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

    plan Property Map
    Product Plan to order
    planOptions List<Property Map>
    Product Plan to order

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    The internal name of your vrack
    VrackURN string
    The URN of the vrack, used with IAM permissions
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    The internal name of your vrack
    VrackURN string
    The URN of the vrack, used with IAM permissions
    VrackURN String
    The URN of the vrack, used with IAM permissions
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    The internal name of your vrack
    VrackURN string
    The URN of the vrack, used with IAM permissions
    id string
    The provider-assigned unique ID for this managed resource.
    serviceName string
    The internal name of your vrack
    id str
    The provider-assigned unique ID for this managed resource.
    service_name str
    The internal name of your vrack
    vrack_urn str
    The URN of the vrack, used with IAM permissions
    VrackURN String
    The URN of the vrack, used with IAM permissions
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    The internal name of your vrack

    Look up Existing Vrack Resource

    Get an existing Vrack 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?: VrackState, opts?: CustomResourceOptions): Vrack
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            vrack_urn: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            orders: Optional[Sequence[_vrack.VrackOrderArgs]] = None,
            ovh_subsidiary: Optional[str] = None,
            payment_mean: Optional[str] = None,
            plan: Optional[_vrack.VrackPlanArgs] = None,
            plan_options: Optional[Sequence[_vrack.VrackPlanOptionArgs]] = None,
            service_name: Optional[str] = None) -> Vrack
    func GetVrack(ctx *Context, name string, id IDInput, state *VrackState, opts ...ResourceOption) (*Vrack, error)
    public static Vrack Get(string name, Input<string> id, VrackState? state, CustomResourceOptions? opts = null)
    public static Vrack get(String name, Output<String> id, VrackState state, CustomResourceOptions options)
    resources:  _:    type: ovh:Vrack:Vrack    get:      id: ${id}
    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:
    Description string
    yourvrackdescription
    Name string
    yourvrackname
    Orders List<VrackOrder>
    Details about an Order
    OvhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    PaymentMean string
    Ovh payment mode

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

    Plan VrackPlan
    Product Plan to order
    PlanOptions List<VrackPlanOption>
    Product Plan to order
    ServiceName string
    The internal name of your vrack
    VrackURN string
    The URN of the vrack, used with IAM permissions
    Description string
    yourvrackdescription
    Name string
    yourvrackname
    Orders []VrackOrderArgs
    Details about an Order
    OvhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    PaymentMean string
    Ovh payment mode

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

    Plan VrackPlanArgs
    Product Plan to order
    PlanOptions []VrackPlanOptionArgs
    Product Plan to order
    ServiceName string
    The internal name of your vrack
    VrackURN string
    The URN of the vrack, used with IAM permissions
    VrackURN String
    The URN of the vrack, used with IAM permissions
    description String
    yourvrackdescription
    name String
    yourvrackname
    orders List<Order>
    Details about an Order
    ovhSubsidiary String
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    paymentMean String
    Ovh payment mode

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

    plan Plan
    Product Plan to order
    planOptions List<PlanOption>
    Product Plan to order
    serviceName String
    The internal name of your vrack
    VrackURN string
    The URN of the vrack, used with IAM permissions
    description string
    yourvrackdescription
    name string
    yourvrackname
    orders VrackOrder[]
    Details about an Order
    ovhSubsidiary string
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    paymentMean string
    Ovh payment mode

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

    plan VrackPlan
    Product Plan to order
    planOptions VrackPlanOption[]
    Product Plan to order
    serviceName string
    The internal name of your vrack
    description str
    yourvrackdescription
    name str
    yourvrackname
    orders Sequence[vrack.VrackOrderArgs]
    Details about an Order
    ovh_subsidiary str
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    payment_mean str
    Ovh payment mode

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

    plan vrack.VrackPlanArgs
    Product Plan to order
    plan_options Sequence[vrack.VrackPlanOptionArgs]
    Product Plan to order
    service_name str
    The internal name of your vrack
    vrack_urn str
    The URN of the vrack, used with IAM permissions
    VrackURN String
    The URN of the vrack, used with IAM permissions
    description String
    yourvrackdescription
    name String
    yourvrackname
    orders List<Property Map>
    Details about an Order
    ovhSubsidiary String
    OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at /1.0/me.json under models.nichandle.OvhSubsidiaryEnum
    paymentMean String
    Ovh payment mode

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

    plan Property Map
    Product Plan to order
    planOptions List<Property Map>
    Product Plan to order
    serviceName String
    The internal name of your vrack

    Supporting Types

    VrackOrder, VrackOrderArgs

    Date string
    date
    Details List<VrackOrderDetail>
    Information about a Bill entry
    ExpirationDate string
    expiration date
    OrderId int
    order id
    Date string
    date
    Details []VrackOrderDetail
    Information about a Bill entry
    ExpirationDate string
    expiration date
    OrderId int
    order id
    date String
    date
    details List<OrderDetail>
    Information about a Bill entry
    expirationDate String
    expiration date
    orderId Integer
    order id
    date string
    date
    details VrackOrderDetail[]
    Information about a Bill entry
    expirationDate string
    expiration date
    orderId number
    order id
    date str
    date
    details Sequence[vrack.VrackOrderDetail]
    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

    VrackOrderDetail, VrackOrderDetailArgs

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

    VrackPlan, VrackPlanArgs

    Duration string
    duration
    PlanCode string
    Plan code
    PricingMode string
    Pricing model identifier
    CatalogName string
    Catalog name
    Configurations List<VrackPlanConfiguration>
    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 []VrackPlanConfiguration
    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<PlanConfiguration>
    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 VrackPlanConfiguration[]
    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 Sequence[vrack.VrackPlanConfiguration]
    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

    VrackPlanConfiguration, VrackPlanConfigurationArgs

    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

    VrackPlanOption, VrackPlanOptionArgs

    Duration string
    duration
    PlanCode string
    Plan code
    PricingMode string
    Pricing model identifier
    CatalogName string
    Catalog name
    Configurations List<VrackPlanOptionConfiguration>
    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 []VrackPlanOptionConfiguration
    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<PlanOptionConfiguration>
    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 VrackPlanOptionConfiguration[]
    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 Sequence[vrack.VrackPlanOptionConfiguration]
    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

    VrackPlanOptionConfiguration, VrackPlanOptionConfigurationArgs

    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

    A vRack can be imported using the service_name.

    Using the following configuration:

    hcl

    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.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v1.6.0 published on Monday, Feb 10, 2025 by OVHcloud