No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor 9000 V300R006C00 Object Storage Service (Compatible with Amazon S3 APIs) Administrator Guide 07

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Bucket-based Services

Bucket-based Services

The OceanStor 9000 Object Storage Service support creation and deletion of buckets and configurations of logs, access policies, life cycles, websites, and versioning.

Overview

This section provides a brief introduction to the Bucket-based services. For details about the operations and configuration, see OceanStor 9000 Object Storage Service API Reference.

Operations on Buckets

The Object Storage Service supports the following operations on buckets, as shown in Table 1-4:

Table 1-4  Operations on Buckets

Operations

Description

Create a bucket

You can create a bucket with a name specified by a user.

Query bucket lists

Users can query all their bucket lists.

Delete a bucket

You can delete a bucket specified by the user.

Query object lists

Users can query lists of all objects in a specified bucket.

Query multipart upload tasks of a bucket

Users can query the multipart upload tasks of the specified bucket.

Query metadata of buckets

Users with read permission can query whether a bucket exists. If the bucket has set cross-origin resource sharing (CORS), users can also query the metadata of the bucket and the CORS settings.

Query the used capacity of buckets

The owner of a bucket can query its used capacity.

Set the bucket quota

Only the owner of a bucket can modify the bucket quota. An inactive owner cannot modify bucket quota information.

Query the bucket quota

The owner of a bucket can query bucket quota information.

Set an Access Control List (ACL) for a bucket

You can specify what operations a user can perform on buckets and objects by setting the ACL for the specified bucket.

Query the ACL of a bucket

Users can query the ACL of a specified bucket.

Bucket Log Configuration

The system can record operations such as uploading, querying on buckets, and record these operations in logs. The logs are not generated by default. If you want them to be generated, you can enable the log configuration management.

The Object Storage Service allows users to configure a log bucket for a specified bucket to store the logs.

Users need to create log buckets in advance and grant the log buckets permission to allow the system to write logs to the buckets.

Users who create buckets can configure logs of the buckets and query configuration information about the bucket logs.

Bucket Policy Configuration

In the Object Storage Service, a bucket policy can be used to configure complex authorization rules for buckets. The bucket policy combines and specifies restrictions such as users, resources, conditions, operations, and system responses.

It is in the format of JSON and compatible with Amazon S3.

Users can set a bucket policy, and query or delete the bucket policy that has been set.

Bucket Lifecycle Management

The Object Storage Service allows bucket lifecycle management.

Bucket lifecycle management refers to automatic deletion of objects in a bucket without client operation after a period of time under a configuration rule. It is usually used in the following scenarios:

  • Logs periodically uploaded by users can be deleted after being saved for a period.
  • Data that are frequently accessed in a certain period and then no longer accessed should be deleted.

Bucket lifecycle can be configured to manage the data. Lifecycle rules can specify effective time, object retention duration, and filtering conditions. The lifecycle configuration is available only to qualified objects.

The bucket lifestyle can be set, queried, and deleted.

Bucket Versioning Configuration

The Object Storage Service allows bucket versioning configuration.

Versioning can be used to restore objects that are mistakenly overwritten or deleted. Users can use versioning to save, query, or restore objects of different versions. Versioning allows users to easily recover missing data due to misoperation or program faults. Versioning can also be used for retaining and archiving data.

The bucket versioning state indicates whether the versioning is enabled or disabled. This function is disabled by default.

The bucket versioning state can be configured and queried.

Bucket Website Configuration

The Object Storage Service allows bucket website configuration.

Bucket Website configuration allows you to store static web page resources such as HTML web pages, flash files, videos, and audio files to a bucket. When a client accesses these resources from the website access point of the bucket, the browser can directly resolve and present the resources to the client. This operation is applicable to:

  • Redirecting all requests to a website.
  • Setting redirection rules to redirect specific requests.

The bucket Website configuration can be set, queried, and deleted.

Bucket CORS Configuration

CORS is short for cross-origin resource sharing. CORS is a browser standard mechanism provided by the World Wide Web Consortium (W3C). It defines the interaction methods between client-side web applications in one domain and resources in another domain. For standard web page requests, the scripts and contents at one website cannot interact with those at another website due to the existence of the same origin policy (SOP).

In the Object Storage Service, static page resources can be saved in the bucket. A static website can respond to a cross-origin request from other website only after the CORS is configured on the bucket.

Typical application scenarios as follows:

  • With the support of the CORS, you can use JavaScript and HTML 5 to construct web applications and directly access the resources in the OceanStor 9000 without the need to use proxy servers for transfer.
  • You can enable the dragging function of HTML 5 to directly upload files to the OceanStor 9000 with the upload progress displayed or update the contents using web applications.
  • You can host external web pages, style sheets, and HTML 5 applications in different domains. Web fonts or pictures on OceanStor 9000 can be shared by multiple websites.

OPTIONS Bucket

OPTIONS refers to pre-requests that are sent to servers by clients. Generally, the requests are used to check whether clients have permissions to perform operations on servers. Only after a pre-request is returned successfully, clients start to execute the follow-up requests.

The Object Storage Service allows buckets to store static web resources. The buckets of the Object Storage Service can serve as website resources if the buckets are properly used. In this scenario, buckets in the Object Storage Service serve as servers to process OPTIONS pre-requests from clients.

Translation
Download
Updated: 2019-04-28

Document ID: EDOC1000122523

Views: 12685

Downloads: 84

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next