Up-to-date reference of API arguments for CFW EIP protection you can get at documentation portal

opentelekomcloud_cfw_eip_protection_v1

Enable or Disable EIP protection using CFW firewall within OpenTelekomCloud.

Example Usage:

variable firewall_id {}
variable object_id {}
variable eip_id {}
variable ip_address {}

resource "opentelekomcloud_cfw_eip_protection_v1" "protect_1" {
  firewall_id = var.firewall_id
  object_id   = var.object_id
  status      = 0
  eip_id      = var.eip_id
  public_ip   = var.ip_address
}

Argument Reference

The following arguments are supported:

  • firewall_id - (Required, String, ForceNew) Specifies the Firewall ID.

  • object_id - (Required, String, ForceNew) Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.

  • status - (Required, Integer, ForceNew) Specifies the desired EIP protection status: 0 (protected), 1 (unprotected).

  • eip_id - (Required, String, ForceNew) Specifies the EIP ID.

  • public_ip - (Optional, String, ForceNew) Specifies the EIP IPV4 address. Required if public_ipv6 is not set.

  • public_ipv6 - (Optional, String, ForceNew) Specifies the EIP IPV6 address. Required if public_ip is not set.

Timeouts

This resource provides the following timeout configuration options:

  • create - Default is 30 minutes.