I am trying to assign IP and hostname through API but it is not working . Tried different options but still not working
My customization name on the Vcenter is VMCustomization
{
“version” : “1.1”,
“template_fields” : {
“name” : “rhel67_latest”
},
“vm_fields” : {
“number_of_cpus” : 2,
“sysprep_enabled”:“enabled”,
“sysprep_timezone”:“UTC”,
“vm_name” : “suniltest09”,
“sysprep_custom_spec”:“VMCustomization”,
“Linux-Spec-Name”: true,
“vm_memory” : “4096”,
“vlan”: “suniltest01”,
“placement_rp_name”:1000000000004,
“placement_ds_name”:1000000000007,
“placement_cluster_name”:1000000000003,
“placement_auto”: “false”,
“network_adapters”: 2,
“diskscsi0” : “0:1:4096”,
“network0” : “suniltest01”,
“network0.deviceType” : “VirtualVmxnet3”,
“network1” : “suniltest02”,
“network1.deviceType” : “VirtualVmxnet3”,
“dns_servers”: “146.89.142.210,146.89.142.211”,
“dns_suffixes”: “sunilelex.com”,
“addr_mode”:“static”,
“ip_addr”: “172.89.0.5”,
“gateway”: “172.89.0.1”,
“subnet_mask”: “255.255.255.0”,
“disk_format”: “thin”,
“sysprep_domain_name”:“sunil.text.com”,
“linux_domain_name”:“sunil.text.com”,
“sysprep_spec_override”: “true”,
“hostname”:“sunilag01”,
“linux_host_name”: “suniltest01”,
“root_password”: “Horu$2014”
}
Can you please help here .