Requests

Each calling of an API is counted as a request. When you perform operations on OBS through OBS Console, tools, APIs, or SDKs, you are actually calling APIs. You will be changed based on the number of OBS API calls.

Request Types

OBS requests are classified into the following types:

  • Read (GET requests): GET, HEAD, and others, such as downloading objects, obtaining bucket locations, and obtaining bucket policies
  • Write (PUT requests): PUT, POST, COPY, and LIST, such as uploading objects and listing objects
  • Delete (DELETE requests): DELETE and others, such as deleting an object or canceling a multipart upload task

Pricing Details

Category

Billing Item

Description

Billing Mode

Requests

All types of requests

The number of OBS API calls, including PUT, POST, COPY, LIST, GET, and HEAD requests.

Pay-per-use

Request Billing

Requests are billed on a pay-per-use basis. The unit prices for different types of requests are the same. For details, see Product Pricing Details.

If you buy a Standard storage package, you will receive a quota of read and write requests for free each month. The free quota is used first. After the free quota is used up, subsequent requests are billed on a pay-per-use basis. You will be rewarded certain quota of free read and write requests each time you purchase a Standard storage package, and all the rewarded quotas are accumulated.

Except the requests whose status code is 5XX or 403, all other requests returned by the server are counted in the number of requests.

Examples

Example 1

Take object upload for example. Each time you upload an object or an object part is counted as a request. Assuming that a folder has 100 objects:

  • If you call the PutObject API to upload all objects, sending 100 PUT requests means that the number of requests is 100.
  • If you use multipart upload tasks to upload the large objects in the folder, the final number of requests is greater than 100, because the processing of object parts will increase the number of requests. In addition, extra requests are required for initializing multipart upload tasks and merging parts into objects.

Example 2

Each operation on OBS Console delivers a request that is counted for billing.

For example, when you open the homepage of OBS Console, the list of buckets is loaded. In this process, requests are sent to obtain the bucket list and bucket locations. Then when you switch to the Overview page of a bucket, requests are sent to query the bucket storage information and bucket metadata.

Example 3

Take object download for example. Each time you download an object or an object part is counted as a request. Assume that you need to download 100 objects:

  • For objects in the Standard and Infrequent Access storage classes, downloading them will send 100 GET requests.
  • If direct reading is not enabled, restoring objects in the Archive storage class to the Standard storage class will generate 100 PUT requests. Then, downloading 100 objects in the Standard storage class will send 100 GET requests. In this case, there are 200 requests in total.
  • If direct reading is enabled, you can directly download objects in the Archive storage class without restoring them in advance. A total of 100 GET requests will be sent.