» alicloud_common_bandwidth_packages

This data source provides a list of Common Bandwidth Packages owned by an Alibaba Cloud account.

» Example Usage

data "alicloud_common_bandwidth_packages" "foo" {
  name_regex = "^tf-testAcc.*"
  ids        = ["${alicloud_common_bandwidth_package.foo.id}"]
}

resource "alicloud_common_bandwidth_package" "foo" {
  bandwidth   = "2"
  name        = "tf-testAccCommonBandwidthPackage"
  description = "tf-testAcc-CommonBandwidthPackage"
}

» Argument Reference

The following arguments are supported:

  • ids - (Optional) A list of Common Bandwidth Packages IDs.
  • name_regex - (Optional) A regex string to filter results by name.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).
  • resource_group_id - (Optional, ForceNew, Available in 1.58.0+) The Id of resource group which the common bandwidth package belongs.

» Attributes Reference

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

  • ids - (Optional) A list of Common Bandwidth Packages IDs.
  • names - A list of Common Bandwidth Packages names.
  • packages - A list of Common Bandwidth Packages. Each element contains the following attributes:
    • id - ID of the Common Bandwidth Package.
    • bandwidth - The peak bandwidth of the Internet Shared Bandwidth instance.
    • status - Status of the Common Bandwidth Package.
    • name - Name of the Common Bandwidth Package.
    • description - The description of the Common Bandwidth Package instance.
    • business_status - The business status of the Common Bandwidth Package instance.
    • isp - ISP of the Common Bandwidth Package.
    • creation_time - Time of creation.
    • public_ip_addresses - Public ip addresses that in the Common Bandwidth Pakcage.
    • resource_group_id - The Id of resource group which the common bandwidth package belongs. ## Public ip addresses Block

The public ip addresses mapping supports the following: