Connecting Cloud Innovators: Building Community at .NEXT 2024
Thanks @go.watanabe03-72705 ! @dragon222 - Does the code sample from Go Watanabe above accomplish what you’re looking for? Please advise, thanks!
I tried to Update my VM ip with the above solution for 2 VM but I am getting 404 not found error, Can someone help me with this. URL: https://<PRISM-URL>:9440/api/nutanix/v3/vms/14c93d96-cf50-4f59-ad1f-455fdc4fe***/update_ip Error: 404 not found Body: { "update_list": [ { "ip": "192.168.199.***", "uuid": "e2733d02-5143-473e-8234-0ea05d306***" } ] } Hi - Please ensure you are using the Prism Central IP address, not the Prism Element IP address. Due to this request making use of the v3 Prism APIs, it should only be submitted to Prism Central. I have tested this just now and confirmed the info provided above does work. :)
Hi @PeWu@Aaqib Not sure if you solved this, but have you tried the above examples and also used “endTimeInUsecs” in addition to “startTimeInUsecs”?I ask because the following request returns data over a 24 hour period and uses the same metric as the one in your examples (start time is Jan 1st 2021 00:00:00, end time is Jan 2nd 00:00:00)https://{{cluster_ip}}:9440/PrismGateway/services/rest/v1/vms/{{vm_uuid}}/stats/?startTimeInUsecs=1609419600000000&endTimeInUsecs=1609506000000000&metrics=controller_io_bandwidth_kBps&intervalInSecs=30In addition, there are a couple of resources that may help:Getting VM Performance Metrics via API (focuses on Prism API v1 as you’re using here)Getting performance stats with the Nutanix Prism API v2.0 (shows similar info but specifically for Prism API v2.0 - please note the camel case change to snake case)
In case it helps, there’s an article on www.nutanix.dev that covers a lot of the “what to use” and “when to use” questions. Please see here: Nutanix API versions – What are they and what does each one do?
Hi rami, Yes, AHV has a VM console for each VM. When you login to Prism, click the main drop-down menu at the top-left and select "VM". From there, you can change to "Table" view, click the VM you want to look at, then select the "Launch Console" button. The Launch Console button is about halfway down the screen, just above the graphs for CPU usage, etc. VMs on AHV do not require guest tools to be installed in order for the VM console to function. Hope that helps! - ChrisRNutanix
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.