Up-to-date reference of API arguments for EVPN you can get at documentation portal
opentelekomcloud_enterprise_vpn_customer_gateway_v5¶
Manages a VPN customer gateway resource within OpenTelekomCloud.
Example Usage¶
Manages a common VPN customer gateway¶
variable "name" {}
variable "id_value" {}
resource "opentelekomcloud_enterprise_vpn_customer_gateway_v5" "test" {
name = var.name
id_value = var.id_value
}
Argument Reference¶
The following arguments are supported:
name- (Required, String) The customer gateway name. The valid length is limited from1to64, only letters, digits, hyphens (-) and underscores (_) are allowed.id_value- (Required, String, ForceNew) Specifies the identifier of a customer gateway. Whenid_typeis set toip, the value is an IPv4 address in dotted decimal notation, for example, 192.168.45.7. Whenid_typeis set tofqdn, the value is a string of characters that can contain uppercase letters, lowercase letters, digits, and special characters. Spaces and the following special characters are not supported: & < > [ ] \ ?.Changing this parameter will create a new resource.
id_type- (Optional, String, ForceNew) Specifies the identifier type of customer gateway. The value can beiporfqdn. The default value isip.asn- (Optional, Int, ForceNew) The BGP ASN number of the customer gateway. The value ranges from1to4,294,967,295, the default value is65,000. Set this parameter to0whenid_typeis set tofqdn.Changing this parameter will create a new resource.
tags- (Optional, Map) Specifies the tags of the customer gateway.
Attribute Reference¶
In addition to all arguments above, the following attributes are exported:
id- The resource ID.created_at- The create time.updated_at- The update time.route_mode- Specifies the routing mode.ip- Specifies the IP address of the customer gateway.region- Specifies the region in which resource is created.
Import¶
The gateway can be imported using the id, e.g.
$ terraform import opentelekomcloud_enterprise_vpn_customer_gateway_v5.cgw <id>