Skip to content
Odinex Cloud
Terraform providerReferenceData sources

odinex_server

Looks up a server by ID, name or label selector.

Looks up a server by ID, name or label selector.

Example Usage

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.

Read-Only

  • backup_window (String) Backup window.
  • backups (Boolean) Whether backups are enabled.
  • delete_protection (Boolean) Whether delete protection is on.
  • 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.
  • 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.

Nested Schema for network

Read-Only:

  • ip (String)
  • network_id (Number)

On this page