Question

Upgrade software through API

  • 17 July 2019
  • 0 replies
  • 131 views

Anyone have luck using the POST /upgrade/{type}/softwares/{name}/upload API call? The page I am working from is here:
https://developer.nutanix.com/reference/prism_element/v2/api/upgrade/get-upgrade-type-softwares-name-getsoftware

In Postman, I keep getting the error "Error while parsing the metadata JSON", and I suspect I am not giving the "software_metadata" parameter what it wants. I tried dumping the output of GET /upgrade/prism_central/softwares/5.10.5 into that parameter and also tried downloading the JSON for Prism Central from the support site, but no avail. What am I missing? Here is what I am sending:

https://PCServerName:9440/PrismGateway/services/rest/v2.0/upgrade/prism_central/softwares/5.10.5/upload

headers:

software_metadata = not really sure
Content-Type = application/octet-stream

body (raw):

{
"m_a_x__s_k_i_p__b_u_f_f_e_r__s_i_z_e": 9999
}


Thank you,

0 replies

Be the first to reply!

Reply