nutanix.VirtualMachine
Explore with Pulumi AI
Provides a Nutanix Virtual Machine resource to Create a virtual machine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
import * as nutanix from "@pulumi/nutanix";
const clusters = nutanix.getClusters({});
const vm1 = new nutanix.VirtualMachine("vm1", {
    clusterUuid: clusters.then(clusters => clusters.entities?.[0]?.metadata?.uuid),
    categories: [{
        name: "Environment",
        value: "Staging",
    }],
    numVcpusPerSocket: 1,
    numSockets: 1,
    memorySizeMib: 2048,
});
import pulumi
import pulumi_nutanix as nutanix
clusters = nutanix.get_clusters()
vm1 = nutanix.VirtualMachine("vm1",
    cluster_uuid=clusters.entities[0].metadata["uuid"],
    categories=[{
        "name": "Environment",
        "value": "Staging",
    }],
    num_vcpus_per_socket=1,
    num_sockets=1,
    memory_size_mib=2048)
package main
import (
	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		clusters, err := nutanix.GetClusters(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		_, err = nutanix.NewVirtualMachine(ctx, "vm1", &nutanix.VirtualMachineArgs{
			ClusterUuid: pulumi.String(clusters.Entities[0].Metadata.Uuid),
			Categories: nutanix.VirtualMachineCategoryArray{
				&nutanix.VirtualMachineCategoryArgs{
					Name:  pulumi.String("Environment"),
					Value: pulumi.String("Staging"),
				},
			},
			NumVcpusPerSocket: pulumi.Int(1),
			NumSockets:        pulumi.Int(1),
			MemorySizeMib:     pulumi.Int(2048),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() => 
{
    var clusters = Nutanix.GetClusters.Invoke();
    var vm1 = new Nutanix.VirtualMachine("vm1", new()
    {
        ClusterUuid = clusters.Apply(getClustersResult => getClustersResult.Entities[0]?.Metadata?.Uuid),
        Categories = new[]
        {
            new Nutanix.Inputs.VirtualMachineCategoryArgs
            {
                Name = "Environment",
                Value = "Staging",
            },
        },
        NumVcpusPerSocket = 1,
        NumSockets = 1,
        MemorySizeMib = 2048,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.VirtualMachine;
import com.pulumi.nutanix.VirtualMachineArgs;
import com.pulumi.nutanix.inputs.VirtualMachineCategoryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var clusters = NutanixFunctions.getClusters();
        var vm1 = new VirtualMachine("vm1", VirtualMachineArgs.builder()
            .clusterUuid(clusters.applyValue(getClustersResult -> getClustersResult.entities()[0].metadata().uuid()))
            .categories(VirtualMachineCategoryArgs.builder()
                .name("Environment")
                .value("Staging")
                .build())
            .numVcpusPerSocket(1)
            .numSockets(1)
            .memorySizeMib(2048)
            .build());
    }
}
resources:
  vm1:
    type: nutanix:VirtualMachine
    properties:
      clusterUuid: ${clusters.entities[0].metadata.uuid}
      categories:
        - name: Environment
          value: Staging
      numVcpusPerSocket: 1
      numSockets: 1
      memorySizeMib: 2048
variables:
  clusters:
    fn::invoke:
      Function: nutanix:getClusters
      Arguments: {}
With Storage Config
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
import * as nutanix from "@pulumi/nutanix";
const clusters = nutanix.getClusters({});
const vm = new nutanix.VirtualMachine("vm", {
    clusterUuid: clusters.then(clusters => clusters.entities?.[0]?.metadata?.uuid),
    numVcpusPerSocket: 1,
    numSockets: 1,
    memorySizeMib: 186,
    diskLists: [{
        diskSizeBytes: 68157440,
        diskSizeMib: 65,
        storageConfig: {
            storageContainerReferences: [{
                kind: "storage_container",
                uuid: "2bbe67bc-fd14-4637-8de1-6379257f4219",
            }],
        },
    }],
});
import pulumi
import pulumi_nutanix as nutanix
clusters = nutanix.get_clusters()
vm = nutanix.VirtualMachine("vm",
    cluster_uuid=clusters.entities[0].metadata["uuid"],
    num_vcpus_per_socket=1,
    num_sockets=1,
    memory_size_mib=186,
    disk_lists=[{
        "disk_size_bytes": 68157440,
        "disk_size_mib": 65,
        "storage_config": {
            "storage_container_references": [{
                "kind": "storage_container",
                "uuid": "2bbe67bc-fd14-4637-8de1-6379257f4219",
            }],
        },
    }])
package main
import (
	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		clusters, err := nutanix.GetClusters(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		_, err = nutanix.NewVirtualMachine(ctx, "vm", &nutanix.VirtualMachineArgs{
			ClusterUuid:       pulumi.String(clusters.Entities[0].Metadata.Uuid),
			NumVcpusPerSocket: pulumi.Int(1),
			NumSockets:        pulumi.Int(1),
			MemorySizeMib:     pulumi.Int(186),
			DiskLists: nutanix.VirtualMachineDiskListArray{
				&nutanix.VirtualMachineDiskListArgs{
					DiskSizeBytes: pulumi.Int(68157440),
					DiskSizeMib:   pulumi.Int(65),
					StorageConfig: &nutanix.VirtualMachineDiskListStorageConfigArgs{
						StorageContainerReferences: nutanix.VirtualMachineDiskListStorageConfigStorageContainerReferenceArray{
							&nutanix.VirtualMachineDiskListStorageConfigStorageContainerReferenceArgs{
								Kind: pulumi.String("storage_container"),
								Uuid: pulumi.String("2bbe67bc-fd14-4637-8de1-6379257f4219"),
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() => 
{
    var clusters = Nutanix.GetClusters.Invoke();
    var vm = new Nutanix.VirtualMachine("vm", new()
    {
        ClusterUuid = clusters.Apply(getClustersResult => getClustersResult.Entities[0]?.Metadata?.Uuid),
        NumVcpusPerSocket = 1,
        NumSockets = 1,
        MemorySizeMib = 186,
        DiskLists = new[]
        {
            new Nutanix.Inputs.VirtualMachineDiskListArgs
            {
                DiskSizeBytes = 68157440,
                DiskSizeMib = 65,
                StorageConfig = new Nutanix.Inputs.VirtualMachineDiskListStorageConfigArgs
                {
                    StorageContainerReferences = new[]
                    {
                        new Nutanix.Inputs.VirtualMachineDiskListStorageConfigStorageContainerReferenceArgs
                        {
                            Kind = "storage_container",
                            Uuid = "2bbe67bc-fd14-4637-8de1-6379257f4219",
                        },
                    },
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.VirtualMachine;
import com.pulumi.nutanix.VirtualMachineArgs;
import com.pulumi.nutanix.inputs.VirtualMachineDiskListArgs;
import com.pulumi.nutanix.inputs.VirtualMachineDiskListStorageConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var clusters = NutanixFunctions.getClusters();
        var vm = new VirtualMachine("vm", VirtualMachineArgs.builder()
            .clusterUuid(clusters.applyValue(getClustersResult -> getClustersResult.entities()[0].metadata().uuid()))
            .numVcpusPerSocket(1)
            .numSockets(1)
            .memorySizeMib(186)
            .diskLists(VirtualMachineDiskListArgs.builder()
                .diskSizeBytes(68157440)
                .diskSizeMib(65)
                .storageConfig(VirtualMachineDiskListStorageConfigArgs.builder()
                    .storageContainerReferences(VirtualMachineDiskListStorageConfigStorageContainerReferenceArgs.builder()
                        .kind("storage_container")
                        .uuid("2bbe67bc-fd14-4637-8de1-6379257f4219")
                        .build())
                    .build())
                .build())
            .build());
    }
}
resources:
  vm:
    type: nutanix:VirtualMachine
    properties:
      clusterUuid: ${clusters.entities[0].metadata.uuid}
      numVcpusPerSocket: 1
      numSockets: 1
      memorySizeMib: 186
      diskLists:
        - diskSizeBytes: 6.815744e+07
          diskSizeMib: 65
          storageConfig:
            storageContainerReferences:
              - kind: storage_container
                uuid: 2bbe67bc-fd14-4637-8de1-6379257f4219
variables:
  clusters:
    fn::invoke:
      Function: nutanix:getClusters
      Arguments: {}
Create VirtualMachine Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualMachine(name: string, args: VirtualMachineArgs, opts?: CustomResourceOptions);@overload
def VirtualMachine(resource_name: str,
                   args: VirtualMachineArgs,
                   opts: Optional[ResourceOptions] = None)
@overload
def VirtualMachine(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   cluster_uuid: Optional[str] = None,
                   hardware_clock_timezone: Optional[str] = None,
                   power_state_mechanism: Optional[str] = None,
                   boot_device_order_lists: Optional[Sequence[str]] = None,
                   boot_type: Optional[str] = None,
                   categories: Optional[Sequence[VirtualMachineCategoryArgs]] = None,
                   cloud_init_cdrom_uuid: Optional[str] = None,
                   boot_device_disk_address: Optional[Mapping[str, str]] = None,
                   description: Optional[str] = None,
                   disk_lists: Optional[Sequence[VirtualMachineDiskListArgs]] = None,
                   enable_cpu_passthrough: Optional[bool] = None,
                   enable_script_exec: Optional[bool] = None,
                   gpu_lists: Optional[Sequence[VirtualMachineGpuListArgs]] = None,
                   guest_customization_cloud_init_custom_key_values: Optional[Mapping[str, str]] = None,
                   is_vcpu_hard_pinned: Optional[bool] = None,
                   guest_customization_cloud_init_user_data: Optional[str] = None,
                   guest_customization_is_overridable: Optional[bool] = None,
                   guest_customization_sysprep: Optional[Mapping[str, str]] = None,
                   guest_customization_sysprep_custom_key_values: Optional[Mapping[str, str]] = None,
                   use_hot_add: Optional[bool] = None,
                   boot_device_mac_address: Optional[str] = None,
                   guest_customization_cloud_init_meta_data: Optional[str] = None,
                   machine_type: Optional[str] = None,
                   memory_size_mib: Optional[int] = None,
                   name: Optional[str] = None,
                   ngt_credentials: Optional[Mapping[str, str]] = None,
                   ngt_enabled_capability_lists: Optional[Sequence[str]] = None,
                   nic_lists: Optional[Sequence[VirtualMachineNicListArgs]] = None,
                   num_sockets: Optional[int] = None,
                   num_vcpus_per_socket: Optional[int] = None,
                   num_vnuma_nodes: Optional[int] = None,
                   nutanix_guest_tools: Optional[Mapping[str, str]] = None,
                   owner_reference: Optional[Mapping[str, str]] = None,
                   parent_reference: Optional[Mapping[str, str]] = None,
                   availability_zone_reference: Optional[Mapping[str, str]] = None,
                   project_reference: Optional[Mapping[str, str]] = None,
                   serial_port_lists: Optional[Sequence[VirtualMachineSerialPortListArgs]] = None,
                   should_fail_on_script_failure: Optional[bool] = None,
                   guest_os_id: Optional[str] = None,
                   vga_console_enabled: Optional[bool] = None)func NewVirtualMachine(ctx *Context, name string, args VirtualMachineArgs, opts ...ResourceOption) (*VirtualMachine, error)public VirtualMachine(string name, VirtualMachineArgs args, CustomResourceOptions? opts = null)
public VirtualMachine(String name, VirtualMachineArgs args)
public VirtualMachine(String name, VirtualMachineArgs args, CustomResourceOptions options)
type: nutanix:VirtualMachine
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var virtualMachineResource = new Nutanix.VirtualMachine("virtualMachineResource", new()
{
    ClusterUuid = "string",
    HardwareClockTimezone = "string",
    PowerStateMechanism = "string",
    BootDeviceOrderLists = new[]
    {
        "string",
    },
    BootType = "string",
    Categories = new[]
    {
        new Nutanix.Inputs.VirtualMachineCategoryArgs
        {
            Name = "string",
            Value = "string",
        },
    },
    CloudInitCdromUuid = "string",
    BootDeviceDiskAddress = 
    {
        { "string", "string" },
    },
    Description = "string",
    DiskLists = new[]
    {
        new Nutanix.Inputs.VirtualMachineDiskListArgs
        {
            DataSourceReference = 
            {
                { "string", "string" },
            },
            DeviceProperties = new Nutanix.Inputs.VirtualMachineDiskListDevicePropertiesArgs
            {
                DeviceType = "string",
                DiskAddress = 
                {
                    { "string", "string" },
                },
            },
            DiskSizeBytes = 0,
            DiskSizeMib = 0,
            StorageConfig = new Nutanix.Inputs.VirtualMachineDiskListStorageConfigArgs
            {
                FlashMode = "string",
                StorageContainerReferences = new[]
                {
                    new Nutanix.Inputs.VirtualMachineDiskListStorageConfigStorageContainerReferenceArgs
                    {
                        Kind = "string",
                        Name = "string",
                        Url = "string",
                        Uuid = "string",
                    },
                },
            },
            Uuid = "string",
            VolumeGroupReference = 
            {
                { "string", "string" },
            },
        },
    },
    EnableCpuPassthrough = false,
    EnableScriptExec = false,
    GpuLists = new[]
    {
        new Nutanix.Inputs.VirtualMachineGpuListArgs
        {
            DeviceId = 0,
            Fraction = 0,
            FrameBufferSizeMib = 0,
            GuestDriverVersion = "string",
            Mode = "string",
            Name = "string",
            NumVirtualDisplayHeads = 0,
            PciAddress = "string",
            Uuid = "string",
            Vendor = "string",
        },
    },
    GuestCustomizationCloudInitCustomKeyValues = 
    {
        { "string", "string" },
    },
    IsVcpuHardPinned = false,
    GuestCustomizationCloudInitUserData = "string",
    GuestCustomizationIsOverridable = false,
    GuestCustomizationSysprep = 
    {
        { "string", "string" },
    },
    GuestCustomizationSysprepCustomKeyValues = 
    {
        { "string", "string" },
    },
    UseHotAdd = false,
    BootDeviceMacAddress = "string",
    GuestCustomizationCloudInitMetaData = "string",
    MachineType = "string",
    MemorySizeMib = 0,
    Name = "string",
    NgtCredentials = 
    {
        { "string", "string" },
    },
    NgtEnabledCapabilityLists = new[]
    {
        "string",
    },
    NicLists = new[]
    {
        new Nutanix.Inputs.VirtualMachineNicListArgs
        {
            IpEndpointLists = new[]
            {
                new Nutanix.Inputs.VirtualMachineNicListIpEndpointListArgs
                {
                    Ip = "string",
                    Type = "string",
                },
            },
            IsConnected = "string",
            MacAddress = "string",
            Model = "string",
            NetworkFunctionChainReference = 
            {
                { "string", "string" },
            },
            NetworkFunctionNicType = "string",
            NicType = "string",
            NumQueues = 0,
            SubnetName = "string",
            SubnetUuid = "string",
            Uuid = "string",
        },
    },
    NumSockets = 0,
    NumVcpusPerSocket = 0,
    NumVnumaNodes = 0,
    NutanixGuestTools = 
    {
        { "string", "string" },
    },
    OwnerReference = 
    {
        { "string", "string" },
    },
    ParentReference = 
    {
        { "string", "string" },
    },
    AvailabilityZoneReference = 
    {
        { "string", "string" },
    },
    ProjectReference = 
    {
        { "string", "string" },
    },
    SerialPortLists = new[]
    {
        new Nutanix.Inputs.VirtualMachineSerialPortListArgs
        {
            Index = 0,
            IsConnected = false,
        },
    },
    ShouldFailOnScriptFailure = false,
    GuestOsId = "string",
    VgaConsoleEnabled = false,
});
example, err := nutanix.NewVirtualMachine(ctx, "virtualMachineResource", &nutanix.VirtualMachineArgs{
	ClusterUuid:           pulumi.String("string"),
	HardwareClockTimezone: pulumi.String("string"),
	PowerStateMechanism:   pulumi.String("string"),
	BootDeviceOrderLists: pulumi.StringArray{
		pulumi.String("string"),
	},
	BootType: pulumi.String("string"),
	Categories: nutanix.VirtualMachineCategoryArray{
		&nutanix.VirtualMachineCategoryArgs{
			Name:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	CloudInitCdromUuid: pulumi.String("string"),
	BootDeviceDiskAddress: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	DiskLists: nutanix.VirtualMachineDiskListArray{
		&nutanix.VirtualMachineDiskListArgs{
			DataSourceReference: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
			DeviceProperties: &nutanix.VirtualMachineDiskListDevicePropertiesArgs{
				DeviceType: pulumi.String("string"),
				DiskAddress: pulumi.StringMap{
					"string": pulumi.String("string"),
				},
			},
			DiskSizeBytes: pulumi.Int(0),
			DiskSizeMib:   pulumi.Int(0),
			StorageConfig: &nutanix.VirtualMachineDiskListStorageConfigArgs{
				FlashMode: pulumi.String("string"),
				StorageContainerReferences: nutanix.VirtualMachineDiskListStorageConfigStorageContainerReferenceArray{
					&nutanix.VirtualMachineDiskListStorageConfigStorageContainerReferenceArgs{
						Kind: pulumi.String("string"),
						Name: pulumi.String("string"),
						Url:  pulumi.String("string"),
						Uuid: pulumi.String("string"),
					},
				},
			},
			Uuid: pulumi.String("string"),
			VolumeGroupReference: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
		},
	},
	EnableCpuPassthrough: pulumi.Bool(false),
	EnableScriptExec:     pulumi.Bool(false),
	GpuLists: nutanix.VirtualMachineGpuListArray{
		&nutanix.VirtualMachineGpuListArgs{
			DeviceId:               pulumi.Int(0),
			Fraction:               pulumi.Int(0),
			FrameBufferSizeMib:     pulumi.Int(0),
			GuestDriverVersion:     pulumi.String("string"),
			Mode:                   pulumi.String("string"),
			Name:                   pulumi.String("string"),
			NumVirtualDisplayHeads: pulumi.Int(0),
			PciAddress:             pulumi.String("string"),
			Uuid:                   pulumi.String("string"),
			Vendor:                 pulumi.String("string"),
		},
	},
	GuestCustomizationCloudInitCustomKeyValues: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	IsVcpuHardPinned:                    pulumi.Bool(false),
	GuestCustomizationCloudInitUserData: pulumi.String("string"),
	GuestCustomizationIsOverridable:     pulumi.Bool(false),
	GuestCustomizationSysprep: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	GuestCustomizationSysprepCustomKeyValues: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	UseHotAdd:                           pulumi.Bool(false),
	BootDeviceMacAddress:                pulumi.String("string"),
	GuestCustomizationCloudInitMetaData: pulumi.String("string"),
	MachineType:                         pulumi.String("string"),
	MemorySizeMib:                       pulumi.Int(0),
	Name:                                pulumi.String("string"),
	NgtCredentials: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	NgtEnabledCapabilityLists: pulumi.StringArray{
		pulumi.String("string"),
	},
	NicLists: nutanix.VirtualMachineNicListArray{
		&nutanix.VirtualMachineNicListArgs{
			IpEndpointLists: nutanix.VirtualMachineNicListIpEndpointListArray{
				&nutanix.VirtualMachineNicListIpEndpointListArgs{
					Ip:   pulumi.String("string"),
					Type: pulumi.String("string"),
				},
			},
			IsConnected: pulumi.String("string"),
			MacAddress:  pulumi.String("string"),
			Model:       pulumi.String("string"),
			NetworkFunctionChainReference: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
			NetworkFunctionNicType: pulumi.String("string"),
			NicType:                pulumi.String("string"),
			NumQueues:              pulumi.Int(0),
			SubnetName:             pulumi.String("string"),
			SubnetUuid:             pulumi.String("string"),
			Uuid:                   pulumi.String("string"),
		},
	},
	NumSockets:        pulumi.Int(0),
	NumVcpusPerSocket: pulumi.Int(0),
	NumVnumaNodes:     pulumi.Int(0),
	NutanixGuestTools: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	OwnerReference: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	ParentReference: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	AvailabilityZoneReference: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	ProjectReference: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	SerialPortLists: nutanix.VirtualMachineSerialPortListArray{
		&nutanix.VirtualMachineSerialPortListArgs{
			Index:       pulumi.Int(0),
			IsConnected: pulumi.Bool(false),
		},
	},
	ShouldFailOnScriptFailure: pulumi.Bool(false),
	GuestOsId:                 pulumi.String("string"),
	VgaConsoleEnabled:         pulumi.Bool(false),
})
var virtualMachineResource = new VirtualMachine("virtualMachineResource", VirtualMachineArgs.builder()
    .clusterUuid("string")
    .hardwareClockTimezone("string")
    .powerStateMechanism("string")
    .bootDeviceOrderLists("string")
    .bootType("string")
    .categories(VirtualMachineCategoryArgs.builder()
        .name("string")
        .value("string")
        .build())
    .cloudInitCdromUuid("string")
    .bootDeviceDiskAddress(Map.of("string", "string"))
    .description("string")
    .diskLists(VirtualMachineDiskListArgs.builder()
        .dataSourceReference(Map.of("string", "string"))
        .deviceProperties(VirtualMachineDiskListDevicePropertiesArgs.builder()
            .deviceType("string")
            .diskAddress(Map.of("string", "string"))
            .build())
        .diskSizeBytes(0)
        .diskSizeMib(0)
        .storageConfig(VirtualMachineDiskListStorageConfigArgs.builder()
            .flashMode("string")
            .storageContainerReferences(VirtualMachineDiskListStorageConfigStorageContainerReferenceArgs.builder()
                .kind("string")
                .name("string")
                .url("string")
                .uuid("string")
                .build())
            .build())
        .uuid("string")
        .volumeGroupReference(Map.of("string", "string"))
        .build())
    .enableCpuPassthrough(false)
    .enableScriptExec(false)
    .gpuLists(VirtualMachineGpuListArgs.builder()
        .deviceId(0)
        .fraction(0)
        .frameBufferSizeMib(0)
        .guestDriverVersion("string")
        .mode("string")
        .name("string")
        .numVirtualDisplayHeads(0)
        .pciAddress("string")
        .uuid("string")
        .vendor("string")
        .build())
    .guestCustomizationCloudInitCustomKeyValues(Map.of("string", "string"))
    .isVcpuHardPinned(false)
    .guestCustomizationCloudInitUserData("string")
    .guestCustomizationIsOverridable(false)
    .guestCustomizationSysprep(Map.of("string", "string"))
    .guestCustomizationSysprepCustomKeyValues(Map.of("string", "string"))
    .useHotAdd(false)
    .bootDeviceMacAddress("string")
    .guestCustomizationCloudInitMetaData("string")
    .machineType("string")
    .memorySizeMib(0)
    .name("string")
    .ngtCredentials(Map.of("string", "string"))
    .ngtEnabledCapabilityLists("string")
    .nicLists(VirtualMachineNicListArgs.builder()
        .ipEndpointLists(VirtualMachineNicListIpEndpointListArgs.builder()
            .ip("string")
            .type("string")
            .build())
        .isConnected("string")
        .macAddress("string")
        .model("string")
        .networkFunctionChainReference(Map.of("string", "string"))
        .networkFunctionNicType("string")
        .nicType("string")
        .numQueues(0)
        .subnetName("string")
        .subnetUuid("string")
        .uuid("string")
        .build())
    .numSockets(0)
    .numVcpusPerSocket(0)
    .numVnumaNodes(0)
    .nutanixGuestTools(Map.of("string", "string"))
    .ownerReference(Map.of("string", "string"))
    .parentReference(Map.of("string", "string"))
    .availabilityZoneReference(Map.of("string", "string"))
    .projectReference(Map.of("string", "string"))
    .serialPortLists(VirtualMachineSerialPortListArgs.builder()
        .index(0)
        .isConnected(false)
        .build())
    .shouldFailOnScriptFailure(false)
    .guestOsId("string")
    .vgaConsoleEnabled(false)
    .build());
virtual_machine_resource = nutanix.VirtualMachine("virtualMachineResource",
    cluster_uuid="string",
    hardware_clock_timezone="string",
    power_state_mechanism="string",
    boot_device_order_lists=["string"],
    boot_type="string",
    categories=[{
        "name": "string",
        "value": "string",
    }],
    cloud_init_cdrom_uuid="string",
    boot_device_disk_address={
        "string": "string",
    },
    description="string",
    disk_lists=[{
        "data_source_reference": {
            "string": "string",
        },
        "device_properties": {
            "device_type": "string",
            "disk_address": {
                "string": "string",
            },
        },
        "disk_size_bytes": 0,
        "disk_size_mib": 0,
        "storage_config": {
            "flash_mode": "string",
            "storage_container_references": [{
                "kind": "string",
                "name": "string",
                "url": "string",
                "uuid": "string",
            }],
        },
        "uuid": "string",
        "volume_group_reference": {
            "string": "string",
        },
    }],
    enable_cpu_passthrough=False,
    enable_script_exec=False,
    gpu_lists=[{
        "device_id": 0,
        "fraction": 0,
        "frame_buffer_size_mib": 0,
        "guest_driver_version": "string",
        "mode": "string",
        "name": "string",
        "num_virtual_display_heads": 0,
        "pci_address": "string",
        "uuid": "string",
        "vendor": "string",
    }],
    guest_customization_cloud_init_custom_key_values={
        "string": "string",
    },
    is_vcpu_hard_pinned=False,
    guest_customization_cloud_init_user_data="string",
    guest_customization_is_overridable=False,
    guest_customization_sysprep={
        "string": "string",
    },
    guest_customization_sysprep_custom_key_values={
        "string": "string",
    },
    use_hot_add=False,
    boot_device_mac_address="string",
    guest_customization_cloud_init_meta_data="string",
    machine_type="string",
    memory_size_mib=0,
    name="string",
    ngt_credentials={
        "string": "string",
    },
    ngt_enabled_capability_lists=["string"],
    nic_lists=[{
        "ip_endpoint_lists": [{
            "ip": "string",
            "type": "string",
        }],
        "is_connected": "string",
        "mac_address": "string",
        "model": "string",
        "network_function_chain_reference": {
            "string": "string",
        },
        "network_function_nic_type": "string",
        "nic_type": "string",
        "num_queues": 0,
        "subnet_name": "string",
        "subnet_uuid": "string",
        "uuid": "string",
    }],
    num_sockets=0,
    num_vcpus_per_socket=0,
    num_vnuma_nodes=0,
    nutanix_guest_tools={
        "string": "string",
    },
    owner_reference={
        "string": "string",
    },
    parent_reference={
        "string": "string",
    },
    availability_zone_reference={
        "string": "string",
    },
    project_reference={
        "string": "string",
    },
    serial_port_lists=[{
        "index": 0,
        "is_connected": False,
    }],
    should_fail_on_script_failure=False,
    guest_os_id="string",
    vga_console_enabled=False)
const virtualMachineResource = new nutanix.VirtualMachine("virtualMachineResource", {
    clusterUuid: "string",
    hardwareClockTimezone: "string",
    powerStateMechanism: "string",
    bootDeviceOrderLists: ["string"],
    bootType: "string",
    categories: [{
        name: "string",
        value: "string",
    }],
    cloudInitCdromUuid: "string",
    bootDeviceDiskAddress: {
        string: "string",
    },
    description: "string",
    diskLists: [{
        dataSourceReference: {
            string: "string",
        },
        deviceProperties: {
            deviceType: "string",
            diskAddress: {
                string: "string",
            },
        },
        diskSizeBytes: 0,
        diskSizeMib: 0,
        storageConfig: {
            flashMode: "string",
            storageContainerReferences: [{
                kind: "string",
                name: "string",
                url: "string",
                uuid: "string",
            }],
        },
        uuid: "string",
        volumeGroupReference: {
            string: "string",
        },
    }],
    enableCpuPassthrough: false,
    enableScriptExec: false,
    gpuLists: [{
        deviceId: 0,
        fraction: 0,
        frameBufferSizeMib: 0,
        guestDriverVersion: "string",
        mode: "string",
        name: "string",
        numVirtualDisplayHeads: 0,
        pciAddress: "string",
        uuid: "string",
        vendor: "string",
    }],
    guestCustomizationCloudInitCustomKeyValues: {
        string: "string",
    },
    isVcpuHardPinned: false,
    guestCustomizationCloudInitUserData: "string",
    guestCustomizationIsOverridable: false,
    guestCustomizationSysprep: {
        string: "string",
    },
    guestCustomizationSysprepCustomKeyValues: {
        string: "string",
    },
    useHotAdd: false,
    bootDeviceMacAddress: "string",
    guestCustomizationCloudInitMetaData: "string",
    machineType: "string",
    memorySizeMib: 0,
    name: "string",
    ngtCredentials: {
        string: "string",
    },
    ngtEnabledCapabilityLists: ["string"],
    nicLists: [{
        ipEndpointLists: [{
            ip: "string",
            type: "string",
        }],
        isConnected: "string",
        macAddress: "string",
        model: "string",
        networkFunctionChainReference: {
            string: "string",
        },
        networkFunctionNicType: "string",
        nicType: "string",
        numQueues: 0,
        subnetName: "string",
        subnetUuid: "string",
        uuid: "string",
    }],
    numSockets: 0,
    numVcpusPerSocket: 0,
    numVnumaNodes: 0,
    nutanixGuestTools: {
        string: "string",
    },
    ownerReference: {
        string: "string",
    },
    parentReference: {
        string: "string",
    },
    availabilityZoneReference: {
        string: "string",
    },
    projectReference: {
        string: "string",
    },
    serialPortLists: [{
        index: 0,
        isConnected: false,
    }],
    shouldFailOnScriptFailure: false,
    guestOsId: "string",
    vgaConsoleEnabled: false,
});
type: nutanix:VirtualMachine
properties:
    availabilityZoneReference:
        string: string
    bootDeviceDiskAddress:
        string: string
    bootDeviceMacAddress: string
    bootDeviceOrderLists:
        - string
    bootType: string
    categories:
        - name: string
          value: string
    cloudInitCdromUuid: string
    clusterUuid: string
    description: string
    diskLists:
        - dataSourceReference:
            string: string
          deviceProperties:
            deviceType: string
            diskAddress:
                string: string
          diskSizeBytes: 0
          diskSizeMib: 0
          storageConfig:
            flashMode: string
            storageContainerReferences:
                - kind: string
                  name: string
                  url: string
                  uuid: string
          uuid: string
          volumeGroupReference:
            string: string
    enableCpuPassthrough: false
    enableScriptExec: false
    gpuLists:
        - deviceId: 0
          fraction: 0
          frameBufferSizeMib: 0
          guestDriverVersion: string
          mode: string
          name: string
          numVirtualDisplayHeads: 0
          pciAddress: string
          uuid: string
          vendor: string
    guestCustomizationCloudInitCustomKeyValues:
        string: string
    guestCustomizationCloudInitMetaData: string
    guestCustomizationCloudInitUserData: string
    guestCustomizationIsOverridable: false
    guestCustomizationSysprep:
        string: string
    guestCustomizationSysprepCustomKeyValues:
        string: string
    guestOsId: string
    hardwareClockTimezone: string
    isVcpuHardPinned: false
    machineType: string
    memorySizeMib: 0
    name: string
    ngtCredentials:
        string: string
    ngtEnabledCapabilityLists:
        - string
    nicLists:
        - ipEndpointLists:
            - ip: string
              type: string
          isConnected: string
          macAddress: string
          model: string
          networkFunctionChainReference:
            string: string
          networkFunctionNicType: string
          nicType: string
          numQueues: 0
          subnetName: string
          subnetUuid: string
          uuid: string
    numSockets: 0
    numVcpusPerSocket: 0
    numVnumaNodes: 0
    nutanixGuestTools:
        string: string
    ownerReference:
        string: string
    parentReference:
        string: string
    powerStateMechanism: string
    projectReference:
        string: string
    serialPortLists:
        - index: 0
          isConnected: false
    shouldFailOnScriptFailure: false
    useHotAdd: false
    vgaConsoleEnabled: false
VirtualMachine Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VirtualMachine resource accepts the following input properties:
- ClusterUuid string
- (Required) The UUID of the cluster.
 
- AvailabilityZone Dictionary<string, string>Reference 
- (Optional) The reference to a availability_zone.
 
- BootDevice Dictionary<string, string>Disk Address 
- (Optional) Address of disk to boot from.
 
- BootDevice stringMac Address 
- (Optional) MAC address of nic to boot from.
 
- BootDevice List<string>Order Lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- BootType string
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- Categories
List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Category> 
- (Optional) Categories for the vm.
 
- CloudInit stringCdrom Uuid 
- Description string
- (Optional) A description for vm.
 
- DiskLists List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Disk List> 
- Disks attached to the VM.
- EnableCpu boolPassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- EnableScript boolExec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- GpuLists List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Gpu List> 
- (Optional) GPUs attached to the VM.
 
- GuestCustomization Dictionary<string, string>Cloud Init Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- GuestCustomization stringCloud Init Meta Data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- GuestCustomization stringCloud Init User Data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- GuestCustomization boolIs Overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- GuestCustomization Dictionary<string, string>Sysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- GuestCustomization Dictionary<string, string>Sysprep Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- GuestOs stringId 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- HardwareClock stringTimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- IsVcpu boolHard Pinned 
- (Optional) Add true to enable CPU pinning.
 
- MachineType string
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- MemorySize intMib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- Name string
- (Required) The name for the vm.
 
- NgtCredentials Dictionary<string, string>
- (Ooptional) Credentials to login server.
 
- NgtEnabled List<string>Capability Lists 
- Application names that are enabled.
- NicLists List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Nic List> 
- (Optional) Spec NICs attached to the VM.
 
- NumSockets int
- (Optional) Number of vCPU sockets.
 
- NumVcpus intPer Socket 
- (Optional) Number of vCPUs per socket.
 
- NumVnuma intNodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- NutanixGuest Dictionary<string, string>Tools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- OwnerReference Dictionary<string, string>
- (Optional) The reference to a user.
 
- ParentReference Dictionary<string, string>
- (Optional) Reference to an entity that the VM cloned from.
 
- PowerState stringMechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- ProjectReference Dictionary<string, string>
- (Optional) The reference to a project.
 
- SerialPort List<PiersLists Karsenbarg. Nutanix. Inputs. Virtual Machine Serial Port List> 
- (Optional) Serial Ports configured on the VM.
 
- ShouldFail boolOn Script Failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- UseHot boolAdd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- VgaConsole boolEnabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
- ClusterUuid string
- (Required) The UUID of the cluster.
 
- AvailabilityZone map[string]stringReference 
- (Optional) The reference to a availability_zone.
 
- BootDevice map[string]stringDisk Address 
- (Optional) Address of disk to boot from.
 
- BootDevice stringMac Address 
- (Optional) MAC address of nic to boot from.
 
- BootDevice []stringOrder Lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- BootType string
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- Categories
[]VirtualMachine Category Args 
- (Optional) Categories for the vm.
 
- CloudInit stringCdrom Uuid 
- Description string
- (Optional) A description for vm.
 
- DiskLists []VirtualMachine Disk List Args 
- Disks attached to the VM.
- EnableCpu boolPassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- EnableScript boolExec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- GpuLists []VirtualMachine Gpu List Args 
- (Optional) GPUs attached to the VM.
 
- GuestCustomization map[string]stringCloud Init Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- GuestCustomization stringCloud Init Meta Data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- GuestCustomization stringCloud Init User Data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- GuestCustomization boolIs Overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- GuestCustomization map[string]stringSysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- GuestCustomization map[string]stringSysprep Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- GuestOs stringId 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- HardwareClock stringTimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- IsVcpu boolHard Pinned 
- (Optional) Add true to enable CPU pinning.
 
- MachineType string
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- MemorySize intMib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- Name string
- (Required) The name for the vm.
 
- NgtCredentials map[string]string
- (Ooptional) Credentials to login server.
 
- NgtEnabled []stringCapability Lists 
- Application names that are enabled.
- NicLists []VirtualMachine Nic List Args 
- (Optional) Spec NICs attached to the VM.
 
- NumSockets int
- (Optional) Number of vCPU sockets.
 
- NumVcpus intPer Socket 
- (Optional) Number of vCPUs per socket.
 
- NumVnuma intNodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- NutanixGuest map[string]stringTools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- OwnerReference map[string]string
- (Optional) The reference to a user.
 
- ParentReference map[string]string
- (Optional) Reference to an entity that the VM cloned from.
 
- PowerState stringMechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- ProjectReference map[string]string
- (Optional) The reference to a project.
 
- SerialPort []VirtualLists Machine Serial Port List Args 
- (Optional) Serial Ports configured on the VM.
 
- ShouldFail boolOn Script Failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- UseHot boolAdd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- VgaConsole boolEnabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
- clusterUuid String
- (Required) The UUID of the cluster.
 
- availabilityZone Map<String,String>Reference 
- (Optional) The reference to a availability_zone.
 
- bootDevice Map<String,String>Disk Address 
- (Optional) Address of disk to boot from.
 
- bootDevice StringMac Address 
- (Optional) MAC address of nic to boot from.
 
- bootDevice List<String>Order Lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- bootType String
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- categories
List<VirtualMachine Category> 
- (Optional) Categories for the vm.
 
- cloudInit StringCdrom Uuid 
- description String
- (Optional) A description for vm.
 
- diskLists List<VirtualMachine Disk List> 
- Disks attached to the VM.
- enableCpu BooleanPassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- enableScript BooleanExec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- gpuLists List<VirtualMachine Gpu List> 
- (Optional) GPUs attached to the VM.
 
- guestCustomization Map<String,String>Cloud Init Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- guestCustomization StringCloud Init Meta Data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- guestCustomization StringCloud Init User Data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- guestCustomization BooleanIs Overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- guestCustomization Map<String,String>Sysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- guestCustomization Map<String,String>Sysprep Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- guestOs StringId 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- hardwareClock StringTimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- isVcpu BooleanHard Pinned 
- (Optional) Add true to enable CPU pinning.
 
- machineType String
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- memorySize IntegerMib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- name String
- (Required) The name for the vm.
 
- ngtCredentials Map<String,String>
- (Ooptional) Credentials to login server.
 
- ngtEnabled List<String>Capability Lists 
- Application names that are enabled.
- nicLists List<VirtualMachine Nic List> 
- (Optional) Spec NICs attached to the VM.
 
- numSockets Integer
- (Optional) Number of vCPU sockets.
 
- numVcpus IntegerPer Socket 
- (Optional) Number of vCPUs per socket.
 
- numVnuma IntegerNodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- nutanixGuest Map<String,String>Tools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- ownerReference Map<String,String>
- (Optional) The reference to a user.
 
- parentReference Map<String,String>
- (Optional) Reference to an entity that the VM cloned from.
 
- powerState StringMechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- projectReference Map<String,String>
- (Optional) The reference to a project.
 
- serialPort List<VirtualLists Machine Serial Port List> 
- (Optional) Serial Ports configured on the VM.
 
- shouldFail BooleanOn Script Failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- useHot BooleanAdd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- vgaConsole BooleanEnabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
- clusterUuid string
- (Required) The UUID of the cluster.
 
- availabilityZone {[key: string]: string}Reference 
- (Optional) The reference to a availability_zone.
 
- bootDevice {[key: string]: string}Disk Address 
- (Optional) Address of disk to boot from.
 
- bootDevice stringMac Address 
- (Optional) MAC address of nic to boot from.
 
- bootDevice string[]Order Lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- bootType string
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- categories
VirtualMachine Category[] 
- (Optional) Categories for the vm.
 
- cloudInit stringCdrom Uuid 
- description string
- (Optional) A description for vm.
 
- diskLists VirtualMachine Disk List[] 
- Disks attached to the VM.
- enableCpu booleanPassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- enableScript booleanExec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- gpuLists VirtualMachine Gpu List[] 
- (Optional) GPUs attached to the VM.
 
- guestCustomization {[key: string]: string}Cloud Init Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- guestCustomization stringCloud Init Meta Data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- guestCustomization stringCloud Init User Data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- guestCustomization booleanIs Overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- guestCustomization {[key: string]: string}Sysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- guestCustomization {[key: string]: string}Sysprep Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- guestOs stringId 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- hardwareClock stringTimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- isVcpu booleanHard Pinned 
- (Optional) Add true to enable CPU pinning.
 
- machineType string
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- memorySize numberMib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- name string
- (Required) The name for the vm.
 
- ngtCredentials {[key: string]: string}
- (Ooptional) Credentials to login server.
 
- ngtEnabled string[]Capability Lists 
- Application names that are enabled.
- nicLists VirtualMachine Nic List[] 
- (Optional) Spec NICs attached to the VM.
 
- numSockets number
- (Optional) Number of vCPU sockets.
 
- numVcpus numberPer Socket 
- (Optional) Number of vCPUs per socket.
 
- numVnuma numberNodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- nutanixGuest {[key: string]: string}Tools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- ownerReference {[key: string]: string}
- (Optional) The reference to a user.
 
- parentReference {[key: string]: string}
- (Optional) Reference to an entity that the VM cloned from.
 
- powerState stringMechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- projectReference {[key: string]: string}
- (Optional) The reference to a project.
 
- serialPort VirtualLists Machine Serial Port List[] 
- (Optional) Serial Ports configured on the VM.
 
- shouldFail booleanOn Script Failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- useHot booleanAdd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- vgaConsole booleanEnabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
- cluster_uuid str
- (Required) The UUID of the cluster.
 
- availability_zone_ Mapping[str, str]reference 
- (Optional) The reference to a availability_zone.
 
- boot_device_ Mapping[str, str]disk_ address 
- (Optional) Address of disk to boot from.
 
- boot_device_ strmac_ address 
- (Optional) MAC address of nic to boot from.
 
- boot_device_ Sequence[str]order_ lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- boot_type str
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- categories
Sequence[VirtualMachine Category Args] 
- (Optional) Categories for the vm.
 
- cloud_init_ strcdrom_ uuid 
- description str
- (Optional) A description for vm.
 
- disk_lists Sequence[VirtualMachine Disk List Args] 
- Disks attached to the VM.
- enable_cpu_ boolpassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- enable_script_ boolexec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- gpu_lists Sequence[VirtualMachine Gpu List Args] 
- (Optional) GPUs attached to the VM.
 
- guest_customization_ Mapping[str, str]cloud_ init_ custom_ key_ values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- guest_customization_ strcloud_ init_ meta_ data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- guest_customization_ strcloud_ init_ user_ data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- guest_customization_ boolis_ overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- guest_customization_ Mapping[str, str]sysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- guest_customization_ Mapping[str, str]sysprep_ custom_ key_ values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- guest_os_ strid 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- hardware_clock_ strtimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- is_vcpu_ boolhard_ pinned 
- (Optional) Add true to enable CPU pinning.
 
- machine_type str
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- memory_size_ intmib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- name str
- (Required) The name for the vm.
 
- ngt_credentials Mapping[str, str]
- (Ooptional) Credentials to login server.
 
- ngt_enabled_ Sequence[str]capability_ lists 
- Application names that are enabled.
- nic_lists Sequence[VirtualMachine Nic List Args] 
- (Optional) Spec NICs attached to the VM.
 
- num_sockets int
- (Optional) Number of vCPU sockets.
 
- num_vcpus_ intper_ socket 
- (Optional) Number of vCPUs per socket.
 
- num_vnuma_ intnodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- nutanix_guest_ Mapping[str, str]tools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- owner_reference Mapping[str, str]
- (Optional) The reference to a user.
 
- parent_reference Mapping[str, str]
- (Optional) Reference to an entity that the VM cloned from.
 
- power_state_ strmechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- project_reference Mapping[str, str]
- (Optional) The reference to a project.
 
- serial_port_ Sequence[Virtuallists Machine Serial Port List Args] 
- (Optional) Serial Ports configured on the VM.
 
- should_fail_ boolon_ script_ failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- use_hot_ booladd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- vga_console_ boolenabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
- clusterUuid String
- (Required) The UUID of the cluster.
 
- availabilityZone Map<String>Reference 
- (Optional) The reference to a availability_zone.
 
- bootDevice Map<String>Disk Address 
- (Optional) Address of disk to boot from.
 
- bootDevice StringMac Address 
- (Optional) MAC address of nic to boot from.
 
- bootDevice List<String>Order Lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- bootType String
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- categories List<Property Map>
- (Optional) Categories for the vm.
 
- cloudInit StringCdrom Uuid 
- description String
- (Optional) A description for vm.
 
- diskLists List<Property Map>
- Disks attached to the VM.
- enableCpu BooleanPassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- enableScript BooleanExec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- gpuLists List<Property Map>
- (Optional) GPUs attached to the VM.
 
- guestCustomization Map<String>Cloud Init Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- guestCustomization StringCloud Init Meta Data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- guestCustomization StringCloud Init User Data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- guestCustomization BooleanIs Overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- guestCustomization Map<String>Sysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- guestCustomization Map<String>Sysprep Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- guestOs StringId 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- hardwareClock StringTimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- isVcpu BooleanHard Pinned 
- (Optional) Add true to enable CPU pinning.
 
- machineType String
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- memorySize NumberMib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- name String
- (Required) The name for the vm.
 
- ngtCredentials Map<String>
- (Ooptional) Credentials to login server.
 
- ngtEnabled List<String>Capability Lists 
- Application names that are enabled.
- nicLists List<Property Map>
- (Optional) Spec NICs attached to the VM.
 
- numSockets Number
- (Optional) Number of vCPU sockets.
 
- numVcpus NumberPer Socket 
- (Optional) Number of vCPUs per socket.
 
- numVnuma NumberNodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- nutanixGuest Map<String>Tools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- ownerReference Map<String>
- (Optional) The reference to a user.
 
- parentReference Map<String>
- (Optional) Reference to an entity that the VM cloned from.
 
- powerState StringMechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- projectReference Map<String>
- (Optional) The reference to a project.
 
- serialPort List<Property Map>Lists 
- (Optional) Serial Ports configured on the VM.
 
- shouldFail BooleanOn Script Failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- useHot BooleanAdd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- vgaConsole BooleanEnabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualMachine resource produces the following output properties:
- ApiVersion string
- The version of the API.
- ClusterName string
- The name of the cluster.
 
- HostReference Dictionary<string, string>
- Reference to a host.
 
- HypervisorType string
- The hypervisor type for the hypervisor the VM is hosted on.
 
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata Dictionary<string, string>
- The vm kind metadata.
 
- NicList List<PiersStatuses Karsenbarg. Nutanix. Outputs. Virtual Machine Nic List Status> 
- Status NICs attached to the VM.
 
- PowerState string
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- State string
- The state of the vm.
 
- ApiVersion string
- The version of the API.
- ClusterName string
- The name of the cluster.
 
- HostReference map[string]string
- Reference to a host.
 
- HypervisorType string
- The hypervisor type for the hypervisor the VM is hosted on.
 
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata map[string]string
- The vm kind metadata.
 
- NicList []VirtualStatuses Machine Nic List Status 
- Status NICs attached to the VM.
 
- PowerState string
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- State string
- The state of the vm.
 
- apiVersion String
- The version of the API.
- clusterName String
- The name of the cluster.
 
- hostReference Map<String,String>
- Reference to a host.
 
- hypervisorType String
- The hypervisor type for the hypervisor the VM is hosted on.
 
- id String
- The provider-assigned unique ID for this managed resource.
- metadata Map<String,String>
- The vm kind metadata.
 
- nicList List<VirtualStatuses Machine Nic List Status> 
- Status NICs attached to the VM.
 
- powerState String
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- state String
- The state of the vm.
 
- apiVersion string
- The version of the API.
- clusterName string
- The name of the cluster.
 
- hostReference {[key: string]: string}
- Reference to a host.
 
- hypervisorType string
- The hypervisor type for the hypervisor the VM is hosted on.
 
- id string
- The provider-assigned unique ID for this managed resource.
- metadata {[key: string]: string}
- The vm kind metadata.
 
- nicList VirtualStatuses Machine Nic List Status[] 
- Status NICs attached to the VM.
 
- powerState string
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- state string
- The state of the vm.
 
- api_version str
- The version of the API.
- cluster_name str
- The name of the cluster.
 
- host_reference Mapping[str, str]
- Reference to a host.
 
- hypervisor_type str
- The hypervisor type for the hypervisor the VM is hosted on.
 
- id str
- The provider-assigned unique ID for this managed resource.
- metadata Mapping[str, str]
- The vm kind metadata.
 
- nic_list_ Sequence[Virtualstatuses Machine Nic List Status] 
- Status NICs attached to the VM.
 
- power_state str
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- state str
- The state of the vm.
 
- apiVersion String
- The version of the API.
- clusterName String
- The name of the cluster.
 
- hostReference Map<String>
- Reference to a host.
 
- hypervisorType String
- The hypervisor type for the hypervisor the VM is hosted on.
 
- id String
- The provider-assigned unique ID for this managed resource.
- metadata Map<String>
- The vm kind metadata.
 
- nicList List<Property Map>Statuses 
- Status NICs attached to the VM.
 
- powerState String
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- state String
- The state of the vm.
 
Look up Existing VirtualMachine Resource
Get an existing VirtualMachine resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VirtualMachineState, opts?: CustomResourceOptions): VirtualMachine@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_version: Optional[str] = None,
        availability_zone_reference: Optional[Mapping[str, str]] = None,
        boot_device_disk_address: Optional[Mapping[str, str]] = None,
        boot_device_mac_address: Optional[str] = None,
        boot_device_order_lists: Optional[Sequence[str]] = None,
        boot_type: Optional[str] = None,
        categories: Optional[Sequence[VirtualMachineCategoryArgs]] = None,
        cloud_init_cdrom_uuid: Optional[str] = None,
        cluster_name: Optional[str] = None,
        cluster_uuid: Optional[str] = None,
        description: Optional[str] = None,
        disk_lists: Optional[Sequence[VirtualMachineDiskListArgs]] = None,
        enable_cpu_passthrough: Optional[bool] = None,
        enable_script_exec: Optional[bool] = None,
        gpu_lists: Optional[Sequence[VirtualMachineGpuListArgs]] = None,
        guest_customization_cloud_init_custom_key_values: Optional[Mapping[str, str]] = None,
        guest_customization_cloud_init_meta_data: Optional[str] = None,
        guest_customization_cloud_init_user_data: Optional[str] = None,
        guest_customization_is_overridable: Optional[bool] = None,
        guest_customization_sysprep: Optional[Mapping[str, str]] = None,
        guest_customization_sysprep_custom_key_values: Optional[Mapping[str, str]] = None,
        guest_os_id: Optional[str] = None,
        hardware_clock_timezone: Optional[str] = None,
        host_reference: Optional[Mapping[str, str]] = None,
        hypervisor_type: Optional[str] = None,
        is_vcpu_hard_pinned: Optional[bool] = None,
        machine_type: Optional[str] = None,
        memory_size_mib: Optional[int] = None,
        metadata: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        ngt_credentials: Optional[Mapping[str, str]] = None,
        ngt_enabled_capability_lists: Optional[Sequence[str]] = None,
        nic_list_statuses: Optional[Sequence[VirtualMachineNicListStatusArgs]] = None,
        nic_lists: Optional[Sequence[VirtualMachineNicListArgs]] = None,
        num_sockets: Optional[int] = None,
        num_vcpus_per_socket: Optional[int] = None,
        num_vnuma_nodes: Optional[int] = None,
        nutanix_guest_tools: Optional[Mapping[str, str]] = None,
        owner_reference: Optional[Mapping[str, str]] = None,
        parent_reference: Optional[Mapping[str, str]] = None,
        power_state: Optional[str] = None,
        power_state_mechanism: Optional[str] = None,
        project_reference: Optional[Mapping[str, str]] = None,
        serial_port_lists: Optional[Sequence[VirtualMachineSerialPortListArgs]] = None,
        should_fail_on_script_failure: Optional[bool] = None,
        state: Optional[str] = None,
        use_hot_add: Optional[bool] = None,
        vga_console_enabled: Optional[bool] = None) -> VirtualMachinefunc GetVirtualMachine(ctx *Context, name string, id IDInput, state *VirtualMachineState, opts ...ResourceOption) (*VirtualMachine, error)public static VirtualMachine Get(string name, Input<string> id, VirtualMachineState? state, CustomResourceOptions? opts = null)public static VirtualMachine get(String name, Output<String> id, VirtualMachineState state, CustomResourceOptions options)Resource lookup is not supported in YAML- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- ApiVersion string
- The version of the API.
- AvailabilityZone Dictionary<string, string>Reference 
- (Optional) The reference to a availability_zone.
 
- BootDevice Dictionary<string, string>Disk Address 
- (Optional) Address of disk to boot from.
 
- BootDevice stringMac Address 
- (Optional) MAC address of nic to boot from.
 
- BootDevice List<string>Order Lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- BootType string
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- Categories
List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Category> 
- (Optional) Categories for the vm.
 
- CloudInit stringCdrom Uuid 
- ClusterName string
- The name of the cluster.
 
- ClusterUuid string
- (Required) The UUID of the cluster.
 
- Description string
- (Optional) A description for vm.
 
- DiskLists List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Disk List> 
- Disks attached to the VM.
- EnableCpu boolPassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- EnableScript boolExec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- GpuLists List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Gpu List> 
- (Optional) GPUs attached to the VM.
 
- GuestCustomization Dictionary<string, string>Cloud Init Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- GuestCustomization stringCloud Init Meta Data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- GuestCustomization stringCloud Init User Data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- GuestCustomization boolIs Overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- GuestCustomization Dictionary<string, string>Sysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- GuestCustomization Dictionary<string, string>Sysprep Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- GuestOs stringId 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- HardwareClock stringTimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- HostReference Dictionary<string, string>
- Reference to a host.
 
- HypervisorType string
- The hypervisor type for the hypervisor the VM is hosted on.
 
- IsVcpu boolHard Pinned 
- (Optional) Add true to enable CPU pinning.
 
- MachineType string
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- MemorySize intMib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- Metadata Dictionary<string, string>
- The vm kind metadata.
 
- Name string
- (Required) The name for the vm.
 
- NgtCredentials Dictionary<string, string>
- (Ooptional) Credentials to login server.
 
- NgtEnabled List<string>Capability Lists 
- Application names that are enabled.
- NicList List<PiersStatuses Karsenbarg. Nutanix. Inputs. Virtual Machine Nic List Status> 
- Status NICs attached to the VM.
 
- NicLists List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Nic List> 
- (Optional) Spec NICs attached to the VM.
 
- NumSockets int
- (Optional) Number of vCPU sockets.
 
- NumVcpus intPer Socket 
- (Optional) Number of vCPUs per socket.
 
- NumVnuma intNodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- NutanixGuest Dictionary<string, string>Tools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- OwnerReference Dictionary<string, string>
- (Optional) The reference to a user.
 
- ParentReference Dictionary<string, string>
- (Optional) Reference to an entity that the VM cloned from.
 
- PowerState string
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- PowerState stringMechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- ProjectReference Dictionary<string, string>
- (Optional) The reference to a project.
 
- SerialPort List<PiersLists Karsenbarg. Nutanix. Inputs. Virtual Machine Serial Port List> 
- (Optional) Serial Ports configured on the VM.
 
- ShouldFail boolOn Script Failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- State string
- The state of the vm.
 
- UseHot boolAdd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- VgaConsole boolEnabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
- ApiVersion string
- The version of the API.
- AvailabilityZone map[string]stringReference 
- (Optional) The reference to a availability_zone.
 
- BootDevice map[string]stringDisk Address 
- (Optional) Address of disk to boot from.
 
- BootDevice stringMac Address 
- (Optional) MAC address of nic to boot from.
 
- BootDevice []stringOrder Lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- BootType string
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- Categories
[]VirtualMachine Category Args 
- (Optional) Categories for the vm.
 
- CloudInit stringCdrom Uuid 
- ClusterName string
- The name of the cluster.
 
- ClusterUuid string
- (Required) The UUID of the cluster.
 
- Description string
- (Optional) A description for vm.
 
- DiskLists []VirtualMachine Disk List Args 
- Disks attached to the VM.
- EnableCpu boolPassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- EnableScript boolExec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- GpuLists []VirtualMachine Gpu List Args 
- (Optional) GPUs attached to the VM.
 
- GuestCustomization map[string]stringCloud Init Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- GuestCustomization stringCloud Init Meta Data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- GuestCustomization stringCloud Init User Data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- GuestCustomization boolIs Overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- GuestCustomization map[string]stringSysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- GuestCustomization map[string]stringSysprep Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- GuestOs stringId 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- HardwareClock stringTimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- HostReference map[string]string
- Reference to a host.
 
- HypervisorType string
- The hypervisor type for the hypervisor the VM is hosted on.
 
- IsVcpu boolHard Pinned 
- (Optional) Add true to enable CPU pinning.
 
- MachineType string
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- MemorySize intMib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- Metadata map[string]string
- The vm kind metadata.
 
- Name string
- (Required) The name for the vm.
 
- NgtCredentials map[string]string
- (Ooptional) Credentials to login server.
 
- NgtEnabled []stringCapability Lists 
- Application names that are enabled.
- NicList []VirtualStatuses Machine Nic List Status Args 
- Status NICs attached to the VM.
 
- NicLists []VirtualMachine Nic List Args 
- (Optional) Spec NICs attached to the VM.
 
- NumSockets int
- (Optional) Number of vCPU sockets.
 
- NumVcpus intPer Socket 
- (Optional) Number of vCPUs per socket.
 
- NumVnuma intNodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- NutanixGuest map[string]stringTools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- OwnerReference map[string]string
- (Optional) The reference to a user.
 
- ParentReference map[string]string
- (Optional) Reference to an entity that the VM cloned from.
 
- PowerState string
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- PowerState stringMechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- ProjectReference map[string]string
- (Optional) The reference to a project.
 
- SerialPort []VirtualLists Machine Serial Port List Args 
- (Optional) Serial Ports configured on the VM.
 
- ShouldFail boolOn Script Failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- State string
- The state of the vm.
 
- UseHot boolAdd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- VgaConsole boolEnabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
- apiVersion String
- The version of the API.
- availabilityZone Map<String,String>Reference 
- (Optional) The reference to a availability_zone.
 
- bootDevice Map<String,String>Disk Address 
- (Optional) Address of disk to boot from.
 
- bootDevice StringMac Address 
- (Optional) MAC address of nic to boot from.
 
- bootDevice List<String>Order Lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- bootType String
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- categories
List<VirtualMachine Category> 
- (Optional) Categories for the vm.
 
- cloudInit StringCdrom Uuid 
- clusterName String
- The name of the cluster.
 
- clusterUuid String
- (Required) The UUID of the cluster.
 
- description String
- (Optional) A description for vm.
 
- diskLists List<VirtualMachine Disk List> 
- Disks attached to the VM.
- enableCpu BooleanPassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- enableScript BooleanExec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- gpuLists List<VirtualMachine Gpu List> 
- (Optional) GPUs attached to the VM.
 
- guestCustomization Map<String,String>Cloud Init Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- guestCustomization StringCloud Init Meta Data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- guestCustomization StringCloud Init User Data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- guestCustomization BooleanIs Overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- guestCustomization Map<String,String>Sysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- guestCustomization Map<String,String>Sysprep Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- guestOs StringId 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- hardwareClock StringTimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- hostReference Map<String,String>
- Reference to a host.
 
- hypervisorType String
- The hypervisor type for the hypervisor the VM is hosted on.
 
- isVcpu BooleanHard Pinned 
- (Optional) Add true to enable CPU pinning.
 
- machineType String
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- memorySize IntegerMib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- metadata Map<String,String>
- The vm kind metadata.
 
- name String
- (Required) The name for the vm.
 
- ngtCredentials Map<String,String>
- (Ooptional) Credentials to login server.
 
- ngtEnabled List<String>Capability Lists 
- Application names that are enabled.
- nicList List<VirtualStatuses Machine Nic List Status> 
- Status NICs attached to the VM.
 
- nicLists List<VirtualMachine Nic List> 
- (Optional) Spec NICs attached to the VM.
 
- numSockets Integer
- (Optional) Number of vCPU sockets.
 
- numVcpus IntegerPer Socket 
- (Optional) Number of vCPUs per socket.
 
- numVnuma IntegerNodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- nutanixGuest Map<String,String>Tools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- ownerReference Map<String,String>
- (Optional) The reference to a user.
 
- parentReference Map<String,String>
- (Optional) Reference to an entity that the VM cloned from.
 
- powerState String
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- powerState StringMechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- projectReference Map<String,String>
- (Optional) The reference to a project.
 
- serialPort List<VirtualLists Machine Serial Port List> 
- (Optional) Serial Ports configured on the VM.
 
- shouldFail BooleanOn Script Failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- state String
- The state of the vm.
 
- useHot BooleanAdd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- vgaConsole BooleanEnabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
- apiVersion string
- The version of the API.
- availabilityZone {[key: string]: string}Reference 
- (Optional) The reference to a availability_zone.
 
- bootDevice {[key: string]: string}Disk Address 
- (Optional) Address of disk to boot from.
 
- bootDevice stringMac Address 
- (Optional) MAC address of nic to boot from.
 
- bootDevice string[]Order Lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- bootType string
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- categories
VirtualMachine Category[] 
- (Optional) Categories for the vm.
 
- cloudInit stringCdrom Uuid 
- clusterName string
- The name of the cluster.
 
- clusterUuid string
- (Required) The UUID of the cluster.
 
- description string
- (Optional) A description for vm.
 
- diskLists VirtualMachine Disk List[] 
- Disks attached to the VM.
- enableCpu booleanPassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- enableScript booleanExec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- gpuLists VirtualMachine Gpu List[] 
- (Optional) GPUs attached to the VM.
 
- guestCustomization {[key: string]: string}Cloud Init Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- guestCustomization stringCloud Init Meta Data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- guestCustomization stringCloud Init User Data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- guestCustomization booleanIs Overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- guestCustomization {[key: string]: string}Sysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- guestCustomization {[key: string]: string}Sysprep Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- guestOs stringId 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- hardwareClock stringTimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- hostReference {[key: string]: string}
- Reference to a host.
 
- hypervisorType string
- The hypervisor type for the hypervisor the VM is hosted on.
 
- isVcpu booleanHard Pinned 
- (Optional) Add true to enable CPU pinning.
 
- machineType string
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- memorySize numberMib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- metadata {[key: string]: string}
- The vm kind metadata.
 
- name string
- (Required) The name for the vm.
 
- ngtCredentials {[key: string]: string}
- (Ooptional) Credentials to login server.
 
- ngtEnabled string[]Capability Lists 
- Application names that are enabled.
- nicList VirtualStatuses Machine Nic List Status[] 
- Status NICs attached to the VM.
 
- nicLists VirtualMachine Nic List[] 
- (Optional) Spec NICs attached to the VM.
 
- numSockets number
- (Optional) Number of vCPU sockets.
 
- numVcpus numberPer Socket 
- (Optional) Number of vCPUs per socket.
 
- numVnuma numberNodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- nutanixGuest {[key: string]: string}Tools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- ownerReference {[key: string]: string}
- (Optional) The reference to a user.
 
- parentReference {[key: string]: string}
- (Optional) Reference to an entity that the VM cloned from.
 
- powerState string
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- powerState stringMechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- projectReference {[key: string]: string}
- (Optional) The reference to a project.
 
- serialPort VirtualLists Machine Serial Port List[] 
- (Optional) Serial Ports configured on the VM.
 
- shouldFail booleanOn Script Failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- state string
- The state of the vm.
 
- useHot booleanAdd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- vgaConsole booleanEnabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
- api_version str
- The version of the API.
- availability_zone_ Mapping[str, str]reference 
- (Optional) The reference to a availability_zone.
 
- boot_device_ Mapping[str, str]disk_ address 
- (Optional) Address of disk to boot from.
 
- boot_device_ strmac_ address 
- (Optional) MAC address of nic to boot from.
 
- boot_device_ Sequence[str]order_ lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- boot_type str
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- categories
Sequence[VirtualMachine Category Args] 
- (Optional) Categories for the vm.
 
- cloud_init_ strcdrom_ uuid 
- cluster_name str
- The name of the cluster.
 
- cluster_uuid str
- (Required) The UUID of the cluster.
 
- description str
- (Optional) A description for vm.
 
- disk_lists Sequence[VirtualMachine Disk List Args] 
- Disks attached to the VM.
- enable_cpu_ boolpassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- enable_script_ boolexec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- gpu_lists Sequence[VirtualMachine Gpu List Args] 
- (Optional) GPUs attached to the VM.
 
- guest_customization_ Mapping[str, str]cloud_ init_ custom_ key_ values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- guest_customization_ strcloud_ init_ meta_ data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- guest_customization_ strcloud_ init_ user_ data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- guest_customization_ boolis_ overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- guest_customization_ Mapping[str, str]sysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- guest_customization_ Mapping[str, str]sysprep_ custom_ key_ values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- guest_os_ strid 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- hardware_clock_ strtimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- host_reference Mapping[str, str]
- Reference to a host.
 
- hypervisor_type str
- The hypervisor type for the hypervisor the VM is hosted on.
 
- is_vcpu_ boolhard_ pinned 
- (Optional) Add true to enable CPU pinning.
 
- machine_type str
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- memory_size_ intmib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- metadata Mapping[str, str]
- The vm kind metadata.
 
- name str
- (Required) The name for the vm.
 
- ngt_credentials Mapping[str, str]
- (Ooptional) Credentials to login server.
 
- ngt_enabled_ Sequence[str]capability_ lists 
- Application names that are enabled.
- nic_list_ Sequence[Virtualstatuses Machine Nic List Status Args] 
- Status NICs attached to the VM.
 
- nic_lists Sequence[VirtualMachine Nic List Args] 
- (Optional) Spec NICs attached to the VM.
 
- num_sockets int
- (Optional) Number of vCPU sockets.
 
- num_vcpus_ intper_ socket 
- (Optional) Number of vCPUs per socket.
 
- num_vnuma_ intnodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- nutanix_guest_ Mapping[str, str]tools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- owner_reference Mapping[str, str]
- (Optional) The reference to a user.
 
- parent_reference Mapping[str, str]
- (Optional) Reference to an entity that the VM cloned from.
 
- power_state str
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- power_state_ strmechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- project_reference Mapping[str, str]
- (Optional) The reference to a project.
 
- serial_port_ Sequence[Virtuallists Machine Serial Port List Args] 
- (Optional) Serial Ports configured on the VM.
 
- should_fail_ boolon_ script_ failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- state str
- The state of the vm.
 
- use_hot_ booladd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- vga_console_ boolenabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
- apiVersion String
- The version of the API.
- availabilityZone Map<String>Reference 
- (Optional) The reference to a availability_zone.
 
- bootDevice Map<String>Disk Address 
- (Optional) Address of disk to boot from.
 
- bootDevice StringMac Address 
- (Optional) MAC address of nic to boot from.
 
- bootDevice List<String>Order Lists 
- (Optional) Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
 
- bootType String
- (Optional) Indicates whether the VM should use Secure boot, UEFI boot or Legacy boot.If UEFI or; Secure boot is enabled then other legacy boot options (like boot_device and; boot_device_order_list) are ignored. Secure boot depends on UEFI boot, i.e. enabling; Secure boot means that UEFI boot is also enabled. The possible value are: UEFI", "LEGACY", "SECURE_BOOT".
 
- categories List<Property Map>
- (Optional) Categories for the vm.
 
- cloudInit StringCdrom Uuid 
- clusterName String
- The name of the cluster.
 
- clusterUuid String
- (Required) The UUID of the cluster.
 
- description String
- (Optional) A description for vm.
 
- diskLists List<Property Map>
- Disks attached to the VM.
- enableCpu BooleanPassthrough 
- (Optional) Add true to enable CPU passthrough.
 
- enableScript BooleanExec 
- (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
 
- gpuLists List<Property Map>
- (Optional) GPUs attached to the VM.
 
- guestCustomization Map<String>Cloud Init Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in cloud init.
 
- guestCustomization StringCloud Init Meta Data 
- The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- guestCustomization StringCloud Init User Data 
- (Optional) The contents of the user_data configuration for cloud-init. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded.
 
- guestCustomization BooleanIs Overridable 
- (Optional) Flag to allow override of customization by deployer.
 
- guestCustomization Map<String>Sysprep 
- (Optional) VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF sysprep or cloud_init should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if "override_script" is set to "True" then the deployer can upload their own custom script.
 
- guestCustomization Map<String>Sysprep Custom Key Values 
- (Optional) Generic key value pair used for custom attributes in sysprep.
 
- guestOs StringId 
- (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
 
- hardwareClock StringTimezone 
- (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
 
- hostReference Map<String>
- Reference to a host.
 
- hypervisorType String
- The hypervisor type for the hypervisor the VM is hosted on.
 
- isVcpu BooleanHard Pinned 
- (Optional) Add true to enable CPU pinning.
 
- machineType String
- Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
 
- memorySize NumberMib 
- (Optional) Memory size in MiB. On updating memory to powered ON VMs should only be done in 1GB increments.
 
- metadata Map<String>
- The vm kind metadata.
 
- name String
- (Required) The name for the vm.
 
- ngtCredentials Map<String>
- (Ooptional) Credentials to login server.
 
- ngtEnabled List<String>Capability Lists 
- Application names that are enabled.
- nicList List<Property Map>Statuses 
- Status NICs attached to the VM.
 
- nicLists List<Property Map>
- (Optional) Spec NICs attached to the VM.
 
- numSockets Number
- (Optional) Number of vCPU sockets.
 
- numVcpus NumberPer Socket 
- (Optional) Number of vCPUs per socket.
 
- numVnuma NumberNodes 
- (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
 
- nutanixGuest Map<String>Tools 
- (Optional) Information regarding Nutanix Guest Tools.
 
- ownerReference Map<String>
- (Optional) The reference to a user.
 
- parentReference Map<String>
- (Optional) Reference to an entity that the VM cloned from.
 
- powerState String
- (Optional) The current or desired power state of the VM. (Options : ON , OFF)
 
- powerState StringMechanism 
- (Optional) Indicates the mechanism guiding the VM power state transition. Currently used for the transition to "OFF" state. Power state mechanism (ACPI/GUEST/HARD).
 
- projectReference Map<String>
- (Optional) The reference to a project.
 
- serialPort List<Property Map>Lists 
- (Optional) Serial Ports configured on the VM.
 
- shouldFail BooleanOn Script Failure 
- (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
 
- state String
- The state of the vm.
 
- useHot BooleanAdd 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is true.
 
- (Optional) Use Hot Add when modifying VM resources. Passing value false will result in VM reboots. Default value is 
- vgaConsole BooleanEnabled 
- (Optional) Indicates whether VGA console should be enabled or not.
 
Supporting Types
VirtualMachineCategory, VirtualMachineCategoryArgs      
VirtualMachineDiskList, VirtualMachineDiskListArgs        
- DataSource Dictionary<string, string>Reference 
- Reference to a data source. - The disk_size (the disk size_mib and the disk_size_bytes attributes) is only honored by creating an empty disk. When you are creating from an image, the size is ignored and the disk becomes the size of the image from which it was cloned. In VM creation, you can't set either disk size_mib or disk_size_bytes when you set data_source_reference but, you can update the disk_size after creation (second apply). 
- DeviceProperties PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Disk List Device Properties 
- Properties to a device.
- DiskSize intBytes 
- Size of the disk in Bytes.
- DiskSize intMib 
- Size of the disk in MiB. Must match the size specified in 'disk_size_bytes' - rounded up to the nearest MiB - when that field is present.
- StorageConfig PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Disk List Storage Config 
- Uuid string
- (Optional) The device ID which is used to uniquely identify this particular disk.
 
- VolumeGroup Dictionary<string, string>Reference 
- DataSource map[string]stringReference 
- Reference to a data source. - The disk_size (the disk size_mib and the disk_size_bytes attributes) is only honored by creating an empty disk. When you are creating from an image, the size is ignored and the disk becomes the size of the image from which it was cloned. In VM creation, you can't set either disk size_mib or disk_size_bytes when you set data_source_reference but, you can update the disk_size after creation (second apply). 
- DeviceProperties VirtualMachine Disk List Device Properties 
- Properties to a device.
- DiskSize intBytes 
- Size of the disk in Bytes.
- DiskSize intMib 
- Size of the disk in MiB. Must match the size specified in 'disk_size_bytes' - rounded up to the nearest MiB - when that field is present.
- StorageConfig VirtualMachine Disk List Storage Config 
- Uuid string
- (Optional) The device ID which is used to uniquely identify this particular disk.
 
- VolumeGroup map[string]stringReference 
- dataSource Map<String,String>Reference 
- Reference to a data source. - The disk_size (the disk size_mib and the disk_size_bytes attributes) is only honored by creating an empty disk. When you are creating from an image, the size is ignored and the disk becomes the size of the image from which it was cloned. In VM creation, you can't set either disk size_mib or disk_size_bytes when you set data_source_reference but, you can update the disk_size after creation (second apply). 
- deviceProperties VirtualMachine Disk List Device Properties 
- Properties to a device.
- diskSize IntegerBytes 
- Size of the disk in Bytes.
- diskSize IntegerMib 
- Size of the disk in MiB. Must match the size specified in 'disk_size_bytes' - rounded up to the nearest MiB - when that field is present.
- storageConfig VirtualMachine Disk List Storage Config 
- uuid String
- (Optional) The device ID which is used to uniquely identify this particular disk.
 
- volumeGroup Map<String,String>Reference 
- dataSource {[key: string]: string}Reference 
- Reference to a data source. - The disk_size (the disk size_mib and the disk_size_bytes attributes) is only honored by creating an empty disk. When you are creating from an image, the size is ignored and the disk becomes the size of the image from which it was cloned. In VM creation, you can't set either disk size_mib or disk_size_bytes when you set data_source_reference but, you can update the disk_size after creation (second apply). 
- deviceProperties VirtualMachine Disk List Device Properties 
- Properties to a device.
- diskSize numberBytes 
- Size of the disk in Bytes.
- diskSize numberMib 
- Size of the disk in MiB. Must match the size specified in 'disk_size_bytes' - rounded up to the nearest MiB - when that field is present.
- storageConfig VirtualMachine Disk List Storage Config 
- uuid string
- (Optional) The device ID which is used to uniquely identify this particular disk.
 
- volumeGroup {[key: string]: string}Reference 
- data_source_ Mapping[str, str]reference 
- Reference to a data source. - The disk_size (the disk size_mib and the disk_size_bytes attributes) is only honored by creating an empty disk. When you are creating from an image, the size is ignored and the disk becomes the size of the image from which it was cloned. In VM creation, you can't set either disk size_mib or disk_size_bytes when you set data_source_reference but, you can update the disk_size after creation (second apply). 
- device_properties VirtualMachine Disk List Device Properties 
- Properties to a device.
- disk_size_ intbytes 
- Size of the disk in Bytes.
- disk_size_ intmib 
- Size of the disk in MiB. Must match the size specified in 'disk_size_bytes' - rounded up to the nearest MiB - when that field is present.
- storage_config VirtualMachine Disk List Storage Config 
- uuid str
- (Optional) The device ID which is used to uniquely identify this particular disk.
 
- volume_group_ Mapping[str, str]reference 
- dataSource Map<String>Reference 
- Reference to a data source. - The disk_size (the disk size_mib and the disk_size_bytes attributes) is only honored by creating an empty disk. When you are creating from an image, the size is ignored and the disk becomes the size of the image from which it was cloned. In VM creation, you can't set either disk size_mib or disk_size_bytes when you set data_source_reference but, you can update the disk_size after creation (second apply). 
- deviceProperties Property Map
- Properties to a device.
- diskSize NumberBytes 
- Size of the disk in Bytes.
- diskSize NumberMib 
- Size of the disk in MiB. Must match the size specified in 'disk_size_bytes' - rounded up to the nearest MiB - when that field is present.
- storageConfig Property Map
- uuid String
- (Optional) The device ID which is used to uniquely identify this particular disk.
 
- volumeGroup Map<String>Reference 
VirtualMachineDiskListDeviceProperties, VirtualMachineDiskListDevicePropertiesArgs            
- DeviceType string
- A Disk type (default: DISK).
 
- DiskAddress Dictionary<string, string>
- Address of disk to boot from.
 
- DeviceType string
- A Disk type (default: DISK).
 
- DiskAddress map[string]string
- Address of disk to boot from.
 
- deviceType String
- A Disk type (default: DISK).
 
- diskAddress Map<String,String>
- Address of disk to boot from.
 
- deviceType string
- A Disk type (default: DISK).
 
- diskAddress {[key: string]: string}
- Address of disk to boot from.
 
- device_type str
- A Disk type (default: DISK).
 
- disk_address Mapping[str, str]
- Address of disk to boot from.
 
- deviceType String
- A Disk type (default: DISK).
 
- diskAddress Map<String>
- Address of disk to boot from.
 
VirtualMachineDiskListStorageConfig, VirtualMachineDiskListStorageConfigArgs            
- FlashMode string
- State of the storage policy to pin virtual disks to the hot tier. When specified as a VM attribute, the storage policy applies to all virtual disks of the VM unless overridden by the same attribute specified for a virtual disk.
 
- StorageContainer List<PiersReferences Karsenbarg. Nutanix. Inputs. Virtual Machine Disk List Storage Config Storage Container Reference> 
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified. Requires Prism Central / AOS 5.17+.
 - storage_container_reference.#.url: - GET query on the URL will provide information on the source.
- storage_container_reference.#.kind: - kind of the container reference
- storage_container_reference.#.name: - name of the container reference
- storage_container_reference.#.uuid: - uiid of the container reference
 
- FlashMode string
- State of the storage policy to pin virtual disks to the hot tier. When specified as a VM attribute, the storage policy applies to all virtual disks of the VM unless overridden by the same attribute specified for a virtual disk.
 
- StorageContainer []VirtualReferences Machine Disk List Storage Config Storage Container Reference 
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified. Requires Prism Central / AOS 5.17+.
 - storage_container_reference.#.url: - GET query on the URL will provide information on the source.
- storage_container_reference.#.kind: - kind of the container reference
- storage_container_reference.#.name: - name of the container reference
- storage_container_reference.#.uuid: - uiid of the container reference
 
- flashMode String
- State of the storage policy to pin virtual disks to the hot tier. When specified as a VM attribute, the storage policy applies to all virtual disks of the VM unless overridden by the same attribute specified for a virtual disk.
 
- storageContainer List<VirtualReferences Machine Disk List Storage Config Storage Container Reference> 
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified. Requires Prism Central / AOS 5.17+.
 - storage_container_reference.#.url: - GET query on the URL will provide information on the source.
- storage_container_reference.#.kind: - kind of the container reference
- storage_container_reference.#.name: - name of the container reference
- storage_container_reference.#.uuid: - uiid of the container reference
 
- flashMode string
- State of the storage policy to pin virtual disks to the hot tier. When specified as a VM attribute, the storage policy applies to all virtual disks of the VM unless overridden by the same attribute specified for a virtual disk.
 
- storageContainer VirtualReferences Machine Disk List Storage Config Storage Container Reference[] 
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified. Requires Prism Central / AOS 5.17+.
 - storage_container_reference.#.url: - GET query on the URL will provide information on the source.
- storage_container_reference.#.kind: - kind of the container reference
- storage_container_reference.#.name: - name of the container reference
- storage_container_reference.#.uuid: - uiid of the container reference
 
- flash_mode str
- State of the storage policy to pin virtual disks to the hot tier. When specified as a VM attribute, the storage policy applies to all virtual disks of the VM unless overridden by the same attribute specified for a virtual disk.
 
- storage_container_ Sequence[Virtualreferences Machine Disk List Storage Config Storage Container Reference] 
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified. Requires Prism Central / AOS 5.17+.
 - storage_container_reference.#.url: - GET query on the URL will provide information on the source.
- storage_container_reference.#.kind: - kind of the container reference
- storage_container_reference.#.name: - name of the container reference
- storage_container_reference.#.uuid: - uiid of the container reference
 
- flashMode String
- State of the storage policy to pin virtual disks to the hot tier. When specified as a VM attribute, the storage policy applies to all virtual disks of the VM unless overridden by the same attribute specified for a virtual disk.
 
- storageContainer List<Property Map>References 
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified. Requires Prism Central / AOS 5.17+.
 - storage_container_reference.#.url: - GET query on the URL will provide information on the source.
- storage_container_reference.#.kind: - kind of the container reference
- storage_container_reference.#.name: - name of the container reference
- storage_container_reference.#.uuid: - uiid of the container reference
 
VirtualMachineDiskListStorageConfigStorageContainerReference, VirtualMachineDiskListStorageConfigStorageContainerReferenceArgs                  
VirtualMachineGpuList, VirtualMachineGpuListArgs        
- DeviceId int
- (Computed) The device ID of the GPU.
 
- Fraction int
- Fraction of the physical GPU assigned.
- FrameBuffer intSize Mib 
- (ReadOnly) GPU frame buffer size in MiB.
 
- GuestDriver stringVersion 
- (ReadOnly) Last determined guest driver version.
 
- Mode string
- (Optional) The mode of this GPU.
 
- Name string
- (ReadOnly) Name of the GPU resource.
 
- NumVirtual intDisplay Heads 
- (ReadOnly) Number of supported virtual display heads.
 
- PciAddress string
- GPU {segment:bus:device:function} (sbdf) address if assigned.
- Uuid string
- (ReadOnly) UUID of the GPU.
 
- Vendor string
- (Optional) The vendor of the GPU.
 
- DeviceId int
- (Computed) The device ID of the GPU.
 
- Fraction int
- Fraction of the physical GPU assigned.
- FrameBuffer intSize Mib 
- (ReadOnly) GPU frame buffer size in MiB.
 
- GuestDriver stringVersion 
- (ReadOnly) Last determined guest driver version.
 
- Mode string
- (Optional) The mode of this GPU.
 
- Name string
- (ReadOnly) Name of the GPU resource.
 
- NumVirtual intDisplay Heads 
- (ReadOnly) Number of supported virtual display heads.
 
- PciAddress string
- GPU {segment:bus:device:function} (sbdf) address if assigned.
- Uuid string
- (ReadOnly) UUID of the GPU.
 
- Vendor string
- (Optional) The vendor of the GPU.
 
- deviceId Integer
- (Computed) The device ID of the GPU.
 
- fraction Integer
- Fraction of the physical GPU assigned.
- frameBuffer IntegerSize Mib 
- (ReadOnly) GPU frame buffer size in MiB.
 
- guestDriver StringVersion 
- (ReadOnly) Last determined guest driver version.
 
- mode String
- (Optional) The mode of this GPU.
 
- name String
- (ReadOnly) Name of the GPU resource.
 
- numVirtual IntegerDisplay Heads 
- (ReadOnly) Number of supported virtual display heads.
 
- pciAddress String
- GPU {segment:bus:device:function} (sbdf) address if assigned.
- uuid String
- (ReadOnly) UUID of the GPU.
 
- vendor String
- (Optional) The vendor of the GPU.
 
- deviceId number
- (Computed) The device ID of the GPU.
 
- fraction number
- Fraction of the physical GPU assigned.
- frameBuffer numberSize Mib 
- (ReadOnly) GPU frame buffer size in MiB.
 
- guestDriver stringVersion 
- (ReadOnly) Last determined guest driver version.
 
- mode string
- (Optional) The mode of this GPU.
 
- name string
- (ReadOnly) Name of the GPU resource.
 
- numVirtual numberDisplay Heads 
- (ReadOnly) Number of supported virtual display heads.
 
- pciAddress string
- GPU {segment:bus:device:function} (sbdf) address if assigned.
- uuid string
- (ReadOnly) UUID of the GPU.
 
- vendor string
- (Optional) The vendor of the GPU.
 
- device_id int
- (Computed) The device ID of the GPU.
 
- fraction int
- Fraction of the physical GPU assigned.
- frame_buffer_ intsize_ mib 
- (ReadOnly) GPU frame buffer size in MiB.
 
- guest_driver_ strversion 
- (ReadOnly) Last determined guest driver version.
 
- mode str
- (Optional) The mode of this GPU.
 
- name str
- (ReadOnly) Name of the GPU resource.
 
- num_virtual_ intdisplay_ heads 
- (ReadOnly) Number of supported virtual display heads.
 
- pci_address str
- GPU {segment:bus:device:function} (sbdf) address if assigned.
- uuid str
- (ReadOnly) UUID of the GPU.
 
- vendor str
- (Optional) The vendor of the GPU.
 
- deviceId Number
- (Computed) The device ID of the GPU.
 
- fraction Number
- Fraction of the physical GPU assigned.
- frameBuffer NumberSize Mib 
- (ReadOnly) GPU frame buffer size in MiB.
 
- guestDriver StringVersion 
- (ReadOnly) Last determined guest driver version.
 
- mode String
- (Optional) The mode of this GPU.
 
- name String
- (ReadOnly) Name of the GPU resource.
 
- numVirtual NumberDisplay Heads 
- (ReadOnly) Number of supported virtual display heads.
 
- pciAddress String
- GPU {segment:bus:device:function} (sbdf) address if assigned.
- uuid String
- (ReadOnly) UUID of the GPU.
 
- vendor String
- (Optional) The vendor of the GPU.
 
VirtualMachineNicList, VirtualMachineNicListArgs        
- IpEndpoint List<PiersLists Karsenbarg. Nutanix. Inputs. Virtual Machine Nic List Ip Endpoint List> 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- IsConnected string
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- MacAddress string
- The MAC address for the adapter.
 
- Model string
- The model of this NIC. (Options : VIRTIO , E1000).
 
- NetworkFunction Dictionary<string, string>Chain Reference 
- The reference to a network_function_chain.
 
- NetworkFunction stringNic Type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- NicType string
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- NumQueues int
- The number of tx/rx queue pairs for this NIC.
 
- SubnetName string
- The name of the subnet reference to.
 
- SubnetUuid string
- The reference to a subnet.
 
- Uuid string
- The NIC's UUID, which is used to uniquely identify this particular NIC. This UUID may be used to refer to the NIC outside the context of the particular VM it is attached to.
 
- IpEndpoint []VirtualLists Machine Nic List Ip Endpoint List 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- IsConnected string
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- MacAddress string
- The MAC address for the adapter.
 
- Model string
- The model of this NIC. (Options : VIRTIO , E1000).
 
- NetworkFunction map[string]stringChain Reference 
- The reference to a network_function_chain.
 
- NetworkFunction stringNic Type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- NicType string
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- NumQueues int
- The number of tx/rx queue pairs for this NIC.
 
- SubnetName string
- The name of the subnet reference to.
 
- SubnetUuid string
- The reference to a subnet.
 
- Uuid string
- The NIC's UUID, which is used to uniquely identify this particular NIC. This UUID may be used to refer to the NIC outside the context of the particular VM it is attached to.
 
- ipEndpoint List<VirtualLists Machine Nic List Ip Endpoint List> 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- isConnected String
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- macAddress String
- The MAC address for the adapter.
 
- model String
- The model of this NIC. (Options : VIRTIO , E1000).
 
- networkFunction Map<String,String>Chain Reference 
- The reference to a network_function_chain.
 
- networkFunction StringNic Type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- nicType String
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- numQueues Integer
- The number of tx/rx queue pairs for this NIC.
 
- subnetName String
- The name of the subnet reference to.
 
- subnetUuid String
- The reference to a subnet.
 
- uuid String
- The NIC's UUID, which is used to uniquely identify this particular NIC. This UUID may be used to refer to the NIC outside the context of the particular VM it is attached to.
 
- ipEndpoint VirtualLists Machine Nic List Ip Endpoint List[] 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- isConnected string
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- macAddress string
- The MAC address for the adapter.
 
- model string
- The model of this NIC. (Options : VIRTIO , E1000).
 
- networkFunction {[key: string]: string}Chain Reference 
- The reference to a network_function_chain.
 
- networkFunction stringNic Type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- nicType string
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- numQueues number
- The number of tx/rx queue pairs for this NIC.
 
- subnetName string
- The name of the subnet reference to.
 
- subnetUuid string
- The reference to a subnet.
 
- uuid string
- The NIC's UUID, which is used to uniquely identify this particular NIC. This UUID may be used to refer to the NIC outside the context of the particular VM it is attached to.
 
- ip_endpoint_ Sequence[Virtuallists Machine Nic List Ip Endpoint List] 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- is_connected str
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- mac_address str
- The MAC address for the adapter.
 
- model str
- The model of this NIC. (Options : VIRTIO , E1000).
 
- network_function_ Mapping[str, str]chain_ reference 
- The reference to a network_function_chain.
 
- network_function_ strnic_ type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- nic_type str
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- num_queues int
- The number of tx/rx queue pairs for this NIC.
 
- subnet_name str
- The name of the subnet reference to.
 
- subnet_uuid str
- The reference to a subnet.
 
- uuid str
- The NIC's UUID, which is used to uniquely identify this particular NIC. This UUID may be used to refer to the NIC outside the context of the particular VM it is attached to.
 
- ipEndpoint List<Property Map>Lists 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- isConnected String
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- macAddress String
- The MAC address for the adapter.
 
- model String
- The model of this NIC. (Options : VIRTIO , E1000).
 
- networkFunction Map<String>Chain Reference 
- The reference to a network_function_chain.
 
- networkFunction StringNic Type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- nicType String
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- numQueues Number
- The number of tx/rx queue pairs for this NIC.
 
- subnetName String
- The name of the subnet reference to.
 
- subnetUuid String
- The reference to a subnet.
 
- uuid String
- The NIC's UUID, which is used to uniquely identify this particular NIC. This UUID may be used to refer to the NIC outside the context of the particular VM it is attached to.
 
VirtualMachineNicListIpEndpointList, VirtualMachineNicListIpEndpointListArgs              
VirtualMachineNicListStatus, VirtualMachineNicListStatusArgs          
- FloatingIp string
- The Floating IP associated with the vnic. (Only in nic_list_status)
 
- The Floating IP associated with the vnic. (Only in 
- IpEndpoint List<PiersLists Karsenbarg. Nutanix. Inputs. Virtual Machine Nic List Status Ip Endpoint List> 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- IsConnected string
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- MacAddress string
- The MAC address for the adapter.
 
- Model string
- The model of this NIC. (Options : VIRTIO , E1000).
 
- NetworkFunction Dictionary<string, string>Chain Reference 
- The reference to a network_function_chain.
 
- NetworkFunction stringNic Type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- NicType string
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- NumQueues int
- The number of tx/rx queue pairs for this NIC.
 
- SubnetName string
- The name of the subnet reference to.
 
- SubnetUuid string
- The reference to a subnet.
 
- Uuid string
- the UUID(Required).
 
- FloatingIp string
- The Floating IP associated with the vnic. (Only in nic_list_status)
 
- The Floating IP associated with the vnic. (Only in 
- IpEndpoint []VirtualLists Machine Nic List Status Ip Endpoint List 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- IsConnected string
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- MacAddress string
- The MAC address for the adapter.
 
- Model string
- The model of this NIC. (Options : VIRTIO , E1000).
 
- NetworkFunction map[string]stringChain Reference 
- The reference to a network_function_chain.
 
- NetworkFunction stringNic Type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- NicType string
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- NumQueues int
- The number of tx/rx queue pairs for this NIC.
 
- SubnetName string
- The name of the subnet reference to.
 
- SubnetUuid string
- The reference to a subnet.
 
- Uuid string
- the UUID(Required).
 
- floatingIp String
- The Floating IP associated with the vnic. (Only in nic_list_status)
 
- The Floating IP associated with the vnic. (Only in 
- ipEndpoint List<VirtualLists Machine Nic List Status Ip Endpoint List> 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- isConnected String
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- macAddress String
- The MAC address for the adapter.
 
- model String
- The model of this NIC. (Options : VIRTIO , E1000).
 
- networkFunction Map<String,String>Chain Reference 
- The reference to a network_function_chain.
 
- networkFunction StringNic Type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- nicType String
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- numQueues Integer
- The number of tx/rx queue pairs for this NIC.
 
- subnetName String
- The name of the subnet reference to.
 
- subnetUuid String
- The reference to a subnet.
 
- uuid String
- the UUID(Required).
 
- floatingIp string
- The Floating IP associated with the vnic. (Only in nic_list_status)
 
- The Floating IP associated with the vnic. (Only in 
- ipEndpoint VirtualLists Machine Nic List Status Ip Endpoint List[] 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- isConnected string
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- macAddress string
- The MAC address for the adapter.
 
- model string
- The model of this NIC. (Options : VIRTIO , E1000).
 
- networkFunction {[key: string]: string}Chain Reference 
- The reference to a network_function_chain.
 
- networkFunction stringNic Type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- nicType string
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- numQueues number
- The number of tx/rx queue pairs for this NIC.
 
- subnetName string
- The name of the subnet reference to.
 
- subnetUuid string
- The reference to a subnet.
 
- uuid string
- the UUID(Required).
 
- floating_ip str
- The Floating IP associated with the vnic. (Only in nic_list_status)
 
- The Floating IP associated with the vnic. (Only in 
- ip_endpoint_ Sequence[Virtuallists Machine Nic List Status Ip Endpoint List] 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- is_connected str
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- mac_address str
- The MAC address for the adapter.
 
- model str
- The model of this NIC. (Options : VIRTIO , E1000).
 
- network_function_ Mapping[str, str]chain_ reference 
- The reference to a network_function_chain.
 
- network_function_ strnic_ type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- nic_type str
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- num_queues int
- The number of tx/rx queue pairs for this NIC.
 
- subnet_name str
- The name of the subnet reference to.
 
- subnet_uuid str
- The reference to a subnet.
 
- uuid str
- the UUID(Required).
 
- floatingIp String
- The Floating IP associated with the vnic. (Only in nic_list_status)
 
- The Floating IP associated with the vnic. (Only in 
- ipEndpoint List<Property Map>Lists 
- IP endpoints for the adapter. Currently, IPv4 addresses are supported.
 
- isConnected String
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- macAddress String
- The MAC address for the adapter.
 
- model String
- The model of this NIC. (Options : VIRTIO , E1000).
 
- networkFunction Map<String>Chain Reference 
- The reference to a network_function_chain.
 
- networkFunction StringNic Type 
- The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
 
- nicType String
- The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
 
- numQueues Number
- The number of tx/rx queue pairs for this NIC.
 
- subnetName String
- The name of the subnet reference to.
 
- subnetUuid String
- The reference to a subnet.
 
- uuid String
- the UUID(Required).
 
VirtualMachineNicListStatusIpEndpointList, VirtualMachineNicListStatusIpEndpointListArgs                
VirtualMachineSerialPortList, VirtualMachineSerialPortListArgs          
- Index int
- Index of the serial port (int).
 
- IsConnected bool
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- Index int
- Index of the serial port (int).
 
- IsConnected bool
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- index Integer
- Index of the serial port (int).
 
- isConnected Boolean
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- index number
- Index of the serial port (int).
 
- isConnected boolean
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- index int
- Index of the serial port (int).
 
- is_connected bool
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
- index Number
- Index of the serial port (int).
 
- isConnected Boolean
- Indicates whether the serial port connection is connected or not (trueorfalse).
 
- Indicates whether the serial port connection is connected or not (
Import
Nutanix Virtual machines can be imported using the UUID eg,
`
$ pulumi import nutanix:index/virtualMachine:VirtualMachine vm01 0F75E6A7-55FB-44D9-A50D-14AD72E2CF7C
`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the nutanixTerraform Provider.
