Skip to content

Latest commit

 

History

History
86 lines (62 loc) · 2.4 KB

File metadata and controls

86 lines (62 loc) · 2.4 KB
page_title cozystack_vminstance Data Source - cozystack
subcategory
description Read an existing Cozystack VM instance by name and namespace.

cozystack_vminstance (Data Source)

Read an existing Cozystack VM instance by name and namespace.

Example Usage

data "cozystack_vminstance" "vm" {
  name      = "vm"
  namespace = "tenant-root"
}

Schema

Required

  • name (String) VMInstance instance name.
  • namespace (String) Tenant namespace.

Read-Only

  • chart_version (String) Deployed chart version.
  • cloud_init (String) Cloud-init user data.
  • cloud_init_seed (String) SMBIOS UUID seed.
  • cpu_model (String) CPU model.
  • disks (Attributes List) Attached disks. (see below for nested schema)
  • external (Boolean) Whether external access is enabled.
  • external_allow_icmp (Boolean) Whether ICMP is allowed.
  • external_method (String) Traffic pass-through method.
  • external_ports (List of Number) Forwarded ports.
  • gpus (Attributes List) Attached GPUs. (see below for nested schema)
  • id (String) Synthetic identifier namespace/name.
  • instance_profile (String) Preferences profile.
  • instance_type (String) Instance type.
  • ip_address (String) Primary IP address of the running guest.
  • ip_addresses (List of String) All guest IP addresses.
  • networks (Attributes List) Attached networks. (see below for nested schema)
  • ready (Boolean) Whether the application's Ready condition is true.
  • resources (Attributes) Explicit CPU, memory, and socket configuration. (see below for nested schema)
  • run_strategy (String) Requested running state.
  • ssh_keys (List of String) SSH public keys.
  • uid (String) Server-assigned object UID (metadata.uid).

Nested Schema for disks

Read-Only:

  • bus (String) Disk bus type.
  • name (String) Disk name.

Nested Schema for gpus

Read-Only:

  • name (String) Name.

Nested Schema for networks

Read-Only:

  • name (String) Name.

Nested Schema for resources

Read-Only:

  • cpu (String) CPU cores.
  • memory (String) Memory.
  • sockets (String) CPU sockets.