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.
- Sign up a cloud service account.
Before using OBS, ensure that you have a cloud service account.
- Open a browser.
- Visit www.huaweicloud.com/en-us/.
- In the upper right corner of the page, click Register.
- Enter the registration information and click Register.
- Subscribe to OBS.
Ensure that your account balance is sufficient before using OBS.
- Log in to OBS Console.
- Click Billing in the upper right corner of the page to go to the billing center.
- Click Top Up. The dialog box for top-up is displayed.
- Top up the account as prompted.
- After the top-up is successful, close the window and go back to the homepage of the management console.
- Click Object Storage Service to subscribe to OBS and enter OBS Console.
- Create an AK and SK.
OBS uses AKs and SKs for signature verification to ensure that only authorized accounts can access specific OBS resources. Detailed explanations 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 to access OBS. You can generate authentication information based on the SKs and request header fields. An SK matches an AK, and they group into a pair.
The procedure is as follows:
- Log in to OBS Console.
- In the upper right corner of the page, click the username and choose My Credentials.
- On the My Credentials page, select Access Keys in the navigation pane on the left.
- On the Access Keys page, click Add Access Key.
- In the Add Access Key dialog box that is displayed, enter the password and its verification code.
- If you have not bound an email address or mobile number, you need to enter only the password.
- If you have bound an email address and a mobile number, you can select the verification either by email address or mobile number.
- Click OK.
- In the Download Access Key dialog box that is displayed, click OK to save the access keys to your browser's default download path.
- 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.
Last Article: Before You Start
Next Article: Preparing a Development Environment
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.