Help Center/ ModelArts/ SDK Reference/ Session Authentication/ Authentication Using the Username and Password
Updated on 2024-06-12 GMT+08:00

Authentication Using the Username and Password

This authentication method is available for OBS 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='***')