This topic describes how to manage AccessKeys in OceanBase Cloud and how to obtain an AccessKey on Alibaba Cloud.
OceanBase Cloud allows you to manage AccessKey IDs (AKs) and AccessKey Secrets (SKs). You can use an AccessKey ID and an AccessKey Secret to access the API of OceanBase Cloud with full privileges.
Prerequisites
You have the project owner, project admin, and organization admin permissions.
Procedure
Log in to the OceanBase Cloud console.
Click the
icon in the upper-right corner and select User Preferences.In the left-side navigation pane, click the AccessKey. You can view the AccessKey ID, status, last usage time, and creation time. In the Actions column, you can disable, enable, or delete an AccessKey.
In the upper-right corner of the page, click Create AccessKey. The system randomly generates an AccessKey. Click Copy and properly save your AccessKey ID and AccessKey Secret. You can generate up to two AccessKeys for one account.
You can use an AccessKey ID and an AccessKey Secret to access the API of OceanBase Cloud with full privileges on the account. For more information, refer to Authorization information.
curl --digest -u 'AccessKey ID:AccessKey Secret' \ --request GET \ --url https://api-cloud.oceanbase.com/api/v2/<Open API name> -H 'X-Ob-Project-Id: <Project ID>'Note
A project ID uniquely identifies a project. For information about how to obtain the project ID of an instance, see Manage projects.
On the AccessKey page, you can view the created AccessKeys and disable or delete them.
Prerequisites
- You have the permissions to log in to the Alibaba Cloud console.
- You have the permissions to create an AccessKey in the Alibaba Cloud console.
Procedure
Click Log in to Alibaba Cloud console. Obtain the primary account ID.
Navigate to the AccessKey page of the RAM console. Use an existing AccessKey or create a new AccessKey. Save your AccessKey ID and AccessKey Secret, and fill them into the corresponding OceanBase Cloud console page.