1.1 KiB
1.1 KiB
| page_title | subcategory | description |
|---|---|---|
| mozoutmz_catalog_product Data Source - MozOut Mozambique | Catalog | One product with its billing cycles and options. |
mozoutmz_catalog_product (Data Source)
One product with its billing cycles and the options the buyer picks, such as the operating system and the data center. Use the ids in config_options of mozoutmz_vps.
Example Usage
data "mozoutmz_catalog_products" "vps" {
kind = "vps"
}
data "mozoutmz_catalog_product" "plan" {
id = data.mozoutmz_catalog_products.vps.products[0].id
}
output "options" {
value = { for o in data.mozoutmz_catalog_product.plan.config_options : o.name => [for c in o.choices : "${c.id} ${c.name}"] }
}
Schema
Required
id(Number) Product id.
Optional
currency(String) Currency code. Default: the account currency.
Read-Only
name,kind,group_name,not_purchasable_reason(String)purchasable(Boolean)billing_cycles(List of Object)billing_cycle,months,price,setup_fee.config_options(List of Object)id,name,default_choice_idandchoices(id,name).