Files
terraform-provider-binarylane/docs/data-sources/server.md
T
2026-08-11 17:43:07 +10:00

5.5 KiB

page_title, subcategory, description
page_title subcategory description
binarylane_server Data Source - terraform-provider-binarylane Retrieve details about a BinaryLane Server.

binarylane_server (Data Source)

Retrieve details about a BinaryLane Server.

Example Usage

data "binarylane_server" "example" {
  id = 123456
}

Schema

Required

  • id (Number) The ID of the server to fetch.

Read-Only

  • advanced_features (Object) (see below for nested schema)
  • backups (Boolean) If true this will enable two daily backups for the server. By default, backups are disabled.
  • disk (Number) The size of the primary disk in GB for this server. Leave null to accept the default for the size. When disks is also specified, the server's total allocated storage is disk + sum(disks.size_gigabytes) and this value refers only to the primary disk. Valid values:
    • must be a multiple of 5
    • > 60 GB must be a multiple of 10
    • > 200 GB must be a multiple of 100
  • disks (Attributes List) A list of additional disks to attach to the server, on top of the primary disk. The server's total allocated storage will be disk + sum(disks.size_gigabytes). Each disk is identified by its name, which is sent to the API as the disk description. Renaming a disk will cause it to be destroyed and re-created (data loss); resizing a disk is supported in place. (see below for nested schema)
  • image (String) The slug of the selected operating system, such as debian-12. You can fetch a full list of images from the BinaryLane API.
  • ipv6 (Boolean) If true this will add a public and private IPv6 address to the server. By default, IPv6 is disabled.
  • memory (Number) The total memory in MB for this server. Leave null to accept the default size. Valid values:
    • must be a multiple of 128
    • > 2048 MB must be a multiple of 1024
    • > 16384 MB must be a multiple of 2048
    • > 24576 MB must be a multiple of 4096
  • name (String) The hostname of your server, such as vps01.yourcompany.com. If not provided, the server will be created with a random name.
  • permalink (String) A randomly generated two-word identifier assigned to servers in regions that support this feature
  • port_blocking (Boolean) Port blocking of outgoing connections for email, SSH and Remote Desktop (TCP ports 22, 25, and 3389) is enabled by default for all new servers. If this is false port blocking will be disabled. Disabling port blocking is only available to verified accounts.
  • private_ipv4_addresses (List of String) The private IPv4 addresses assigned to the server.
  • private_ipv6_addresses (List of String) The private IPv6 addresses assigned to the server.
  • public_ipv4_addresses (List of String) The public IPv4 addresses assigned to the server.
  • public_ipv6_addresses (List of String) The public IPv6 addresses assigned to the server.
  • region (String) The slug of the selected region.
  • separate_private_network_interface (Boolean) This attribute can only be set if your server also has a vpc_id attribute set. When enabled, a separate private network interface is provided for the server's VPC traffic.
  • size (String) The slug of the selected size.
  • source_and_destination_check (Boolean) This attribute can only be set if your server also has a vpc_id attribute set. When enabled (which is true by default), your server will only be able to send or receive packets that are directly addressed to one of the IP addresses associated with the Cloud Server. Generally, this is desirable behaviour because it prevents IP conflicts and other hard-to-diagnose networking faults due to incorrect network configuration. When source_and_destination_check is false, your Cloud Server will be able to send and receive packets addressed to any server. This is typically used when you want to use your Cloud Server as a VPN endpoint, a NAT server to provide internet access, or IP forwarding.
  • ssh_keys (List of Number) This is a list of SSH key ids. If this is null or not provided, any SSH keys that have been marked as default will be deployed (assuming the operating system supports SSH Keys). Submit an empty list to disable deployment of default keys.
  • user_data (String) A script or cloud-config YAML file to configure the server. Can only be specified if the OS image supports UserData (i.e. not Windows). See more: https://cloudinit.readthedocs.io/en/latest/explanation/format.html#user-data-script
  • vpc_id (Number) Leave null to use default (public) network for the selected region.
  • vpc_ipv4_address (String) If provided this will be the IPv4 address for the server's private VPC network adapter. If this is unspecified, then an unused IPv4 address will be assigned. This field is only valid when vpc_id is provided.

Nested Schema for advanced_features

Read-Only:

  • cloud_init (Boolean)
  • driver_disk (Boolean)
  • emulated_devices (Boolean)
  • emulated_hyperv (Boolean)
  • emulated_tpm (Boolean)
  • local_rtc (Boolean)
  • nested_virt (Boolean)
  • qemu_guest_agent (Boolean)
  • uefi_boot (Boolean)
  • unset_uuid (Boolean)

Nested Schema for disks

Read-Only:

  • id (Number) The server-assigned ID of this disk.
  • name (String) A label for the disk. Sent to the API as the disk description. Must be unique within the disks list.
  • size_gigabytes (Number) The size of the additional disk in GB.