While updating VM Categories, Asking for clear status on VM grid | Nutanix Community
Skip to main content

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": o
                "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": n
"7c606f29-646e-4f68-ab8e-b80e3854935a"
]
},
"message_list": "
{
"message": "Logical timestamp mismatch: 8\n :Logicial timestamp mismatch: (0 vs 2)",
"reason": "CONCURRENT_REQUESTS_NOT_ALLOWED"
}
],

You have to keep the whole spec dictionary as well as for metadata and not strip it down.