AK/SK-based Authentication
This authentication method is available for OBS 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.