OceanBase Cloud allows you to centrally create and manage object storage configurations at the project level. Features that deliver logs to your object storage can reference existing configurations. This topic describes how to manage object storage configurations for a project.
Limitations
An object storage configuration is a project-level resource. It is visible and can be referenced only within its project. You must create separate configurations for different projects in the same organization.
Only Project Admins and users with project configuration permissions can create, modify, and delete object storage configurations.
OceanBase Cloud currently supports Alibaba Cloud OSS, AWS S3, and Azure Blob Storage.
After you create a configuration, you cannot modify its Storage service provider, Region, or Bucket name. To change any of these settings, create a new configuration.
You cannot delete a configuration that is referenced by a feature.
Individual features may impose additional requirements on the configurations that they can reference. For example, SQL Audit can reference only a valid configuration whose cloud provider and region match those of the cluster.
Note
OceanBase Cloud object storage configurations currently use Shared Key authorization for Azure Blob Storage. SAS tokens are not supported. A Bucket corresponds to a Container, the Access Key ID corresponds to the storage account name, and the Access Key Secret corresponds to the storage account key.
Add an object storage configuration
Log in to the OceanBase Cloud console.
In the organization drop-down list in the upper-left corner, click the name of the target organization.
Locate the target project in the project list. In the Actions column, click Configure project.
On the Project settings page, click the Data delivery destinations tab.
On the Object storage tab, click Add object storage configuration.
Configure the following parameters in the dialog box:
ParameterDescriptionName Enter a name that identifies the configuration to other features. The name must be 2 to 64 characters in length and can contain only Chinese characters, digits, English letters, underscores, and hyphens. The name must be unique within the project. You can modify it after you create the configuration. Storage service provider Select the cloud provider of the object storage. Valid values are Alibaba Cloud OSS, AWS S3, and Azure Blob Storage. You cannot modify the provider after you create the configuration. Region Enter the region where the object storage resides, such as cn-hangzhou. You cannot modify the region after you create the configuration.Endpoint The system automatically generates the endpoint based on the selected storage service provider and the specified region. You do not need to enter it. Bucket name Enter the name of the bucket used to store data. For Azure Blob Storage, enter the container name. You cannot modify the name after you create the configuration. Note
To avoid log delivery failures, add both OceanBase Cloud egress IP addresses
52.220.115.72and43.217.249.143to the bucket's allowlist.Access Key ID Enter a valid Access Key ID. To learn how to obtain one, click How to get it to the right of the field, or see Manage AccessKeys. Access Key Secret Enter the secret that corresponds to the Access Key ID. Click Test connection to verify the configuration.
If the test fails, check the error message, update the configuration, and try again.
Click Save to create the configuration.
View object storage configurations
On the Data delivery destinations tab, click the Object storage tab to view and manage the configurations in the current project. The list displays the name, storage service provider, region, additional information, number of references, connection status, and update time of each configuration.
You can search for configurations by name, region, or bucket name, and filter them by storage service provider and status.
Note
OceanBase Cloud periodically validates the configurations. If a configuration becomes invalid, OceanBase Cloud does not stop the features that reference it or remove their references. However, the affected logs may not be delivered to object storage. Update the access credentials or object storage permissions promptly.
Modify an object storage configuration
You can modify only the configuration name and access credentials. You cannot modify the Storage service provider, Region, or Bucket name.
In the object storage configuration list, click Edit in the Actions column of the target configuration.
Modify the Name or access credentials. To modify the credentials, enter both a new Access Key ID and a new Access Key Secret.
Note
The Access Key Secret is no longer displayed after you save the configuration. To modify it, enter the complete Access Key Secret again.
If you changed the credentials, click Test connection and proceed after the test succeeds. You do not need to test the connection again if you changed only the name.
Click Save to save the changes.
- Changing only the name does not affect ongoing log delivery. Features that reference the configuration display the new name.
- After you change the credentials, features that reference the configuration use the new credentials.
Delete an object storage configuration
In the Actions column of the target configuration, click Delete to delete the configuration.
Note
- You cannot delete a configuration that is being referenced. The page displays the number of references and the features that reference it. Remove these references before deleting the configuration. For example, change the SQL audit storage destination to another storage service or configuration.
- Deleting a configuration does not delete historical files from object storage. Manage file retention, archiving, and cleanup in the object storage service.
- After you delete a configuration, you can reuse its name.