Help Center> Object Storage Service> Android> Quick Start> Setting Up an OBS Environment
Updated on 2023-06-12 GMT+08:00

Setting Up an OBS Environment

If you have any questions during development, post them on the Issues page of GitHub. For details about parameters and usage of each API, see the API Reference

  1. Register a cloud service account.

    Before using OBS, if you do not have an account, perform the following steps to create one:

    1. Open a browser.
    2. Visit the Huawei Cloud official website.
    3. In the upper right corner of the page, click Register.
    4. Enter the registration information and click Register.

  2. Subscribe to OBS.

    Ensure that your account balance is sufficient before using OBS.

    1. Log in to OBS Console.
    2. In the upper right corner, click Billing & Costs. In the navigation pane of the displayed page, choose Funds Management.
    3. Click Top Up. The dialog box for top-up is displayed.
    4. Top up the account as prompted.
    5. After the top-up is successful, close the window and go back to the homepage of the management console.
    6. Click Object Storage Service to subscribe to OBS and enter OBS Console.

  3. Create access keys.

    OBS uses AKs and SKs in user accounts for signature verification to ensure that only authorized accounts can access specified OBS resources. Detailed explanations about AK and SK are as follows:

    • An access key ID (AK) defines a user who accesses the OBS system. An AK belongs to only one user, but one user can have multiple AKs. The OBS system recognizes the users who access the system by their access key IDs.
    • An SK is the secret access key on OBS, which is required as the key to access OBS. You can generate authentication information based on SKs and request header fields. An SK matches an AK, and they group into a pair.

    The procedure is as follows:

    1. Log in to OBS Console.
    2. In the upper right corner of the page, hover the cursor over the username and choose My Credentials.
    3. On the My Credentials page, select Access Keys in the navigation pane on the left.
    4. On the Access Keys page, click Create Access Key.
    5. In the Create Access Key dialog box that is displayed, enter the password and verification code.
      • If you have not bound an email address or mobile number, enter only the password.
      • If you have bound an email address and a mobile number, you can select the verification by either email or mobile phone.
    6. Click OK.
    7. In the Download Access Key dialog box that is displayed, click OK to save the access keys to your browser's default download path.
    8. Open the downloaded credentials.csv file to obtain the access keys (AK and SK).
    • Each user can create up to two valid AK/SK pairs.
    • To prevent the AK/SK from being leaked, keep them secure. If you click Cancel in the dialog box, the access keys will not be downloaded, and cannot be obtained later. You can re-create access keys if you need to use them.