Add Jet Stream Container Owner through CLI?

  • 0
  • 1
  • Question
  • Updated 2 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

  • 488 Points 250 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Sean Nothdurft

Sean Nothdurft, Technical Support

  • 960 Points 500 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