terraform-provider-interwebao/docs/data-sources/catalog_product.md
2026-11-28 15:28:02 +02:00

1.1 KiB

page_title subcategory description
interwebao_catalog_product Data Source - Interweb Angola Catalog One product with its billing cycles and options.

interwebao_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 interwebao_vps.

Example Usage

data "interwebao_catalog_products" "vps" {
  kind = "vps"
}

data "interwebao_catalog_product" "plan" {
  id = data.interwebao_catalog_products.vps.products[0].id
}

output "options" {
  value = { for o in data.interwebao_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_id and choices (id, name).