Add Jet Stream Container Owner through CLI?

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

Hi,

Now that Jet Stream containers can have multiple owners we are making some changes to how hour containers are setup and I am finding that adding owners through the UI is kind of cumbersome and slow.

Is that a way to do it through the CLI?


Thanks

Jim

Photo of Jim Larsen

Jim Larsen

  • 592 Points 500 badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Sean Nothdurft

Sean Nothdurft, Technical Support

  • 1,190 Points 1k badge 2x thumb
Official Response
Hi Jim-

The CLI does offer an 'addOwner' option under the container context.  See my example CLI capture below; note, my example only illustrates the default users, but should explain the usage.  I hope this helps!

sean5030.dcenter jetstream container> ls
Objects
NAME  TEMPLATE  NOTES  ACTIVEBRANCH
sean  test      -      default
Operations
create
listByTopOperationCount
sean5030.dcenter jetstream container> select sean

sean5030.dcenter jetstream container 'sean'> ls
Properties
    type: JSDataContainer
    name: sean
    activeBranch: default
    firstOperation: `JS_OPERATION-2/CREATE_BRANCH
    lastOperation: `JS_OPERATION-2/CREATE_BRANCH
    lastUpdated: 2016-06-09T18:53:16.003Z
    notes: (unset)
    operationCount: 0
    properties:
    reference: JS_DATA_CONTAINER-1
    state: ONLINE
    template: test
Operations
delete
update
addOwner
disable
enable
getActiveBranchAtTime
recover
refresh
removeOwner
reset
restore
sean5030.dcenter jetstream container 'sean'> addOwner 
sean5030.dcenter jetstream container 'sean' addOwner *> ls
Properties
    type: JSDataContainerModifyOwnerParameters
    owner: (required)
sean5030.dcenter jetstream container 'sean' addOwner *> set owner= <TAB>
delphix_admin  sysadmin   
Photo of Jim Larsen

Jim Larsen

  • 592 Points 500 badge 2x thumb

Thanks!


Would there be any way to add multiple users to an owner role in one batch?


Also, a nice feature would be the ability to create "groups" in Delphix and then add multiple users to that group and then make that group the owner.


Thanks

Jim

Photo of Sean Nothdurft

Sean Nothdurft, Technical Support

  • 1,190 Points 1k badge 2x thumb
Hi Jim-

Today, there's no capability for either of those options you discuss.  So for the addition of multiple owners, it looks like you'd have to do the "addOwner", commit, then repeat as desired.

Both features you mention are definitely great ideas, and I'll make sure we get requests submitted to consider adding these as an option in future releases!
Photo of Jim Larsen

Jim Larsen

  • 592 Points 500 badge 2x thumb
Thanks!