Below are the request details
URL: https://AddressOfServer:9440/api/nutanix/v3/vms/VM_ID
Method : Put
Request Body:
{
"spec": {
"name": "My_VM_Name",
"resources": {
"power_state": "ON",
"hardware_clock_timezone": "Asia/Calcutta"
}
},
"metadata": {
"kind": "vm",
"categories": {
"Environment": "Testing",
"Department": "Dev"
},
"entity_version": "",
"spec_version": 5,
"spec_hash": ""
}
}
Response:
{
"api_version": "3.1",
"code": 409,
"kind": "vm",
"message_list": /
{
"message": "The entity you are trying to update might have been modified. Please retrieve the entity again before you update. spec version mismatch: specified version 5, requested 9",
"reason": "SPEC_VERSION_MISMATCH"
}
],
"state": "ERROR"
}
How I can find or set entity_version,spec_version,spec_hash?