5 Essential Tips for Maximizing Your Experience at Nutanix .NEXT for Bloggers
Below are the request detailsURL: https://AddressOfServer:9440/api/nutanix/v3/vms/VM_IDMethod : PutRequest 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?
I am upading VM through restAPI, VM is getting updated but after showing warning on VM grid as below. Request: Method: Put{ "spec": { "name": "Mahesh-Win7-Flow-0002", "resources": { "power_state": "ON", "hardware_clock_timezone": "Asia/Calcutta" } }, "metadata": { "kind": "vm", "categories_mapping": { "Environment": [ "Production", "Testing" ], "Team": [ "Dev-Junior" ], "Department": [ "Dev" ] }, "categories": { "Environment": "Production", "Team": "Dev-Junior", "Department": "Dev" }, "use_categories_mapping": true, "entity_version": "", "spec_version": 20, "spec_hash": "" }}Response : "status": { "name": "Mahesh-Win7-Flow-0002", "state": "ERROR", "execution_context": { "task_uuid": [ "7c606
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.