Terraform-ProviderReferenzRessourcen
odinex_network
Manages a private network.
Diese Referenz wird aus dem Schema des Terraform-Providers erzeugt; die Beschreibungen der Argumente und Attribute sind auf Englisch.
Manages a private network.
Beispiel
resource "odinex_network" "private" {
name = "private"
ip_range = "10.0.0.0/16"
location = "fra1"
}Schema
Erforderlich
ip_range(String) Private IPv4 range in CIDR notation, /16 to /28 (e.g.10.0.0.0/16). Changing it recreates the network.location(String) Location of the network, e.g.fra1. Changing it recreates the network.name(String) Name of the network.
Optional
delete_protection(Boolean) Prevent the resource from being deleted. Defaults tofalse.labels(Map of String) User-defined labels (key/value pairs). Up to 64 pairs; keys and values up to 63 characters.timeouts(Block, Optional)
Nur lesbar
gateway(String) Address kept for a NAT gateway: the first host ofip_range.id(String) Unique ID of the resource.nat_gateway_id(Number) ID of the network's NAT gateway (seeodinex_nat_gateway), if any.
Verschachteltes Schema für timeouts
Optional:
create(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).delete(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import odinex_network.private 3odinex_nat_gateway
Manages the NAT gateway of a private network (one per network). Servers without public IPs in the network reach the internet from the gateway's public IPv4; the gateway takes the first host of the network (its gateway).
odinex_placement_group
Manages a placement group (servers of a spread group run on different hosts).