Help Center> ModelArts> SDK Reference> Session Authentication> Authentication Using the Username and Password
Updated on 2022-09-23 GMT+08:00

Authentication Using the Username and Password

This authentication method is available for OBS Management, Training Management, Model Management, and Service Management.

Sample Code

  • Authentication using an account
    Set username to your account name.
    1
    2
    from modelarts.session import Session
    session = Session(username='***',  password='***', region_name='***', project_id='***')