Skip to content
Odinex Cloud
Terraform providerReferenceData sources

odinex_servers

Lists servers, optionally filtered by label selector and status.

Lists servers, optionally filtered by label selector and status.

Example Usage

data "odinex_servers" "web" {
  with_selector = "role=web"
  with_statuses = ["running"]
}

Schema

Optional

  • with_selector (String) Label selector, e.g. env=prod,role.
  • with_statuses (List of String) Only servers with one of these statuses.

Read-Only

  • servers (List of Object) Matching servers.

Nested Schema for servers

Read-Only:

  • backup_window (String)
  • backups (Boolean)
  • delete_protection (Boolean)
  • floating_ips (List of Number)
  • id (Number)
  • image (String)
  • ipv4_address (String)
  • ipv6_address (String)
  • labels (Map of String)
  • location (String)
  • name (String)
  • network (List of Object)
  • placement_group_id (Number)
  • primary_disk_size (Number)
  • rescue_enabled (Boolean)
  • server_type (String)
  • status (String)
  • volumes (List of Number)

Nested Schema for servers.network

Read-Only:

  • ip (String)
  • network_id (Number)

On this page