1. Packages
  2. Packages
  3. Nutanix
  4. API Docs
  5. VmCdromInsertEjectV2
Viewing docs for Nutanix v0.14.0
published on Thursday, May 21, 2026 by Piers Karsenbarg
nutanix logo
Viewing docs for Nutanix v0.14.0
published on Thursday, May 21, 2026 by Piers Karsenbarg

    Inserts the defined ISO into a CD-ROM device attached to a Virtual Machine. Ejects the ISO currently inserted into a CD-ROM device on a Virtual Machine.

    Example

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    //#############################################
    // ------------------------------------------------
    // This resource allows inserting a custom ISO into
    // a VM’s CD-ROM device.
    //
    // You can manage both:
    // 1. **Insertion** — via `apply`
    // 2. **Ejection** — automatically on `delete`
    //  You can also eject the ISO by setting `action = "eject"` → triggers eject operation explicitly.
    //#############################################
    const insert_cdrom = new nutanix.VmCdromInsertEjectV2("insert-cdrom", {
        vmExtId: "8a938cc5-282b-48c4-81be-de22de145d07",
        extId: "c2c249b0-98a0-43fa-9ff6-dcde578d3936",
        backingInfos: [{
            dataSources: [{
                references: [{
                    imageReferences: [{
                        imageExtId: "ba250e3e-1db1-4950-917f-a9e2ea35b8e3",
                    }],
                }],
            }],
        }],
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    ##############################################
    # ------------------------------------------------
    # This resource allows inserting a custom ISO into
    # a VM’s CD-ROM device.
    #
    # You can manage both:
    # 1. **Insertion** — via `apply`
    # 2. **Ejection** — automatically on `delete`
    #  You can also eject the ISO by setting `action = "eject"` → triggers eject operation explicitly.
    ##############################################
    insert_cdrom = nutanix.VmCdromInsertEjectV2("insert-cdrom",
        vm_ext_id="8a938cc5-282b-48c4-81be-de22de145d07",
        ext_id="c2c249b0-98a0-43fa-9ff6-dcde578d3936",
        backing_infos=[{
            "data_sources": [{
                "references": [{
                    "image_references": [{
                        "image_ext_id": "ba250e3e-1db1-4950-917f-a9e2ea35b8e3",
                    }],
                }],
            }],
        }])
    
    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 {
    		// #############################################
    		// ------------------------------------------------
    		// This resource allows inserting a custom ISO into
    		// a VM’s CD-ROM device.
    		//
    		// You can manage both:
    		//  1. **Insertion** — via `apply`
    		//  2. **Ejection** — automatically on `delete`
    		//     You can also eject the ISO by setting `action = "eject"` → triggers eject operation explicitly.
    		//
    		// #############################################
    		_, err := nutanix.NewVmCdromInsertEjectV2(ctx, "insert-cdrom", &nutanix.VmCdromInsertEjectV2Args{
    			VmExtId: pulumi.String("8a938cc5-282b-48c4-81be-de22de145d07"),
    			ExtId:   pulumi.String("c2c249b0-98a0-43fa-9ff6-dcde578d3936"),
    			BackingInfos: nutanix.VmCdromInsertEjectV2BackingInfoArray{
    				&nutanix.VmCdromInsertEjectV2BackingInfoArgs{
    					DataSources: nutanix.VmCdromInsertEjectV2BackingInfoDataSourceArray{
    						&nutanix.VmCdromInsertEjectV2BackingInfoDataSourceArgs{
    							References: nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceArray{
    								&nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceArgs{
    									ImageReferences: nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReferenceArray{
    										&nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReferenceArgs{
    											ImageExtId: pulumi.String("ba250e3e-1db1-4950-917f-a9e2ea35b8e3"),
    										},
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        //#############################################
        // ------------------------------------------------
        // This resource allows inserting a custom ISO into
        // a VM’s CD-ROM device.
        //
        // You can manage both:
        // 1. **Insertion** — via `apply`
        // 2. **Ejection** — automatically on `delete`
        //  You can also eject the ISO by setting `action = "eject"` → triggers eject operation explicitly.
        //#############################################
        var insert_cdrom = new Nutanix.VmCdromInsertEjectV2("insert-cdrom", new()
        {
            VmExtId = "8a938cc5-282b-48c4-81be-de22de145d07",
            ExtId = "c2c249b0-98a0-43fa-9ff6-dcde578d3936",
            BackingInfos = new[]
            {
                new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoArgs
                {
                    DataSources = new[]
                    {
                        new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceArgs
                        {
                            References = new[]
                            {
                                new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceReferenceArgs
                                {
                                    ImageReferences = new[]
                                    {
                                        new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReferenceArgs
                                        {
                                            ImageExtId = "ba250e3e-1db1-4950-917f-a9e2ea35b8e3",
                                        },
                                    },
                                },
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.VmCdromInsertEjectV2;
    import com.pulumi.nutanix.VmCdromInsertEjectV2Args;
    import com.pulumi.nutanix.inputs.VmCdromInsertEjectV2BackingInfoArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            //#############################################
            // ------------------------------------------------
            // This resource allows inserting a custom ISO into
            // a VM’s CD-ROM device.
            //
            // You can manage both:
            // 1. **Insertion** — via `apply`
            // 2. **Ejection** — automatically on `delete`
            //  You can also eject the ISO by setting `action = "eject"` → triggers eject operation explicitly.
            //#############################################
            var insert_cdrom = new VmCdromInsertEjectV2("insert-cdrom", VmCdromInsertEjectV2Args.builder()
                .vmExtId("8a938cc5-282b-48c4-81be-de22de145d07")
                .extId("c2c249b0-98a0-43fa-9ff6-dcde578d3936")
                .backingInfos(VmCdromInsertEjectV2BackingInfoArgs.builder()
                    .dataSources(VmCdromInsertEjectV2BackingInfoDataSourceArgs.builder()
                        .references(VmCdromInsertEjectV2BackingInfoDataSourceReferenceArgs.builder()
                            .imageReferences(VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReferenceArgs.builder()
                                .imageExtId("ba250e3e-1db1-4950-917f-a9e2ea35b8e3")
                                .build())
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      ##############################################
      # ------------------------------------------------
      # This resource allows inserting a custom ISO into
      # a VM’s CD-ROM device.
      #
      # You can manage both:
      # 1. **Insertion** — via `apply`
      # 2. **Ejection** — automatically on `delete`
      #  You can also eject the ISO by setting `action = "eject"` → triggers eject operation explicitly.
      ##############################################
      insert-cdrom:
        type: nutanix:VmCdromInsertEjectV2
        properties:
          vmExtId: 8a938cc5-282b-48c4-81be-de22de145d07
          extId: c2c249b0-98a0-43fa-9ff6-dcde578d3936
          backingInfos:
            - dataSources:
                - references:
                    - imageReferences:
                        - imageExtId: ba250e3e-1db1-4950-917f-a9e2ea35b8e3
    
    Example coming soon!
    

    Create VmCdromInsertEjectV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VmCdromInsertEjectV2(name: string, args: VmCdromInsertEjectV2Args, opts?: CustomResourceOptions);
    @overload
    def VmCdromInsertEjectV2(resource_name: str,
                             args: VmCdromInsertEjectV2Args,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def VmCdromInsertEjectV2(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             ext_id: Optional[str] = None,
                             vm_ext_id: Optional[str] = None,
                             action: Optional[str] = None,
                             backing_infos: Optional[Sequence[VmCdromInsertEjectV2BackingInfoArgs]] = None)
    func NewVmCdromInsertEjectV2(ctx *Context, name string, args VmCdromInsertEjectV2Args, opts ...ResourceOption) (*VmCdromInsertEjectV2, error)
    public VmCdromInsertEjectV2(string name, VmCdromInsertEjectV2Args args, CustomResourceOptions? opts = null)
    public VmCdromInsertEjectV2(String name, VmCdromInsertEjectV2Args args)
    public VmCdromInsertEjectV2(String name, VmCdromInsertEjectV2Args args, CustomResourceOptions options)
    
    type: nutanix:VmCdromInsertEjectV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "nutanix_vmcdrominsertejectv2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VmCdromInsertEjectV2Args
    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 VmCdromInsertEjectV2Args
    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 VmCdromInsertEjectV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VmCdromInsertEjectV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VmCdromInsertEjectV2Args
    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 vmCdromInsertEjectV2Resource = new Nutanix.VmCdromInsertEjectV2("vmCdromInsertEjectV2Resource", new()
    {
        ExtId = "string",
        VmExtId = "string",
        Action = "string",
        BackingInfos = new[]
        {
            new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoArgs
            {
                DataSources = new[]
                {
                    new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceArgs
                    {
                        References = new[]
                        {
                            new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceReferenceArgs
                            {
                                ImageReferences = new[]
                                {
                                    new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReferenceArgs
                                    {
                                        ImageExtId = "string",
                                    },
                                },
                                VmDiskReferences = new[]
                                {
                                    new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceArgs
                                    {
                                        DiskAddresses = new[]
                                        {
                                            new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceDiskAddressArgs
                                            {
                                                BusType = "string",
                                                Index = 0,
                                            },
                                        },
                                        DiskExtId = "string",
                                        VmReferences = new[]
                                        {
                                            new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceVmReferenceArgs
                                            {
                                                ExtId = "string",
                                            },
                                        },
                                    },
                                },
                            },
                        },
                    },
                },
                DiskExtId = "string",
                DiskSizeBytes = 0,
                IsMigrationInProgress = false,
                StorageConfigs = new[]
                {
                    new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoStorageConfigArgs
                    {
                        IsFlashModeEnabled = false,
                    },
                },
                StorageContainers = new[]
                {
                    new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoStorageContainerArgs
                    {
                        ExtId = "string",
                    },
                },
            },
        },
    });
    
    example, err := nutanix.NewVmCdromInsertEjectV2(ctx, "vmCdromInsertEjectV2Resource", &nutanix.VmCdromInsertEjectV2Args{
    	ExtId:   pulumi.String("string"),
    	VmExtId: pulumi.String("string"),
    	Action:  pulumi.String("string"),
    	BackingInfos: nutanix.VmCdromInsertEjectV2BackingInfoArray{
    		&nutanix.VmCdromInsertEjectV2BackingInfoArgs{
    			DataSources: nutanix.VmCdromInsertEjectV2BackingInfoDataSourceArray{
    				&nutanix.VmCdromInsertEjectV2BackingInfoDataSourceArgs{
    					References: nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceArray{
    						&nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceArgs{
    							ImageReferences: nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReferenceArray{
    								&nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReferenceArgs{
    									ImageExtId: pulumi.String("string"),
    								},
    							},
    							VmDiskReferences: nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceArray{
    								&nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceArgs{
    									DiskAddresses: nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceDiskAddressArray{
    										&nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceDiskAddressArgs{
    											BusType: pulumi.String("string"),
    											Index:   pulumi.Int(0),
    										},
    									},
    									DiskExtId: pulumi.String("string"),
    									VmReferences: nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceVmReferenceArray{
    										&nutanix.VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceVmReferenceArgs{
    											ExtId: pulumi.String("string"),
    										},
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    			DiskExtId:             pulumi.String("string"),
    			DiskSizeBytes:         pulumi.Int(0),
    			IsMigrationInProgress: pulumi.Bool(false),
    			StorageConfigs: nutanix.VmCdromInsertEjectV2BackingInfoStorageConfigArray{
    				&nutanix.VmCdromInsertEjectV2BackingInfoStorageConfigArgs{
    					IsFlashModeEnabled: pulumi.Bool(false),
    				},
    			},
    			StorageContainers: nutanix.VmCdromInsertEjectV2BackingInfoStorageContainerArray{
    				&nutanix.VmCdromInsertEjectV2BackingInfoStorageContainerArgs{
    					ExtId: pulumi.String("string"),
    				},
    			},
    		},
    	},
    })
    
    resource "nutanix_vmcdrominsertejectv2" "vmCdromInsertEjectV2Resource" {
      ext_id    = "string"
      vm_ext_id = "string"
      action    = "string"
      backing_infos {
        data_sources {
          references {
            image_references {
              image_ext_id = "string"
            }
            vm_disk_references {
              disk_addresses {
                bus_type = "string"
                index    = 0
              }
              disk_ext_id = "string"
              vm_references {
                ext_id = "string"
              }
            }
          }
        }
        disk_ext_id              = "string"
        disk_size_bytes          = 0
        is_migration_in_progress = false
        storage_configs {
          is_flash_mode_enabled = false
        }
        storage_containers {
          ext_id = "string"
        }
      }
    }
    
    var vmCdromInsertEjectV2Resource = new VmCdromInsertEjectV2("vmCdromInsertEjectV2Resource", VmCdromInsertEjectV2Args.builder()
        .extId("string")
        .vmExtId("string")
        .action("string")
        .backingInfos(VmCdromInsertEjectV2BackingInfoArgs.builder()
            .dataSources(VmCdromInsertEjectV2BackingInfoDataSourceArgs.builder()
                .references(VmCdromInsertEjectV2BackingInfoDataSourceReferenceArgs.builder()
                    .imageReferences(VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReferenceArgs.builder()
                        .imageExtId("string")
                        .build())
                    .vmDiskReferences(VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceArgs.builder()
                        .diskAddresses(VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceDiskAddressArgs.builder()
                            .busType("string")
                            .index(0)
                            .build())
                        .diskExtId("string")
                        .vmReferences(VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceVmReferenceArgs.builder()
                            .extId("string")
                            .build())
                        .build())
                    .build())
                .build())
            .diskExtId("string")
            .diskSizeBytes(0)
            .isMigrationInProgress(false)
            .storageConfigs(VmCdromInsertEjectV2BackingInfoStorageConfigArgs.builder()
                .isFlashModeEnabled(false)
                .build())
            .storageContainers(VmCdromInsertEjectV2BackingInfoStorageContainerArgs.builder()
                .extId("string")
                .build())
            .build())
        .build());
    
    vm_cdrom_insert_eject_v2_resource = nutanix.VmCdromInsertEjectV2("vmCdromInsertEjectV2Resource",
        ext_id="string",
        vm_ext_id="string",
        action="string",
        backing_infos=[{
            "data_sources": [{
                "references": [{
                    "image_references": [{
                        "image_ext_id": "string",
                    }],
                    "vm_disk_references": [{
                        "disk_addresses": [{
                            "bus_type": "string",
                            "index": 0,
                        }],
                        "disk_ext_id": "string",
                        "vm_references": [{
                            "ext_id": "string",
                        }],
                    }],
                }],
            }],
            "disk_ext_id": "string",
            "disk_size_bytes": 0,
            "is_migration_in_progress": False,
            "storage_configs": [{
                "is_flash_mode_enabled": False,
            }],
            "storage_containers": [{
                "ext_id": "string",
            }],
        }])
    
    const vmCdromInsertEjectV2Resource = new nutanix.VmCdromInsertEjectV2("vmCdromInsertEjectV2Resource", {
        extId: "string",
        vmExtId: "string",
        action: "string",
        backingInfos: [{
            dataSources: [{
                references: [{
                    imageReferences: [{
                        imageExtId: "string",
                    }],
                    vmDiskReferences: [{
                        diskAddresses: [{
                            busType: "string",
                            index: 0,
                        }],
                        diskExtId: "string",
                        vmReferences: [{
                            extId: "string",
                        }],
                    }],
                }],
            }],
            diskExtId: "string",
            diskSizeBytes: 0,
            isMigrationInProgress: false,
            storageConfigs: [{
                isFlashModeEnabled: false,
            }],
            storageContainers: [{
                extId: "string",
            }],
        }],
    });
    
    type: nutanix:VmCdromInsertEjectV2
    properties:
        action: string
        backingInfos:
            - dataSources:
                - references:
                    - imageReferences:
                        - imageExtId: string
                      vmDiskReferences:
                        - diskAddresses:
                            - busType: string
                              index: 0
                          diskExtId: string
                          vmReferences:
                            - extId: string
              diskExtId: string
              diskSizeBytes: 0
              isMigrationInProgress: false
              storageConfigs:
                - isFlashModeEnabled: false
              storageContainers:
                - extId: string
        extId: string
        vmExtId: string
    

    VmCdromInsertEjectV2 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 VmCdromInsertEjectV2 resource accepts the following input properties:

    ExtId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    VmExtId string
    The globally unique identifier of a VM. It should be of type UUID
    Action string
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    BackingInfos List<PiersKarsenbarg.Nutanix.Inputs.VmCdromInsertEjectV2BackingInfo>
    Storage provided by Nutanix ADSF
    ExtId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    VmExtId string
    The globally unique identifier of a VM. It should be of type UUID
    Action string
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    BackingInfos []VmCdromInsertEjectV2BackingInfoArgs
    Storage provided by Nutanix ADSF
    ext_id string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    vm_ext_id string
    The globally unique identifier of a VM. It should be of type UUID
    action string
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    backing_infos list(object)
    Storage provided by Nutanix ADSF
    extId String
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    vmExtId String
    The globally unique identifier of a VM. It should be of type UUID
    action String
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    backingInfos List<VmCdromInsertEjectV2BackingInfo>
    Storage provided by Nutanix ADSF
    extId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    vmExtId string
    The globally unique identifier of a VM. It should be of type UUID
    action string
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    backingInfos VmCdromInsertEjectV2BackingInfo[]
    Storage provided by Nutanix ADSF
    ext_id str
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    vm_ext_id str
    The globally unique identifier of a VM. It should be of type UUID
    action str
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    backing_infos Sequence[VmCdromInsertEjectV2BackingInfoArgs]
    Storage provided by Nutanix ADSF
    extId String
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    vmExtId String
    The globally unique identifier of a VM. It should be of type UUID
    action String
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    backingInfos List<Property Map>
    Storage provided by Nutanix ADSF

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VmCdromInsertEjectV2 resource produces the following output properties:

    CdromExtId string
    DiskAddresses List<PiersKarsenbarg.Nutanix.Outputs.VmCdromInsertEjectV2DiskAddress>
    Id string
    The provider-assigned unique ID for this managed resource.
    IsoType string
    CdromExtId string
    DiskAddresses []VmCdromInsertEjectV2DiskAddress
    Id string
    The provider-assigned unique ID for this managed resource.
    IsoType string
    cdrom_ext_id string
    disk_addresses list(object)
    id string
    The provider-assigned unique ID for this managed resource.
    iso_type string
    cdromExtId String
    diskAddresses List<VmCdromInsertEjectV2DiskAddress>
    id String
    The provider-assigned unique ID for this managed resource.
    isoType String
    cdromExtId string
    diskAddresses VmCdromInsertEjectV2DiskAddress[]
    id string
    The provider-assigned unique ID for this managed resource.
    isoType string
    cdrom_ext_id str
    disk_addresses Sequence[VmCdromInsertEjectV2DiskAddress]
    id str
    The provider-assigned unique ID for this managed resource.
    iso_type str
    cdromExtId String
    diskAddresses List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    isoType String

    Look up Existing VmCdromInsertEjectV2 Resource

    Get an existing VmCdromInsertEjectV2 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?: VmCdromInsertEjectV2State, opts?: CustomResourceOptions): VmCdromInsertEjectV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            backing_infos: Optional[Sequence[VmCdromInsertEjectV2BackingInfoArgs]] = None,
            cdrom_ext_id: Optional[str] = None,
            disk_addresses: Optional[Sequence[VmCdromInsertEjectV2DiskAddressArgs]] = None,
            ext_id: Optional[str] = None,
            iso_type: Optional[str] = None,
            vm_ext_id: Optional[str] = None) -> VmCdromInsertEjectV2
    func GetVmCdromInsertEjectV2(ctx *Context, name string, id IDInput, state *VmCdromInsertEjectV2State, opts ...ResourceOption) (*VmCdromInsertEjectV2, error)
    public static VmCdromInsertEjectV2 Get(string name, Input<string> id, VmCdromInsertEjectV2State? state, CustomResourceOptions? opts = null)
    public static VmCdromInsertEjectV2 get(String name, Output<String> id, VmCdromInsertEjectV2State state, CustomResourceOptions options)
    resources:  _:    type: nutanix:VmCdromInsertEjectV2    get:      id: ${id}
    import {
      to = nutanix_vmcdrominsertejectv2.example
      id = "${id}"
    }
    
    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.
    The following state arguments are supported:
    Action string
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    BackingInfos List<PiersKarsenbarg.Nutanix.Inputs.VmCdromInsertEjectV2BackingInfo>
    Storage provided by Nutanix ADSF
    CdromExtId string
    DiskAddresses List<PiersKarsenbarg.Nutanix.Inputs.VmCdromInsertEjectV2DiskAddress>
    ExtId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    IsoType string
    VmExtId string
    The globally unique identifier of a VM. It should be of type UUID
    Action string
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    BackingInfos []VmCdromInsertEjectV2BackingInfoArgs
    Storage provided by Nutanix ADSF
    CdromExtId string
    DiskAddresses []VmCdromInsertEjectV2DiskAddressArgs
    ExtId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    IsoType string
    VmExtId string
    The globally unique identifier of a VM. It should be of type UUID
    action string
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    backing_infos list(object)
    Storage provided by Nutanix ADSF
    cdrom_ext_id string
    disk_addresses list(object)
    ext_id string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    iso_type string
    vm_ext_id string
    The globally unique identifier of a VM. It should be of type UUID
    action String
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    backingInfos List<VmCdromInsertEjectV2BackingInfo>
    Storage provided by Nutanix ADSF
    cdromExtId String
    diskAddresses List<VmCdromInsertEjectV2DiskAddress>
    extId String
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    isoType String
    vmExtId String
    The globally unique identifier of a VM. It should be of type UUID
    action string
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    backingInfos VmCdromInsertEjectV2BackingInfo[]
    Storage provided by Nutanix ADSF
    cdromExtId string
    diskAddresses VmCdromInsertEjectV2DiskAddress[]
    extId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    isoType string
    vmExtId string
    The globally unique identifier of a VM. It should be of type UUID
    action str
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    backing_infos Sequence[VmCdromInsertEjectV2BackingInfoArgs]
    Storage provided by Nutanix ADSF
    cdrom_ext_id str
    disk_addresses Sequence[VmCdromInsertEjectV2DiskAddressArgs]
    ext_id str
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    iso_type str
    vm_ext_id str
    The globally unique identifier of a VM. It should be of type UUID
    action String
    Default value: "insert". Accepted values: "insert" → Mounts the specified ISO image to the VM’s CD-ROM, "eject" → Unmounts (ejects) the ISO image from the VM’s CD-ROM.
    backingInfos List<Property Map>
    Storage provided by Nutanix ADSF
    cdromExtId String
    diskAddresses List<Property Map>
    extId String
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    isoType String
    vmExtId String
    The globally unique identifier of a VM. It should be of type UUID

    Supporting Types

    VmCdromInsertEjectV2BackingInfo, VmCdromInsertEjectV2BackingInfoArgs

    DataSources List<PiersKarsenbarg.Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSource>
    A reference to a disk or image that contains the contents of a disk.
    DiskExtId string
    DiskSizeBytes int
    Size of the disk in Bytes
    IsMigrationInProgress bool
    StorageConfigs List<PiersKarsenbarg.Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoStorageConfig>
    Storage configuration for VM disks

    • storage_config.is_flash_mode_enabled: (Required) Indicates whether the virtual disk is pinned to the hot tier or not.
    StorageContainers List<PiersKarsenbarg.Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoStorageContainer>
    This reference is for disk level storage container preference. This preference specifies the storage container to which this disk belongs.
    DataSources []VmCdromInsertEjectV2BackingInfoDataSource
    A reference to a disk or image that contains the contents of a disk.
    DiskExtId string
    DiskSizeBytes int
    Size of the disk in Bytes
    IsMigrationInProgress bool
    StorageConfigs []VmCdromInsertEjectV2BackingInfoStorageConfig
    Storage configuration for VM disks

    • storage_config.is_flash_mode_enabled: (Required) Indicates whether the virtual disk is pinned to the hot tier or not.
    StorageContainers []VmCdromInsertEjectV2BackingInfoStorageContainer
    This reference is for disk level storage container preference. This preference specifies the storage container to which this disk belongs.
    data_sources list(object)
    A reference to a disk or image that contains the contents of a disk.
    disk_ext_id string
    disk_size_bytes number
    Size of the disk in Bytes
    is_migration_in_progress bool
    storage_configs list(object)
    Storage configuration for VM disks

    • storage_config.is_flash_mode_enabled: (Required) Indicates whether the virtual disk is pinned to the hot tier or not.
    storage_containers list(object)
    This reference is for disk level storage container preference. This preference specifies the storage container to which this disk belongs.
    dataSources List<VmCdromInsertEjectV2BackingInfoDataSource>
    A reference to a disk or image that contains the contents of a disk.
    diskExtId String
    diskSizeBytes Integer
    Size of the disk in Bytes
    isMigrationInProgress Boolean
    storageConfigs List<VmCdromInsertEjectV2BackingInfoStorageConfig>
    Storage configuration for VM disks

    • storage_config.is_flash_mode_enabled: (Required) Indicates whether the virtual disk is pinned to the hot tier or not.
    storageContainers List<VmCdromInsertEjectV2BackingInfoStorageContainer>
    This reference is for disk level storage container preference. This preference specifies the storage container to which this disk belongs.
    dataSources VmCdromInsertEjectV2BackingInfoDataSource[]
    A reference to a disk or image that contains the contents of a disk.
    diskExtId string
    diskSizeBytes number
    Size of the disk in Bytes
    isMigrationInProgress boolean
    storageConfigs VmCdromInsertEjectV2BackingInfoStorageConfig[]
    Storage configuration for VM disks

    • storage_config.is_flash_mode_enabled: (Required) Indicates whether the virtual disk is pinned to the hot tier or not.
    storageContainers VmCdromInsertEjectV2BackingInfoStorageContainer[]
    This reference is for disk level storage container preference. This preference specifies the storage container to which this disk belongs.
    data_sources Sequence[VmCdromInsertEjectV2BackingInfoDataSource]
    A reference to a disk or image that contains the contents of a disk.
    disk_ext_id str
    disk_size_bytes int
    Size of the disk in Bytes
    is_migration_in_progress bool
    storage_configs Sequence[VmCdromInsertEjectV2BackingInfoStorageConfig]
    Storage configuration for VM disks

    • storage_config.is_flash_mode_enabled: (Required) Indicates whether the virtual disk is pinned to the hot tier or not.
    storage_containers Sequence[VmCdromInsertEjectV2BackingInfoStorageContainer]
    This reference is for disk level storage container preference. This preference specifies the storage container to which this disk belongs.
    dataSources List<Property Map>
    A reference to a disk or image that contains the contents of a disk.
    diskExtId String
    diskSizeBytes Number
    Size of the disk in Bytes
    isMigrationInProgress Boolean
    storageConfigs List<Property Map>
    Storage configuration for VM disks

    • storage_config.is_flash_mode_enabled: (Required) Indicates whether the virtual disk is pinned to the hot tier or not.
    storageContainers List<Property Map>
    This reference is for disk level storage container preference. This preference specifies the storage container to which this disk belongs.

    VmCdromInsertEjectV2BackingInfoDataSource, VmCdromInsertEjectV2BackingInfoDataSourceArgs

    References List<PiersKarsenbarg.Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceReference>
    Reference to image or vm disk. Either imageReference or vmDiskReference.
    References []VmCdromInsertEjectV2BackingInfoDataSourceReference
    Reference to image or vm disk. Either imageReference or vmDiskReference.
    references list(object)
    Reference to image or vm disk. Either imageReference or vmDiskReference.
    references List<VmCdromInsertEjectV2BackingInfoDataSourceReference>
    Reference to image or vm disk. Either imageReference or vmDiskReference.
    references VmCdromInsertEjectV2BackingInfoDataSourceReference[]
    Reference to image or vm disk. Either imageReference or vmDiskReference.
    references Sequence[VmCdromInsertEjectV2BackingInfoDataSourceReference]
    Reference to image or vm disk. Either imageReference or vmDiskReference.
    references List<Property Map>
    Reference to image or vm disk. Either imageReference or vmDiskReference.

    VmCdromInsertEjectV2BackingInfoDataSourceReference, VmCdromInsertEjectV2BackingInfoDataSourceReferenceArgs

    ImageReferences List<PiersKarsenbarg.Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReference>
    Image Reference

    • image_reference.image_ext_id: (Required) The globally unique identifier of an image. It should be of type UUID.
    VmDiskReferences List<PiersKarsenbarg.Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReference>
    Vm Disk Reference

    • vm_disk_reference.disk_address: (Required) Disk address.
    • vm_disk_reference.vm_reference: (Required) This is a reference to a VM.
    ImageReferences []VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReference
    Image Reference

    • image_reference.image_ext_id: (Required) The globally unique identifier of an image. It should be of type UUID.
    VmDiskReferences []VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReference
    Vm Disk Reference

    • vm_disk_reference.disk_address: (Required) Disk address.
    • vm_disk_reference.vm_reference: (Required) This is a reference to a VM.
    image_references list(object)
    Image Reference

    • image_reference.image_ext_id: (Required) The globally unique identifier of an image. It should be of type UUID.
    vm_disk_references list(object)
    Vm Disk Reference

    • vm_disk_reference.disk_address: (Required) Disk address.
    • vm_disk_reference.vm_reference: (Required) This is a reference to a VM.
    imageReferences List<VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReference>
    Image Reference

    • image_reference.image_ext_id: (Required) The globally unique identifier of an image. It should be of type UUID.
    vmDiskReferences List<VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReference>
    Vm Disk Reference

    • vm_disk_reference.disk_address: (Required) Disk address.
    • vm_disk_reference.vm_reference: (Required) This is a reference to a VM.
    imageReferences VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReference[]
    Image Reference

    • image_reference.image_ext_id: (Required) The globally unique identifier of an image. It should be of type UUID.
    vmDiskReferences VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReference[]
    Vm Disk Reference

    • vm_disk_reference.disk_address: (Required) Disk address.
    • vm_disk_reference.vm_reference: (Required) This is a reference to a VM.
    image_references Sequence[VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReference]
    Image Reference

    • image_reference.image_ext_id: (Required) The globally unique identifier of an image. It should be of type UUID.
    vm_disk_references Sequence[VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReference]
    Vm Disk Reference

    • vm_disk_reference.disk_address: (Required) Disk address.
    • vm_disk_reference.vm_reference: (Required) This is a reference to a VM.
    imageReferences List<Property Map>
    Image Reference

    • image_reference.image_ext_id: (Required) The globally unique identifier of an image. It should be of type UUID.
    vmDiskReferences List<Property Map>
    Vm Disk Reference

    • vm_disk_reference.disk_address: (Required) Disk address.
    • vm_disk_reference.vm_reference: (Required) This is a reference to a VM.

    VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReference, VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReferenceArgs

    ImageExtId string
    ImageExtId string
    imageExtId String
    imageExtId string
    imageExtId String

    VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReference, VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceArgs

    VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceDiskAddress, VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceDiskAddressArgs

    BusType string
    Index int
    BusType string
    Index int
    bus_type string
    index number
    busType String
    index Integer
    busType string
    index number
    busType String
    index Number

    VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceVmReference, VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceVmReferenceArgs

    ExtId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    ExtId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    ext_id string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    extId String
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    extId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    ext_id str
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    extId String
    The globally unique identifier of a CD-ROM. It should be of type UUID.

    VmCdromInsertEjectV2BackingInfoStorageConfig, VmCdromInsertEjectV2BackingInfoStorageConfigArgs

    VmCdromInsertEjectV2BackingInfoStorageContainer, VmCdromInsertEjectV2BackingInfoStorageContainerArgs

    ExtId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    ExtId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    ext_id string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    extId String
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    extId string
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    ext_id str
    The globally unique identifier of a CD-ROM. It should be of type UUID.
    extId String
    The globally unique identifier of a CD-ROM. It should be of type UUID.

    VmCdromInsertEjectV2DiskAddress, VmCdromInsertEjectV2DiskAddressArgs

    BusType string
    Index int
    BusType string
    Index int
    bus_type string
    index number
    busType String
    index Integer
    busType string
    index number
    busType String
    index Number

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Viewing docs for Nutanix v0.14.0
    published on Thursday, May 21, 2026 by Piers Karsenbarg

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial