Updated on 2025-11-06 GMT+08:00

Access Keys

An access key comprises an AK and SK and is used as a long-term identity credential to sign your Huawei Cloud API requests. AK is used together with SK to sign requests cryptographically, ensuring that the requests are secret, complete, and correct.

After logging in to the management console, users authorized by the administrator can create and delete access keys on the My Credentials page.

If an IAM user does not have permissions to log in to the management console, the administrator can manage access keys for the user in IAM. For details, see Managing Access Keys for an IAM User.

Important Notes

  1. You can create a maximum of two access keys with identical permissions and unlimited validity. Each access key can be downloaded only once when created. Keep your access keys secure and change them periodically for security purposes. To change an access key, delete it and create a new one.
  2. If you cannot manage your access keys, request the administrator to perform either of the following operations:
  3. If you are an administrator, you can view the AK of an IAM user on the user details page. The SK is kept by the user.

Creating Access Keys

  1. Log in to the Huawei Cloud console, hover over the username in the upper right corner, and choose My Credentials from the drop-down list.

    Figure 1 Choosing My Credentials

  2. In the Access Keys area, click Create Access Key.

    Figure 2 Creating access keys
    • You cannot change the created access keys. To change the access keys, delete them and create a new pair.
    • It is not recommended to create access keys for the root user. If you have to do so, be aware of the security risks.

  3. Click Download Access Key to generate and download the access keys.

    After the access keys are created, view the access key ID (AK) in the access key list and view the secret access key (SK) in the downloaded CSV file.
    • Download the access key file and keep it properly. If the download page is closed, you will not be able to download the SK. However, you can create a new access key pair.
    • You can open the access key file in the "Downloads" of the browser.
    • For account security, keep your access keys secure and rotate them regularly by deleting old access keys and generating new ones. When deleting access keys, check if the access keys have not been used for a period of time so that the deletion does not affect your services.

Deleting Access Keys

If your access keys are forgotten or leaked, delete them on the My Credentials page or contact the administrator to delete them in IAM.

Deleted access keys cannot be restored. Make sure that they have not been used for more than one week.

  1. In the Access Keys area, locate the access keys you want to delete and click Disable in the Operation column.
  2. In the displayed dialog box, click OK.
  3. Click Delete in the Operation column of the disabled access keys. Ensure that the deletion will not affect your services.

    Figure 3 Deleting access keys

  4. Enter DELETE and click OK.

Enabling/Disabling Access Keys

Access keys are enabled by default once being created. To disable access keys, perform the following steps:

  1. In the Access Keys area, locate the access keys you want to disable and click Disable in the Operation column.
  2. Click OK.

The method of enabling access keys is similar to that of disabling access keys.

Viewing Access Keys

You can view the access key ID, status, creation time, and last used time on the access keys area.