Help Center> Object Storage Service> Python> FAQs (SDK for Python)> How Can I Obtain the AK and SK? (SDK for Python)
Updated on 2024-03-26 GMT+08:00

How Can I Obtain the AK and SK? (SDK for Python)

OBS employs access keys (AK and SK) for signature verification to ensure that only authorized accounts can access specified OBS resources. Detailed explanations of access keys are as follows:

  • AK is short for Access Key ID. One AK maps to only one user but one user can have multiple AKs. OBS authenticates users by their AKs.
  • SK is short for Secret Access Key, which is used to access OBS. You can generate authentication information based on SKs and request headers. An SK maps to an AK, and they group into a pair.

To create an AK and SK pair, perform the following steps:

  1. Log in to the management console.
  2. In the upper right corner, hover your cursor over the username and choose My Credentials.
  3. On the My Credentials page, click Access Keys in the navigation pane.
  4. On the Access Keys page, click Create Access Key.

    Each user can create a maximum of two valid AK/SK pairs.