1. Types
2. vcenter
3. vm
4. hardware
5. cdrom

## vcenter vm hardware cdrom: create spec

The `create_spec` structure provides a specification for the configuration of a newly-created virtual CD-ROM device.

### Representations:

- JSON
- XML

{
"allow_guest_control": true,
"backing": {
"device_access_type": "EMULATION",
"host_device": "string",
"iso_file": "string",
"type": "ISO_FILE"
},
"ide": {
"master": true,
"primary": true
},
"sata": {
"bus": 1,
"unit": 1
},
"start_connected": true,
"type": "IDE"
}
<?xml version="1.0" ?>
<ns0:CreateSpec xmlns:ns0="http://vmware.com/vcenter/vm/hardware/cdrom" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ide>
<primary>true</primary>
<master>true</master>
</ide>
<sata>
<unit>1</unit>
<bus>1</bus>
</sata>
<allow_guest_control>true</allow_guest_control>
<type>IDE</type>
<backing>
<device_access_type>EMULATION</device_access_type>
<iso_file>string</iso_file>
<type>ISO_FILE</type>
<host_device>string</host_device>
</backing>
<start_connected>true</start_connected>
</ns0:CreateSpec>

#### Attributes:

Name | Type | Description
--- | --- | ---
Optional
type | string | Type of host bus adapter to which the device should be attached. Optional. If unset, guest-specific default values will be used.
ide | ide_address_spec | Address for attaching the device to a virtual IDE adapter. Optional. It is only relevant when type has value IDE. If unset, the server will choose an available address; if none is available, the request will fail.
sata | sata_address_spec | Address for attaching the device to a virtual SATA adapter. Optional. It is only relevant when type has value SATA. If unset, the server will choose an available address; if none is available, the request will fail.
backing | backing_spec | Physical resource backing for the virtual CD-ROM device. Optional. If unset, defaults to automatic detection of a suitable host device.
start_connected | boolean | Flag indicating whether the virtual device should be connected whenever the virtual machine is powered on. Optional. Defaults to false if unset.
allow_guest_control | boolean | Flag indicating whether the guest can connect and disconnect the device. Optional. Defaults to false if unset.