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:
- Cluster
Uuid string - (Required) The UUID of the cluster.
- Availability
Zone Dictionary<string, string>Reference - (Optional) The reference to a availability_zone.
- Boot
Device Dictionary<string, string>Disk Address - (Optional) Address of disk to boot from.
- Boot
Device stringMac Address - (Optional) MAC address of nic to boot from.
- Boot
Device 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.
- Boot
Type 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<Piers
Karsenbarg. Nutanix. Inputs. Virtual Machine Category> - (Optional) Categories for the vm.
- Cloud
Init stringCdrom Uuid - Description string
- (Optional) A description for vm.
- Disk
Lists List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Disk List> - 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 List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Gpu List> - (Optional) GPUs attached to the VM.
- Guest
Customization Dictionary<string, string>Cloud Init Custom Key Values - (Optional) Generic key value pair used for custom attributes in cloud init.
- Guest
Customization 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.
- Guest
Customization 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.
- Guest
Customization boolIs Overridable - (Optional) Flag to allow override of customization by deployer.
- Guest
Customization 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.
- Guest
Customization Dictionary<string, string>Sysprep Custom Key Values - (Optional) Generic key value pair used for custom attributes in sysprep.
- Guest
Os stringId - (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
- Hardware
Clock stringTimezone - (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 string - 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 string
- (Required) The name for the vm.
- Ngt
Credentials Dictionary<string, string> - (Ooptional) Credentials to login server.
- Ngt
Enabled List<string>Capability Lists - Application names that are enabled.
- Nic
Lists List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Nic List> - (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 Dictionary<string, string>Tools - (Optional) Information regarding Nutanix Guest Tools.
- Owner
Reference Dictionary<string, string> - (Optional) The reference to a user.
- Parent
Reference Dictionary<string, string> - (Optional) Reference to an entity that the VM cloned from.
- Power
State 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).
- Project
Reference Dictionary<string, string> - (Optional) The reference to a project.
- Serial
Port List<PiersLists Karsenbarg. Nutanix. Inputs. Virtual Machine Serial Port List> - (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.
- Cluster
Uuid string - (Required) The UUID of the cluster.
- Availability
Zone map[string]stringReference - (Optional) The reference to a availability_zone.
- Boot
Device map[string]stringDisk Address - (Optional) Address of disk to boot from.
- Boot
Device stringMac Address - (Optional) MAC address of nic to boot from.
- Boot
Device []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.
- Boot
Type 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
[]Virtual
Machine Category Args - (Optional) Categories for the vm.
- Cloud
Init stringCdrom Uuid - Description string
- (Optional) A description for vm.
- Disk
Lists []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 []VirtualMachine Gpu List Args - (Optional) GPUs attached to the VM.
- Guest
Customization map[string]stringCloud Init Custom Key Values - (Optional) Generic key value pair used for custom attributes in cloud init.
- Guest
Customization 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.
- Guest
Customization 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.
- Guest
Customization boolIs Overridable - (Optional) Flag to allow override of customization by deployer.
- Guest
Customization 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.
- Guest
Customization map[string]stringSysprep Custom Key Values - (Optional) Generic key value pair used for custom attributes in sysprep.
- Guest
Os stringId - (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
- Hardware
Clock stringTimezone - (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 string - 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 string
- (Required) The name for the vm.
- Ngt
Credentials map[string]string - (Ooptional) Credentials to login server.
- Ngt
Enabled []stringCapability Lists - Application names that are enabled.
- Nic
Lists []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 map[string]stringTools - (Optional) Information regarding Nutanix Guest Tools.
- Owner
Reference map[string]string - (Optional) The reference to a user.
- Parent
Reference map[string]string - (Optional) Reference to an entity that the VM cloned from.
- Power
State 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).
- Project
Reference map[string]string - (Optional) The reference to a project.
- Serial
Port []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.
- cluster
Uuid String - (Required) The UUID of the cluster.
- availability
Zone Map<String,String>Reference - (Optional) The reference to a availability_zone.
- boot
Device Map<String,String>Disk Address - (Optional) Address of disk to boot from.
- boot
Device StringMac Address - (Optional) MAC address of nic to boot from.
- boot
Device 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.
- boot
Type 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<Virtual
Machine Category> - (Optional) Categories for the vm.
- cloud
Init StringCdrom Uuid - description String
- (Optional) A description for vm.
- disk
Lists List<VirtualMachine Disk List> - Disks attached to the VM.
- enable
Cpu BooleanPassthrough - (Optional) Add true to enable CPU passthrough.
- enable
Script BooleanExec - (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
- gpu
Lists List<VirtualMachine Gpu List> - (Optional) GPUs attached to the VM.
- guest
Customization Map<String,String>Cloud Init Custom Key Values - (Optional) Generic key value pair used for custom attributes in cloud init.
- guest
Customization 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.
- guest
Customization 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.
- guest
Customization BooleanIs Overridable - (Optional) Flag to allow override of customization by deployer.
- guest
Customization 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.
- guest
Customization Map<String,String>Sysprep Custom Key Values - (Optional) Generic key value pair used for custom attributes in sysprep.
- guest
Os StringId - (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
- hardware
Clock StringTimezone - (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
- is
Vcpu BooleanHard Pinned - (Optional) Add true to enable CPU pinning.
- machine
Type String - Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
- memory
Size 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.
- ngt
Credentials Map<String,String> - (Ooptional) Credentials to login server.
- ngt
Enabled List<String>Capability Lists - Application names that are enabled.
- nic
Lists List<VirtualMachine Nic List> - (Optional) Spec NICs attached to the VM.
- num
Sockets Integer - (Optional) Number of vCPU sockets.
- num
Vcpus IntegerPer Socket - (Optional) Number of vCPUs per socket.
- num
Vnuma IntegerNodes - (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
- nutanix
Guest Map<String,String>Tools - (Optional) Information regarding Nutanix Guest Tools.
- owner
Reference Map<String,String> - (Optional) The reference to a user.
- parent
Reference Map<String,String> - (Optional) Reference to an entity that the VM cloned from.
- power
State 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).
- project
Reference Map<String,String> - (Optional) The reference to a project.
- serial
Port List<VirtualLists Machine Serial Port List> - (Optional) Serial Ports configured on the VM.
- should
Fail BooleanOn Script Failure - (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
- use
Hot 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
- vga
Console BooleanEnabled - (Optional) Indicates whether VGA console should be enabled or not.
- cluster
Uuid string - (Required) The UUID of the cluster.
- availability
Zone {[key: string]: string}Reference - (Optional) The reference to a availability_zone.
- boot
Device {[key: string]: string}Disk Address - (Optional) Address of disk to boot from.
- boot
Device stringMac Address - (Optional) MAC address of nic to boot from.
- boot
Device 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.
- boot
Type 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
Virtual
Machine Category[] - (Optional) Categories for the vm.
- cloud
Init stringCdrom Uuid - description string
- (Optional) A description for vm.
- disk
Lists VirtualMachine Disk List[] - Disks attached to the VM.
- enable
Cpu booleanPassthrough - (Optional) Add true to enable CPU passthrough.
- enable
Script booleanExec - (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
- gpu
Lists VirtualMachine Gpu List[] - (Optional) GPUs attached to the VM.
- guest
Customization {[key: string]: string}Cloud Init Custom Key Values - (Optional) Generic key value pair used for custom attributes in cloud init.
- guest
Customization 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.
- guest
Customization 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.
- guest
Customization booleanIs Overridable - (Optional) Flag to allow override of customization by deployer.
- guest
Customization {[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.
- guest
Customization {[key: string]: string}Sysprep Custom Key Values - (Optional) Generic key value pair used for custom attributes in sysprep.
- guest
Os stringId - (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
- hardware
Clock stringTimezone - (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
- is
Vcpu booleanHard Pinned - (Optional) Add true to enable CPU pinning.
- machine
Type string - Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
- memory
Size 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.
- ngt
Credentials {[key: string]: string} - (Ooptional) Credentials to login server.
- ngt
Enabled string[]Capability Lists - Application names that are enabled.
- nic
Lists VirtualMachine Nic List[] - (Optional) Spec NICs attached to the VM.
- num
Sockets number - (Optional) Number of vCPU sockets.
- num
Vcpus numberPer Socket - (Optional) Number of vCPUs per socket.
- num
Vnuma numberNodes - (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
- nutanix
Guest {[key: string]: string}Tools - (Optional) Information regarding Nutanix Guest Tools.
- owner
Reference {[key: string]: string} - (Optional) The reference to a user.
- parent
Reference {[key: string]: string} - (Optional) Reference to an entity that the VM cloned from.
- power
State 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).
- project
Reference {[key: string]: string} - (Optional) The reference to a project.
- serial
Port VirtualLists Machine Serial Port List[] - (Optional) Serial Ports configured on the VM.
- should
Fail booleanOn Script Failure - (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
- use
Hot 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
- vga
Console 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[Virtual
Machine 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.
- cluster
Uuid String - (Required) The UUID of the cluster.
- availability
Zone Map<String>Reference - (Optional) The reference to a availability_zone.
- boot
Device Map<String>Disk Address - (Optional) Address of disk to boot from.
- boot
Device StringMac Address - (Optional) MAC address of nic to boot from.
- boot
Device 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.
- boot
Type 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.
- cloud
Init StringCdrom Uuid - description String
- (Optional) A description for vm.
- disk
Lists List<Property Map> - Disks attached to the VM.
- enable
Cpu BooleanPassthrough - (Optional) Add true to enable CPU passthrough.
- enable
Script BooleanExec - (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
- gpu
Lists List<Property Map> - (Optional) GPUs attached to the VM.
- guest
Customization Map<String>Cloud Init Custom Key Values - (Optional) Generic key value pair used for custom attributes in cloud init.
- guest
Customization 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.
- guest
Customization 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.
- guest
Customization BooleanIs Overridable - (Optional) Flag to allow override of customization by deployer.
- guest
Customization 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.
- guest
Customization Map<String>Sysprep Custom Key Values - (Optional) Generic key value pair used for custom attributes in sysprep.
- guest
Os StringId - (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
- hardware
Clock StringTimezone - (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
- is
Vcpu BooleanHard Pinned - (Optional) Add true to enable CPU pinning.
- machine
Type String - Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
- memory
Size 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.
- ngt
Credentials Map<String> - (Ooptional) Credentials to login server.
- ngt
Enabled List<String>Capability Lists - Application names that are enabled.
- nic
Lists List<Property Map> - (Optional) Spec NICs attached to the VM.
- num
Sockets Number - (Optional) Number of vCPU sockets.
- num
Vcpus NumberPer Socket - (Optional) Number of vCPUs per socket.
- num
Vnuma NumberNodes - (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
- nutanix
Guest Map<String>Tools - (Optional) Information regarding Nutanix Guest Tools.
- owner
Reference Map<String> - (Optional) The reference to a user.
- parent
Reference Map<String> - (Optional) Reference to an entity that the VM cloned from.
- power
State 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).
- project
Reference Map<String> - (Optional) The reference to a project.
- serial
Port List<Property Map>Lists - (Optional) Serial Ports configured on the VM.
- should
Fail BooleanOn Script Failure - (Optional) Extra configs related to power state transition. Indicates whether to abort ngt shutdown/reboot if script fails.
- use
Hot 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
- vga
Console 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:
- Api
Version string - The version of the API.
- Cluster
Name string - The name of the cluster.
- Host
Reference Dictionary<string, string> - Reference to a host.
- Hypervisor
Type 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.
- Nic
List List<PiersStatuses Karsenbarg. Nutanix. Outputs. Virtual Machine Nic List Status> - Status NICs attached to the VM.
- Power
State string - (Optional) The current or desired power state of the VM. (Options : ON , OFF)
- State string
- The state of the vm.
- Api
Version string - The version of the API.
- Cluster
Name string - The name of the cluster.
- Host
Reference map[string]string - Reference to a host.
- Hypervisor
Type 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.
- Nic
List []VirtualStatuses Machine Nic List Status - Status NICs attached to the VM.
- Power
State string - (Optional) The current or desired power state of the VM. (Options : ON , OFF)
- State string
- The state of the vm.
- api
Version String - The version of the API.
- cluster
Name String - The name of the cluster.
- host
Reference Map<String,String> - Reference to a host.
- hypervisor
Type 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.
- nic
List List<VirtualStatuses Machine Nic List Status> - Status NICs attached to the VM.
- power
State String - (Optional) The current or desired power state of the VM. (Options : ON , OFF)
- state String
- The state of the vm.
- api
Version string - The version of the API.
- cluster
Name string - The name of the cluster.
- host
Reference {[key: string]: string} - Reference to a host.
- hypervisor
Type 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.
- nic
List VirtualStatuses Machine Nic List Status[] - Status NICs attached to the VM.
- power
State 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.
- api
Version String - The version of the API.
- cluster
Name String - The name of the cluster.
- host
Reference Map<String> - Reference to a host.
- hypervisor
Type 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.
- nic
List List<Property Map>Statuses - Status NICs attached to the VM.
- power
State 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) -> VirtualMachine
func 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.
- Api
Version string - The version of the API.
- Availability
Zone Dictionary<string, string>Reference - (Optional) The reference to a availability_zone.
- Boot
Device Dictionary<string, string>Disk Address - (Optional) Address of disk to boot from.
- Boot
Device stringMac Address - (Optional) MAC address of nic to boot from.
- Boot
Device 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.
- Boot
Type 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<Piers
Karsenbarg. Nutanix. Inputs. Virtual Machine Category> - (Optional) Categories for the vm.
- Cloud
Init stringCdrom Uuid - Cluster
Name string - The name of the cluster.
- Cluster
Uuid string - (Required) The UUID of the cluster.
- Description string
- (Optional) A description for vm.
- Disk
Lists List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Disk List> - 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 List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Gpu List> - (Optional) GPUs attached to the VM.
- Guest
Customization Dictionary<string, string>Cloud Init Custom Key Values - (Optional) Generic key value pair used for custom attributes in cloud init.
- Guest
Customization 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.
- Guest
Customization 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.
- Guest
Customization boolIs Overridable - (Optional) Flag to allow override of customization by deployer.
- Guest
Customization 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.
- Guest
Customization Dictionary<string, string>Sysprep Custom Key Values - (Optional) Generic key value pair used for custom attributes in sysprep.
- Guest
Os stringId - (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
- Hardware
Clock stringTimezone - (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
- Host
Reference Dictionary<string, string> - Reference to a host.
- Hypervisor
Type string - The hypervisor type for the hypervisor the VM is hosted on.
- Is
Vcpu boolHard Pinned - (Optional) Add true to enable CPU pinning.
- Machine
Type string - 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 Dictionary<string, string>
- The vm kind metadata.
- Name string
- (Required) The name for the vm.
- Ngt
Credentials Dictionary<string, string> - (Ooptional) Credentials to login server.
- Ngt
Enabled List<string>Capability Lists - Application names that are enabled.
- Nic
List List<PiersStatuses Karsenbarg. Nutanix. Inputs. Virtual Machine Nic List Status> - Status NICs attached to the VM.
- Nic
Lists List<PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Nic List> - (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 Dictionary<string, string>Tools - (Optional) Information regarding Nutanix Guest Tools.
- Owner
Reference Dictionary<string, string> - (Optional) The reference to a user.
- Parent
Reference Dictionary<string, string> - (Optional) Reference to an entity that the VM cloned from.
- Power
State string - (Optional) The current or desired power state of the VM. (Options : ON , OFF)
- Power
State 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).
- Project
Reference Dictionary<string, string> - (Optional) The reference to a project.
- Serial
Port List<PiersLists Karsenbarg. Nutanix. Inputs. Virtual Machine Serial Port List> - (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 string
- 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.
- Api
Version string - The version of the API.
- Availability
Zone map[string]stringReference - (Optional) The reference to a availability_zone.
- Boot
Device map[string]stringDisk Address - (Optional) Address of disk to boot from.
- Boot
Device stringMac Address - (Optional) MAC address of nic to boot from.
- Boot
Device []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.
- Boot
Type 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
[]Virtual
Machine Category Args - (Optional) Categories for the vm.
- Cloud
Init stringCdrom Uuid - Cluster
Name string - The name of the cluster.
- Cluster
Uuid string - (Required) The UUID of the cluster.
- Description string
- (Optional) A description for vm.
- Disk
Lists []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 []VirtualMachine Gpu List Args - (Optional) GPUs attached to the VM.
- Guest
Customization map[string]stringCloud Init Custom Key Values - (Optional) Generic key value pair used for custom attributes in cloud init.
- Guest
Customization 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.
- Guest
Customization 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.
- Guest
Customization boolIs Overridable - (Optional) Flag to allow override of customization by deployer.
- Guest
Customization 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.
- Guest
Customization map[string]stringSysprep Custom Key Values - (Optional) Generic key value pair used for custom attributes in sysprep.
- Guest
Os stringId - (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
- Hardware
Clock stringTimezone - (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
- Host
Reference map[string]string - Reference to a host.
- Hypervisor
Type string - The hypervisor type for the hypervisor the VM is hosted on.
- Is
Vcpu boolHard Pinned - (Optional) Add true to enable CPU pinning.
- Machine
Type string - 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 map[string]string
- The vm kind metadata.
- Name string
- (Required) The name for the vm.
- Ngt
Credentials map[string]string - (Ooptional) Credentials to login server.
- Ngt
Enabled []stringCapability Lists - Application names that are enabled.
- Nic
List []VirtualStatuses Machine Nic List Status Args - Status NICs attached to the VM.
- Nic
Lists []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 map[string]stringTools - (Optional) Information regarding Nutanix Guest Tools.
- Owner
Reference map[string]string - (Optional) The reference to a user.
- Parent
Reference map[string]string - (Optional) Reference to an entity that the VM cloned from.
- Power
State string - (Optional) The current or desired power state of the VM. (Options : ON , OFF)
- Power
State 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).
- Project
Reference map[string]string - (Optional) The reference to a project.
- Serial
Port []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 string
- 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.
- api
Version String - The version of the API.
- availability
Zone Map<String,String>Reference - (Optional) The reference to a availability_zone.
- boot
Device Map<String,String>Disk Address - (Optional) Address of disk to boot from.
- boot
Device StringMac Address - (Optional) MAC address of nic to boot from.
- boot
Device 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.
- boot
Type 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<Virtual
Machine Category> - (Optional) Categories for the vm.
- cloud
Init StringCdrom Uuid - cluster
Name String - The name of the cluster.
- cluster
Uuid String - (Required) The UUID of the cluster.
- description String
- (Optional) A description for vm.
- disk
Lists List<VirtualMachine Disk List> - Disks attached to the VM.
- enable
Cpu BooleanPassthrough - (Optional) Add true to enable CPU passthrough.
- enable
Script BooleanExec - (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
- gpu
Lists List<VirtualMachine Gpu List> - (Optional) GPUs attached to the VM.
- guest
Customization Map<String,String>Cloud Init Custom Key Values - (Optional) Generic key value pair used for custom attributes in cloud init.
- guest
Customization 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.
- guest
Customization 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.
- guest
Customization BooleanIs Overridable - (Optional) Flag to allow override of customization by deployer.
- guest
Customization 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.
- guest
Customization Map<String,String>Sysprep Custom Key Values - (Optional) Generic key value pair used for custom attributes in sysprep.
- guest
Os StringId - (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
- hardware
Clock StringTimezone - (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
- host
Reference Map<String,String> - Reference to a host.
- hypervisor
Type String - The hypervisor type for the hypervisor the VM is hosted on.
- is
Vcpu BooleanHard Pinned - (Optional) Add true to enable CPU pinning.
- machine
Type String - Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
- memory
Size 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.
- ngt
Credentials Map<String,String> - (Ooptional) Credentials to login server.
- ngt
Enabled List<String>Capability Lists - Application names that are enabled.
- nic
List List<VirtualStatuses Machine Nic List Status> - Status NICs attached to the VM.
- nic
Lists List<VirtualMachine Nic List> - (Optional) Spec NICs attached to the VM.
- num
Sockets Integer - (Optional) Number of vCPU sockets.
- num
Vcpus IntegerPer Socket - (Optional) Number of vCPUs per socket.
- num
Vnuma IntegerNodes - (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
- nutanix
Guest Map<String,String>Tools - (Optional) Information regarding Nutanix Guest Tools.
- owner
Reference Map<String,String> - (Optional) The reference to a user.
- parent
Reference Map<String,String> - (Optional) Reference to an entity that the VM cloned from.
- power
State String - (Optional) The current or desired power state of the VM. (Options : ON , OFF)
- power
State 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).
- project
Reference Map<String,String> - (Optional) The reference to a project.
- serial
Port List<VirtualLists Machine Serial Port List> - (Optional) Serial Ports configured on the VM.
- should
Fail 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.
- use
Hot 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
- vga
Console BooleanEnabled - (Optional) Indicates whether VGA console should be enabled or not.
- api
Version string - The version of the API.
- availability
Zone {[key: string]: string}Reference - (Optional) The reference to a availability_zone.
- boot
Device {[key: string]: string}Disk Address - (Optional) Address of disk to boot from.
- boot
Device stringMac Address - (Optional) MAC address of nic to boot from.
- boot
Device 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.
- boot
Type 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
Virtual
Machine Category[] - (Optional) Categories for the vm.
- cloud
Init stringCdrom Uuid - cluster
Name string - The name of the cluster.
- cluster
Uuid string - (Required) The UUID of the cluster.
- description string
- (Optional) A description for vm.
- disk
Lists VirtualMachine Disk List[] - Disks attached to the VM.
- enable
Cpu booleanPassthrough - (Optional) Add true to enable CPU passthrough.
- enable
Script booleanExec - (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
- gpu
Lists VirtualMachine Gpu List[] - (Optional) GPUs attached to the VM.
- guest
Customization {[key: string]: string}Cloud Init Custom Key Values - (Optional) Generic key value pair used for custom attributes in cloud init.
- guest
Customization 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.
- guest
Customization 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.
- guest
Customization booleanIs Overridable - (Optional) Flag to allow override of customization by deployer.
- guest
Customization {[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.
- guest
Customization {[key: string]: string}Sysprep Custom Key Values - (Optional) Generic key value pair used for custom attributes in sysprep.
- guest
Os stringId - (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
- hardware
Clock stringTimezone - (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
- host
Reference {[key: string]: string} - Reference to a host.
- hypervisor
Type string - The hypervisor type for the hypervisor the VM is hosted on.
- is
Vcpu booleanHard Pinned - (Optional) Add true to enable CPU pinning.
- machine
Type string - Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
- memory
Size 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.
- ngt
Credentials {[key: string]: string} - (Ooptional) Credentials to login server.
- ngt
Enabled string[]Capability Lists - Application names that are enabled.
- nic
List VirtualStatuses Machine Nic List Status[] - Status NICs attached to the VM.
- nic
Lists VirtualMachine Nic List[] - (Optional) Spec NICs attached to the VM.
- num
Sockets number - (Optional) Number of vCPU sockets.
- num
Vcpus numberPer Socket - (Optional) Number of vCPUs per socket.
- num
Vnuma numberNodes - (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
- nutanix
Guest {[key: string]: string}Tools - (Optional) Information regarding Nutanix Guest Tools.
- owner
Reference {[key: string]: string} - (Optional) The reference to a user.
- parent
Reference {[key: string]: string} - (Optional) Reference to an entity that the VM cloned from.
- power
State string - (Optional) The current or desired power state of the VM. (Options : ON , OFF)
- power
State 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).
- project
Reference {[key: string]: string} - (Optional) The reference to a project.
- serial
Port VirtualLists Machine Serial Port List[] - (Optional) Serial Ports configured on the VM.
- should
Fail 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.
- use
Hot 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
- vga
Console 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[Virtual
Machine 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.
- api
Version String - The version of the API.
- availability
Zone Map<String>Reference - (Optional) The reference to a availability_zone.
- boot
Device Map<String>Disk Address - (Optional) Address of disk to boot from.
- boot
Device StringMac Address - (Optional) MAC address of nic to boot from.
- boot
Device 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.
- boot
Type 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.
- cloud
Init StringCdrom Uuid - cluster
Name String - The name of the cluster.
- cluster
Uuid String - (Required) The UUID of the cluster.
- description String
- (Optional) A description for vm.
- disk
Lists List<Property Map> - Disks attached to the VM.
- enable
Cpu BooleanPassthrough - (Optional) Add true to enable CPU passthrough.
- enable
Script BooleanExec - (Optional) Extra configs related to power state transition. Indicates whether to execute set script before ngt shutdown/reboot.
- gpu
Lists List<Property Map> - (Optional) GPUs attached to the VM.
- guest
Customization Map<String>Cloud Init Custom Key Values - (Optional) Generic key value pair used for custom attributes in cloud init.
- guest
Customization 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.
- guest
Customization 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.
- guest
Customization BooleanIs Overridable - (Optional) Flag to allow override of customization by deployer.
- guest
Customization 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.
- guest
Customization Map<String>Sysprep Custom Key Values - (Optional) Generic key value pair used for custom attributes in sysprep.
- guest
Os StringId - (Optional) Guest OS Identifier. For ESX, refer to VMware documentation link for the list of guest OS identifiers.
- hardware
Clock StringTimezone - (Optional) VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles).
- host
Reference Map<String> - Reference to a host.
- hypervisor
Type String - The hypervisor type for the hypervisor the VM is hosted on.
- is
Vcpu BooleanHard Pinned - (Optional) Add true to enable CPU pinning.
- machine
Type String - Machine type for the VM. Machine type Q35 is required for secure boot and does not support IDE disks.
- memory
Size 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.
- ngt
Credentials Map<String> - (Ooptional) Credentials to login server.
- ngt
Enabled List<String>Capability Lists - Application names that are enabled.
- nic
List List<Property Map>Statuses - Status NICs attached to the VM.
- nic
Lists List<Property Map> - (Optional) Spec NICs attached to the VM.
- num
Sockets Number - (Optional) Number of vCPU sockets.
- num
Vcpus NumberPer Socket - (Optional) Number of vCPUs per socket.
- num
Vnuma NumberNodes - (Optional) Number of vNUMA nodes. 0 means vNUMA is disabled.
- nutanix
Guest Map<String>Tools - (Optional) Information regarding Nutanix Guest Tools.
- owner
Reference Map<String> - (Optional) The reference to a user.
- parent
Reference Map<String> - (Optional) Reference to an entity that the VM cloned from.
- power
State String - (Optional) The current or desired power state of the VM. (Options : ON , OFF)
- power
State 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).
- project
Reference Map<String> - (Optional) The reference to a project.
- serial
Port List<Property Map>Lists - (Optional) Serial Ports configured on the VM.
- should
Fail 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.
- use
Hot 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
- vga
Console BooleanEnabled - (Optional) Indicates whether VGA console should be enabled or not.
Supporting Types
VirtualMachineCategory, VirtualMachineCategoryArgs
VirtualMachineDiskList, VirtualMachineDiskListArgs
- Data
Source 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).
- Device
Properties PiersKarsenbarg. Nutanix. Inputs. Virtual Machine 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 PiersKarsenbarg. Nutanix. Inputs. Virtual Machine Disk List Storage Config - Uuid string
- (Optional) The device ID which is used to uniquely identify this particular disk.
- Volume
Group Dictionary<string, string>Reference
- Data
Source 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).
- 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 string
- (Optional) The device ID which is used to uniquely identify this particular disk.
- Volume
Group map[string]stringReference
- data
Source 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).
- device
Properties VirtualMachine Disk List Device Properties - Properties to a device.
- disk
Size IntegerBytes - Size of the disk in Bytes.
- disk
Size 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.
- storage
Config VirtualMachine Disk List Storage Config - uuid String
- (Optional) The device ID which is used to uniquely identify this particular disk.
- volume
Group Map<String,String>Reference
- data
Source {[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).
- device
Properties VirtualMachine Disk List Device Properties - Properties to a device.
- disk
Size numberBytes - Size of the disk in Bytes.
- disk
Size 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.
- storage
Config VirtualMachine Disk List Storage Config - uuid string
- (Optional) The device ID which is used to uniquely identify this particular disk.
- volume
Group {[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
- data
Source 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).
- device
Properties Property Map - Properties to a device.
- disk
Size NumberBytes - Size of the disk in Bytes.
- disk
Size 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.
- storage
Config Property Map - uuid String
- (Optional) The device ID which is used to uniquely identify this particular disk.
- volume
Group Map<String>Reference
VirtualMachineDiskListDeviceProperties, VirtualMachineDiskListDevicePropertiesArgs
- Device
Type string - A Disk type (default: DISK).
- Disk
Address Dictionary<string, string> - Address of disk to boot from.
- Device
Type string - A Disk type (default: DISK).
- Disk
Address map[string]string - Address of disk to boot from.
- device
Type String - A Disk type (default: DISK).
- disk
Address Map<String,String> - Address of disk to boot from.
- device
Type string - A Disk type (default: DISK).
- disk
Address {[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.
- device
Type String - A Disk type (default: DISK).
- disk
Address Map<String> - Address of disk to boot from.
VirtualMachineDiskListStorageConfig, VirtualMachineDiskListStorageConfigArgs
- Flash
Mode 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.
- Storage
Container 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 referencestorage_container_reference.#.name
: - name of the container referencestorage_container_reference.#.uuid
: - uiid of the container reference
- Flash
Mode 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.
- Storage
Container []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 referencestorage_container_reference.#.name
: - name of the container referencestorage_container_reference.#.uuid
: - uiid of the container reference
- flash
Mode 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.
- storage
Container 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 referencestorage_container_reference.#.name
: - name of the container referencestorage_container_reference.#.uuid
: - uiid of the container reference
- flash
Mode 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.
- storage
Container 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 referencestorage_container_reference.#.name
: - name of the container referencestorage_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 referencestorage_container_reference.#.name
: - name of the container referencestorage_container_reference.#.uuid
: - uiid of the container reference
- flash
Mode 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.
- storage
Container 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 referencestorage_container_reference.#.name
: - name of the container referencestorage_container_reference.#.uuid
: - uiid of the container reference
VirtualMachineDiskListStorageConfigStorageContainerReference, VirtualMachineDiskListStorageConfigStorageContainerReferenceArgs
VirtualMachineGpuList, VirtualMachineGpuListArgs
- 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 stringVersion - (ReadOnly) Last determined guest driver version.
- Mode string
- (Optional) The mode of this GPU.
- Name string
- (ReadOnly) Name of the GPU resource.
- Num
Virtual intDisplay Heads - (ReadOnly) Number of supported virtual display heads.
- Pci
Address 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 stringVersion - (ReadOnly) Last determined guest driver version.
- Mode string
- (Optional) The mode of this GPU.
- Name string
- (ReadOnly) Name of the GPU resource.
- Num
Virtual intDisplay Heads - (ReadOnly) Number of supported virtual display heads.
- Pci
Address 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 Integer - (Computed) The device ID of the GPU.
- fraction Integer
- Fraction of the physical GPU assigned.
- frame
Buffer IntegerSize Mib - (ReadOnly) GPU frame buffer size in MiB.
- guest
Driver StringVersion - (ReadOnly) Last determined guest driver version.
- mode String
- (Optional) The mode of this GPU.
- name String
- (ReadOnly) Name of the GPU resource.
- num
Virtual IntegerDisplay Heads - (ReadOnly) Number of supported virtual display heads.
- pci
Address 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 number - (Computed) The device ID of the GPU.
- fraction number
- Fraction of the physical GPU assigned.
- frame
Buffer numberSize Mib - (ReadOnly) GPU frame buffer size in MiB.
- guest
Driver stringVersion - (ReadOnly) Last determined guest driver version.
- mode string
- (Optional) The mode of this GPU.
- name string
- (ReadOnly) Name of the GPU resource.
- num
Virtual numberDisplay Heads - (ReadOnly) Number of supported virtual display heads.
- pci
Address 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.
- device
Id Number - (Computed) The device ID of the GPU.
- fraction Number
- Fraction of the physical GPU assigned.
- frame
Buffer NumberSize Mib - (ReadOnly) GPU frame buffer size in MiB.
- guest
Driver StringVersion - (ReadOnly) Last determined guest driver version.
- mode String
- (Optional) The mode of this GPU.
- name String
- (ReadOnly) Name of the GPU resource.
- num
Virtual NumberDisplay Heads - (ReadOnly) Number of supported virtual display heads.
- pci
Address 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
- Ip
Endpoint List<PiersLists Karsenbarg. Nutanix. Inputs. Virtual Machine Nic List Ip Endpoint List> - IP endpoints for the adapter. Currently, IPv4 addresses are supported.
- Is
Connected string - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- Mac
Address string - The MAC address for the adapter.
- Model string
- The model of this NIC. (Options : VIRTIO , E1000).
- Network
Function Dictionary<string, string>Chain Reference - The reference to a network_function_chain.
- Network
Function stringNic Type - The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
- Nic
Type string - 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 string - The name of the subnet reference to.
- Subnet
Uuid 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 []VirtualLists Machine Nic List Ip Endpoint List - IP endpoints for the adapter. Currently, IPv4 addresses are supported.
- Is
Connected string - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- Mac
Address string - The MAC address for the adapter.
- Model string
- The model of this NIC. (Options : VIRTIO , E1000).
- Network
Function map[string]stringChain Reference - The reference to a network_function_chain.
- Network
Function stringNic Type - The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
- Nic
Type string - 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 string - The name of the subnet reference to.
- Subnet
Uuid 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 List<VirtualLists Machine Nic List Ip Endpoint List> - IP endpoints for the adapter. Currently, IPv4 addresses are supported.
- is
Connected String - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- mac
Address String - The MAC address for the adapter.
- model String
- The model of this NIC. (Options : VIRTIO , E1000).
- network
Function Map<String,String>Chain Reference - The reference to a network_function_chain.
- network
Function StringNic Type - The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
- nic
Type String - The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
- num
Queues Integer - The number of tx/rx queue pairs for this NIC.
- subnet
Name String - The name of the subnet reference to.
- subnet
Uuid 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 VirtualLists Machine Nic List Ip Endpoint List[] - IP endpoints for the adapter. Currently, IPv4 addresses are supported.
- is
Connected string - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- mac
Address string - The MAC address for the adapter.
- model string
- The model of this NIC. (Options : VIRTIO , E1000).
- network
Function {[key: string]: string}Chain Reference - The reference to a network_function_chain.
- network
Function stringNic Type - The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
- nic
Type string - The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
- num
Queues number - The number of tx/rx queue pairs for this NIC.
- subnet
Name string - The name of the subnet reference to.
- subnet
Uuid 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 (
true
orfalse
).
- 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.
- ip
Endpoint List<Property Map>Lists - IP endpoints for the adapter. Currently, IPv4 addresses are supported.
- is
Connected String - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- mac
Address String - The MAC address for the adapter.
- model String
- The model of this NIC. (Options : VIRTIO , E1000).
- network
Function Map<String>Chain Reference - The reference to a network_function_chain.
- network
Function StringNic Type - The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
- nic
Type String - The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
- num
Queues Number - The number of tx/rx queue pairs for this NIC.
- subnet
Name String - The name of the subnet reference to.
- subnet
Uuid 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
- Floating
Ip string - The Floating IP associated with the vnic. (Only in
nic_list_status
)
- The Floating IP associated with the vnic. (Only in
- Ip
Endpoint List<PiersLists Karsenbarg. Nutanix. Inputs. Virtual Machine Nic List Status Ip Endpoint List> - IP endpoints for the adapter. Currently, IPv4 addresses are supported.
- Is
Connected string - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- Mac
Address string - The MAC address for the adapter.
- Model string
- The model of this NIC. (Options : VIRTIO , E1000).
- Network
Function Dictionary<string, string>Chain Reference - The reference to a network_function_chain.
- Network
Function stringNic Type - The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
- Nic
Type string - 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 string - The name of the subnet reference to.
- Subnet
Uuid string - The reference to a subnet.
- Uuid string
- the UUID(Required).
- Floating
Ip string - The Floating IP associated with the vnic. (Only in
nic_list_status
)
- The Floating IP associated with the vnic. (Only in
- Ip
Endpoint []VirtualLists Machine Nic List Status Ip Endpoint List - IP endpoints for the adapter. Currently, IPv4 addresses are supported.
- Is
Connected string - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- Mac
Address string - The MAC address for the adapter.
- Model string
- The model of this NIC. (Options : VIRTIO , E1000).
- Network
Function map[string]stringChain Reference - The reference to a network_function_chain.
- Network
Function stringNic Type - The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
- Nic
Type string - 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 string - The name of the subnet reference to.
- Subnet
Uuid string - The reference to a subnet.
- Uuid string
- the UUID(Required).
- floating
Ip String - The Floating IP associated with the vnic. (Only in
nic_list_status
)
- The Floating IP associated with the vnic. (Only in
- ip
Endpoint List<VirtualLists Machine Nic List Status Ip Endpoint List> - IP endpoints for the adapter. Currently, IPv4 addresses are supported.
- is
Connected String - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- mac
Address String - The MAC address for the adapter.
- model String
- The model of this NIC. (Options : VIRTIO , E1000).
- network
Function Map<String,String>Chain Reference - The reference to a network_function_chain.
- network
Function StringNic Type - The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
- nic
Type String - The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
- num
Queues Integer - The number of tx/rx queue pairs for this NIC.
- subnet
Name String - The name of the subnet reference to.
- subnet
Uuid String - The reference to a subnet.
- uuid String
- the UUID(Required).
- floating
Ip string - The Floating IP associated with the vnic. (Only in
nic_list_status
)
- The Floating IP associated with the vnic. (Only in
- ip
Endpoint VirtualLists Machine Nic List Status Ip Endpoint List[] - IP endpoints for the adapter. Currently, IPv4 addresses are supported.
- is
Connected string - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- mac
Address string - The MAC address for the adapter.
- model string
- The model of this NIC. (Options : VIRTIO , E1000).
- network
Function {[key: string]: string}Chain Reference - The reference to a network_function_chain.
- network
Function stringNic Type - The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
- nic
Type string - The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
- num
Queues number - The number of tx/rx queue pairs for this NIC.
- subnet
Name string - The name of the subnet reference to.
- subnet
Uuid 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 (
true
orfalse
).
- 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).
- floating
Ip String - The Floating IP associated with the vnic. (Only in
nic_list_status
)
- The Floating IP associated with the vnic. (Only in
- ip
Endpoint List<Property Map>Lists - IP endpoints for the adapter. Currently, IPv4 addresses are supported.
- is
Connected String - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- mac
Address String - The MAC address for the adapter.
- model String
- The model of this NIC. (Options : VIRTIO , E1000).
- network
Function Map<String>Chain Reference - The reference to a network_function_chain.
- network
Function StringNic Type - The type of this Network function NIC. Defaults to INGRESS. (Options : INGRESS , EGRESS , TAP).
- nic
Type String - The type of this NIC. Defaults to NORMAL_NIC. (Options : NORMAL_NIC , DIRECT_NIC , NETWORK_FUNCTION_NIC).
- num
Queues Number - The number of tx/rx queue pairs for this NIC.
- subnet
Name String - The name of the subnet reference to.
- subnet
Uuid String - The reference to a subnet.
- uuid String
- the UUID(Required).
VirtualMachineNicListStatusIpEndpointList, VirtualMachineNicListStatusIpEndpointListArgs
VirtualMachineSerialPortList, VirtualMachineSerialPortListArgs
- Index int
- Index of the serial port (int).
- Is
Connected bool - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- 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 (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- index Integer
- Index of the serial port (int).
- is
Connected Boolean - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- index number
- Index of the serial port (int).
- is
Connected boolean - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- 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 (
true
orfalse
).
- Indicates whether the serial port connection is connected or not (
- index Number
- Index of the serial port (int).
- is
Connected Boolean - Indicates whether the serial port connection is connected or not (
true
orfalse
).
- 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
nutanix
Terraform Provider.