API/Python/Open-Source Solutions

Expand all | Collapse all

Associating a Delphix User to the newly created VDB

Jump to Best Answer
  • 1.  Associating a Delphix User to the newly created VDB

    Posted 10-04-2016 12:08:00 PM
    I am creating a Delphix via REST API. Once the VDB Created i need to associated the existing Delphix Users to the created vDB. Do we have any API Calls to associate the users to the newly created VDB. Thanks in Advance.
    #Tip


  • 2.  RE: Associating a Delphix User to the newly created VDB
    Best Answer

    Posted 10-04-2016 12:20:00 PM
    Hello Ramesh,
                          Could you please provide clarity on what you mean by associate the Delphix Users to created VDB?

    Are you looking forward to create new database users in newly created VDB?


  • 3.  RE: Associating a Delphix User to the newly created VDB

    Posted 10-04-2016 01:55:00 PM
    I am referring to User account where one can login to the Delphix GUI Portal.
    (POST /resources/json/delphix/user). Assume that i created 10 users and after that i have created VDB, how to give permission to those 10 users on the newly created vdb to do jestream operation. 
    How this is possible via API



  • 4.  RE: Associating a Delphix User to the newly created VDB

    Posted 10-04-2016 02:15:00 PM
    Hello Ramesh,
                          You can use below API to assign JetStream Role to specific user.

    POST /resources/json/delphix/authorization

    {

        "type": "Authorization",

        "role": "<JetStream_role_reference_number>",

        "target": "<user_reference_number>",

        "user": "<user_reference_number>"

    }


    To find JetStream_role_reference_number, login into Delphix CLI and run below command:

    delphixEngine> role ls

    Check for Role reference for Name, "Jet Stream User". Example: ROLE-3.


    To find user_reference_number to which you want to assign Jet Stream Role,login into Delphix CLI and run below command:

    delphixEngine> user list display=name,reference

    Check for user reference for Name. Example: USER-72.


    In my case, api call looks like below:

    POST /resources/json/delphix/authorization

    {

        "type": "Authorization",

        "role": "ROLE-3",

        "target": "USER-72",

        "user": "USER-72"

    }

    Hope this helps.



  • 5.  RE: Associating a Delphix User to the newly created VDB

    Posted 10-04-2016 02:35:00 PM
    Adding to last comment, on how to assign user to jet stream container, below api call will work:

    POST /resources/json/delphix/jetstream/container/<JS_CONTAINER_REFERENCE>/addOwner

    {

        "type": "JSDataContainerModifyOwnerParameters",

        "owner": "<USER_REFERENCE>"

    }