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 as follows:
- For details about how to obtain access_key and secret_key, see "Obtaining an Access Key".
- project_id indicates the project ID. For details about how to obtain the value, see Viewing the Project ID.
- region_name indicates the region ID. Obtain the region ID from the administrator.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.