ksyun_lbs

最近更新时间:2020-09-10 20:56:08

查看PDF

This data source provides a list of Load Balancer resources according to their Load Balancer ID, VPC ID and Subnet ID.

Example Usage

data "ksyun_lbs" "default" {
  output_file="output_result"
  name_regex=""
  ids=[]
  state=""
  vpc_id=[]
}

Argument Reference

The following arguments are supported:

  • ids - (Optional) A list of Load Balancer IDs, all the LBs belong to this region will be retrieved if the ID is "".
  • name_regex - (Optional) A regex string to filter resulting lbs by name.
  • vpc_id - (Optional) The ID of the VPC linked to the Load Balancers.
  • subnet_id - (Optional) The ID of subnet that intrant load balancer belongs to.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • lbs - It is a nested type which documented below.
  • total_count - Total number of Load Balancers that satisfy the condition.

The attribute (lbs) support the following:

  • id - The ID of Load Balancer.
  • name - The name of Load Balancer.
  • vpc_id - The ID of the VPC linked to the Load Balancers.
  • subnet_id - (Optional) The ID of subnet that intrant load balancer belongs to.
  • private_ip - The IP address of intranet IP.

文档内容是否对您有帮助?

根本没帮助
文档较差
文档一般
文档不错
文档很好

在文档使用中是否遇到以下问题

内容不全,不深入
内容更新不及时
描述不清晰,比较混乱
系统或功能太复杂,缺乏足够的引导
内容冗长

更多建议

0/200

评价建议不能为空

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

问题反馈