Help Center> Log Tank Service> User Guide> Appendixes> How Do I Obtain an AK/SK Pair?
Updated on 2024-04-11 GMT+08:00

How Do I Obtain an AK/SK Pair?

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

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. Federated users can only create temporary access credentials (temporary AK/SKs and security tokens). For details, see Temporary Access Key (for Federated Users).
  3. If you are an IAM user, move the pointer to the username in the upper right corner of the management console, choose Security Settings, click the Critical Operations tab, and check the enabling status of the Access Key Management feature.
    • Disabled: All IAM users under the account can manage (create, enable, disable, and delete) their own access keys.
    • Enabled: Only the administrator can manage users' access keys.
  4. If you cannot manage your access keys, request the administrator to perform either of the following operations:
  5. 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 an Access Key

  1. Log in to HUAWEI CLOUD and click Console in the upper right corner.

  2. Hover the mouse pointer over the username in the upper right corner and choose My Credentials from the drop-down list.

  3. Choose Access Keys in the navigation pane on the left.
  4. Click Create Access Key and enter a description.

    • You can create up to two access keys. The quota cannot be increased. If you already have two access keys and want to create a new one, delete one first.
    • To change an access key, delete it and create a new one.

  5. Click OK, download the AK/SK, and keep it secure.

    You can obtain the AK from the access key list and SK from the downloaded CSV file.
    • Keep the CSV file properly. You can only download the file right after the access key is created. However, if you cannot find the file to obtain the key information, you can create a key.
    • Open the CSV file in the lower left corner, or choose Downloads in the upper right corner of the browser and open the CSV file.
    • Keep your access keys secure and change them periodically for security purposes. To change an access key, delete it and create a new one.

Deleting an Access Key

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 the deleted access keys have not been used for more than one week.

  1. On the Access Keys page, locate the access key to be deleted and click Delete in the Operation column.

  2. In the displayed dialog box, click Yes.