Updated on 2026-06-05 GMT+08:00

Obtaining Key Parameters

Before using the SDK, you need to obtain the following key parameters for signature authentication:
  • AK: access key ID, which is a unique identifier used in conjunction with a secret access key to sign requests cryptographically.
  • SK: secret access key used in conjunction with an AK to sign requests cryptographically. It identifies a request sender and prevents the request from being modified.
  • Project_ID: Some request URLs must contain this field.
  • Account name: This field must be contained in some request URLs.
  • Endpoint: regions and endpoints for available services

Prerequisites

You have registered on the Huawei Cloud official website and completed real-name authentication.

If you are a Huawei Cloud (International) user, you need to complete real-name authentication when you:

  • Purchase and use cloud services on Huawei Cloud nodes in the Chinese mainland. In this case, real-name authentication is required by the laws and regulations of the Chinese mainland.
  • Select the Chinese mainland region for MPC.

Obtaining the AK/SK Pair

Note: Temporary access keys have full access permissions for your account. If the temporary access keys are disclosed, data leakage may occur. To ensure account security, you are advised to periodically change the temporary access keys and keep them secure.

  1. Log in to the console.
  2. Point to the username and choose My Credentials from the drop-down list.
  3. In the navigation pane, choose Temporary Access Key, as shown in Figure 1.

    Set the validity period of the temporary access key as required. The default validity period is 15 minutes, and the maximum validity period is one day.
    Figure 1 Temporary access key

  4. Click Generate. A row of AK/SK information is automatically generated, as shown in Figure 2.

    You can directly copy the AK/SK values.
    Figure 2 Temporary access key

Obtaining a Project ID and Account Name

  1. Log in to the console.
  2. Point to the username and choose My Credentials from the drop-down list.
  3. On the API Credentials page, obtain the project ID and account name.

    Figure 3 Obtaining a project ID

Obtaining an Endpoint

An endpoint is required during SDK initialization. You can obtain the endpoints of MPC from Regions and Endpoints.