Hi! I've got several questions about the usage of v2 API which I have not been able to solve by myself after looking a little while.
on some endpoints, for example, GET /alerts, GET /vms and a few more things are functioning for me as expected, but on other endpoints, such as
POST /vms/{uuid}/set_power_state I am receiving the following response:
{
"message": "Access is denied",
"detailed_message": null,
"error_code": {
"code": 1100,
"help_url": "http://my.nutanix.com"
}
}
- any idea what's causing it?
- I've been searching for detailed information on your error code (such as 1100 listed above) and couldn’t find. Is there any documentation to the error codes that you can send me a link to?
Also, in a few of the API endpoints I couldn’t understand exactly what is the expected query parameter to be sent.
2 examples of endpoints I felt I am lacking knowledge what exactly meant to be sent
- GET /vms
- filter: Filter criteria - semicolon for AND, comma for OR. where can I find what counts as filter criteria?
- POST /alerts/acknowledge
- classification - unsure which classifications can be sent
- same goes for entity_type
Is there another place which has a more detailed explanation about query parameters other than https://www.nutanix.dev/reference/prism_element/v2/api ?
Thanks in advance!
Best answer by Tomer-M
View original