forked from docs/doc-exports
Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lai, Weijian <laiweijian4@huawei.com> Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
3.0 KiB
3.0 KiB
Authentication Using the Username and Password
This authentication method is available for OBS Management, Training Management, Model Management, and Service Management.
Sample Code
Set account to your domain name and username to your username.
1 2 3 4 5 6 7 | from modelarts.session import Session # Set endpoint Session.set_endpoint(iam_endpoint='***', obs_endpoint='***', modelarts_endpoint='***', region_name='***') session = Session(account='***', username='***', password='***', region_name='***', project_id='***') |
Parent topic: Session Authentication