Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page

Show all

AK/SK-based Authentication

Updated on 2024-06-12 GMT+08:00

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:
    1. Log in to the management console.
    2. In the upper right corner, click your account avatar icon and choose My Settings from the drop-down list.
    3. 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

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback