Terraform-ProviderReferenzDatenquellen
odinex_server
Looks up a server by ID, name or label selector.
Diese Referenz wird aus dem Schema des Terraform-Providers erzeugt; die Beschreibungen der Argumente und Attribute sind auf Englisch.
Looks up a server by ID, name or label selector.
Beispiel
data "odinex_server" "web" {
name = "web-1"
}Schema
Optional
id(Number) ID of the server.name(String) Name of the server.with_selector(String) Label selector, e.g.env=prod,role.with_status(List of String) Only servers with one of these statuses.
Nur lesbar
backup_window(String) Backup window.backups(Boolean) Whether backups are enabled.delete_protection(Boolean) Whether delete protection is on.elastic_ip_address(String) Address of the Elastic IP (empty without one).elastic_ip_id(Number) ID of the Elastic IP of a server without public IPs.floating_ips(List of Number) IDs of assigned floating IPs.image(String) Name (or ID) of the image.ipv4_address(String) Public IPv4 address.ipv6_address(String) Public IPv6 address.labels(Map of String) Labels.location(String) Location name.network(List of Object) Private networks (network_id,ip).placement_group_id(Number) Placement group ID.primary_disk_size(Number) Disk size in GB.primary_network_id(Number) Network a server without public IPs lives on.rescue_enabled(Boolean) Whether the rescue system is enabled.server_type(String) Name of the server type.status(String) Status.volumes(List of Number) IDs of attached volumes.
Verschachteltes Schema für network
Read-Only:
ip(String)network_id(Number)