Updated on 2024-05-09 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 with Huawei Cloud 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: Access keys have full access permissions for your account. If access keys are disclosed, data leakage may occur. For account security, you are advised to periodically change and keep access keys secure. You can create up to two access keys for each account.

  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 Access Keys.
  4. Click Create Access Key. On the displayed page, enter the account and password and SMS verification code.

    Figure 1 Access key

  5. Click OK to download the credentials.csv file that contains the AK and SK pair.

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 2 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.