Updated on 2025-08-20 GMT+08:00
AK/SK-based Authentication
This authentication method is available for OBS Management, Training Management, Model Management, and Service Management.
Sample Code
1 2 | from modelarts.session import Session session = Session(access_key='***',secret_key='***', project_id='***', region_name='***') |
Parameters in this command are described as follows:
- For details about how to obtain the values of access_key and secret_key, see "Obtaining an Access Key" in User Guide.
- project_id indicates the project ID. To obtain the project ID, do as follows:
- Log in to the management console.
- In the upper right corner, click your account avatar icon and choose My Settings from the drop-down list.
- On the My Settings page, go to the Project List tab page, which is displayed by default. View the project ID and name in the project list.
- region_name indicates the region ID. Contact the administrator to obtain a region ID.
Parent topic: Session Authentication
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.