Hi, I'm trying to find the equivalent API endpoint(s) for the following CLI command: cluster image update -version <version> -estimate-only true:
::> cluster image update -version 9.13.1P4 -estimate-only true
Cluster Items Requiring
Component Updates Estimated Duration
--------------------- ----------------- -----------------------------------
Node Updates 2 102 minutes
Component Component ID Current Version Updated Version Estimated Duration
--------- ------------ --------------- --------------- ------------------
Node node- 9.13.1P4 9.13.1P4 31 minutes
01
Node node- 9.13.1P4 9.13.1P4 31 minutes
02
Per the docs, I am running the following curl command to test: curl -u user:pass --insecure -X PATCH "https://cluster/api/cluster/software?estimate_only=true" -d '{"version": "9.13.1P4"}'. This executes successfully, but I don't get the same output as seen above. What I see is the following:
{
"job": {
"uuid": "161ad0d7-a9b4-11ee-8b6e-00a098b81cba",
"_links": {
"self": {
"href": "/api/cluster/jobs/161ad0d7-a9b4-11ee-8b6e-00a098b81cba"
}
}
}
}
Even looking at the information about that particular job UUID doesn't give me what I'm hoping to see. This is what I see instead:
{
"uuid": "161ad0d7-a9b4-11ee-8b6e-00a098b81cba",
"description": "PATCH /api/cluster/software",
"state": "success",
"message": "success",
"code": 0,
"start_time": "2024-01-02T16:15:42-05:00",
"end_time": "2024-01-02T16:15:42-05:00",
"_links": {
"self": {
"href": "/api/cluster/jobs/161ad0d7-a9b4-11ee-8b6e-00a098b81cba"
}
}
}