Forum Discussion

iguber's avatar
iguber
Novice I
3 years ago

Hi, I am trying to run pod demote command from the

Hi, I am trying to run pod demote command from the swagger UI: curl -X PATCH "http://10.202.4.119/api/2.8/pods?quiesce=true" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"name\": \"DR-vmwaretest\", \"destroyed\": false, \"failover_preferences\": , \"mediator\": \"https://mediator.cloud-support.purestorage.com\", \"requested_promotion_state\": \"demoted\"}" but getting back 400 error with body: ```{ "errors": [ { "context": "destroyed, name, add_arrays, ...", "message": "Invalid combination of parameters specified." } ] }```
  • property "name" was removed from the body and added as a parameter to the url. After removing "name" from the body I started receiving meaningful errors in the response. I limited request body with only "requested_promotion_state" property. I worked for me.
  • curl -X PATCH "http://10.202.4.119/api/2.8/pods?names=DR-vmwaretest" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"requested_promotion_state\": \"demoted\"}"
  • if i had to guess, drop any ActiveCluster-related parameters and just specify the demotion parameter
  • result was the same when I had "name" and " requested_promotion_state" parameters only
  • Mind sharing the resolution for future similar queries?