Connecting Cloud Innovators: Building Community at .NEXT 2024
Hi, I want to set a VM to a categorie, using the REST API. However I Get the message INVALID_REQUEST code:"Cannot clear previously set time zone Don't know what to do with this. Please note that I had to add the "power_state", because if I don't I get an INVALID_REQUEST code: "VM power state must be specified for Update operation." Which I dont understand, as API documentation said power_state is optional. Endpoint used: PUT /vms/{uuid} Body: code:{ "spec": { "name": "BACHELOR2018", "resources": { "power_state": "ON" } }, "api_version": "3.1", "metadata": { "kind": "vm", "spec_version": 3, "categories": { "SLA": "A3" } }} Response body: code:{ "api_version": "3.1", "code": 422, "message_list": [ { "message": "Cannot clear previously set time zone", "reason": "INVALID_REQUEST" } ], "state": "ERROR"}
Hi, I have troubles to use Prism API v3 using the reference guide. For exemple I don't see the different possible options for an attribute. I explain myself with a quick example: If I want to create an alert with api using the reference guide below https://developer.nutanix.com/reference/prism_central/v3/api/alerts/postalertsnotify the attribute "notification_type" is required and must be a string. But what kind of value is expected here? I need to know what are the possible values, and what does mean each value. This is just an example, but it is the same for all other API end point. At this point API becomes a headache for me... Do I miss something here? Thank you for your help
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.