Delphix Products

Expand all | Collapse all

Add Jet Stream Container Owner through CLI?

Jump to Best Answer
  • 1.  Add Jet Stream Container Owner through CLI?

    Posted 06-09-2016 05:49:00 PM

    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



  • 2.  RE: Add Jet Stream Container Owner through CLI?
    Best Answer

    Posted 06-09-2016 06:02:00 PM
    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   


  • 3.  RE: Add Jet Stream Container Owner through CLI?

    Posted 06-09-2016 06:05:00 PM

    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



  • 4.  RE: Add Jet Stream Container Owner through CLI?

    Posted 06-09-2016 06:39:00 PM
    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!


  • 5.  RE: Add Jet Stream Container Owner through CLI?

    Posted 06-09-2016 06:54:00 PM
    Thanks!