alicloud_bss_openapi_products

更新时间:

This data source provides Bss Open Api Product available to the user.What is Product

-> NOTE: Available since v1.195.0.

Example Usage

data "alicloud_bss_openapi_products" "default" {
  name_regex = "内容分发网络CDN"
}

output "alicloud_bssopenapi_product_example_id" {
  value = data.alicloud_bss_openapi_products.default.products.0.product_code
}

Argument Reference

The following arguments are supported:

  • ids - (Optional, ForceNew, List) A list of product IDs.
  • name_regex - (Optional, ForceNew) A regex string to filter results by Product name.
  • 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:

  • names - A list of name of Products.
  • products - A list of Product Entries. Each element contains the following attributes:
    • id - The ID of the product. The value is formulated as <product_code>:<product_type>:<subscription_type>.
    • product_code - Product code.
    • product_name - Product name.
    • product_type - Type of product.
    • subscription_type - Subscription type. Value:
      • Subscription: Prepaid.
      • PayAsYouGo: postpaid.