文档

alicloud_vpc_public_ip_address_pool

更新时间:
一键部署

Provides a Vpc Public Ip Address Pool resource.

For information about Vpc Public Ip Address Pool and how to use it, see What is Public Ip Address Pool.

-> NOTE: Available since v1.186.0.

Example Usage

Basic Usage

variable "name" {
  default = "tf-example"
}
data "alicloud_resource_manager_resource_groups" "default" {
  status = "OK"
}
resource "alicloud_vpc_public_ip_address_pool" "default" {
  description                 = var.name
  public_ip_address_pool_name = var.name
  isp                         = "BGP"
  resource_group_id           = data.alicloud_resource_manager_resource_groups.default.ids.0
}

Argument Reference

The following arguments are supported:

  • description - (Optional) Description.
  • isp - (ForceNew, Optional) The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.
  • public_ip_address_pool_name - (Optional) The name of the VPC Public IP address pool.
  • resource_group_id - (Optional) The resource group ID of the VPC Public IP address pool.
  • tags - (Optional, Map) The tags of PrefixList.

Attributes Reference

The following attributes are exported:

  • id - The key of the resource supplied above.
  • create_time - The creation time of the resource.
  • ip_address_remaining - Whether there is a free IP address.
  • public_ip_address_pool_id - The resource ID in terraform of VPC Public Ip Address Pool.
  • status - The status of the VPC Public IP address pool.
  • total_ip_num - The total number of public IP address pools.
  • used_ip_num - The number of used IP addresses in the public IP address pool.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 5 mins) Used when create the Public Ip Address Pool.
  • delete - (Defaults to 5 mins) Used when delete the Public Ip Address Pool.
  • update - (Defaults to 5 mins) Used when update the Public Ip Address Pool.

Import

Vpc Public Ip Address Pool can be imported using the id, e.g.

$ terraform import alicloud_vpc_public_ip_address_pool.example <id>

  • 本页导读 (0)
文档反馈