» alicloud_market_products

This data source provides the Market product items of Alibaba Cloud.

» Example Usage

data "alicloud_market_products" "default" {
  sort         = "created_on-desc"
  category_id  = "53690006"
  product_type = "SERVICE"
}

output "first_product_code" {
  value = "${data.alicloud_market_products.default.product_items.0.code}"
}

output "product_codes" {
  value = "${data.alicloud_market_products.default.ids}"
}

» Argument Reference

The following arguments are supported:

  • name_regex - (Optional, Available 1.66.0+) A regex string to apply to the product name.
  • ids - (Optional, Available 1.66.0+) A list of product code.
  • sort - (Optional, ForceNew) This field determines how to sort the filtered results, Valid values: user_count-desc, created_on-desc, price-desc and score-desc.
  • category_id - (Optional, ForceNew) The Category ID of products. For more information, see DescribeProducts.
  • product_type - (Optional, ForceNew) The type of products, Valid values: APP, SERVICE, MIRROR, DOWNLOAD and API_SERVICE.
  • search_term - (Optional, ForceNew, Available 1.69.0+) Search term in this query.
  • supplier_id - (Optional, ForceNew, Available 1.71.1+) The supplier id of the product.
  • supplier_name_keyword - (Optional, ForceNew, Available 1.71.1+) The supplier name keyword of the product.
  • suggested_price - (Optional, ForceNew, Available 1.71.1+) The suggested price of the product.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

» Attributes Reference

The following attributes are exported in addition to the arguments listed above: