Vm_Guest_Customization_SetSpec
The Customization.SetSpec structure contains specification information that has to be applied to a virtual machine.
{
"name": "string",
"spec": {
"configuration_spec": {
"windows_config": {
"reboot": "string",
"sysprep": {
"gui_run_once_commands": [
"string"
],
"user_data": {
"computer_name": {
"type": "string",
"fixed_name": "string",
"prefix": "string"
},
"full_name": "string",
"organization": "string",
"product_key": "string"
},
"domain": {
"type": "string",
"workgroup": "string",
"domain": "string",
"domain_username": "string",
"domain_password": "string",
"domain_OU": "string"
},
"gui_unattended": {
"auto_logon": false,
"auto_logon_count": 0,
"password": "string",
"time_zone": 0
}
},
"sysprep_xml": "string"
},
"linux_config": {
"hostname": "Guest_HostnameGenerator Object",
"domain": "string",
"time_zone": "string",
"script_text": "string",
"compatible_customization_method": "string"
},
"cloud_config": {
"type": "string",
"cloudinit": {
"metadata": "string",
"userdata": "string"
}
}
},
"global_DNS_settings": {
"dns_suffix_list": [
"string"
],
"dns_servers": [
"string"
]
},
"interfaces": [
{
"mac_address": "string",
"adapter": {
"ipv4": {
"type": "string",
"ip_address": "string",
"prefix": 0,
"gateways": [
"string"
]
},
"ipv6": {
"type": "string",
"ipv6": [
{
"ip_address": "string",
"prefix": 0
}
],
"gateways": [
"string"
]
},
"windows": {
"dns_servers": [
"string"
],
"dns_domain": "string",
"wins_servers": [
"string"
],
"net_BIOS_mode": "string"
}
}
}
]
}
}
The name of the customization specification that has be retrieved from the virtual center inventory and applied for the virtual machine. Either one of Customization.SetSpec.name or Customization.SetSpec.spec or none of them should be specified. If unset and Customization.SetSpec.spec is also unset when executing Customization.set operation, then any pending customization for the virtual machine will be cleared.
The CustomizationSpec structure contains information required to customize a virtual machine when deploying it or migrating it to a new host.