Help Center> Data Lake Insight> FAQs> Problems Related to APIs> How Do I Obtain the AK/SK Pair?

How Do I Obtain the AK/SK Pair?

The access key ID (AK) and secret access key (SK) are a pair of access keys used together to authenticate users who wish to make API requests. The AK/AS pair provides functions similar to a password. When users make API requests to manage cloud resources (for example, creating a cluster), the AK/SK pair is required to sign the requests. This mechanism ensures the confidentiality and integrity of the requests as well as the correctness of the identities of both parties. Access keys can be generated and managed on the My Credentials page. To obtain the AK/SK pair, perform the following steps:
  1. Register with and log in to the HUAWEI CLOUD management console.
  2. Move the cursor over your username in the upper right corner of the management console and click My Credentials from the drop-down list.
  3. Click the Access Keys tab.
  4. Click Create Access Key. The Create Access Key dialog box is displayed.
  5. On the Create Access Key page, enter the login password.
  6. Enter the verification code sent to your mail or mobile phone.

    For users created in IAM, if no email address or mobile phone was specified during user creation, the login password is enough. No verification code will be required.

  7. Click OK.

    Keep the AK/SK file somewhere safe to prevent information leakage.