Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Use this data source to retrieve information of order cart product products.
Example Usage
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 plans = myCart.then(myCart => ovh.Order.getCartProduct({
cartId: myCart.id,
product: "...",
}));
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)
plans = ovh.Order.get_cart_product(cart_id=my_cart.id,
product="...")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/me"
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/order"
"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
}
_, err = order.GetCartProduct(ctx, &order.GetCartProductArgs{
CartId: myCart.Id,
Product: "...",
}, nil)
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 plans = Ovh.Order.GetCartProduct.Invoke(new()
{
CartId = myCart.Apply(getCartResult => getCartResult.Id),
Product = "...",
});
});
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.GetCartProductArgs;
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(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
final var myCart = OrderFunctions.getCart(GetCartArgs.builder()
.ovhSubsidiary(myAccount.ovhSubsidiary())
.build());
final var plans = OrderFunctions.getCartProduct(GetCartProductArgs.builder()
.cartId(myCart.id())
.product("...")
.build());
}
}
variables:
myAccount:
fn::invoke:
function: ovh:Me:getMe
arguments: {}
myCart:
fn::invoke:
function: ovh:Order:getCart
arguments:
ovhSubsidiary: ${myAccount.ovhSubsidiary}
plans:
fn::invoke:
function: ovh:Order:getCartProduct
arguments:
cartId: ${myCart.id}
product: '...'
Using getCartProduct
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCartProduct(args: GetCartProductArgs, opts?: InvokeOptions): Promise<GetCartProductResult>
function getCartProductOutput(args: GetCartProductOutputArgs, opts?: InvokeOptions): Output<GetCartProductResult>def get_cart_product(cart_id: Optional[str] = None,
product: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCartProductResult
def get_cart_product_output(cart_id: Optional[pulumi.Input[str]] = None,
product: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCartProductResult]func LookupCartProduct(ctx *Context, args *LookupCartProductArgs, opts ...InvokeOption) (*LookupCartProductResult, error)
func LookupCartProductOutput(ctx *Context, args *LookupCartProductOutputArgs, opts ...InvokeOption) LookupCartProductResultOutput> Note: This function is named LookupCartProduct in the Go SDK.
public static class GetCartProduct
{
public static Task<GetCartProductResult> InvokeAsync(GetCartProductArgs args, InvokeOptions? opts = null)
public static Output<GetCartProductResult> Invoke(GetCartProductInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCartProductResult> getCartProduct(GetCartProductArgs args, InvokeOptions options)
public static Output<GetCartProductResult> getCartProduct(GetCartProductArgs args, InvokeOptions options)
fn::invoke:
function: ovh:Order/getCartProduct:getCartProduct
arguments:
# arguments dictionaryThe following arguments are supported:
getCartProduct Result
The following output properties are available:
- Cart
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Product string
- Results
List<Get
Cart Product Result> - products results
- Cart
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Product string
- Results
[]Get
Cart Product Result - products results
- cart
Id String - id String
- The provider-assigned unique ID for this managed resource.
- product String
- results
List<Get
Cart Product Result> - products results
- cart
Id string - id string
- The provider-assigned unique ID for this managed resource.
- product string
- results
Get
Cart Product Result[] - products results
- cart_
id str - id str
- The provider-assigned unique ID for this managed resource.
- product str
- results
Sequence[Get
Cart Product Result] - products results
- cart
Id String - id String
- The provider-assigned unique ID for this managed resource.
- product String
- results List<Property Map>
- products results
Supporting Types
GetCartProductResult
- Plan
Code string - Product offer identifier
- Prices
List<Get
Cart Product Result Price> - Prices of the product offer
- Product
Name string - Name of the product
- Product
Type string - Product type
- Plan
Code string - Product offer identifier
- Prices
[]Get
Cart Product Result Price - Prices of the product offer
- Product
Name string - Name of the product
- Product
Type string - Product type
- plan
Code String - Product offer identifier
- prices
List<Get
Cart Product Result Price> - Prices of the product offer
- product
Name String - Name of the product
- product
Type String - Product type
- plan
Code string - Product offer identifier
- prices
Get
Cart Product Result Price[] - Prices of the product offer
- product
Name string - Name of the product
- product
Type string - Product type
- plan_
code str - Product offer identifier
- prices
Sequence[Get
Cart Product Result Price] - Prices of the product offer
- product_
name str - Name of the product
- product_
type str - Product type
- plan
Code String - Product offer identifier
- prices List<Property Map>
- Prices of the product offer
- product
Name String - Name of the product
- product
Type String - Product type
GetCartProductResultPrice
- Capacities List<object>
- Capacities of the pricing (type of pricing)
- Description string
- Description of the pricing
- Duration string
- Duration for ordering the product
- Interval int
- Interval of renewal
- Maximum
Quantity int - Maximum quantity that can be ordered
- Maximum
Repeat int - Maximum repeat for renewal
- Minimum
Quantity int - Minimum quantity that can be ordered
- Minimum
Repeat int - Minimum repeat for renewal
- Price
In intUcents - Price of the product in micro-centims
- Prices
List<Get
Cart Product Result Price Price> - Price of the product (Price with its currency and textual representation)
- Pricing
Mode string - Pricing model identifier
- Pricing
Type string - Pricing type
- Capacities []interface{}
- Capacities of the pricing (type of pricing)
- Description string
- Description of the pricing
- Duration string
- Duration for ordering the product
- Interval int
- Interval of renewal
- Maximum
Quantity int - Maximum quantity that can be ordered
- Maximum
Repeat int - Maximum repeat for renewal
- Minimum
Quantity int - Minimum quantity that can be ordered
- Minimum
Repeat int - Minimum repeat for renewal
- Price
In intUcents - Price of the product in micro-centims
- Prices
[]Get
Cart Product Result Price Price - Price of the product (Price with its currency and textual representation)
- Pricing
Mode string - Pricing model identifier
- Pricing
Type string - Pricing type
- capacities List<Object>
- Capacities of the pricing (type of pricing)
- description String
- Description of the pricing
- duration String
- Duration for ordering the product
- interval Integer
- Interval of renewal
- maximum
Quantity Integer - Maximum quantity that can be ordered
- maximum
Repeat Integer - Maximum repeat for renewal
- minimum
Quantity Integer - Minimum quantity that can be ordered
- minimum
Repeat Integer - Minimum repeat for renewal
- price
In IntegerUcents - Price of the product in micro-centims
- prices
List<Get
Cart Product Result Price Price> - Price of the product (Price with its currency and textual representation)
- pricing
Mode String - Pricing model identifier
- pricing
Type String - Pricing type
- capacities any[]
- Capacities of the pricing (type of pricing)
- description string
- Description of the pricing
- duration string
- Duration for ordering the product
- interval number
- Interval of renewal
- maximum
Quantity number - Maximum quantity that can be ordered
- maximum
Repeat number - Maximum repeat for renewal
- minimum
Quantity number - Minimum quantity that can be ordered
- minimum
Repeat number - Minimum repeat for renewal
- price
In numberUcents - Price of the product in micro-centims
- prices
Get
Cart Product Result Price Price[] - Price of the product (Price with its currency and textual representation)
- pricing
Mode string - Pricing model identifier
- pricing
Type string - Pricing type
- capacities Sequence[Any]
- Capacities of the pricing (type of pricing)
- description str
- Description of the pricing
- duration str
- Duration for ordering the product
- interval int
- Interval of renewal
- maximum_
quantity int - Maximum quantity that can be ordered
- maximum_
repeat int - Maximum repeat for renewal
- minimum_
quantity int - Minimum quantity that can be ordered
- minimum_
repeat int - Minimum repeat for renewal
- price_
in_ intucents - Price of the product in micro-centims
- prices
Sequence[Get
Cart Product Result Price Price] - Price of the product (Price with its currency and textual representation)
- pricing_
mode str - Pricing model identifier
- pricing_
type str - Pricing type
- capacities List<Any>
- Capacities of the pricing (type of pricing)
- description String
- Description of the pricing
- duration String
- Duration for ordering the product
- interval Number
- Interval of renewal
- maximum
Quantity Number - Maximum quantity that can be ordered
- maximum
Repeat Number - Maximum repeat for renewal
- minimum
Quantity Number - Minimum quantity that can be ordered
- minimum
Repeat Number - Minimum repeat for renewal
- price
In NumberUcents - Price of the product in micro-centims
- prices List<Property Map>
- Price of the product (Price with its currency and textual representation)
- pricing
Mode String - Pricing model identifier
- pricing
Type String - Pricing type
GetCartProductResultPricePrice
- Currency
Code string - Currency code
- Text string
- Textual representation
- Value double
- The effective price
- Currency
Code string - Currency code
- Text string
- Textual representation
- Value float64
- The effective price
- currency
Code String - Currency code
- text String
- Textual representation
- value Double
- The effective price
- currency
Code string - Currency code
- text string
- Textual representation
- value number
- The effective price
- currency_
code str - Currency code
- text str
- Textual representation
- value float
- The effective price
- currency
Code String - Currency code
- text String
- Textual representation
- value Number
- The effective price
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
