1. Packages
  2. Nutanix
  3. API Docs
  4. VmCdromInsertEjectV2
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

nutanix.VmCdromInsertEjectV2

Explore with Pulumi AI

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,
                         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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VmCdromInsertEjectV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. VmCdromInsertEjectV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VmCdromInsertEjectV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
    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",
                                        },
                                    },
                                },
                            },
                        },
                    },
                },
            },
            DiskSizeBytes = 0,
            StorageConfigs = new[]
            {
                new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoStorageConfigArgs
                {
                    IsFlashModeEnabled = false,
                },
            },
            StorageContainers = new[]
            {
                new Nutanix.Inputs.VmCdromInsertEjectV2BackingInfoStorageContainerArgs
                {
                    ExtId = "string",
                },
            },
        },
    },
});
Copy
example, err := nutanix.NewVmCdromInsertEjectV2(ctx, "vmCdromInsertEjectV2Resource", &nutanix.VmCdromInsertEjectV2Args{
	ExtId:   pulumi.String("string"),
	VmExtId: 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"),
										},
									},
								},
							},
						},
					},
				},
			},
			DiskSizeBytes: pulumi.Int(0),
			StorageConfigs: nutanix.VmCdromInsertEjectV2BackingInfoStorageConfigArray{
				&nutanix.VmCdromInsertEjectV2BackingInfoStorageConfigArgs{
					IsFlashModeEnabled: pulumi.Bool(false),
				},
			},
			StorageContainers: nutanix.VmCdromInsertEjectV2BackingInfoStorageContainerArray{
				&nutanix.VmCdromInsertEjectV2BackingInfoStorageContainerArgs{
					ExtId: pulumi.String("string"),
				},
			},
		},
	},
})
Copy
var vmCdromInsertEjectV2Resource = new VmCdromInsertEjectV2("vmCdromInsertEjectV2Resource", VmCdromInsertEjectV2Args.builder()
    .extId("string")
    .vmExtId("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())
        .diskSizeBytes(0)
        .storageConfigs(VmCdromInsertEjectV2BackingInfoStorageConfigArgs.builder()
            .isFlashModeEnabled(false)
            .build())
        .storageContainers(VmCdromInsertEjectV2BackingInfoStorageContainerArgs.builder()
            .extId("string")
            .build())
        .build())
    .build());
Copy
vm_cdrom_insert_eject_v2_resource = nutanix.VmCdromInsertEjectV2("vmCdromInsertEjectV2Resource",
    ext_id="string",
    vm_ext_id="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_size_bytes": 0,
        "storage_configs": [{
            "is_flash_mode_enabled": False,
        }],
        "storage_containers": [{
            "ext_id": "string",
        }],
    }])
Copy
const vmCdromInsertEjectV2Resource = new nutanix.VmCdromInsertEjectV2("vmCdromInsertEjectV2Resource", {
    extId: "string",
    vmExtId: "string",
    backingInfos: [{
        dataSources: [{
            references: [{
                imageReferences: [{
                    imageExtId: "string",
                }],
                vmDiskReferences: [{
                    diskAddresses: [{
                        busType: "string",
                        index: 0,
                    }],
                    diskExtId: "string",
                    vmReferences: [{
                        extId: "string",
                    }],
                }],
            }],
        }],
        diskSizeBytes: 0,
        storageConfigs: [{
            isFlashModeEnabled: false,
        }],
        storageContainers: [{
            extId: "string",
        }],
    }],
});
Copy
type: nutanix:VmCdromInsertEjectV2
properties:
    backingInfos:
        - dataSources:
            - references:
                - imageReferences:
                    - imageExtId: string
                  vmDiskReferences:
                    - diskAddresses:
                        - busType: string
                          index: 0
                      diskExtId: string
                      vmReferences:
                        - extId: string
          diskSizeBytes: 0
          storageConfigs:
            - isFlashModeEnabled: false
          storageContainers:
            - extId: string
    extId: string
    vmExtId: string
Copy

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 This property is required. string
VmExtId This property is required. string
BackingInfos List<PiersKarsenbarg.Nutanix.Inputs.VmCdromInsertEjectV2BackingInfo>
ExtId This property is required. string
VmExtId This property is required. string
BackingInfos []VmCdromInsertEjectV2BackingInfoArgs
extId This property is required. String
vmExtId This property is required. String
backingInfos List<VmCdromInsertEjectV2BackingInfo>
extId This property is required. string
vmExtId This property is required. string
backingInfos VmCdromInsertEjectV2BackingInfo[]
ext_id This property is required. str
vm_ext_id This property is required. str
backing_infos Sequence[VmCdromInsertEjectV2BackingInfoArgs]
extId This property is required. String
vmExtId This property is required. String
backingInfos List<Property Map>

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

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,
        backing_infos: Optional[Sequence[VmCdromInsertEjectV2BackingInfoArgs]] = None,
        ext_id: 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}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.

Supporting Types

VmCdromInsertEjectV2BackingInfo
, VmCdromInsertEjectV2BackingInfoArgs

VmCdromInsertEjectV2BackingInfoDataSource
, VmCdromInsertEjectV2BackingInfoDataSourceArgs

VmCdromInsertEjectV2BackingInfoDataSourceReference
, VmCdromInsertEjectV2BackingInfoDataSourceReferenceArgs

VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReference
, VmCdromInsertEjectV2BackingInfoDataSourceReferenceImageReferenceArgs

ImageExtId string
ImageExtId string
imageExtId String
imageExtId string
imageExtId String

VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReference
, VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceArgs

VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceDiskAddress
, VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceDiskAddressArgs

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

VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceVmReference
, VmCdromInsertEjectV2BackingInfoDataSourceReferenceVmDiskReferenceVmReferenceArgs

ExtId string
ExtId string
extId String
extId string
ext_id str
extId String

VmCdromInsertEjectV2BackingInfoStorageConfig
, VmCdromInsertEjectV2BackingInfoStorageConfigArgs

VmCdromInsertEjectV2BackingInfoStorageContainer
, VmCdromInsertEjectV2BackingInfoStorageContainerArgs

ExtId string
ExtId string
extId String
extId string
ext_id str
extId String

Package Details

Repository
nutanix pierskarsenbarg/pulumi-nutanix
License
Apache-2.0
Notes
This Pulumi package is based on the nutanix Terraform Provider.