Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 31 Next »

You can easily register on RosettaHub and get a fully managed AWS, Azure or GCP cloud account. Once you register to RosettaHub, you will get an initial minimal budget automatically transferred to you from the administrator of your organization.

Your cloud account budget will be equal to budget transfers that you receive from colleagues or system administrators plus the sum of all cloud credits that you redeem on your cloud account via RosettaHub.

There are many ways to register users to the platform they can be classified under two categories Standard Registration and Light Registration.

Standard Registration:

  1. Users register via a dedicated website

  2. Register users in batch using an Excel spreadsheet

  3. Register users from the RosettaHub portal

  4. Basic programmatic registration

Registration_Process.png

(3) Basic Programmatic registration

It mimics the creation of users by a spreadsheet upload. After running the code, users will receive an email from RosettaHub to verify their email and accept the Ts&Cs, once their emails are verified they get automatically processed and allocated a cloud account and receive an email from RosettaHub with their credentials (steps 6 and 7 from the spreadsheet upload process).

Install the Python module zeep

pip install zeep

Basic User Registration

from zeep import Client

import os

platform = zeep.Client('https://api.rosettahub.com/public/PlatformServices?wsdl').service

session = platform.newSession("{your_login}", "{your_password}", 0 )

registrations = []

registrations.append({"firstName":"Louise","lastName":"Roberts", "email":"louise.roberts@washington.rosettahub.com", "entities",["WASHINGTON-BigData"],"institutionId":"WASHINGTON","regType":"Researcher"})

platform.cpocRegisterUsers(session,registrations,None)

Light Registration

(1) Manager creates users from the RosettaHub portal

(2) Light programmatic registration

Light_Registration_Process.png

(1) Manager creates users from the RosettaHub portal

As an organization manager, you can add users directly from the Users panel

  1. Click on Create User Button in the Users panel

  2. Input first name, last name, email and password

  3. Select the organization to which the user will be added

  4. Select the user Type

  5.    Input an initial budget for the user, the budget will be transferred from the root cloud acocunt

  6. Select the Root Cloud Account to create a cloud account for the user which is derived from the selected root cloud account

  7.    Click the checkbox to confirm that you have the consent of the users to be added to the platform

  8.    Click create

    After about one minute, the user will be created and will be assigned a sub-cloud account of the selected root cloud account. the user does not receive a welcome email, but you can send the user an email with a link to reset their credentials using the action "Send Credentials" user Actions → Email

    create-user.png

(2) Light Programmatic Registration (using Python)

To create a new user programmatically all you need is to install the zeep Python module.

Install the Python module zeep

pip install zeep

It mimics the creation of a user from the RosettaHub portal. It does not require users to verify their emails and gives the manager the option of setting a user password and of allocating or not allocating a cloud account to the new member.

All you need to do is run a code similar to the one below by inputting the user's first name, last name, email, password, type, organization, root cloud account uid and initial budget. Your root cloud accounts can be found in the panel My Cloud Accounts

Light User Registration

from zeep import Client

import os

platform = zeep.Client('https://api.rosettahub.com/public/PlatformServices?wsdl').service

apiKey = "Your Api Key"

platform.cpocRegisterUserLight(apiKey,"Louise","Roberts","louise.roberts@washington.rosettahub.com","A6tK:L?6rT@2","WASHINGTON","Researcher","u-e4e910fc-7120-11ea-a061-02658a10e012",10,None)

  • No labels