Connecting Cloud Innovators: Building Community at .NEXT 2024
Hi everyone, We’re using v3/vms/list endpoint to get the information for the VMs. We’re getting last_update_time in the response. Truncated response for a VM:"metadata": { "last_update_time": "2023-06-08T10:49:22Z", "kind": "vm", "uuid": "cff450d3-dd1f-4d7d-9651-9b38164cb7e5", "creation_time": "2023-06-08T10:49:01Z"}I was expecting that if we change any properties of the VM like RAM, Disk Space, etc then last_update_time should get updated. However, irrespective of the value that we change, the last_update_time doesn’t get updated. Additionally, there is no time field which we can use to track the VM updation. Is this an expected behavior? Please let me know if I am missing something.
For our development work, we are using /v3/hosts/list endpoint. As per the specs, we want to use length and offset for pagination to fetch large number of hosts. We tried using it as follows:curl --location --request POST 'https://<host>:9440/api/nutanix/v3/hosts/list' \--header 'accept: application/json' \--header 'Content-Type: application/json' \--header 'Authorization: Basic abc' \--data-raw '{ "kind": "host", "length": 1, "offset": 9}'However, length and offset params doesn’t seem to be working. It returns all the hosts (2 in our case) irrespective of the params passed. Also, we used the same params in /v3/vms/list and they are working as expected. So, wanted to know if this is expected or is this an open issue? Is there a way to get all the hosts through Prism Central (v3) APIs?
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.