Container owner API

  • 0
  • 1
  • Question
  • Updated 3 months ago
  • Answered
Hello there,

I am fetching the container details using API: GET /resources/json/delphix/jetstream/container

Although the container has multiple owners, this value is returning as "null". Is there a another API I can fetch the owners and add/delete them?

POST /resources/json/delphix/selfservice/container/{ref}/addOwner
Is not working for me!

Many Thanks.
Photo of EnterpriseMan

EnterpriseMan

  • 682 Points 500 badge 2x thumb

Posted 3 months ago

  • 0
  • 1
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 18,596 Points 10k badge 2x thumb
Official Response
Not sure why you are piping your json into the json.tool module. Try without it instead. i.e.

curl -X POST -k https://$DE/resources/json/delphix/selfservice/container/JS_DATA_CONTAINER-27/addOwner  \

    -b ~/cookies.txt -H "Content-Type: application/json" -d @- <<EOF

{

    "type": "JSDataContainerModifyOwnerParameters",

    "owner": "USER-2"

}
EOF