Rest API Create Protection Domains | Nutanix Community
Skip to main content
Solved

Rest API Create Protection Domains

  • September 25, 2014
  • 1 reply
  • 1126 views

koen
Forum|alt.badge.img+5
  • Voyager
  • 2 replies
I am trying to create a Protection Domain, but can't figure out how to supply the name of the Protection Domain.

I have to use a string and a JSON object as body parameter, but it keeps throwing errors.

JSON objects I have tried:

{"name":"MyTestName"}
{"body":"MyTestName"}
{"input":"MyTestName"}

Best answer by koen

I used Chrome Developer Tools to monitor the post request from the Prism GUI and the correct JSON object field name is "value" --> {"value":"MyTestName"}
View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

koen
Forum|alt.badge.img+5
  • Author
  • Voyager
  • 2 replies
  • Answer
  • September 25, 2014
I used Chrome Developer Tools to monitor the post request from the Prism GUI and the correct JSON object field name is "value" --> {"value":"MyTestName"}