diff --git a/docs/obs/api-ref/.placeholder b/docs/obs/api-ref/.placeholder deleted file mode 100644 index e69de29bb..000000000 diff --git a/docs/obs/api-ref/ALL_META.TXT.json b/docs/obs/api-ref/ALL_META.TXT.json index 087cb83d1..91a634b9e 100644 --- a/docs/obs/api-ref/ALL_META.TXT.json +++ b/docs/obs/api-ref/ALL_META.TXT.json @@ -15,7 +15,7 @@ "code":"2", "des":"Welcome to the Object Storage Service API Reference. Object Storage Service (OBS) provides massive, secure, reliable, and cost-effective data storage capabilities for use", "doc_type":"api", - "kw":"Overview,Before You Start,API Reference (OBS)", + "kw":"Overview,Before You Start,API Reference", "title":"Overview", "githuburl":"" }, @@ -25,7 +25,7 @@ "code":"3", "des":"OBS provides Representational State Transfer (REST) APIs, allowing you to use HTTP or HTTPS requests to call them. For details, see Calling APIs.", "doc_type":"api", - "kw":"API Calling,Before You Start,API Reference (OBS)", + "kw":"API Calling,Before You Start,API Reference", "title":"API Calling", "githuburl":"" }, @@ -35,7 +35,7 @@ "code":"4", "des":"An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of services, see Regions and Endpoints.OBS prov", "doc_type":"api", - "kw":"Endpoints,Before You Start,API Reference (OBS)", + "kw":"Endpoints,Before You Start,API Reference", "title":"Endpoints", "githuburl":"" }, @@ -45,7 +45,7 @@ "code":"5", "des":"DomainYou can register a domain with the cloud service. The domain has full access permissions for all the resources and cloud services that are subscribed under it. The ", "doc_type":"api", - "kw":"Basic Concepts,Before You Start,API Reference (OBS)", + "kw":"Basic Concepts,Before You Start,API Reference", "title":"Basic Concepts", "githuburl":"" }, @@ -55,7 +55,7 @@ "code":"6", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"API Overview,API Reference (OBS)", + "kw":"API Overview,API Reference", "title":"API Overview", "githuburl":"" }, @@ -75,7 +75,7 @@ "code":"8", "des":"This section describes the structure of a REST API request.OBS uses URI to locate specific buckets, objects, and their parameters. Use URIs when you want to operate resou", "doc_type":"api", - "kw":"Constructing a Request,Calling APIs,API Reference (OBS)", + "kw":"Constructing a Request,Calling APIs,API Reference", "title":"Constructing a Request", "githuburl":"" }, @@ -95,7 +95,7 @@ "code":"10", "des":"OBS signs a request using AK/SK. When a client is sending a request to OBS, the message header must contain the SK, request time, request type, and other information of t", "doc_type":"api", - "kw":"User Signature Authentication,Authentication,API Reference (OBS)", + "kw":"User Signature Authentication,Authentication,API Reference", "title":"User Signature Authentication", "githuburl":"" }, @@ -105,7 +105,7 @@ "code":"11", "des":"For all API operations, the most common identity authentication is to carry signatures in headers.In the header, the signature is carried in the authorization header fiel", "doc_type":"api", - "kw":"Authentication of Signature in a Header,Authentication,API Reference (OBS)", + "kw":"Authentication of Signature in a Header,Authentication,API Reference", "title":"Authentication of Signature in a Header", "githuburl":"" }, @@ -115,7 +115,7 @@ "code":"12", "des":"OBS allows users to construct a URL for a specific operation. The URL contains information such as the user's AK, signature, validity period, and resources. Any user who ", "doc_type":"api", - "kw":"Authentication of Signature in a URL,Authentication,API Reference (OBS)", + "kw":"Authentication of Signature in a URL,Authentication,API Reference", "title":"Authentication of Signature in a URL", "githuburl":"" }, @@ -135,7 +135,7 @@ "code":"14", "des":"After sending a request, you will receive a response, including the status code, response header, and response body.A status code is a group of digits ranging from 2xx (i", "doc_type":"api", - "kw":"Returned Values,Calling APIs,API Reference (OBS)", + "kw":"Returned Values,Calling APIs,API Reference", "title":"Returned Values", "githuburl":"" }, @@ -155,7 +155,7 @@ "code":"16", "des":"A bucket is a container that stores objects in OBS. You need to create a bucket before storing data in OBS.The following describes how to call the API for creating a buck", "doc_type":"api", - "kw":"Creating a Bucket,Getting Started,API Reference (OBS)", + "kw":"Creating a Bucket,Getting Started,API Reference", "title":"Creating a Bucket", "githuburl":"" }, @@ -165,7 +165,7 @@ "code":"17", "des":"If you want to view information about all buckets created by yourself, you can call the API for listing buckets.The following describes how to call the API for listing bu", "doc_type":"api", - "kw":"Listing Buckets,Getting Started,API Reference (OBS)", + "kw":"Listing Buckets,Getting Started,API Reference", "title":"Listing Buckets", "githuburl":"" }, @@ -175,7 +175,7 @@ "code":"18", "des":"You can upload files of any type to OBS buckets for storage.The following describes how to call the API for uploading objects using the PUT method to a specified bucket. ", "doc_type":"api", - "kw":"Uploading an Object,Getting Started,API Reference (OBS)", + "kw":"Uploading an Object,Getting Started,API Reference", "title":"Uploading an Object", "githuburl":"" }, @@ -203,9 +203,9 @@ "uri":"obs_04_0020.html", "product_code":"obs", "code":"21", - "des":"You can perform this operation to list all buckets that you have created.This request contains no parameter.This request header uses common message fields. For details, s", + "des":"You can perform this operation to list all buckets that you have created.This request contains no parameters.This request header uses common message fields. For details, ", "doc_type":"api", - "kw":"Listing Buckets,Operations on Buckets,API Reference (OBS)", + "kw":"Listing Buckets,Operations on Buckets,API Reference", "title":"Listing Buckets", "githuburl":"" }, @@ -215,7 +215,7 @@ "code":"22", "des":"This operation is used to create a bucket with a specified name.By default, a user can have a maximum of 100 buckets.The name of a deleted bucket can be reused for a buck", "doc_type":"api", - "kw":"Creating a Bucket,Operations on Buckets,API Reference (OBS)", + "kw":"Creating a Bucket,Operations on Buckets,API Reference", "title":"Creating a Bucket", "githuburl":"" }, @@ -225,44 +225,54 @@ "code":"23", "des":"This operation lists objects in a bucket. To use this operation, you must have the permission to read the bucket.If you specify only the bucket name in the request URI, f", "doc_type":"api", - "kw":"Listing Objects in a Bucket,Operations on Buckets,API Reference (OBS)", + "kw":"Listing Objects in a Bucket,Operations on Buckets,API Reference", "title":"Listing Objects in a Bucket", "githuburl":"" }, + { + "uri":"obs_04_0160.html", + "product_code":"obs", + "code":"24", + "des":"This operation lists objects in a bucket. To use this operation, you must have the permission to read the bucket.If the bucket name is specified in a request URI and list", + "doc_type":"api", + "kw":"Listing Objects in a Bucket (V2),Operations on Buckets,API Reference", + "title":"Listing Objects in a Bucket (V2)", + "githuburl":"" + }, { "uri":"obs_04_0023.html", "product_code":"obs", - "code":"24", - "des":"This operation queries the metadata of a bucket. To use this operation, you must have the permission to read the bucket.This request contains no parameter.This request us", + "code":"25", + "des":"This operation queries the metadata of a bucket. To use this operation, you must have the permission to read the bucket.This request contains no parameters.This request u", "doc_type":"api", - "kw":"Obtaining Bucket Metadata,Operations on Buckets,API Reference (OBS)", + "kw":"Obtaining Bucket Metadata,Operations on Buckets,API Reference", "title":"Obtaining Bucket Metadata", "githuburl":"" }, { "uri":"obs_04_0024.html", "product_code":"obs", - "code":"25", + "code":"26", "des":"This operation obtains the location of a bucket. To use this operation, you must have the permission to read the bucket.This request contains no parameters.This request u", "doc_type":"api", - "kw":"Obtaining Bucket Location,Operations on Buckets,API Reference (OBS)", + "kw":"Obtaining Bucket Location,Operations on Buckets,API Reference", "title":"Obtaining Bucket Location", "githuburl":"" }, { "uri":"obs_04_0025.html", "product_code":"obs", - "code":"26", + "code":"27", "des":"This operation deletes specified buckets. This operation can be performed only by the bucket owner and users who have been authorized (via a policy) with the permission t", "doc_type":"api", - "kw":"Deleting Buckets,Operations on Buckets,API Reference (OBS)", + "kw":"Deleting Buckets,Operations on Buckets,API Reference", "title":"Deleting Buckets", "githuburl":"" }, { "uri":"obs_04_0026.html", "product_code":"obs", - "code":"27", + "code":"28", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Advanced Bucket Settings", @@ -272,287 +282,287 @@ { "uri":"obs_04_0027.html", "product_code":"obs", - "code":"28", + "code":"29", "des":"This operation creates or modifies policies for buckets. If the specified bucket already has a policy, the policy in the request will overwrite the existing one. There is", "doc_type":"api", - "kw":"Configuring a Bucket Policy,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Configuring a Bucket Policy,Advanced Bucket Settings,API Reference", "title":"Configuring a Bucket Policy", "githuburl":"" }, { "uri":"obs_04_0028.html", "product_code":"obs", - "code":"29", + "code":"30", "des":"This operation uses the sub-resources of policy to return the policy information of a specified bucket.To perform this operation, the user must be the bucket owner or the", "doc_type":"api", - "kw":"Obtaining Bucket Policy Information,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Obtaining Bucket Policy Information,Advanced Bucket Settings,API Reference", "title":"Obtaining Bucket Policy Information", "githuburl":"" }, { "uri":"obs_04_0029.html", "product_code":"obs", - "code":"30", + "code":"31", "des":"This operation uses the policy sub-resources to delete the policy of a specified bucket.To perform this operation, the user must be the bucket owner or the bucket owner's", "doc_type":"api", - "kw":"Deleting a Bucket Policy,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Deleting a Bucket Policy,Advanced Bucket Settings,API Reference", "title":"Deleting a Bucket Policy", "githuburl":"" }, { "uri":"obs_04_0030.html", "product_code":"obs", - "code":"31", + "code":"32", "des":"This operation controls access permissions for buckets. By default, only the creator of a bucket has the permission to read and write the bucket. You can also set other a", "doc_type":"api", - "kw":"Configuring a Bucket ACL,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Configuring a Bucket ACL,Advanced Bucket Settings,API Reference", "title":"Configuring a Bucket ACL", "githuburl":"" }, { "uri":"obs_04_0031.html", "product_code":"obs", - "code":"32", + "code":"33", "des":"This operation returns the ACL information of a bucket. To obtain the ACL of a bucket, you need to have the READ_ACP or FULL_CONTROL permission for the bucket.This reques", "doc_type":"api", - "kw":"Obtaining Bucket ACL Information,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Obtaining Bucket ACL Information,Advanced Bucket Settings,API Reference", "title":"Obtaining Bucket ACL Information", "githuburl":"" }, { "uri":"obs_04_0032.html", "product_code":"obs", - "code":"33", + "code":"34", "des":"When a bucket is created, the logging function is not enabled by default. To generate logs recording operations on buckets, you need to enable the logging function for th", "doc_type":"api", - "kw":"Configuring Logging for a Bucket,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Configuring Logging for a Bucket,Advanced Bucket Settings,API Reference", "title":"Configuring Logging for a Bucket", "githuburl":"" }, { "uri":"obs_04_0033.html", "product_code":"obs", - "code":"34", + "code":"35", "des":"This operation queries the logging status of a bucket. It uses the logging sub-resource to return the logging status of a bucket.Only the bucket owner or users granted th", "doc_type":"api", - "kw":"Obtaining a Bucket Logging Configuration,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Obtaining a Bucket Logging Configuration,Advanced Bucket Settings,API Reference", "title":"Obtaining a Bucket Logging Configuration", "githuburl":"" }, { "uri":"obs_04_0034.html", "product_code":"obs", - "code":"35", + "code":"36", "des":"This operation configures lifecycle rules that can delete or migrate objects from a bucket at a specified time. Typical application scenarios:Delete periodically uploaded", "doc_type":"api", - "kw":"Configuring Bucket Lifecycle Rules,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Configuring Bucket Lifecycle Rules,Advanced Bucket Settings,API Reference", "title":"Configuring Bucket Lifecycle Rules", "githuburl":"" }, { "uri":"obs_04_0035.html", "product_code":"obs", - "code":"36", + "code":"37", "des":"This operation obtains the bucket lifecycle configuration.To perform this operation, you must have the GetLifecycleConfiguration permission. By default, only the bucket o", "doc_type":"api", - "kw":"Obtaining Bucket Lifecycle Configuration,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Obtaining Bucket Lifecycle Configuration,Advanced Bucket Settings,API Reference", "title":"Obtaining Bucket Lifecycle Configuration", "githuburl":"" }, { "uri":"obs_04_0036.html", "product_code":"obs", - "code":"37", + "code":"38", "des":"This operation deletes the lifecycle configuration of a bucket. After the lifecycle configuration of a bucket is deleted, OBS will not automatically delete objects in tha", "doc_type":"api", - "kw":"Deleting Lifecycle Rules,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Deleting Lifecycle Rules,Advanced Bucket Settings,API Reference", "title":"Deleting Lifecycle Rules", "githuburl":"" }, { "uri":"obs_04_0037.html", "product_code":"obs", - "code":"38", + "code":"39", "des":"This operation restores an object that is mistakenly overwritten or deleted. You can use versioning to save, query, and restore objects of different versions. Versioning ", "doc_type":"api", - "kw":"Configuring Versioning for a Bucket,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Configuring Versioning for a Bucket,Advanced Bucket Settings,API Reference", "title":"Configuring Versioning for a Bucket", "githuburl":"" }, { "uri":"obs_04_0038.html", "product_code":"obs", - "code":"39", + "code":"40", "des":"This operation allows a bucket owner to get the versioning status of the bucket.If versioning is not configured for a bucket, no versioning status information will be ret", "doc_type":"api", - "kw":"Obtaining Bucket Versioning Status,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Obtaining Bucket Versioning Status,Advanced Bucket Settings,API Reference", "title":"Obtaining Bucket Versioning Status", "githuburl":"" }, { "uri":"obs_04_0039.html", "product_code":"obs", - "code":"40", + "code":"41", "des":"This operation notifies users of their operations on buckets, allowing users know events happened on buckets in a timely manner.By default, the notification function of a", "doc_type":"api", - "kw":"Configuring Event Notification for a Bucket,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Configuring Event Notification for a Bucket,Advanced Bucket Settings,API Reference", "title":"Configuring Event Notification for a Bucket", "githuburl":"" }, { "uri":"obs_04_0040.html", "product_code":"obs", - "code":"41", + "code":"42", "des":"This operation obtains the notification configuration of a bucket.To perform this operation, you must have the GetBucketNotification permission. By default, the permissio", "doc_type":"api", - "kw":"Obtaining the Event Notification Configuration of a Bucket,Advanced Bucket Settings,API Reference (O", + "kw":"Obtaining the Event Notification Configuration of a Bucket,Advanced Bucket Settings,API Reference", "title":"Obtaining the Event Notification Configuration of a Bucket", "githuburl":"" }, { "uri":"obs_04_0044.html", "product_code":"obs", - "code":"42", + "code":"43", "des":"This operation sets or updates the default storage class of a bucket.To perform this operation, you must have the PutBucketStoragePolicy permission. By default, only the ", "doc_type":"api", - "kw":"Configuring Storage Class for a Bucket,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Configuring Storage Class for a Bucket,Advanced Bucket Settings,API Reference", "title":"Configuring Storage Class for a Bucket", "githuburl":"" }, { "uri":"obs_04_0045.html", "product_code":"obs", - "code":"43", + "code":"44", "des":"This operation obtains the default storage class of a bucket.To perform this operation, you must have the GetBucketStoragePolicy permission. By default, only the bucket o", "doc_type":"api", - "kw":"Obtaining Bucket Storage Class Information,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Obtaining Bucket Storage Class Information,Advanced Bucket Settings,API Reference", "title":"Obtaining Bucket Storage Class Information", "githuburl":"" }, { "uri":"obs_04_0049.html", "product_code":"obs", - "code":"44", + "code":"45", "des":"This operation adds tags to a bucket.After tags are added to a bucket, all charging data records (CDRs) generated by the requests for this bucket will take the same tags.", "doc_type":"api", - "kw":"Configuring Tags for a Bucket,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Configuring Tags for a Bucket,Advanced Bucket Settings,API Reference", "title":"Configuring Tags for a Bucket", "githuburl":"" }, { "uri":"obs_04_0050.html", "product_code":"obs", - "code":"45", + "code":"46", "des":"This operation obtains information about tags of a bucket.To perform this operation, you must have the GetBucketTagging permission. By default, only the bucket owner can ", "doc_type":"api", - "kw":"Obtaining Bucket Tags,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Obtaining Bucket Tags,Advanced Bucket Settings,API Reference", "title":"Obtaining Bucket Tags", "githuburl":"" }, { "uri":"obs_04_0051.html", "product_code":"obs", - "code":"46", + "code":"47", "des":"This operation deletes the tags of a bucket.To perform this operation, you must have the PutBucketTagging permission. By default, only the bucket owner can delete the tag", "doc_type":"api", - "kw":"Deleting Tags,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Deleting Tags,Advanced Bucket Settings,API Reference", "title":"Deleting Tags", "githuburl":"" }, { "uri":"obs_04_0052.html", "product_code":"obs", - "code":"47", + "code":"48", "des":"The bucket storage quota must be a positive integer in the unit of byte. The maximum storage quota is 263 – 1 bytes. The default bucket storage quota is 0, indicating tha", "doc_type":"api", - "kw":"Configuring Bucket Storage Quota,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Configuring Bucket Storage Quota,Advanced Bucket Settings,API Reference", "title":"Configuring Bucket Storage Quota", "githuburl":"" }, { "uri":"obs_04_0053.html", "product_code":"obs", - "code":"48", + "code":"49", "des":"Only the bucket owner can query information about the bucket storage quota. However, an inactive owner is not allowed to get the bucket quota. The bucket storage quota is", "doc_type":"api", - "kw":"Querying Bucket Storage Quota,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Querying Bucket Storage Quota,Advanced Bucket Settings,API Reference", "title":"Querying Bucket Storage Quota", "githuburl":"" }, { "uri":"obs_04_0054.html", "product_code":"obs", - "code":"49", + "code":"50", "des":"This operation queries the number of bucket objects and the space occupied by the objects. The size of the object space is a positive integer, measured by bytes.The OBS b", "doc_type":"api", - "kw":"Querying Information About Used Space in a Bucket,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Querying Information About Used Space in a Bucket,Advanced Bucket Settings,API Reference", "title":"Querying Information About Used Space in a Bucket", "githuburl":"" }, { "uri":"obs_04_0059.html", "product_code":"obs", - "code":"50", + "code":"51", "des":"OBS uses the PUT method to configure a custom domain name for a bucket. After the configuration is successful, you can access the bucket through the domain name.Ensure th", "doc_type":"api", - "kw":"Configuring a Custom Domain Name for a Bucket,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Configuring a Custom Domain Name for a Bucket,Advanced Bucket Settings,API Reference", "title":"Configuring a Custom Domain Name for a Bucket", "githuburl":"" }, { "uri":"obs_04_0060.html", "product_code":"obs", - "code":"51", + "code":"52", "des":"OBS uses the GET method to obtain the custom domain name of a bucket.This request message does not contain the request parameters.This request uses common headers. For de", "doc_type":"api", - "kw":"Obtaining the Custom Domain Name of a Bucket,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Obtaining the Custom Domain Name of a Bucket,Advanced Bucket Settings,API Reference", "title":"Obtaining the Custom Domain Name of a Bucket", "githuburl":"" }, { "uri":"obs_04_0061.html", "product_code":"obs", - "code":"52", + "code":"53", "des":"OBS uses the DELETE method to delete the custom domain name of a bucket.This request uses common headers. For details, see Table 3.This request involves no elements.The r", "doc_type":"api", - "kw":"Deleting the Custom Domain Name of a Bucket,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Deleting the Custom Domain Name of a Bucket,Advanced Bucket Settings,API Reference", "title":"Deleting the Custom Domain Name of a Bucket", "githuburl":"" }, { "uri":"obs_04_0062.html", "product_code":"obs", - "code":"53", + "code":"54", "des":"OBS uses the PUT method to create or update the default server-side encryption for a bucket.After encryption is enabled for a bucket, objects uploaded to the bucket are e", "doc_type":"api", - "kw":"Configuring Bucket Encryption,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Configuring Bucket Encryption,Advanced Bucket Settings,API Reference", "title":"Configuring Bucket Encryption", "githuburl":"" }, { "uri":"obs_04_0063.html", "product_code":"obs", - "code":"54", + "code":"55", "des":"OBS uses the GET method to obtain the encryption configuration of a specified bucket.To perform this operation, you must have the GetEncryptionConfiguration permission. B", "doc_type":"api", - "kw":"Obtaining Bucket Encryption Configuration,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Obtaining Bucket Encryption Configuration,Advanced Bucket Settings,API Reference", "title":"Obtaining Bucket Encryption Configuration", "githuburl":"" }, { "uri":"obs_04_0064.html", "product_code":"obs", - "code":"55", + "code":"56", "des":"OBS uses the DELETE method to delete the encryption configuration of a specified bucket.To perform this operation, you must have the PutEncryptionConfiguration permission", "doc_type":"api", - "kw":"Deleting the Encryption Configuration of a Bucket,Advanced Bucket Settings,API Reference (OBS)", + "kw":"Deleting the Encryption Configuration of a Bucket,Advanced Bucket Settings,API Reference", "title":"Deleting the Encryption Configuration of a Bucket", "githuburl":"" }, { "uri":"obs_04_0070.html", "product_code":"obs", - "code":"56", + "code":"57", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Static Website Hosting", @@ -562,87 +572,87 @@ { "uri":"obs_04_0071.html", "product_code":"obs", - "code":"57", + "code":"58", "des":"OBS allows you to store static web page resources such as HTML web pages, flash files, videos, and audios in a bucket. When a client accesses these resources from the web", "doc_type":"api", - "kw":"Configuring Static Website Hosting for a Bucket,Static Website Hosting,API Reference (OBS)", + "kw":"Configuring Static Website Hosting for a Bucket,Static Website Hosting,API Reference", "title":"Configuring Static Website Hosting for a Bucket", "githuburl":"" }, { "uri":"obs_04_0072.html", "product_code":"obs", - "code":"58", + "code":"59", "des":"You can perform this operation to get the static website hosting configuration of a bucket.To perform this operation, you must have the GetBucketWebsite permission. By de", "doc_type":"api", - "kw":"Obtaining the Static Website Hosting Configuration of a Bucket,Static Website Hosting,API Reference ", + "kw":"Obtaining the Static Website Hosting Configuration of a Bucket,Static Website Hosting,API Reference", "title":"Obtaining the Static Website Hosting Configuration of a Bucket", "githuburl":"" }, { "uri":"obs_04_0073.html", "product_code":"obs", - "code":"59", + "code":"60", "des":"You can perform this operation to delete the website configuration of a bucket.To perform this operation, you must have the DeleteBucketWebsite permission. By default, on", "doc_type":"api", - "kw":"Deleting the Static Website Hosting Configuration of a Bucket,Static Website Hosting,API Reference (", + "kw":"Deleting the Static Website Hosting Configuration of a Bucket,Static Website Hosting,API Reference", "title":"Deleting the Static Website Hosting Configuration of a Bucket", "githuburl":"" }, { "uri":"obs_04_0074.html", "product_code":"obs", - "code":"60", + "code":"61", "des":"Cross-origin resource sharing (CORS) is a standard mechanism proposed by World Wide Web Consortium (W3C) and allows cross-origin requests from clients. For standard web p", "doc_type":"api", - "kw":"Configuring Bucket CORS,Static Website Hosting,API Reference (OBS)", + "kw":"Configuring Bucket CORS,Static Website Hosting,API Reference", "title":"Configuring Bucket CORS", "githuburl":"" }, { "uri":"obs_04_0075.html", "product_code":"obs", - "code":"61", + "code":"62", "des":"You can perform this operation to obtain CORS configuration information about a specified bucket.To perform this operation, you must have the GetBucketCORS permission. By", "doc_type":"api", - "kw":"Obtaining the CORS Configuration of a Bucket,Static Website Hosting,API Reference (OBS)", + "kw":"Obtaining the CORS Configuration of a Bucket,Static Website Hosting,API Reference", "title":"Obtaining the CORS Configuration of a Bucket", "githuburl":"" }, { "uri":"obs_04_0076.html", "product_code":"obs", - "code":"62", + "code":"63", "des":"This operation is used to delete the CORS configuration of a bucket. After the CORS configuration is deleted, the bucket and objects in it cannot be accessed by requests ", "doc_type":"api", - "kw":"Deleting the CORS Configuration of a Bucket,Static Website Hosting,API Reference (OBS)", + "kw":"Deleting the CORS Configuration of a Bucket,Static Website Hosting,API Reference", "title":"Deleting the CORS Configuration of a Bucket", "githuburl":"" }, { "uri":"obs_04_0077.html", "product_code":"obs", - "code":"63", + "code":"64", "des":"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 se", "doc_type":"api", - "kw":"OPTIONS Bucket,Static Website Hosting,API Reference (OBS)", + "kw":"OPTIONS Bucket,Static Website Hosting,API Reference", "title":"OPTIONS Bucket", "githuburl":"" }, { "uri":"obs_04_0078.html", "product_code":"obs", - "code":"64", + "code":"65", "des":"For details, see OPTIONS Bucket.With the OPTIONS Object, you need to specify an object name in the URL, but an object name is not required with the OPTIONS Bucket, which ", "doc_type":"api", - "kw":"OPTIONS Object,Static Website Hosting,API Reference (OBS)", + "kw":"OPTIONS Object,Static Website Hosting,API Reference", "title":"OPTIONS Object", "githuburl":"" }, { "uri":"obs_04_0079.html", "product_code":"obs", - "code":"65", + "code":"66", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Operations on Objects", @@ -652,107 +662,147 @@ { "uri":"obs_04_0080.html", "product_code":"obs", - "code":"66", + "code":"67", "des":"After bucket creation in OBS, you can use this operation to upload an object to the bucket. Uploading an object adds it to a bucket. This requires users to have the write", "doc_type":"api", - "kw":"Uploading Objects - PUT,Operations on Objects,API Reference (OBS)", + "kw":"Uploading Objects - PUT,Operations on Objects,API Reference", "title":"Uploading Objects - PUT", "githuburl":"" }, { "uri":"obs_04_0081.html", "product_code":"obs", - "code":"67", - "des":"Uploading an object adds it to a bucket. This requires users to have the write operation.The name of each object in a bucket must be unique.With versioning not enabled, i", + "code":"68", + "des":"This operation uploads an object to a bucket. To use this operation, you must have the write permission on the bucket.The name of each object in a bucket must be unique.W", "doc_type":"api", - "kw":"Uploading Objects - POST,Operations on Objects,API Reference (OBS)", + "kw":"Uploading Objects - POST,Operations on Objects,API Reference", "title":"Uploading Objects - POST", "githuburl":"" }, { "uri":"obs_04_0082.html", "product_code":"obs", - "code":"68", + "code":"69", "des":"You can perform this operation to create a copy of an existing object in OBS.Users can determine whether to copy the metadata of the source object to the target object (b", "doc_type":"api", - "kw":"Copying Objects,Operations on Objects,API Reference (OBS)", + "kw":"Copying Objects,Operations on Objects,API Reference", "title":"Copying Objects", "githuburl":"" }, { "uri":"obs_04_0083.html", "product_code":"obs", - "code":"69", + "code":"70", "des":"This operation downloads objects from OBS. Before using this GET operation, check that you have the read permission for the target object. If the object owner has granted", "doc_type":"api", - "kw":"Downloading Objects,Operations on Objects,API Reference (OBS)", + "kw":"Downloading Objects,Operations on Objects,API Reference", "title":"Downloading Objects", "githuburl":"" }, { "uri":"obs_04_0084.html", "product_code":"obs", - "code":"70", + "code":"71", "des":"Users with the read permission on objects can perform the HeadObject operation to obtain metadata of objects. The object metadata is included in the response.This operati", "doc_type":"api", - "kw":"Querying Object Metadata,Operations on Objects,API Reference (OBS)", + "kw":"Querying Object Metadata,Operations on Objects,API Reference", "title":"Querying Object Metadata", "githuburl":"" }, { "uri":"obs_04_0085.html", "product_code":"obs", - "code":"71", + "code":"72", "des":"You can perform this operation to delete an object. If you try to delete an object that does not exist, OBS will return a success message.When versioning is enabled for a", "doc_type":"api", - "kw":"Deleting an Object,Operations on Objects,API Reference (OBS)", + "kw":"Deleting an Object,Operations on Objects,API Reference", "title":"Deleting an Object", "githuburl":"" }, { "uri":"obs_04_0086.html", "product_code":"obs", - "code":"72", + "code":"73", "des":"This operation can be used to batch delete some objects in a bucket. The deletion cannot be undone. After the operation is implemented, the returned information contains ", "doc_type":"api", - "kw":"Deleting Objects,Operations on Objects,API Reference (OBS)", + "kw":"Deleting Objects,Operations on Objects,API Reference", "title":"Deleting Objects", "githuburl":"" }, { "uri":"obs_04_0087.html", "product_code":"obs", - "code":"73", + "code":"74", "des":"To obtain the content of an object in the Cold storage class, you need to restore the object first and then you can download it. After an object is restored, a copy of th", "doc_type":"api", - "kw":"Restoring Cold Objects,Operations on Objects,API Reference (OBS)", + "kw":"Restoring Cold Objects,Operations on Objects,API Reference", "title":"Restoring Cold Objects", "githuburl":"" }, { "uri":"obs_04_0089.html", "product_code":"obs", - "code":"74", + "code":"75", "des":"OBS supports the control of access permission for objects. By default, only the object creator has the read and write permissions for the object. However, the creator can", "doc_type":"api", - "kw":"Configuring an Object ACL,Operations on Objects,API Reference (OBS)", + "kw":"Configuring an Object ACL,Operations on Objects,API Reference", "title":"Configuring an Object ACL", "githuburl":"" }, { "uri":"obs_04_0090.html", "product_code":"obs", - "code":"75", + "code":"76", "des":"The implementation of this operation returns the ACL configuration of an object. You can perform this operation to view the ACL of an object, as long as you have the read", "doc_type":"api", - "kw":"Obtaining Object ACL Configuration,Operations on Objects,API Reference (OBS)", + "kw":"Obtaining Object ACL Configuration,Operations on Objects,API Reference", "title":"Obtaining Object ACL Configuration", "githuburl":"" }, + { + "uri":"obs_04_0091.html", + "product_code":"obs", + "code":"77", + "des":"This operation modifies, deletes, or adds metadata to uploaded objects in a bucket.OBS supports the six HTTP request headers: Cache-Control, Expires, Content-Encoding, Co", + "doc_type":"api", + "kw":"Modifying Object Metadata,Operations on Objects,API Reference", + "title":"Modifying Object Metadata", + "githuburl":"" + }, + { + "uri":"obs_04_0092.html", + "product_code":"obs", + "code":"78", + "des":"This operation can modify an object from a specified position.This API is supported only by parallel file systems. For details about how to create a parallel file system,", + "doc_type":"api", + "kw":"Modifying an Object,Operations on Objects,API Reference", + "title":"Modifying an Object", + "githuburl":"" + }, + { + "uri":"obs_04_0093.html", + "product_code":"obs", + "code":"79", + "des":"This operation can truncate an object to a specified size.This API is supported only by parallel file systems. For details about how to create a parallel file system, see", + "doc_type":"api", + "kw":"Truncating an Object,Operations on Objects,API Reference", + "title":"Truncating an Object", + "githuburl":"" + }, + { + "uri":"obs_04_0094.html", + "product_code":"obs", + "code":"80", + "des":"This operation can rename an object.This API is supported only by parallel file systems. For details about how to create a parallel file system, see Sample Request 4. Ren", + "doc_type":"api", + "kw":"Renaming an Object,Operations on Objects,API Reference", + "title":"Renaming an Object", + "githuburl":"" + }, { "uri":"obs_04_0096.html", "product_code":"obs", - "code":"76", + "code":"81", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Operations on Multipart Upload", @@ -762,77 +812,77 @@ { "uri":"obs_04_0097.html", "product_code":"obs", - "code":"77", + "code":"82", "des":"This operation queries all the multipart upload tasks that are initialized but have not been merged or canceled in a bucket.This request uses parameters to specify the qu", "doc_type":"api", - "kw":"Listing Initialized Multipart Tasks in a Bucket,Operations on Multipart Upload,API Reference (OBS)", - "title":"Listing Initialized Multipart Tasks in a Bucket", + "kw":"Listing Initiated Multipart Uploads in a Bucket,Operations on Multipart Upload,API Reference", + "title":"Listing Initiated Multipart Uploads in a Bucket", "githuburl":"" }, { "uri":"obs_04_0098.html", "product_code":"obs", - "code":"78", + "code":"83", "des":"Before using this operation, make an API operation call to create a multipart upload task. The system will return a globally unique upload ID as the multipart upload iden", "doc_type":"api", - "kw":"Initializing a Multipart Task,Operations on Multipart Upload,API Reference (OBS)", - "title":"Initializing a Multipart Task", + "kw":"Initiating a Multipart Upload,Operations on Multipart Upload,API Reference", + "title":"Initiating a Multipart Upload", "githuburl":"" }, { "uri":"obs_04_0099.html", "product_code":"obs", - "code":"79", + "code":"84", "des":"After initiating a multipart upload, you can use this operation to upload parts for the multipart upload using its task ID. When parts are uploaded in a multipart upload ", "doc_type":"api", - "kw":"Multipart Upload,Operations on Multipart Upload,API Reference (OBS)", + "kw":"Multipart Upload,Operations on Multipart Upload,API Reference", "title":"Multipart Upload", "githuburl":"" }, { "uri":"obs_04_0100.html", "product_code":"obs", - "code":"80", + "code":"85", "des":"After creating a multipart upload job, you can specify its upload ID and upload a part to the job in OBS. Alternatively, you can make an API call to add a part (part of a", "doc_type":"api", - "kw":"Uploading a Part of an Object - Copy,Operations on Multipart Upload,API Reference (OBS)", + "kw":"Uploading a Part of an Object - Copy,Operations on Multipart Upload,API Reference", "title":"Uploading a Part of an Object - Copy", "githuburl":"" }, { "uri":"obs_04_0101.html", "product_code":"obs", - "code":"81", + "code":"86", "des":"You can perform this operation to query all parts associated to a multipart upload. The size of each part listed by this API is the same as the size of the part uploaded.", "doc_type":"api", - "kw":"Listing Uploaded Parts of an Object,Operations on Multipart Upload,API Reference (OBS)", + "kw":"Listing Uploaded Parts of an Object,Operations on Multipart Upload,API Reference", "title":"Listing Uploaded Parts of an Object", "githuburl":"" }, { "uri":"obs_04_0102.html", "product_code":"obs", - "code":"82", + "code":"87", "des":"After uploading all parts for a multipart upload, you can use this operation to complete the multipart upload. Before performing this operation, you cannot download the u", "doc_type":"api", - "kw":"Merging Parts into a Complete Object,Operations on Multipart Upload,API Reference (OBS)", - "title":"Merging Parts into a Complete Object", + "kw":"Completing a Multipart Upload,Operations on Multipart Upload,API Reference", + "title":"Completing a Multipart Upload", "githuburl":"" }, { "uri":"obs_04_0103.html", "product_code":"obs", - "code":"83", + "code":"88", "des":"You can perform this operation to abort a multipart upload. You cannot upload or list parts after operations to merge parts or abort a multipart upload are performed.This", "doc_type":"api", - "kw":"Canceling a Multipart Upload Task,Operations on Multipart Upload,API Reference (OBS)", + "kw":"Canceling a Multipart Upload Task,Operations on Multipart Upload,API Reference", "title":"Canceling a Multipart Upload Task", "githuburl":"" }, { "uri":"obs_04_0104.html", "product_code":"obs", - "code":"84", + "code":"89", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Server-Side Encryption", @@ -842,47 +892,47 @@ { "uri":"obs_04_0105.html", "product_code":"obs", - "code":"85", + "code":"90", "des":"Users can upload and download objects in common mode or using server-side encryption.OBS supports server-side encryption.Users can implement this function based on the ke", "doc_type":"api", - "kw":"Server-Side Encryption Overview,Server-Side Encryption,API Reference (OBS)", + "kw":"Server-Side Encryption Overview,Server-Side Encryption,API Reference", "title":"Server-Side Encryption Overview", "githuburl":"" }, { "uri":"obs_04_0106.html", "product_code":"obs", - "code":"86", + "code":"91", "des":"In the SSE-KMS mode, OBS uses the keys provided by KMS for server-side encryption. When an object encrypted using SSE-KMS is added to a bucket in a region for the first t", "doc_type":"api", - "kw":"Server-Side Encryption (SSE-KMS),Server-Side Encryption,API Reference (OBS)", + "kw":"Server-Side Encryption (SSE-KMS),Server-Side Encryption,API Reference", "title":"Server-Side Encryption (SSE-KMS)", "githuburl":"" }, { "uri":"obs_04_0107.html", "product_code":"obs", - "code":"87", + "code":"92", "des":"In the SSE-C mode, OBS uses the keys and MD5 values provided by customers for server-side encryption.OBS does not store your encryption keys. If you lost your encryption ", "doc_type":"api", - "kw":"Server-Side Encryption (SSE-C),Server-Side Encryption,API Reference (OBS)", + "kw":"Server-Side Encryption (SSE-C),Server-Side Encryption,API Reference", "title":"Server-Side Encryption (SSE-C)", "githuburl":"" }, { "uri":"obs_04_0108.html", "product_code":"obs", - "code":"88", + "code":"93", "des":"This section lists the operations related to server-side encryption and describes HTTP protocols applicable to the operations.The following table describes the requiremen", "doc_type":"api", - "kw":"API Operations Related to Server-Side Encryption,Server-Side Encryption,API Reference (OBS)", + "kw":"API Operations Related to Server-Side Encryption,Server-Side Encryption,API Reference", "title":"API Operations Related to Server-Side Encryption", "githuburl":"" }, { "uri":"obs_04_0113.html", "product_code":"obs", - "code":"89", + "code":"94", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Appendixes", @@ -892,60 +942,60 @@ { "uri":"obs_04_0114.html", "product_code":"obs", - "code":"90", + "code":"95", "des":"Table 1 lists the status codes and prompt message returned by the server to the user.", "doc_type":"api", - "kw":"Status Codes,Appendixes,API Reference (OBS)", + "kw":"Status Codes,Appendixes,API Reference", "title":"Status Codes", "githuburl":"" }, { "uri":"obs_04_0115.html", "product_code":"obs", - "code":"91", + "code":"96", "des":"If an API call fails, no result data is returned. You can locate the cause of the error according to the error code of each API. If an API call fails, HTTP status code 3x", "doc_type":"api", - "kw":"Error Codes,Appendixes,API Reference (OBS)", + "kw":"Error Codes,Appendixes,API Reference", "title":"Error Codes", "githuburl":"" }, { "uri":"obs_04_0116.html", "product_code":"obs", - "code":"92", + "code":"97", "des":"When you call APIs, you need to use the AK and SK for authentication. To obtain the AK and SK, perform the following steps:Keep AKs and SKs properly to prevent informatio", "doc_type":"api", - "kw":"Obtaining Access Keys (AK/SK),Appendixes,API Reference (OBS)", + "kw":"Obtaining Access Keys (AK/SK),Appendixes,API Reference", "title":"Obtaining Access Keys (AK/SK)", "githuburl":"" }, { "uri":"obs_04_0117.html", "product_code":"obs", - "code":"93", - "des":"When an API is called, the domain ID (DomainID) and user ID (UserID) need to be specified in some requests. Therefore, you need to obtain them from the console. The proce", + "code":"98", + "des":"During API calls, the domain ID (DomainID) and user ID (UserID) need to be specified in some requests. Therefore, you need to obtain them from the console. The procedure ", "doc_type":"api", - "kw":"Obtaining the Domain ID and User ID,Appendixes,API Reference (OBS)", + "kw":"Obtaining the Domain ID and User ID,Appendixes,API Reference", "title":"Obtaining the Domain ID and User ID", "githuburl":"" }, { "uri":"obs_04_0118.html", "product_code":"obs", - "code":"94", + "code":"99", "des":"After a success message is returned in response to a client's write or deletion request, the client can obtain the latest data. If a client that initiates a write request", "doc_type":"api", - "kw":"Consistency of Concurrent Operations,Appendixes,API Reference (OBS)", + "kw":"Consistency of Concurrent Operations,Appendixes,API Reference", "title":"Consistency of Concurrent Operations", "githuburl":"" }, { "uri":"obs_04_0000.html", "product_code":"obs", - "code":"95", + "code":"100", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Change History,API Reference (OBS)", + "kw":"Change History,API Reference", "title":"Change History", "githuburl":"" } diff --git a/docs/obs/api-ref/CLASS.TXT.json b/docs/obs/api-ref/CLASS.TXT.json index 81972687a..ae0d583c6 100644 --- a/docs/obs/api-ref/CLASS.TXT.json +++ b/docs/obs/api-ref/CLASS.TXT.json @@ -180,7 +180,7 @@ "code":"20" }, { - "desc":"You can perform this operation to list all buckets that you have created.This request contains no parameter.This request header uses common message fields. For details, s", + "desc":"You can perform this operation to list all buckets that you have created.This request contains no parameters.This request header uses common message fields. For details, ", "product_code":"obs", "title":"Listing Buckets", "uri":"obs_04_0020.html", @@ -207,13 +207,22 @@ "code":"23" }, { - "desc":"This operation queries the metadata of a bucket. To use this operation, you must have the permission to read the bucket.This request contains no parameter.This request us", + "desc":"This operation lists objects in a bucket. To use this operation, you must have the permission to read the bucket.If the bucket name is specified in a request URI and list", + "product_code":"obs", + "title":"Listing Objects in a Bucket (V2)", + "uri":"obs_04_0160.html", + "doc_type":"api", + "p_code":"20", + "code":"24" + }, + { + "desc":"This operation queries the metadata of a bucket. To use this operation, you must have the permission to read the bucket.This request contains no parameters.This request u", "product_code":"obs", "title":"Obtaining Bucket Metadata", "uri":"obs_04_0023.html", "doc_type":"api", "p_code":"20", - "code":"24" + "code":"25" }, { "desc":"This operation obtains the location of a bucket. To use this operation, you must have the permission to read the bucket.This request contains no parameters.This request u", @@ -222,7 +231,7 @@ "uri":"obs_04_0024.html", "doc_type":"api", "p_code":"20", - "code":"25" + "code":"26" }, { "desc":"This operation deletes specified buckets. This operation can be performed only by the bucket owner and users who have been authorized (via a policy) with the permission t", @@ -231,7 +240,7 @@ "uri":"obs_04_0025.html", "doc_type":"api", "p_code":"20", - "code":"26" + "code":"27" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -240,7 +249,7 @@ "uri":"obs_04_0026.html", "doc_type":"api", "p_code":"19", - "code":"27" + "code":"28" }, { "desc":"This operation creates or modifies policies for buckets. If the specified bucket already has a policy, the policy in the request will overwrite the existing one. There is", @@ -248,8 +257,8 @@ "title":"Configuring a Bucket Policy", "uri":"obs_04_0027.html", "doc_type":"api", - "p_code":"27", - "code":"28" + "p_code":"28", + "code":"29" }, { "desc":"This operation uses the sub-resources of policy to return the policy information of a specified bucket.To perform this operation, the user must be the bucket owner or the", @@ -257,8 +266,8 @@ "title":"Obtaining Bucket Policy Information", "uri":"obs_04_0028.html", "doc_type":"api", - "p_code":"27", - "code":"29" + "p_code":"28", + "code":"30" }, { "desc":"This operation uses the policy sub-resources to delete the policy of a specified bucket.To perform this operation, the user must be the bucket owner or the bucket owner's", @@ -266,8 +275,8 @@ "title":"Deleting a Bucket Policy", "uri":"obs_04_0029.html", "doc_type":"api", - "p_code":"27", - "code":"30" + "p_code":"28", + "code":"31" }, { "desc":"This operation controls access permissions for buckets. By default, only the creator of a bucket has the permission to read and write the bucket. You can also set other a", @@ -275,8 +284,8 @@ "title":"Configuring a Bucket ACL", "uri":"obs_04_0030.html", "doc_type":"api", - "p_code":"27", - "code":"31" + "p_code":"28", + "code":"32" }, { "desc":"This operation returns the ACL information of a bucket. To obtain the ACL of a bucket, you need to have the READ_ACP or FULL_CONTROL permission for the bucket.This reques", @@ -284,8 +293,8 @@ "title":"Obtaining Bucket ACL Information", "uri":"obs_04_0031.html", "doc_type":"api", - "p_code":"27", - "code":"32" + "p_code":"28", + "code":"33" }, { "desc":"When a bucket is created, the logging function is not enabled by default. To generate logs recording operations on buckets, you need to enable the logging function for th", @@ -293,8 +302,8 @@ "title":"Configuring Logging for a Bucket", "uri":"obs_04_0032.html", "doc_type":"api", - "p_code":"27", - "code":"33" + "p_code":"28", + "code":"34" }, { "desc":"This operation queries the logging status of a bucket. It uses the logging sub-resource to return the logging status of a bucket.Only the bucket owner or users granted th", @@ -302,8 +311,8 @@ "title":"Obtaining a Bucket Logging Configuration", "uri":"obs_04_0033.html", "doc_type":"api", - "p_code":"27", - "code":"34" + "p_code":"28", + "code":"35" }, { "desc":"This operation configures lifecycle rules that can delete or migrate objects from a bucket at a specified time. Typical application scenarios:Delete periodically uploaded", @@ -311,8 +320,8 @@ "title":"Configuring Bucket Lifecycle Rules", "uri":"obs_04_0034.html", "doc_type":"api", - "p_code":"27", - "code":"35" + "p_code":"28", + "code":"36" }, { "desc":"This operation obtains the bucket lifecycle configuration.To perform this operation, you must have the GetLifecycleConfiguration permission. By default, only the bucket o", @@ -320,8 +329,8 @@ "title":"Obtaining Bucket Lifecycle Configuration", "uri":"obs_04_0035.html", "doc_type":"api", - "p_code":"27", - "code":"36" + "p_code":"28", + "code":"37" }, { "desc":"This operation deletes the lifecycle configuration of a bucket. After the lifecycle configuration of a bucket is deleted, OBS will not automatically delete objects in tha", @@ -329,8 +338,8 @@ "title":"Deleting Lifecycle Rules", "uri":"obs_04_0036.html", "doc_type":"api", - "p_code":"27", - "code":"37" + "p_code":"28", + "code":"38" }, { "desc":"This operation restores an object that is mistakenly overwritten or deleted. You can use versioning to save, query, and restore objects of different versions. Versioning ", @@ -338,8 +347,8 @@ "title":"Configuring Versioning for a Bucket", "uri":"obs_04_0037.html", "doc_type":"api", - "p_code":"27", - "code":"38" + "p_code":"28", + "code":"39" }, { "desc":"This operation allows a bucket owner to get the versioning status of the bucket.If versioning is not configured for a bucket, no versioning status information will be ret", @@ -347,8 +356,8 @@ "title":"Obtaining Bucket Versioning Status", "uri":"obs_04_0038.html", "doc_type":"api", - "p_code":"27", - "code":"39" + "p_code":"28", + "code":"40" }, { "desc":"This operation notifies users of their operations on buckets, allowing users know events happened on buckets in a timely manner.By default, the notification function of a", @@ -356,8 +365,8 @@ "title":"Configuring Event Notification for a Bucket", "uri":"obs_04_0039.html", "doc_type":"api", - "p_code":"27", - "code":"40" + "p_code":"28", + "code":"41" }, { "desc":"This operation obtains the notification configuration of a bucket.To perform this operation, you must have the GetBucketNotification permission. By default, the permissio", @@ -365,8 +374,8 @@ "title":"Obtaining the Event Notification Configuration of a Bucket", "uri":"obs_04_0040.html", "doc_type":"api", - "p_code":"27", - "code":"41" + "p_code":"28", + "code":"42" }, { "desc":"This operation sets or updates the default storage class of a bucket.To perform this operation, you must have the PutBucketStoragePolicy permission. By default, only the ", @@ -374,8 +383,8 @@ "title":"Configuring Storage Class for a Bucket", "uri":"obs_04_0044.html", "doc_type":"api", - "p_code":"27", - "code":"42" + "p_code":"28", + "code":"43" }, { "desc":"This operation obtains the default storage class of a bucket.To perform this operation, you must have the GetBucketStoragePolicy permission. By default, only the bucket o", @@ -383,8 +392,8 @@ "title":"Obtaining Bucket Storage Class Information", "uri":"obs_04_0045.html", "doc_type":"api", - "p_code":"27", - "code":"43" + "p_code":"28", + "code":"44" }, { "desc":"This operation adds tags to a bucket.After tags are added to a bucket, all charging data records (CDRs) generated by the requests for this bucket will take the same tags.", @@ -392,8 +401,8 @@ "title":"Configuring Tags for a Bucket", "uri":"obs_04_0049.html", "doc_type":"api", - "p_code":"27", - "code":"44" + "p_code":"28", + "code":"45" }, { "desc":"This operation obtains information about tags of a bucket.To perform this operation, you must have the GetBucketTagging permission. By default, only the bucket owner can ", @@ -401,8 +410,8 @@ "title":"Obtaining Bucket Tags", "uri":"obs_04_0050.html", "doc_type":"api", - "p_code":"27", - "code":"45" + "p_code":"28", + "code":"46" }, { "desc":"This operation deletes the tags of a bucket.To perform this operation, you must have the PutBucketTagging permission. By default, only the bucket owner can delete the tag", @@ -410,8 +419,8 @@ "title":"Deleting Tags", "uri":"obs_04_0051.html", "doc_type":"api", - "p_code":"27", - "code":"46" + "p_code":"28", + "code":"47" }, { "desc":"The bucket storage quota must be a positive integer in the unit of byte. The maximum storage quota is 263 – 1 bytes. The default bucket storage quota is 0, indicating tha", @@ -419,8 +428,8 @@ "title":"Configuring Bucket Storage Quota", "uri":"obs_04_0052.html", "doc_type":"api", - "p_code":"27", - "code":"47" + "p_code":"28", + "code":"48" }, { "desc":"Only the bucket owner can query information about the bucket storage quota. However, an inactive owner is not allowed to get the bucket quota. The bucket storage quota is", @@ -428,8 +437,8 @@ "title":"Querying Bucket Storage Quota", "uri":"obs_04_0053.html", "doc_type":"api", - "p_code":"27", - "code":"48" + "p_code":"28", + "code":"49" }, { "desc":"This operation queries the number of bucket objects and the space occupied by the objects. The size of the object space is a positive integer, measured by bytes.The OBS b", @@ -437,8 +446,8 @@ "title":"Querying Information About Used Space in a Bucket", "uri":"obs_04_0054.html", "doc_type":"api", - "p_code":"27", - "code":"49" + "p_code":"28", + "code":"50" }, { "desc":"OBS uses the PUT method to configure a custom domain name for a bucket. After the configuration is successful, you can access the bucket through the domain name.Ensure th", @@ -446,8 +455,8 @@ "title":"Configuring a Custom Domain Name for a Bucket", "uri":"obs_04_0059.html", "doc_type":"api", - "p_code":"27", - "code":"50" + "p_code":"28", + "code":"51" }, { "desc":"OBS uses the GET method to obtain the custom domain name of a bucket.This request message does not contain the request parameters.This request uses common headers. For de", @@ -455,8 +464,8 @@ "title":"Obtaining the Custom Domain Name of a Bucket", "uri":"obs_04_0060.html", "doc_type":"api", - "p_code":"27", - "code":"51" + "p_code":"28", + "code":"52" }, { "desc":"OBS uses the DELETE method to delete the custom domain name of a bucket.This request uses common headers. For details, see Table 3.This request involves no elements.The r", @@ -464,8 +473,8 @@ "title":"Deleting the Custom Domain Name of a Bucket", "uri":"obs_04_0061.html", "doc_type":"api", - "p_code":"27", - "code":"52" + "p_code":"28", + "code":"53" }, { "desc":"OBS uses the PUT method to create or update the default server-side encryption for a bucket.After encryption is enabled for a bucket, objects uploaded to the bucket are e", @@ -473,8 +482,8 @@ "title":"Configuring Bucket Encryption", "uri":"obs_04_0062.html", "doc_type":"api", - "p_code":"27", - "code":"53" + "p_code":"28", + "code":"54" }, { "desc":"OBS uses the GET method to obtain the encryption configuration of a specified bucket.To perform this operation, you must have the GetEncryptionConfiguration permission. B", @@ -482,8 +491,8 @@ "title":"Obtaining Bucket Encryption Configuration", "uri":"obs_04_0063.html", "doc_type":"api", - "p_code":"27", - "code":"54" + "p_code":"28", + "code":"55" }, { "desc":"OBS uses the DELETE method to delete the encryption configuration of a specified bucket.To perform this operation, you must have the PutEncryptionConfiguration permission", @@ -491,8 +500,8 @@ "title":"Deleting the Encryption Configuration of a Bucket", "uri":"obs_04_0064.html", "doc_type":"api", - "p_code":"27", - "code":"55" + "p_code":"28", + "code":"56" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -501,7 +510,7 @@ "uri":"obs_04_0070.html", "doc_type":"api", "p_code":"19", - "code":"56" + "code":"57" }, { "desc":"OBS allows you to store static web page resources such as HTML web pages, flash files, videos, and audios in a bucket. When a client accesses these resources from the web", @@ -509,8 +518,8 @@ "title":"Configuring Static Website Hosting for a Bucket", "uri":"obs_04_0071.html", "doc_type":"api", - "p_code":"56", - "code":"57" + "p_code":"57", + "code":"58" }, { "desc":"You can perform this operation to get the static website hosting configuration of a bucket.To perform this operation, you must have the GetBucketWebsite permission. By de", @@ -518,8 +527,8 @@ "title":"Obtaining the Static Website Hosting Configuration of a Bucket", "uri":"obs_04_0072.html", "doc_type":"api", - "p_code":"56", - "code":"58" + "p_code":"57", + "code":"59" }, { "desc":"You can perform this operation to delete the website configuration of a bucket.To perform this operation, you must have the DeleteBucketWebsite permission. By default, on", @@ -527,8 +536,8 @@ "title":"Deleting the Static Website Hosting Configuration of a Bucket", "uri":"obs_04_0073.html", "doc_type":"api", - "p_code":"56", - "code":"59" + "p_code":"57", + "code":"60" }, { "desc":"Cross-origin resource sharing (CORS) is a standard mechanism proposed by World Wide Web Consortium (W3C) and allows cross-origin requests from clients. For standard web p", @@ -536,8 +545,8 @@ "title":"Configuring Bucket CORS", "uri":"obs_04_0074.html", "doc_type":"api", - "p_code":"56", - "code":"60" + "p_code":"57", + "code":"61" }, { "desc":"You can perform this operation to obtain CORS configuration information about a specified bucket.To perform this operation, you must have the GetBucketCORS permission. By", @@ -545,8 +554,8 @@ "title":"Obtaining the CORS Configuration of a Bucket", "uri":"obs_04_0075.html", "doc_type":"api", - "p_code":"56", - "code":"61" + "p_code":"57", + "code":"62" }, { "desc":"This operation is used to delete the CORS configuration of a bucket. After the CORS configuration is deleted, the bucket and objects in it cannot be accessed by requests ", @@ -554,8 +563,8 @@ "title":"Deleting the CORS Configuration of a Bucket", "uri":"obs_04_0076.html", "doc_type":"api", - "p_code":"56", - "code":"62" + "p_code":"57", + "code":"63" }, { "desc":"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 se", @@ -563,8 +572,8 @@ "title":"OPTIONS Bucket", "uri":"obs_04_0077.html", "doc_type":"api", - "p_code":"56", - "code":"63" + "p_code":"57", + "code":"64" }, { "desc":"For details, see OPTIONS Bucket.With the OPTIONS Object, you need to specify an object name in the URL, but an object name is not required with the OPTIONS Bucket, which ", @@ -572,8 +581,8 @@ "title":"OPTIONS Object", "uri":"obs_04_0078.html", "doc_type":"api", - "p_code":"56", - "code":"64" + "p_code":"57", + "code":"65" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -582,7 +591,7 @@ "uri":"obs_04_0079.html", "doc_type":"api", "p_code":"19", - "code":"65" + "code":"66" }, { "desc":"After bucket creation in OBS, you can use this operation to upload an object to the bucket. Uploading an object adds it to a bucket. This requires users to have the write", @@ -590,17 +599,17 @@ "title":"Uploading Objects - PUT", "uri":"obs_04_0080.html", "doc_type":"api", - "p_code":"65", - "code":"66" + "p_code":"66", + "code":"67" }, { - "desc":"Uploading an object adds it to a bucket. This requires users to have the write operation.The name of each object in a bucket must be unique.With versioning not enabled, i", + "desc":"This operation uploads an object to a bucket. To use this operation, you must have the write permission on the bucket.The name of each object in a bucket must be unique.W", "product_code":"obs", "title":"Uploading Objects - POST", "uri":"obs_04_0081.html", "doc_type":"api", - "p_code":"65", - "code":"67" + "p_code":"66", + "code":"68" }, { "desc":"You can perform this operation to create a copy of an existing object in OBS.Users can determine whether to copy the metadata of the source object to the target object (b", @@ -608,8 +617,8 @@ "title":"Copying Objects", "uri":"obs_04_0082.html", "doc_type":"api", - "p_code":"65", - "code":"68" + "p_code":"66", + "code":"69" }, { "desc":"This operation downloads objects from OBS. Before using this GET operation, check that you have the read permission for the target object. If the object owner has granted", @@ -617,8 +626,8 @@ "title":"Downloading Objects", "uri":"obs_04_0083.html", "doc_type":"api", - "p_code":"65", - "code":"69" + "p_code":"66", + "code":"70" }, { "desc":"Users with the read permission on objects can perform the HeadObject operation to obtain metadata of objects. The object metadata is included in the response.This operati", @@ -626,8 +635,8 @@ "title":"Querying Object Metadata", "uri":"obs_04_0084.html", "doc_type":"api", - "p_code":"65", - "code":"70" + "p_code":"66", + "code":"71" }, { "desc":"You can perform this operation to delete an object. If you try to delete an object that does not exist, OBS will return a success message.When versioning is enabled for a", @@ -635,8 +644,8 @@ "title":"Deleting an Object", "uri":"obs_04_0085.html", "doc_type":"api", - "p_code":"65", - "code":"71" + "p_code":"66", + "code":"72" }, { "desc":"This operation can be used to batch delete some objects in a bucket. The deletion cannot be undone. After the operation is implemented, the returned information contains ", @@ -644,8 +653,8 @@ "title":"Deleting Objects", "uri":"obs_04_0086.html", "doc_type":"api", - "p_code":"65", - "code":"72" + "p_code":"66", + "code":"73" }, { "desc":"To obtain the content of an object in the Cold storage class, you need to restore the object first and then you can download it. After an object is restored, a copy of th", @@ -653,8 +662,8 @@ "title":"Restoring Cold Objects", "uri":"obs_04_0087.html", "doc_type":"api", - "p_code":"65", - "code":"73" + "p_code":"66", + "code":"74" }, { "desc":"OBS supports the control of access permission for objects. By default, only the object creator has the read and write permissions for the object. However, the creator can", @@ -662,8 +671,8 @@ "title":"Configuring an Object ACL", "uri":"obs_04_0089.html", "doc_type":"api", - "p_code":"65", - "code":"74" + "p_code":"66", + "code":"75" }, { "desc":"The implementation of this operation returns the ACL configuration of an object. You can perform this operation to view the ACL of an object, as long as you have the read", @@ -671,8 +680,44 @@ "title":"Obtaining Object ACL Configuration", "uri":"obs_04_0090.html", "doc_type":"api", - "p_code":"65", - "code":"75" + "p_code":"66", + "code":"76" + }, + { + "desc":"This operation modifies, deletes, or adds metadata to uploaded objects in a bucket.OBS supports the six HTTP request headers: Cache-Control, Expires, Content-Encoding, Co", + "product_code":"obs", + "title":"Modifying Object Metadata", + "uri":"obs_04_0091.html", + "doc_type":"api", + "p_code":"66", + "code":"77" + }, + { + "desc":"This operation can modify an object from a specified position.This API is supported only by parallel file systems. For details about how to create a parallel file system,", + "product_code":"obs", + "title":"Modifying an Object", + "uri":"obs_04_0092.html", + "doc_type":"api", + "p_code":"66", + "code":"78" + }, + { + "desc":"This operation can truncate an object to a specified size.This API is supported only by parallel file systems. For details about how to create a parallel file system, see", + "product_code":"obs", + "title":"Truncating an Object", + "uri":"obs_04_0093.html", + "doc_type":"api", + "p_code":"66", + "code":"79" + }, + { + "desc":"This operation can rename an object.This API is supported only by parallel file systems. For details about how to create a parallel file system, see Sample Request 4. Ren", + "product_code":"obs", + "title":"Renaming an Object", + "uri":"obs_04_0094.html", + "doc_type":"api", + "p_code":"66", + "code":"80" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -681,25 +726,25 @@ "uri":"obs_04_0096.html", "doc_type":"api", "p_code":"19", - "code":"76" + "code":"81" }, { "desc":"This operation queries all the multipart upload tasks that are initialized but have not been merged or canceled in a bucket.This request uses parameters to specify the qu", "product_code":"obs", - "title":"Listing Initialized Multipart Tasks in a Bucket", + "title":"Listing Initiated Multipart Uploads in a Bucket", "uri":"obs_04_0097.html", "doc_type":"api", - "p_code":"76", - "code":"77" + "p_code":"81", + "code":"82" }, { "desc":"Before using this operation, make an API operation call to create a multipart upload task. The system will return a globally unique upload ID as the multipart upload iden", "product_code":"obs", - "title":"Initializing a Multipart Task", + "title":"Initiating a Multipart Upload", "uri":"obs_04_0098.html", "doc_type":"api", - "p_code":"76", - "code":"78" + "p_code":"81", + "code":"83" }, { "desc":"After initiating a multipart upload, you can use this operation to upload parts for the multipart upload using its task ID. When parts are uploaded in a multipart upload ", @@ -707,8 +752,8 @@ "title":"Multipart Upload", "uri":"obs_04_0099.html", "doc_type":"api", - "p_code":"76", - "code":"79" + "p_code":"81", + "code":"84" }, { "desc":"After creating a multipart upload job, you can specify its upload ID and upload a part to the job in OBS. Alternatively, you can make an API call to add a part (part of a", @@ -716,8 +761,8 @@ "title":"Uploading a Part of an Object - Copy", "uri":"obs_04_0100.html", "doc_type":"api", - "p_code":"76", - "code":"80" + "p_code":"81", + "code":"85" }, { "desc":"You can perform this operation to query all parts associated to a multipart upload. The size of each part listed by this API is the same as the size of the part uploaded.", @@ -725,17 +770,17 @@ "title":"Listing Uploaded Parts of an Object", "uri":"obs_04_0101.html", "doc_type":"api", - "p_code":"76", - "code":"81" + "p_code":"81", + "code":"86" }, { "desc":"After uploading all parts for a multipart upload, you can use this operation to complete the multipart upload. Before performing this operation, you cannot download the u", "product_code":"obs", - "title":"Merging Parts into a Complete Object", + "title":"Completing a Multipart Upload", "uri":"obs_04_0102.html", "doc_type":"api", - "p_code":"76", - "code":"82" + "p_code":"81", + "code":"87" }, { "desc":"You can perform this operation to abort a multipart upload. You cannot upload or list parts after operations to merge parts or abort a multipart upload are performed.This", @@ -743,8 +788,8 @@ "title":"Canceling a Multipart Upload Task", "uri":"obs_04_0103.html", "doc_type":"api", - "p_code":"76", - "code":"83" + "p_code":"81", + "code":"88" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -753,7 +798,7 @@ "uri":"obs_04_0104.html", "doc_type":"api", "p_code":"19", - "code":"84" + "code":"89" }, { "desc":"Users can upload and download objects in common mode or using server-side encryption.OBS supports server-side encryption.Users can implement this function based on the ke", @@ -761,8 +806,8 @@ "title":"Server-Side Encryption Overview", "uri":"obs_04_0105.html", "doc_type":"api", - "p_code":"84", - "code":"85" + "p_code":"89", + "code":"90" }, { "desc":"In the SSE-KMS mode, OBS uses the keys provided by KMS for server-side encryption. When an object encrypted using SSE-KMS is added to a bucket in a region for the first t", @@ -770,8 +815,8 @@ "title":"Server-Side Encryption (SSE-KMS)", "uri":"obs_04_0106.html", "doc_type":"api", - "p_code":"84", - "code":"86" + "p_code":"89", + "code":"91" }, { "desc":"In the SSE-C mode, OBS uses the keys and MD5 values provided by customers for server-side encryption.OBS does not store your encryption keys. If you lost your encryption ", @@ -779,8 +824,8 @@ "title":"Server-Side Encryption (SSE-C)", "uri":"obs_04_0107.html", "doc_type":"api", - "p_code":"84", - "code":"87" + "p_code":"89", + "code":"92" }, { "desc":"This section lists the operations related to server-side encryption and describes HTTP protocols applicable to the operations.The following table describes the requiremen", @@ -788,8 +833,8 @@ "title":"API Operations Related to Server-Side Encryption", "uri":"obs_04_0108.html", "doc_type":"api", - "p_code":"84", - "code":"88" + "p_code":"89", + "code":"93" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -798,7 +843,7 @@ "uri":"obs_04_0113.html", "doc_type":"api", "p_code":"", - "code":"89" + "code":"94" }, { "desc":"Table 1 lists the status codes and prompt message returned by the server to the user.", @@ -806,8 +851,8 @@ "title":"Status Codes", "uri":"obs_04_0114.html", "doc_type":"api", - "p_code":"89", - "code":"90" + "p_code":"94", + "code":"95" }, { "desc":"If an API call fails, no result data is returned. You can locate the cause of the error according to the error code of each API. If an API call fails, HTTP status code 3x", @@ -815,8 +860,8 @@ "title":"Error Codes", "uri":"obs_04_0115.html", "doc_type":"api", - "p_code":"89", - "code":"91" + "p_code":"94", + "code":"96" }, { "desc":"When you call APIs, you need to use the AK and SK for authentication. To obtain the AK and SK, perform the following steps:Keep AKs and SKs properly to prevent informatio", @@ -824,17 +869,17 @@ "title":"Obtaining Access Keys (AK/SK)", "uri":"obs_04_0116.html", "doc_type":"api", - "p_code":"89", - "code":"92" + "p_code":"94", + "code":"97" }, { - "desc":"When an API is called, the domain ID (DomainID) and user ID (UserID) need to be specified in some requests. Therefore, you need to obtain them from the console. The proce", + "desc":"During API calls, the domain ID (DomainID) and user ID (UserID) need to be specified in some requests. Therefore, you need to obtain them from the console. The procedure ", "product_code":"obs", "title":"Obtaining the Domain ID and User ID", "uri":"obs_04_0117.html", "doc_type":"api", - "p_code":"89", - "code":"93" + "p_code":"94", + "code":"98" }, { "desc":"After a success message is returned in response to a client's write or deletion request, the client can obtain the latest data. If a client that initiates a write request", @@ -842,8 +887,8 @@ "title":"Consistency of Concurrent Operations", "uri":"obs_04_0118.html", "doc_type":"api", - "p_code":"89", - "code":"94" + "p_code":"94", + "code":"99" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -852,6 +897,6 @@ "uri":"obs_04_0000.html", "doc_type":"api", "p_code":"", - "code":"95" + "code":"100" } ] \ No newline at end of file diff --git a/docs/obs/api-ref/obs_04_0000.html b/docs/obs/api-ref/obs_04_0000.html index 676fc7598..b44b78a10 100644 --- a/docs/obs/api-ref/obs_04_0000.html +++ b/docs/obs/api-ref/obs_04_0000.html @@ -8,7 +8,21 @@ -
2022-09-07
+2023-01-30
+This is the fifth official release.
+This issue incorporates the following changes:
+2022-10-30
+This is the fourth official release.
+This issue incorporates the following changes:
+2022-09-07
This is the third official release.
This issue incorporates the following change:
diff --git a/docs/obs/api-ref/obs_04_0004.html b/docs/obs/api-ref/obs_04_0004.html index 2433f6235..a72c23508 100644 --- a/docs/obs/api-ref/obs_04_0004.html +++ b/docs/obs/api-ref/obs_04_0004.html @@ -2,7 +2,7 @@You can register a domain with the cloud service. The domain has full access permissions for all the resources and cloud services that are subscribed under it. The domain can also reset user passwords and grant permissions to users. A domain is a payment entity. To keep the domain secure, it is recommended that you create users under the domain to perform routine management operations.
-You can create users under a domain on Identity and Access Management (IAM), and authorize the users with permissions required for accessing cloud services. Each IAM user has its own identity credentials (password and access keys).
+A user is created using a domain on Identity and Access Management (IAM) to use cloud services. Each IAM user has its own identity credentials (password and access keys).
On the My Credentials page on the console, you can view the domain ID and user ID, you can also manage the access keys of the domain and IAM users.
Access keys of the domain and its IAM users are required for authentication when calling APIs.
diff --git a/docs/obs/api-ref/obs_04_0005.html b/docs/obs/api-ref/obs_04_0005.html index bc7bb4180..5eb953c2a 100644 --- a/docs/obs/api-ref/obs_04_0005.html +++ b/docs/obs/api-ref/obs_04_0005.html @@ -25,7 +25,7 @@Checks whether the bucket metadata exists. You can query the information about the bucket region, storage class, OBS version number, enterprise project ID, and CORS configuration.
+Checks whether the bucket metadata exists. You can query the information about the bucket region, storage class, OBS version number, and CORS configuration.
Obtains the ACL configuration of a specified object.
Adds, modifies, or deletes metadata of uploaded objects.
+Modifies the content of an object in a specified parallel file system from the specified location.
+Truncates an object in a specified parallel file system to the specified size.
+Renames an object in a specified parallel file system.
+Queries all the multipart upload tasks that have not been merged or canceled in a bucket.
Initiates a multipart upload task, and obtains the globally unique multipart upload task ID for subsequent operations, such as uploading, merging, and listing parts.
Queries information about all parts of a multipart task.
Merges the specified parts into a complete object.
protocol
Protocol used for sending requests, which can be either HTTP or HTTPS. HTTPS is a protocol that ensures secure access to resources. OBS supports both HTTP and HTTPS.
+Protocol used for sending requests, which can be either HTTP or HTTPS. HTTPS is a protocol that ensures secure access to resources.
Yes
port
Port enabled for protocols used for sending requests. The value varies with software server deployment. If no port number is specified, the protocol uses the default value. Each transmission protocol has its default port number. For example, HTTP uses port number 80 and HTTPS uses port number 443 by default.
-In OBS, HTTP port number is 80 and that of HTTPS is 443.
+Port enabled for protocols used for sending requests. The value varies with software server deployment. If no port number is specified, the protocol uses the default value. Each transmission protocol has its default port number.
+In OBS, the default HTTP port number is 80 and that of HTTPS is 443.
No
The message length (excluding headers) defined in RFC 2616
Type: string
No default value.
-Conditional: required for PUT requests and those requests that load XML content.
+Conditional: optional for PUT requests, but mandatory for the requests that load XML content
Conditionally required
Host
The host address. For example, bucketname.obs.region.example.com.
+The host address, for example, bucketname.obs.region.example.com.
Type: string
No default value.
For all API operations, the most common identity authentication is to carry signatures in headers.
In the header, the signature is carried in the authorization header field of the HTTP message. The format of the message header is as follows:
Authorization: OBS AccessKeyID:signature-
The signature algorithm process is as follows:
+The signature calculation process is as follows:
1. Construct the request character string (StringToSign).
2. Perform UTF-8 encoding on the result obtained from the preceding step.
3. Use the SK to perform the HMAC-SHA1 signature calculation on the result obtained from step 2.
@@ -50,14 +50,14 @@CanonicalizedHeaders
OBS request header field in an HTTP request header, referring to header fields started with x-obs-, for example, x-obs-date, x-obs-acl, and x-obs-meta-*.
-CanonicalizedResource
Indicates the OBS resource specified by an HTTP request. This parameter is constructed as follows:
<Bucket name + Object name> + [Subresource 1] + [Subresource 2] + ...
-OBS supports a variety of sub-resources, including acl, attname, cors, customdomain, delete, deletebucket, encryption, length, lifecycle, location, logging, metadata, modify, name, notification, partNumber, policy, position, quota, replication, response-cache-control, response-content-disposition, response-content-encoding, response-content-language, response-content-type, response-expires, restore, storageClass, storagePolicy, storageinfo, tagging, torrent, uploadId, uploads, versionId, versioning, versions, website, and x-obs-security-token.
+OBS supports a variety of sub-resources, including acl, attname, cors, customdomain, delete, deletebucket, encryption, length, lifecycle, location, logging, metadata, modify, name, notification, partNumber, policy, position, quota, rename, replication, response-cache-control, response-content-disposition, response-content-encoding, response-content-language, response-content-type, response-expires, restore, storageClass, storagePolicy, storageinfo, tagging, torrent, truncate, uploadId, uploads, versionId, versioning, versions, website, and x-obs-security-token.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 | import java.security.MessageDigest;
-import sun.misc.BASE64Encoder;
-import java.io.UnsupportedEncodingException;
-import java.security.NoSuchAlgorithmException;
+ |
Signature = Base64( HMAC-SHA1( YourSecretAccessKeyID, UTF-8-Encoding-Of( StringToSign ) ) )
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 - 38 - 39 - 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 - 48 - 49 - 50 - 51 - 52 - 53 - 54 - 55 - 56 - 57 - 58 - 59 - 60 - 61 - 62 - 63 - 64 - 65 - 66 - 67 - 68 - 69 - 70 - 71 - 72 - 73 - 74 - 75 - 76 - 77 - 78 - 79 - 80 - 81 - 82 - 83 - 84 - 85 - 86 - 87 - 88 - 89 - 90 - 91 - 92 - 93 - 94 - 95 - 96 - 97 - 98 - 99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172 -173 -174 -175 -176 -177 -178 -179 -180 -181 -182 -183 -184 -185 -186 -187 -188 -189 -190 -191 -192 -193 -194 -195 -196 -197 -198 -199 -200 -201 -202 -203 -204 -205 -206 -207 -208 -209 -210 -211 -212 -213 -214 -215 -216 -217 -218 -219 -220 | import java.io.UnsupportedEncodingException;
-import java.net.URLEncoder;
-import java.security.InvalidKeyException;
-import java.security.NoSuchAlgorithmException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Base64;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import java.util.TreeMap;
+ |
The calculation result of the signature is ydH8ffpcbS6YpeOMcEZfn0wE90c=, which varies depending on the execution time.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 | import sys
+ |
The calculation result of the signature is ydH8ffpcbS6YpeOMcEZfn0wE90c=, which varies depending on the execution time.
diff --git a/docs/obs/api-ref/obs_04_0011.html b/docs/obs/api-ref/obs_04_0011.html index 14e48aebb..b6f7fdd20 100644 --- a/docs/obs/api-ref/obs_04_0011.html +++ b/docs/obs/api-ref/obs_04_0011.html @@ -105,7 +105,7 @@ Host: bucketname.obs.region.example.com<Indicates the OBS resource specified by an HTTP request. This parameter is constructed as follows:
<Bucket name + Object name> + [Subresource 1] + [Subresource 2] + ...
-OBS supports a variety of sub-resources, including acl, attname, cors, customdomain, delete, deletebucket, encryption, length, lifecycle, location, logging, metadata, modify, name, notification, partNumber, policy, position, quota, replication, response-cache-control, response-content-disposition, response-content-encoding, response-content-language, response-content-type, response-expires, restore, storageClass, storagePolicy, storageinfo, tagging, torrent, uploadId, uploads, versionId, versioning, versions, website, and x-obs-security-token.
+OBS supports a variety of sub-resources, including acl, attname, cors, customdomain, delete, deletebucket, encryption, length, lifecycle, location, logging, metadata, modify, name, notification, partNumber, policy, position, quota, rename, replication, response-cache-control, response-content-disposition, response-content-encoding, response-content-language, response-content-type, response-expires, restore, storageClass, storagePolicy, storageinfo, tagging, torrent, truncate, uploadId, uploads, versionId, versioning, versions, website, and x-obs-security-token.
curl http(s)://examplebucket.obs.region.example.com/objectkey?AccessKeyId=AccessKeyID\&Expires=1532779451\&Signature=0Akylf43Bm3mD1bh2rM3dmVp1Bo%3D -X GET -o output
If you want to use the pre-defined URL generated by the signature carried in the URL in the browser, do not use Content-MD5, Content-Type, or CanonicalizedHeaders that can only be carried in the header to calculate the signature. Otherwise, the browser cannot carry these parameters. After the request is sent to the server, a message is displayed indicating that the signature is incorrect.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 - 38 - 39 - 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 - 48 - 49 - 50 - 51 - 52 - 53 - 54 - 55 - 56 - 57 - 58 - 59 - 60 - 61 - 62 - 63 - 64 - 65 - 66 - 67 - 68 - 69 - 70 - 71 - 72 - 73 - 74 - 75 - 76 - 77 - 78 - 79 - 80 - 81 - 82 - 83 - 84 - 85 - 86 - 87 - 88 - 89 - 90 - 91 - 92 - 93 - 94 - 95 - 96 - 97 - 98 - 99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172 -173 -174 -175 -176 -177 -178 -179 -180 -181 -182 -183 -184 -185 -186 -187 -188 -189 -190 -191 -192 -193 -194 -195 -196 -197 -198 -199 -200 -201 -202 -203 -204 -205 -206 -207 -208 -209 -210 -211 -212 -213 -214 -215 -216 -217 -218 -219 -220 -221 -222 -223 -224 -225 -226 -227 -228 -229 -230 -231 -232 -233 -234 -235 -236 -237 -238 -239 -240 -241 -242 -243 -244 -245 -246 | import java.io.UnsupportedEncodingException;
-import java.net.URLEncoder;
-import java.security.InvalidKeyException;
-import java.security.NoSuchAlgorithmException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Base64;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import java.util.TreeMap;
+ |
The policy conditions can be matched in the following ways:
+The table below describes how policy conditions can be matched.
Matching Method |
@@ -127,7 +127,7 @@ Signature = Base64( HMAC-SHA1( YourSecretAccessKeyID, StringToSign ) )
|---|
Character After Escape |
diff --git a/docs/obs/api-ref/obs_04_0015.html b/docs/obs/api-ref/obs_04_0015.html
index ea2cb22a4..c77ad3ee1 100644
--- a/docs/obs/api-ref/obs_04_0015.html
+++ b/docs/obs/api-ref/obs_04_0015.html
@@ -7,288 +7,287 @@
|---|
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 | package com.obsclient;
+ |
The format of the Date header field DateUtils is as follows:
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 | package com.obsclient;
+ |
The method of calculating the signature character string is as follows:
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 | package com.obsclient;
+ |
In this example, an Apache HttpClient is used.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 | package com.obsclient;
+ |
The format of the Date header field DateUtils is as follows:
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 | package com.obsclient;
+ |
The method of calculating the signature character string is as follows:
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 | package com.obsclient;
+ |
In this example, an Apache HttpClient is used.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 - 38 - 39 - 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 - 48 - 49 - 50 - 51 - 52 - 53 - 54 - 55 - 56 - 57 - 58 - 59 - 60 - 61 - 62 - 63 - 64 - 65 - 66 - 67 - 68 - 69 - 70 - 71 - 72 - 73 - 74 - 75 - 76 - 77 - 78 - 79 - 80 - 81 - 82 - 83 - 84 - 85 - 86 - 87 - 88 - 89 - 90 - 91 - 92 - 93 - 94 - 95 - 96 - 97 - 98 - 99 -100 -101 -102 -103 -104 -105 -106 | package com.obsclient;
+ |
The format of the Date header field DateUtils is as follows:
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 | package com.obsclient;
+ |
The method of calculating the signature character string is as follows:
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 | package com.obsclient;
+ |
You can perform this operation to list all buckets that you have created.
1 -2 -3 -4 | GET / HTTP/1.1
-Host: obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET / HTTP/1.1 +Host: obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no parameters.
This request header uses common message fields. For details, see Table 3.
+The operation message header is the same as that of a common request. For details, see Table 3. However, this request can contain additional headers. The following table describes the additional headers for this request.
+ +Header + |
+Description + |
+Mandatory + |
+
|---|---|---|
x-obs-bucket-type + |
+This header field is used to specify the content to be obtained. +Value: +
If this header is not carried, the list of all buckets and parallel file systems is obtained. +Type: string +Example: x-obs-bucket-type: POSIX + |
+No + |
+
The request does not use request elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 | GET HTTP/1.1 status_code
-Content-Type: type
-Date: date
-Content-Length: length
+ |
The response to the request uses common headers. For details, see Table 1.
This response contains the XML list of buckets owned by the user. Table 1 describes the elements.
+This response contains the XML list of buckets owned by the user. Table 2 describes the elements.
-Element +
Error ResponsesNo special error responses are involved. For details about error responses, see Table 2. +Error ResponsesNo special error responses are returned. For details about error responses, see Table 2. Sample Request
Sample Request
Sample Response
diff --git a/docs/obs/api-ref/obs_04_0021.html b/docs/obs/api-ref/obs_04_0021.html
index 0c417b69f..fdc297f60 100644
--- a/docs/obs/api-ref/obs_04_0021.html
+++ b/docs/obs/api-ref/obs_04_0021.html
@@ -2,33 +2,36 @@
Creating a BucketFunctionsThis operation is used to create a bucket with a specified name. -
A bucket name must be unique in OBS. If a user creates a bucket with the same name as that of an existing bucket under the same account and in the same region, a 200 code (indicating success) is returned. In scenarios other than the preceding one, the request for creating a bucket with the same name as that of an existing one will receive the 409 code (indicating that a namesake bucket already exists). To set an access control policy for the bucket to be created, you can add the x-obs-acl parameter to request headers. Storage ClassYou can create buckets with different storage classes. The x-obs-storage-class header in a bucket creation request specifies the default storage class for a bucket. The storage class of the objects in a bucket is the same as that of the bucket. There are three storage classes: STANDARD (Standard storage class), WARM (Warm storage class), and COLD (Cold storage class) If this header is not in the request, the storage class of the created bucket is Standard. +Storage ClassYou can create buckets with different storage classes. The x-obs-storage-class header in a bucket creation request specifies the storage class for a bucket. If you do not specify a storage class when you upload an object to the bucket, the object inherits the storage class of the bucket. There are three storage classes: STANDARD (Standard storage class), WARM (Warm storage class), and COLD (Cold storage class) If this header is not in the request, the storage class of the created bucket is Standard. If the storage class of an object is not specified when it is uploaded to a bucket (see Uploading Objects - PUT), the object will be stored in the default storage class of the bucket. -
Request Syntax
Request ParametersThis request contains no parameter. +Request ParametersThis request contains no parameters. Request HeadersThe operation message header is the same as that of a common request. For details, see Table 3. However, this request can contain additional headers. The following table describes the additional headers for this request. @@ -119,13 +122,13 @@ Authorization: authorizationNo | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x-obs-epid + | |||||||||||||||||
x-obs-fs-file-interface |
-Enterprise project ID, which can be obtained from the enterprise project service. The value is a universally unique identifier (UUID). The value of a default enterprise project is 0 or does not contain this header. Users who have not enabled the enterprise project service do not need to carry this header either. -Type: string -Example: x-obs-epid:9892d768-2d13-450f-aac7-ed0e44c2585f + | This header can be carried when you create a bucket as a parallel file system. +Type: string +Example: x-obs-fs-file-interface:Enabled |
-No + | No |
1 -2 -3 -4 | HTTP/1.1 status_code
-Location: location
-Date: date
-Content-Length: length
- |
1 +2 +3 +4 | HTTP/1.1 status_code +Location: location +Date: date +Content-Length: length + |
The response to the request uses common headers. For details, see Table 1.
This response involves no elements.
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
Create a bucket.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | PUT / HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:25:05 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:75/Y4Ng1izvzc1nTGxpMXTE6ynw=
-Content-Length: 157
+ |
1 -2 -3 -4 -5 -6 -7 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016435CE298386946AE4C482
-Location: /examplebucket
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCT9W2tcvLmMJ+plfdopaD62S0npbaRUz
-Date: WED, 01 Jul 2015 02:25:06 GMT
-Content-Length: 0
- |
Create a bucket with a specified ACL and storage class.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 | PUT / HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:25:05 GMT
+ |
1 +2 +3 +4 +5 +6 +7 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF260000016435CE298386946AE4C482 +Location: /examplebucket +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCT9W2tcvLmMJ+plfdopaD62S0npbaRUz +Date: WED, 01 Jul 2015 02:25:06 GMT +Content-Length: 0 + |
Create a parallel file system.
+1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 | PUT / HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 02:25:05 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:75/Y4Ng1izvzc1nTGxpMXTE6ynw= +Content-Length: 157 +x-obs-fs-file-interface: Enabled + +<CreateBucketConfiguration xmlns="http://obs.region.example.com/doc/2015-06-30/"> +<Location>region</Location> +</CreateBucketConfiguration> + |
1 +2 +3 +4 +5 +6 +7 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF260000016435CE298386946AE4C482 +Location: /examplebucket +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCT9W2tcvLmMJ+plfdopaD62S0npbaRUz +Date: WED, 01 Jul 2015 02:25:06 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 -7 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016435CE298386946AE4C482
-Location: /examplebucket
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCT9W2tcvLmMJ+plfdopaD62S0npbaRUz
-Date: WED, 01 Jul 2015 02:25:06 GMT
-Content-Length: 0
- |
If you specify only the bucket name in the request URI, for example GET /BucketName, OBS returns descriptions for some or all objects (a maximum of 1000 objects) in the bucket. If you also specify one or more parameters among prefix, marker, max-keys, and delimiter in the request, OBS returns a list of objects as specified.
You can also add the versions parameter to the request to list multiple versions of an object in a bucket.
1 -2 -3 -4 | GET / HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 +5 | GET / HTTP/1.1 + +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
1 +2 +3 +4 | GET /?versions HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
1 -2 -3 -4 | GET /?versions HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
This request uses parameters to list some objects in a bucket. Table 1 describes the parameters.
@@ -45,7 +49,7 @@ Authorization: authorizationmarker
Specifies a marker when listing objects in a bucket. With a marker configured, objects after this marker will be returned in alphabetical order.
+Specifies a marker when listing objects in a bucket. With a marker configured, objects after this marker will be returned in alphabetical order. This field is used only for listing objects.
Type: string
No
@@ -70,7 +74,7 @@ Authorization: authorizationkey-marker
Position to start with when objects are listed
+Position to start with when objects are listed. This field is used only for listing versioned objects.
Type: string
Valid value: value of NextKeyMarker in the response body of the last request
version-id-marker
This parameter applies only to versioning objects.
+This parameter applies only when versioning is enabled.
Specifies the version ID to start with when objects in a bucket are listed. Objects are listed in alphabetical order (a maximum of 1,000 objects are displayed at a time). This parameter is used together with the key-marker in the request. If the value of version-id-marker is not a version ID specified by key-marker, version-id-marker is invalid.
Type: string
Valid value: object version ID, that is, the value of NextVersionIdMarker in the response body of the last request
@@ -95,19 +99,20 @@ Authorization: authorizationThis request contains no elements.
1 -2 -3 -4 -5 -6 | HTTP/1.1 status_code
-Date: date
-x-obs-bucket-location: region
-Content-Type: application/xml
-Content-Length: length
-<Response Body>
- |
1 +2 +3 +4 +5 +6 | HTTP/1.1 status_code +Date: date +x-obs-bucket-location: region +Content-Type: application/xml +Content-Length: length +<Response Body> + |
The response to the request uses common headers. For details, see Table 1.
ETag
128-bit MD5 digest of the Base64 code of an object. ETag is the unique identifier of the object content. It can be used to identify whether the object content is changed. For example, if ETag value is A when an object is uploaded and the ETag value has changed to B when the object is downloaded, it indicates that the object content is changed. The actual ETag is the hash value of the object, which only reflects the changed content rather than the metadata. An uploaded object or copied object has a unique ETag after being encrypted using MD5. (If the object is encrypted on the server side, the ETag value is not the MD5 digest of the object, but the unique identifier calculated through server-side encryption.)
+128-bit MD5 digest of the Base64 code of an object. ETag is the unique identifier of the object content. It can be used to identify whether the object content is changed. For example, if the ETag value is A when an object is uploaded, but this value has changed to B when the object is downloaded, it indicates that the object content has been changed. The ETag value is a hash of the object, which reflects changes only to the object content, rather than its metadata. An uploaded object or copied object has a unique ETag after being encrypted using MD5. (If the object is encrypted on the server side, the ETag value is not the MD5 digest of the object, but the unique identifier calculated through server-side encryption.)
Type: string
Ancestor: ListBucketResult.Contents
Owner
User information, including the domain ID and username
+User information, including the domain ID and name of the object owner
Type: XML
Ancestor: ListBucketResult.Contents
ID
+Domain ID of the object owner
+Type: string
+Ancestor: ListVersionsResult.Contents.Owner
+DisplayName
+Name of the object owner
+Type: string
+Ancestor: ListVersionsResult.Contents.Owner
+Prefix
Prefix of an object name. Only objects whose names have this prefix are listed.
@@ -240,8 +259,8 @@ Content-Length: lengthStorageClass
Storage class of an object
-Type: enumeration
-Valid value: STANDARD | WARM | COLD
+Type: string
+Value options: STANDARD | WARM | COLD
Ancestor: ListBucketResult.Contents
ETag
128-bit MD5 digest of the Base64 code of an object. ETag is the unique identifier of the object content. It can be used to identify whether the object content is changed. The actual ETag is the hash value of the object. For example, if ETag value is A when an object is uploaded and the ETag value has changed to B when the object is downloaded, it indicates that the object content is changed. The ETag only reflects the changed content rather than the metadata. An uploaded object or copied object has a unique ETag after being encrypted using MD5.
+128-bit MD5 digest of the Base64 code of an object. ETag is the unique identifier of the object content. It can be used to identify whether the object content is changed. The actual ETag is the hash value of the object. For example, if the ETag value is A when an object is uploaded, but this value has changed to B when the object is downloaded, it indicates that the object content has been changed. The ETag reflects changes only to the object content, rather than its metadata. An uploaded object or copied object has a unique ETag after being encrypted using MD5.
Type: string
Ancestor: ListVersionsResult.Version
Owner
User information, including the domain ID and username
+User information, including the domain ID and name of the object owner
Type: container
Ancestor: ListVersionsResult.Version | ListVersionsResult.DeleteMarker
ID
ID of the domain to which the object owner belongs
+Domain ID of the object owner
Type: string
Ancestor: ListVersionsResult.Version.Owner | ListVersionsResult.DeleteMarker.Owner
DisplayName
+Name of the object owner
+Type: string
+Ancestor: ListVersionsResult.Version.Owner | ListVersionsResult.DeleteMarker.Owner
+StorageClass
Storage class of an object
-Type: enumeration
+Type: string
Ancestor: ListVersionsResult.Version
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
List all objects.
-1 -2 -3 -4 -5 -6 | GET / HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:28:25 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:KiyoYze4pmRNPYfmlXBfRTVxt8c=
- |
1 +2 +3 +4 +5 +6 | GET / HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 02:28:25 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:KiyoYze4pmRNPYfmlXBfRTVxt8c= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016435D34E379ABD93320CB9
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSXiN7GPL/yXM6OSBaYCUV1zcY5OelWp
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 02:23:30 GMT
-Content-Length: 586
+Sample Response 1
|
Filter objects.
-Assuming that you have a bucket examplebucket that contains objects newfile, obj001, obj002, and obs001. If you want to list only object obj002, the request message is as follows:
+Assume that you have a bucket examplebucket that contains objects newfile, obj001, obj002, and obs001. If you want to list only object obj002, the request message is as follows:
GET /?marker=obj001&prefix=obj HTTP/1.1 User-Agent: curl/7.29.0 Host: examplebucket.obs.region.example.com @@ -498,134 +528,141 @@ Accept: */* Date: WED, 01 Jul 2015 02:28:25 GMT Authorization: OBS H4IPJX0TQTHTHEBQQCEC:KiyoYze4pmRNPYfmlXBfRTVxt8c=
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016435D758FBA857E0801874
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCShn/xAyk/xHBX6qgGSB36WXrbco0X80
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 02:29:48 GMT
-Content-Length: 707
+ |
Versioning
-1 -2 -3 -4 -5 -6 | GET /?versions HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:29:45 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:iZeDESIMxBK2YODk7vIeVpyO8DI=
- |
1 +2 +3 +4 +5 +6 | GET /?versions HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 02:29:45 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:iZeDESIMxBK2YODk7vIeVpyO8DI= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016435D758FBA857E0801874
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCShn/xAyk/xHBX6qgGSB36WXrbco0X80
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 02:29:48 GMT
-Content-Length: 707
+Sample Response 3
|
This operation queries the metadata of a bucket. To use this operation, you must have the permission to read the bucket.
1 -2 -3 -4 | HEAD / HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | HEAD / HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no parameters.
This request uses common headers. For details, see Table 3.
Table 1 lists the header fields required when obtaining CORS configuration information.
@@ -48,13 +49,14 @@ Authorization: authorizationThis request contains no elements.
1 -2 -3 | HTTP/1.1 status_code
-x-obs-bucket-location: region
-Date: date
- |
1 +2 +3 | HTTP/1.1 status_code +x-obs-bucket-location: region +Date: date + |
x-obs-storage-class
Default storage class of the bucket. The options are as follows: STANDARD (Standard storage class), WARM (Warm storage class), and COLD (Cold storage class).
+Default storage class of the bucket. The options are as follows: STANDARD (Standard), WARM (Warm), and COLD (Cold).
Type: string
Type: string
-x-obs-epid
+x-obs-fs-file-interface
Enterprise project ID of the current bucket.
-Type: string
+Indicates whether the bucket is a parallel file system. The value can be Enabled (parallel file system).
+If this header field is not carried, the bucket is not a parallel file system.
+Type: string
Access-Control-Allow-Origin
@@ -126,95 +129,99 @@ Date: dateThis response involves no elements.
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
No header field for obtaining CORS configuration is carried.
-1 -2 -3 -4 -5 -6 | HEAD / HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:30:25 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:niCQCuGIZpETKIyx1datxHZyYlk=
- |
1 +2 +3 +4 +5 +6 | HEAD / HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 02:30:25 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:niCQCuGIZpETKIyx1datxHZyYlk= + |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF260000016439C734E0788404623FA8 +Content-Type: application/xml +x-obs-storage-class: STANDARD +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSxwLpq9Hzf3OnaXr+pI/OPLKdrtiQAF +Date: WED, 01 Jul 2015 02:30:25 GMT +x-obs-bucket-location: region +x-obs-version: 3.0 +Content-Length: 0 + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016439C734E0788404623FA8
-Content-Type: application/xml
-x-obs-storage-class: STANDARD
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSxwLpq9Hzf3OnaXr+pI/OPLKdrtiQAF
-Date: WED, 01 Jul 2015 02:30:25 GMT
-x-obs-bucket-location: region
-x-obs-version: 3.0
-Content-Length: 0
- |
Obtain bucket metadata and CORS configuration information after CORS is configured for the bucket.
-1 -2 -3 -4 -5 -6 -7 -8 | HEAD / HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:30:25 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:niCQCuGIZpETKIyx1datxHZyYlk=
+ |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 +13 +14 +15 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF260000016439C734E0788404623FA8 +Content-Type: application/xml +x-obs-storage-class: STANDARD +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSxwLpq9Hzf3OnaXr+pI/OPLKdrtiQAF +Date: WED, 01 Jul 2015 02:30:25 GMT +x-obs-bucket-location: region +Access-Control-Allow-Origin: www.example.com +Access-Control-Allow-Methods: POST,GET,HEAD,PUT +Access-Control-Allow-Headers: AllowedHeader_1 +Access-Control-Max-Age: 100 +Access-Control-Expose-Headers: ExposeHeader_1 +x-obs-version: 3.0 +Content-Length: 0 + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016439C734E0788404623FA8
-Content-Type: application/xml
-x-obs-storage-class: STANDARD
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSxwLpq9Hzf3OnaXr+pI/OPLKdrtiQAF
-Date: WED, 01 Jul 2015 02:30:25 GMT
-x-obs-bucket-location: region
-Access-Control-Allow-Origin: www.example.com
-Access-Control-Allow-Methods: POST,GET,HEAD,PUT
-Access-Control-Allow-Headers: AllowedHeader_1
-Access-Control-Max-Age: 100
-Access-Control-Expose-Headers: ExposeHeader_1
-x-obs-version: 3.0
-Content-Length: 0
- |
This operation obtains the location of a bucket. To use this operation, you must have the permission to read the bucket.
1 -2 -3 -4 | GET /?location HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?location HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameters.
This request contains no elements.
1 -2 -3 -4 -5 -6 -7 | HTTP/1.1 status_code
-Date: date
-Content-Type: type
-Content-Length: length
+ |
The response to the request uses common headers. For details, see Table 1.
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | GET /?location HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:30:25 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:1DrmbCV+lhz3zV7uywlj7lrh0MY=
- |
1 +2 +3 +4 +5 +6 | GET /?location HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 02:30:25 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:1DrmbCV+lhz3zV7uywlj7lrh0MY= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016435D9F27CB2758E9B41A5
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSKWoJmaMyRXqofHgapbETDyI2LM9rUw
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 02:30:25 GMT
-Content-Length: 128
+Sample Response
|
Note:
If the server returns a 5XX error or times out when a bucket is being deleted, the system needs to synchronize the bucket information. During this period, the bucket information may be inaccurate. Therefore, wait a while and then check whether the bucket is successfully deleted. If the bucket can still be queried, send the deletion request again.
1 -2 -3 -4 | DELETE / HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | DELETE / HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common request headers. For details, see Table 3.
This request involves no elements.
1 -2 | HTTP/1.1 status_code
-Date: date
- |
1 +2 | HTTP/1.1 status_code +Date: date + |
The response to the request uses common headers. For details, see Table 1.
This response involves no elements.
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | DELETE / HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:31:25 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA=
- |
1 +2 +3 +4 +5 +6 | DELETE / HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 02:31:25 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA= + |
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +Server: OBS +x-obs-request-id: BF260000016435DE6D67C35F9B969C47 +x-obs-id-2: 32AAAQAAEAABKAAQAAEAABAAAQAAEAABCTukraCnXLsb7lEw4ZKjzDWWhzXdgme3 +Date: WED, 01 Jul 2015 02:31:25 GMT + |
1 -2 -3 -4 -5 | HTTP/1.1 204 No Content
-Server: OBS
-x-obs-request-id: BF260000016435DE6D67C35F9B969C47
-x-obs-id-2: 32AAAQAAEAABKAAQAAEAABAAAQAAEAABCTukraCnXLsb7lEw4ZKjzDWWhzXdgme3
-Date: WED, 01 Jul 2015 02:31:25 GMT
- |
This operation creates or modifies policies for buckets. If the specified bucket already has a policy, the policy in the request will overwrite the existing one. There is no limit on the number of bucket policies (statements) for a bucket. However, the total size of JSON descriptions of all bucket policies in a bucket cannot exceed 20 KB.
To perform this operation, the user must be the bucket owner or the bucket owner's IAM user that has permissions required for configuring bucket policies.
1 -2 -3 -4 -5 | PUT /?policy HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: signatureValue
-Policy written in JSON
- |
1 +2 +3 +4 +5 | PUT /?policy HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: signatureValue +Policy written in JSON + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
The request body is a JSON string containing bucket policy information.
+The request body is a JSON string that contains the bucket policy information.
+1 +2 +3 | HTTP/1.1 status_code +Date: date +Content-Length: length + |
1 -2 -3 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
- |
The response to the request uses common headers. For details, see Table 1.
Grant permissions to an OBS tenant.
Grant permissions to the tenant whose ID is 783fc6652cf246c096ea836694f71855.
For details about how to obtain the tenant ID, see Obtaining the Domain ID and User ID.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 | PUT /?policy HTTP/1.1
-Host: examplebucket.obs.region.example.com
-Date: WED, 01 Jul 2015 02:32:25 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA=
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 204 No Content +x-obs-request-id: 7B6DFC9BC71DD58B061285551605709 +x-obs-id-2: N0I2REZDOUJDNzFERDU4QjA2MTI4NTU1MTYwNTcwOUFBQUFBQUFBYmJiYmJiYmJD +Date: WED, 01 Jul 2015 02:32:25 GMT +Content-Length: 0 +Server: OBS + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 204 No Content
-x-obs-request-id: 7B6DFC9BC71DD58B061285551605709
-x-obs-id-2: N0I2REZDOUJDNzFERDU4QjA2MTI4NTU1MTYwNTcwOUFBQUFBQUFBYmJiYmJiYmJD
-Date: WED, 01 Jul 2015 02:32:25 GMT
-Content-Length: 0
-Server: OBS
- |
Grant permissions to an OBS user.
The user ID is 71f3901173514e6988115ea2c26d1999, and the account ID is 783fc6652cf246c096ea836694f71855.
For details about how to obtain the account ID and user ID, see Obtaining the Domain ID and User ID.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 | PUT /?policy HTTP/1.1
-Host: examplebucket.obs.region.example.com
-Date: WED, 01 Jul 2015 02:33:28 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA=
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 204 No Content +x-obs-request-id: 7B6DFC9BC71DD58B061285551605709 +x-obs-id-2: N0I2REZDOUJDNzFERDU4QjA2MTI4NTU1MTYwNTcwOUFBQUFBQUFBYmJiYmJiYmJD +Date: WED, 01 Jul 2015 02:33:28 GMT +Content-Length: 0 +Server: OBS + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 204 No Content
-x-obs-request-id: 7B6DFC9BC71DD58B061285551605709
-x-obs-id-2: N0I2REZDOUJDNzFERDU4QjA2MTI4NTU1MTYwNTcwOUFBQUFBQUFBYmJiYmJiYmJD
-Date: WED, 01 Jul 2015 02:33:28 GMT
-Content-Length: 0
-Server: OBS
- |
Deny all users except the specified one all the operation permissions.
The user ID is 71f3901173514e6988115ea2c26d1999, and the account ID is 783fc6652cf246c096ea836694f71855.
For details about how to obtain the account ID and user ID, see Obtaining the Domain ID and User ID.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 | PUT /?policy HTTP/1.1
-Host: examplebucket.obs.region.example.com
-Date: WED, 01 Jul 2015 02:34:34 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA=
-
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 204 No Content +x-obs-request-id: A603000001604A7DFE4A4AF31E301891 +x-obs-id-2: BKOvGmTlt6sda5X4G89PuMO4fabObGYmnpRGkaMba1LqPt0fCACEuCMllAObRK1n +Date: WED, 01 Jul 2015 02:34:34 GMT +Content-Length: 0 +Server: OBS + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 204 No Content
-x-obs-request-id: A603000001604A7DFE4A4AF31E301891
-x-obs-id-2: BKOvGmTlt6sda5X4G89PuMO4fabObGYmnpRGkaMba1LqPt0fCACEuCMllAObRK1n
-Date: WED, 01 Jul 2015 02:34:34 GMT
-Content-Length: 0
-Server: OBS
- |
Request to allow only the specified domain name and external link requests that have no referer headers by using the URL validation whitelist.
URL validation whitelist: http://storage.example.com
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 | PUT /?policy HTTP/1.1
-Host: examplebucket.obs.region.example.com
-Date: WED, 01 Jul 2015 02:34:34 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA=
-
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 204 No Content +x-obs-request-id: A603000001604A7DFE4A4AF31E301891 +x-obs-id-2: BKOvGmTlt6sda5X4G89PuMO4fabObGYmnpRGkaMba1LqPt0fCACEuCMllAObRK1n +Date: WED, 01 Jul 2015 02:34:34 GMT +Content-Length: 0 +Server: OBS + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 204 No Content
-x-obs-request-id: A603000001604A7DFE4A4AF31E301891
-x-obs-id-2: BKOvGmTlt6sda5X4G89PuMO4fabObGYmnpRGkaMba1LqPt0fCACEuCMllAObRK1n
-Date: WED, 01 Jul 2015 02:34:34 GMT
-Content-Length: 0
-Server: OBS
- |
This operation cannot be performed in the following scenarios, and the 404 error code "NoSuchBucketPolicy" is returned:
1 -2 -3 -4 | GET /?policy HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?policy HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 -2 -3 -4 | HTTP/1.1 status_code
-Content-Type: application/xml
-Date: date
-Policy Content
- |
1 +2 +3 +4 | HTTP/1.1 status_code +Content-Type: application/xml +Date: date +Policy Content + |
The response to the request uses common headers. For details, see Table 1.
The response body is a JSON string containing bucket policy information.
+The response body is a JSON string that contains the bucket policy information.
No special error responses are returned. For details, see Table 2.
1 -2 -3 -4 | GET /?policy HTTP/1.1
-Host: examplebucket.obs.region.example.com
-Date: WED, 01 Jul 2015 02:35:46 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA=
- |
1 +2 +3 +4 | GET /?policy HTTP/1.1 +Host: examplebucket.obs.region.example.com +Date: WED, 01 Jul 2015 02:35:46 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 | HTTP/1.1 200 OK
-x-obs-request-id: A603000001604A7DFE4A4AF31E301891
-x-obs-id-2: BKOvGmTlt6sda5X4G89PuMO4fabObGYmnpRGkaMba1LqPt0fCACEuCMllAObRK1n
-Date: WED, 01 Jul 2015 02:35:46 GMT
-Content-Length: 509
-Server: OBS
+Sample Response
|
To perform this operation, the user must be the bucket owner or the bucket owner's IAM user that has permissions required for deleting bucket policies.
The 204 error code "No Content" is returned regardless of whether a requested bucket policy exists or not.
1 -2 -3 -4 | DELETE /?policy HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | DELETE /?policy HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 -2 -3 -4 | HTTP/1.1 status_code
-Date: date
-Content-Type: text/xml
-Content-Length: length
- |
1 +2 +3 +4 | HTTP/1.1 status_code +Date: date +Content-Type: text/xml +Content-Length: length + |
The response to the request uses common headers. For details, see Table 1.
No special error responses are returned. For details, see Table 2.
1 -2 -3 -4 | DELETE /?policy HTTP/1.1
-Host: examplebucket.obs.region.example.com
-Date: WED, 01 Jul 2015 02:36:06 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA=
- |
1 +2 +3 +4 | DELETE /?policy HTTP/1.1 +Host: examplebucket.obs.region.example.com +Date: WED, 01 Jul 2015 02:36:06 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA= + |
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +x-obs-request-id: 9006000001643AAAF70BF6152D71BE8A +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSB4oWmNX3gVGGLr1cRPWjOhffEbq1XV +Date: WED, 01 Jul 2015 02:36:06 GMT +Server: OBS + |
1 -2 -3 -4 -5 | HTTP/1.1 204 No Content
-x-obs-request-id: 9006000001643AAAF70BF6152D71BE8A
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSB4oWmNX3gVGGLr1cRPWjOhffEbq1XV
-Date: WED, 01 Jul 2015 02:36:06 GMT
-Server: OBS
- |
This operation controls access permissions for buckets. By default, only the creator of a bucket has the permission to read and write the bucket. You can also set other access permissions. For example, you can set a public read policy to grant the read permission to all users.
-You can configure an ACL when creating a bucket, and modify or obtain the ACLs of existing buckets using the API operations. A bucket ACL supports a maximum of 100 grants.
+You can configure an ACL when creating a bucket, and modify or obtain the ACLs of existing buckets using the API operations. A bucket ACL supports a maximum of 100 grants. The PUT method is idempotent. With this method, a new bucket ACL will overwrite the previous bucket ACL. To modify or delete an ACL, you just need to create a new one using the PUT method.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 | PUT /?acl HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
-Content-Type: application/xml
-Content-Length: length
+ |
This request contains no parameters.
Grants permissions to all users.
Value range: Everyone
-Type: Enumeration
+Type: string
No
Delivered
Indicates whether the bucket ACL is applied to all objects in the bucket.
-Type: boolean The default value is false.
+Type: boolean
+Default value: false
No
Permission
Permissions to be granted
-Value options: READ | WRITE | FULL_CONTROL
-Type: Enumeration
+Permissions to be granted.
+Value options: READ | READ_ACP | WRITE | WRITE_ACP | FULL_CONTROL
+Type: string
No
1 -2 -3 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
- |
1 +2 +3 | HTTP/1.1 status_code +Date: date +Content-Length: length + |
The response to the request uses common headers. For details, see Table 1.
No special error responses are returned. For details, see Table 2.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 | PUT /?acl HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:37:22 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:iqSPeUBl66PwXDApxjRKk6hlcN4=
-Content-Length: 727
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF2600000164361F2954B4D063164704 +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCT78HTIBuhe0FbtSptrb/akwELtwyPKs +Date: WED, 01 Jul 2015 02:37:22 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF2600000164361F2954B4D063164704
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCT78HTIBuhe0FbtSptrb/akwELtwyPKs
-Date: WED, 01 Jul 2015 02:37:22 GMT
-Content-Length: 0
- |
This operation returns the ACL information of a bucket. To obtain the ACL of a bucket, you need to have the READ_ACP or FULL_CONTROL permission for the bucket.
1 -2 -3 -4 | GET /?acl HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?acl HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
-Content-Type: application/xml
+ |
The response to the request uses common headers. For details, see Table 1.
Canned
Grants permissions to all users.
-Type: Enumeration The value must be Everyone.
+Type: string. The value can only be Everyone.
Delivered
@@ -123,93 +125,95 @@ Content-Type: application/xml -No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | GET /?acl HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:39:28 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:X7HtzGsIEkzJbd8vo1DRu30vVrs=
- |
1 +2 +3 +4 +5 +6 | GET /?acl HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 02:39:28 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:X7HtzGsIEkzJbd8vo1DRu30vVrs= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016436B69D82F14E93528658
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSjTh8661+HF5y8uAnTOBIpNO133hji+
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 02:39:28 GMT
-Content-Length: 784
+Sample Response
|
To disable the bucket logging function, upload a logging file with an empty BucketLoggingStatus tag.
By default, a bucket whose storage class is Warm or Cold cannot be used for storing log files. Stored log files occupy storage space in a bucket. Therefore, users are charged for the logging service based on the pricing for data storage.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 | PUT /?logging HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: signatureValue
+ |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
1 | <TargetPrefix>YYYY-mm-DD-HH-MM-SS-<UniqueString>
- |
1 | <TargetPrefix>YYYY-mm-DD-HH-MM-SS-<UniqueString> + |
The following is an example of a log file name:
-1 | bucket-log2015-06-29-12-22-07-N7MXLAF1BDG7MPDV
- |
1 | bucket-log2015-06-29-12-22-07-N7MXLAF1BDG7MPDV + |
The following shows an access log delivered to the target bucket:
-1 | 787f2f92b20943998a4fe2ab75eb09b8 bucket [13/Aug/2015:01:43:42 +0000] xx.xx.xx.xx 787f2f92b20943998a4fe2ab75eb09b8 281599BACAD9376ECE141B842B94535B REST.GET.BUCKET.LOCATION - "GET /bucket?location HTTP/1.1" 200 - 211 - 6 6 "-" "HttpClient" - -
- |
1 | 787f2f92b20943998a4fe2ab75eb09b8 bucket [13/Aug/2015:01:43:42 +0000] xx.xx.xx.xx 787f2f92b20943998a4fe2ab75eb09b8 281599BACAD9376ECE141B842B94535B REST.GET.BUCKET.LOCATION - "GET /bucket?location HTTP/1.1" 200 - 211 - 6 6 "-" "HttpClient" - - + |
Each access log contains the following information:
Parameter @@ -345,83 +349,86 @@ Authorization: signatureValue |
|---|
1 -2 -3 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
- |
1 +2 +3 | HTTP/1.1 status_code +Date: date +Content-Length: length + |
The response to the request uses common headers. For details, see Table 1.
This response involves no elements.
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 | PUT /?logging HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:40:06 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:mCOjER/L4ZZUY9qr6AOnkEiwvVk=
-Content-Length: 528
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF26000001643663CE53B6AF31C619FD +x-obs-id-2: 32AAAQAAEAABSAAkpAIAABAAAQAAEAABCT9CjuOx8cETSRbqkm35s1dL/tLhRNdZ +Date: WED, 01 Jul 2015 02:40:06 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF26000001643663CE53B6AF31C619FD
-x-obs-id-2: 32AAAQAAEAABSAAkpAIAABAAAQAAEAABCT9CjuOx8cETSRbqkm35s1dL/tLhRNdZ
-Date: WED, 01 Jul 2015 02:40:06 GMT
-Content-Length: 0
- |
This operation queries the logging status of a bucket. It uses the logging sub-resource to return the logging status of a bucket.
Only the bucket owner or users granted the GetBucketLogging permission can query the bucket logging status.
1 -2 -3 -4 | GET /?logging HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?logging HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 | HTTP/1.1 status_code
-Content-Type: application/xml
-Date: date
-Content-Length: length
+ |
The response to the request uses common headers. For details, see Table 1.
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | GET /?logging HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 02:42:46 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:hUk+jTnR07hcKwJh4ousF2E1U3E=
- |
1 +2 +3 +4 +5 +6 | GET /?logging HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 02:42:46 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:hUk+jTnR07hcKwJh4ousF2E1U3E= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016436B8EEE7FBA2AA3335E3
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCShuQJoWFpS77C8bOv1mqURv0UY+0ejx
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 02:42:46 GMT
-Content-Length: 429
+Sample Response
|
If you want to forbid a user to set the bucket lifecycle configuration, revoke the PutLifecycleConfiguration permission from the user.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 | PUT /?lifecycle HTTP/1.1
-Host: bucketname.obs.region.example.com
-Content-Length: length
-Date: date
-Authorization: authorization
-Content-MD5: MD5
-<?xml version="1.0" encoding="UTF-8"?>
-<LifecycleConfiguration>
- <Rule>
- <ID>id</ID>
- <Prefix>prefix</Prefix>
- <Status>status</Status>
- <Expiration>
- <Days>days</Days>
- </Expiration>
- <NoncurrentVersionExpiration>
- <NoncurrentDays>days</NoncurrentDays>
- </NoncurrentVersionExpiration>
- <Transition>
- <Days>30</Days>
- <StorageClass>WARM</StorageClass>
- </Transition>
- <Transition>
- <Days>60</Days>
- <StorageClass>COLD</StorageClass>
- </Transition>
- <NoncurrentVersionTransition>
- <NoncurrentDays>30</NoncurrentDays>
- <StorageClass>WARM</StorageClass>
- </NoncurrentVersionTransition>
- <NoncurrentVersionTransition>
- <NoncurrentDays>60</NoncurrentDays>
- <StorageClass>COLD</StorageClass>
- </NoncurrentVersionTransition>
- <AbortIncompleteMultipartUpload>
- <DaysAfterInitiation>10</DaysAfterInitiation>
- </AbortIncompleteMultipartUpload>
- </Rule>
+ |
This request contains no parameter.
+This request contains no message parameters.
Table 1 lists the request header.
@@ -107,7 +108,7 @@ Content-MD5: MD5Base64-encoded 128-bit MD5 digest of the message according to RFC 1864.
Type: string
-Example: n58IG6hfM7vqI4K0vnWpog==
+Example: n58IG6hfM7vqI4K0vnWpog==
Yes
Days
Specifies the number of days (since the latest update to the latest object version) after which the lifecycle rule takes effect.
-Type: positive integer
+Type: integer
Ancestor node: Expiration, Transition
Required if the Date element is absent.
@@ -205,7 +206,7 @@ Content-MD5: MD5NoncurrentDays
Number of days when the specified rule takes effect after the object becomes a historical version (only applicable to an object's historical version).
-Type: positive integer
+Type: integer
Ancestor node: NoncurrentVersionExpiration, NoncurrentVersionTransition
Required if the NoncurrentVersionExpiration or NoncurrentVersionTransition element is present.
@@ -218,7 +219,7 @@ Content-MD5: MD5Children node: NoncurrentDays, StorageClass
Ancestor node: Rule
Required if the Transition, Expiration, AbortIncompleteMultipartUpload, or NoncurrentVersionExpiration element is absent.
+Required if the Transition, Expiration, AbortIncompleteMultipartUpload, or NoncurrentVersionExpiration element is absent.
NoncurrentVersionExpiration
@@ -237,6 +238,8 @@ Content-MD5: MD5Type: XML
Children node: DaysAfterInitiation
Ancestor node: Rule
+AbortIncompleteMultipartUpload does not support filtering by tag.
+Required if the Transition, Expiration, NoncurrentVersionExpiration, or NoncurrentVersionTransition element is absent.
DaysAfterInitiation
Specifies the number of days since the initiation of an incomplete multipart upload that OBS will wait before deleting the not merged parts (fragments) of the upload.
-Type: positive integer
+Type: integer
Ancestor node: AbortIncompleteMultipartUpload
Required if the AbortIncompleteMultipartUpload element is absent.
+Required if the AbortIncompleteMultipartUpload element is present.
Prefix
@@ -284,13 +287,14 @@ Content-MD5: MD5 -1 -2 -3 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
- |
1 +2 +3 | HTTP/1.1 status_code +Date: date +Content-Length: length + |
The response to the request uses common headers. For details, see Table 1.
No special error responses are returned. For details about error responses, see Table 2.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 | PUT /?lifecycle HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:05:34 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:DpSAlmLX/BTdjxU5HOEwflhM0WI=
-Content-MD5: ujCZn5p3fmczNiQQxdsGaQ==
-Content-Length: 919
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF26000001643670AC06E7B9A7767921 +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSvK6z8HV6nrJh49gsB5vqzpgtohkiFm +Date: WED, 01 Jul 2015 03:05:34 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF26000001643670AC06E7B9A7767921
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSvK6z8HV6nrJh49gsB5vqzpgtohkiFm
-Date: WED, 01 Jul 2015 03:05:34 GMT
-Content-Length: 0
- |
This operation obtains the bucket lifecycle configuration.
To perform this operation, you must have the GetLifecycleConfiguration permission. By default, only the bucket owner can perform this operation. The bucket owner can grant the permission to other users by configuring the bucket policy or user policy.
1 -2 -3 -4 | GET /?lifecycle HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?lifecycle HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 | HTTP/1.1 status_code
-Date: date
-Content-Type: application/xml
-Date: date
-Content-Length: length
+ |
The response to the request uses common headers. For details, see Table 1.
Days
Specifies the number of days (since the latest update to the latest object version) after which the lifecycle rule is executed.
-Type: positive integer
+Type: integer
Ancestor node: Expiration, Transition
StorageClass
The storage class to which the object is transitioned.
-Type: string WARM or COLD
+Type: string
+Value options: WARM or COLD
Ancestor node: Transition, NoncurrentVersionTransition
NoncurrentDays
Number of days when the specified rule takes effect after the object becomes a historical version.
-Type: positive integer
+Type: integer
Ancestor node: NoncurrentVersionExpiration, NoncurrentVersionTransition
DaysAfterInitiation
Specifies the number of days since the initiation of an incomplete multipart upload that OBS will wait before deleting the not merged parts (fragments) of the upload.
-Type: positive integer
+Type: integer
Ancestor node: AbortIncompleteMultipartUpload
For other errors, see Table 2.
1 -2 -3 -4 -5 -6 | GET /?lifecycle HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:06:56 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:/Nof9FCNANfzIXDS0NDp1IfDu8I=
- |
1 +2 +3 +4 +5 +6 | GET /?lifecycle HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 03:06:56 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:/Nof9FCNANfzIXDS0NDp1IfDu8I= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016436BA5684FF5A10370EDB
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSEMKZSIeboCA1eAukgYOOAd7oX3ZONn
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 03:06:56 GMT
-Content-Length: 919
+Sample Response
|
This operation deletes the lifecycle configuration of a bucket. After the lifecycle configuration of a bucket is deleted, OBS will not automatically delete objects in that bucket.
To perform this operation, you must have the PutLifecycleConfiguration permission. By default, only the bucket owner can perform this operation. The bucket owner can grant the permission to other users by configuring the bucket policy or user policy.
1 -2 -3 -4 | DELETE /?lifecycle HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: Authorization
- |
1 +2 +3 +4 | DELETE /?lifecycle HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: Authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 -2 -3 -4 | HTTP/1.1 status_code
-Date: date
-Content-Type: text/xml
-Date: date
- |
1 +2 +3 +4 | HTTP/1.1 status_code +Date: date +Content-Type: text/xml +Date: date + |
The response to the request uses common headers. For details, see Table 1.
This response involves no elements.
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | DELETE /?lifecycle HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:12:22 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:5DGAS7SBbMC1YTC4tNXY57Zl2Fo=
- |
1 +2 +3 +4 +5 +6 | DELETE /?lifecycle HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 03:12:22 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:5DGAS7SBbMC1YTC4tNXY57Zl2Fo= + |
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +Server: OBS +x-obs-request-id: BF260000016436C2550A1EEA97614A98 +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSB7A0KZEBOCutgcfZvaGVthTGOJSuyk +Date: WED, 01 Jul 2015 03:12:22 GMT + |
1 -2 -3 -4 -5 | HTTP/1.1 204 No Content
-Server: OBS
-x-obs-request-id: BF260000016436C2550A1EEA97614A98
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSB7A0KZEBOCutgcfZvaGVthTGOJSuyk
-Date: WED, 01 Jul 2015 03:12:22 GMT
- |
This operation restores an object that is mistakenly overwritten or deleted. You can use versioning to save, query, and restore objects of different versions. Versioning allows you to easily recover lost data due to misoperations or program faults. Versioning can also be used for retaining and archiving data.
-By default, versioning is disabled for a bucket.
+By default, versioning is disabled for a bucket.
+You can perform this operation to enable or suspend versioning for a bucket.
After versioning is enabled for a bucket:
Only the bucket owner can set versioning for the bucket.
1 -2 -3 -4 -5 -6 -7 -8 -9 | PUT /?versioning HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
-Content-Length: length
+ |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
Status
Versioning status of the bucket
-Type: enumeration
+Type: string
Ancestor node: VersioningConfiguration
Value options: Enabled, Suspended
1 -2 -3 -4 | HTTP/1.1 status_code
-Date: date
+ |
The response to the request uses common headers. For details, see Table 1.
This response involves no elements.
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | PUT /?versioning HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:14:18 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:sc2PM13Wlfcoc/YZLK0MwsI2Zpo=
-Content-Length: 89
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF26000001643672B973EEBC5FBBF909 +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSH6rPRHjQCa62fcNpCCPs7+1Aq/hKzE +Date: Date: WED, 01 Jul 2015 03:14:18 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF26000001643672B973EEBC5FBBF909
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSH6rPRHjQCa62fcNpCCPs7+1Aq/hKzE
-Date: Date: WED, 01 Jul 2015 03:14:18 GMT
-Content-Length: 0
- |
This operation allows a bucket owner to get the versioning status of the bucket.
If versioning is not configured for a bucket, no versioning status information will be returned following this operation.
1 -2 -3 -4 | GET /?versioning HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?versioning HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 -2 -3 -4 -5 -6 -7 -8 | HTTP/1.1 status_code
-Date: date
-Content-Type: type
-Content-Length: length
+ |
The response to the request uses common headers. For details, see Table 1.
VersioningConfiguration
Element of versioning status information.
-Type: element
+Type: container
Status
Versioning status of the bucket.
-Type: enumeration
+Type: string
Value options: Enabled, Suspended
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | GET /?versioning HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:15:20 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:4N5qQIoluLO9xMY0m+8lIn/UWXM=
- |
1 +2 +3 +4 +5 +6 | GET /?versioning HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 03:15:20 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:4N5qQIoluLO9xMY0m+8lIn/UWXM= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016436BBA4930622B4FC9F17
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSQIrNJ5/Ag6EPN8DAwWlPWgBc/xfBnx
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 03:15:20 GMT
-Content-Length: 180
+Sample Response
|
This operation notifies users of their operations on buckets, allowing users know events happened on buckets in a timely manner.
By default, the notification function of a bucket is not enabled, and the NotificationConfiguration element is null. If you want to disable the function, set the NotificationConfiguration element to null.
-1 -2 | <NotificationConfiguration>
-</NotificationConfiguration>
- |
1 +2 | <NotificationConfiguration> +</NotificationConfiguration> + |
After receiving a request for configuring event notification, OBS verifies whether the specified SMN topic exists and whether the topic is authorized to OBS. If the topic exists and is authorized to OBS, OBS sends a test notification to the topic subscriber.
To perform this operation, you must have the PutBucketNotification permission. By default, the permission is granted to the bucket owner only. However, it can be granted to other users by configuring the bucket policy.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 | PUT /?notification HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization string
+ |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
NotificationConfiguration
Root element for configuring the event notification function of a bucket. If the sub element is null, the function is disabled.
-Type: element
+Type: container
Ancestor: none
-Children: no or multiple TopicConfigurations
+Children: zero or multiple TopicConfiguration elements
Yes
TopicConfiguration
Element for configuring the event notification topic.
-Type: element
+Type: container
Ancestor: NotificationConfiguration
Children: Id, Filter, Topic, Event, or Events
Type: string
Ancestor: TopicConfiguration
Template:
-1 | <Topic>urn:smn:region:project_id:smn_topic</Topic>
- |
1 | <Topic>urn:smn:region:project_id:smn_topic</Topic> + |
Example:
-1 | <Topic>urn:smn:exampleRegion:d745b885f14941369b2d2138e7a65bef:obs_test</Topic>
- |
1 | <Topic>urn:smn:exampleRegion:d745b885f14941369b2d2138e7a65bef:obs_test</Topic> + |
Required if TopicConfiguration is added
Unique ID of each event notification. If the user does not specify an ID, the system assigns an ID automatically.
Type: string
-Ancestor:
-TopicConfiguration
+Ancestor: TopicConfiguration
No
Filter
Element used to store rules of filtering object names.
-Type: element
-Ancestor:
-TopicConfiguration
+Type: container
+Ancestor: TopicConfiguration
Children: Object
No
@@ -142,7 +144,7 @@ Authorization: authorization stringObject
Element that defines the filtering rule. The rule filters objects based on the prefixes and suffixes of object names.
-Type: element
+Type: container
Ancestor: Filter
Children: one or more FilterRules
FilterRule
Element that defines key-value pairs of the filtering rule
-Type: element
+Type: container
Ancestor: Object
Children: Name, Value
Event
Type of events that need to be notified
-Multiple event types can be added in one TopicConfiguration item.
+Multiple event types can be added in one TopicConfiguration element.
Type: string
Value options:
@@ -194,25 +196,25 @@ Authorization: authorization stringOr use wildcard characters to support all delete operations:
Ancestor:
-TopicConfiguration
+Ancestor: TopicConfiguration
Required if TopicConfiguration is added
+Required if TopicConfiguration is added
1 -2 -3 -4 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
-Content-Type: type
- |
1 +2 +3 +4 | HTTP/1.1 status_code +Date: date +Content-Length: length +Content-Type: type + |
The response to the request uses common headers. For details, see Table 1.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 | PUT /?notification HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:15:45 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:uRTt8YTkAqJCUfWfYkveEcIGAC0=
-Content-Length: 538
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 9046000001643C8E80C19FAC4D8068E3 +x-obs-id-2: 32AAAQAAEAABSAAkgAIAABAAAQAAEAABCTFAxJPTib3GkcQ7nVVs4C8Z6NNcfVDu +Date: WED, 01 Jul 2015 03:15:46 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 9046000001643C8E80C19FAC4D8068E3
-x-obs-id-2: 32AAAQAAEAABSAAkgAIAABAAAQAAEAABCTFAxJPTib3GkcQ7nVVs4C8Z6NNcfVDu
-Date: WED, 01 Jul 2015 03:15:46 GMT
-Content-Length: 0
- |
This operation obtains the notification configuration of a bucket.
To perform this operation, you must have the GetBucketNotification permission. By default, the permission is granted to the bucket owner only. However, it can be granted to other users by configuring the bucket policy or user policy.
1 -2 -3 -4 | GET /?notification HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?notification HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 | HTTP/1.1 status_code
-Content-Type: type
-Date: date
-Content-Length: length
+ |
The response to the request uses common headers. For details, see Table 1.
This response contains elements to detail the configuration. Table 1 describes the elements.
-Element +
Error ResponsesNo special error responses are involved. For details about error responses, see Table 2. +Error ResponsesNo special error responses are returned. For details about error responses, see Table 2. Sample Request
Sample Request
Sample Response
diff --git a/docs/obs/api-ref/obs_04_0044.html b/docs/obs/api-ref/obs_04_0044.html
index 33bc12a56..5ea1016f0 100644
--- a/docs/obs/api-ref/obs_04_0044.html
+++ b/docs/obs/api-ref/obs_04_0044.html
@@ -6,27 +6,28 @@
-After the default storage class has been set for a bucket, if the storage class of an object is not specified during uploading, copying, or initialization of multi-part upload, the object storage class is the same as the default storage class of the bucket. The default storage class of a bucket is Standard. Request Syntax
Request ParametersThis request contains no parameter. +Request ParametersThis request contains no parameters. Request HeadersThis request uses common headers. For details, see Table 3. Specifies the default storage class for a bucket. Type: string Value options: STANDARD | WARM | COLD -There are three storage classes: STANDARD (Standard storage class), WARM (Warm storage class), and COLD (Cold storage class) Therefore, the following values can be configured: STANDARD, WARM, and COLD. +There are three storage classes: STANDARD (Standard storage class), WARM (Warm storage class), and COLD (Cold storage class) Therefore, the following values can be configured: STANDARD, WARM, and COLD. |
@@ -54,51 +55,54 @@ Authorization: authorization
Yes |
|---|
1 -2 | HTTP/1.1 status_code
-Date: date
- |
1 +2 | HTTP/1.1 status_code +Date: date + |
The response to the request uses common headers. For details, see Table 1.
This response involves no elements.
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 -7 -8 -9 | PUT /?storageClass HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:18:19 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:Tf6XbndPx/yNgfAVQ6KIXr7tMj4=
-Content-Length: 87
+ |
1 -2 -3 -4 -5 -6 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF2600000164368E704B571F328A8797
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSIsw3tPtUn6damTI5acQmQAcEfmTwl3
-Date: WED, 01 Jul 2015 03:18:19 GMT
-Content-Length: 0
- |
This operation obtains the default storage class of a bucket.
To perform this operation, you must have the GetBucketStoragePolicy permission. By default, only the bucket owner can perform this operation. The bucket owner can grant the permission to other users by configuring the bucket policy or user policy.
1 -2 -3 -4 | GET /?storageClass HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?storageClass HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request contains no elements.
1 -2 -3 -4 -5 -6 -7 -8 | HTTP/1.1 status_code
-Date: date
-Content-Type: type
-Content-Length: length
+ |
The response to the request uses common headers. For details, see Table 1.
StorageClass
Default storage class of the bucket.
-Type: string. For details about the enumeration type, see Table 1.
+Type: string. For details about the enumeration types, see Table 1.
No special error responses are involved. For details about error responses, see Table 2.
+No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | GET /?storageClass HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:20:28 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:0zVTSdKG6OFCIH2dKvmsVGYCQyw=
- |
1 +2 +3 +4 +5 +6 | GET /?storageClass HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 03:20:28 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:0zVTSdKG6OFCIH2dKvmsVGYCQyw= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016436BE45820FDF3A65B42C
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSCju1CZy3ZfRVW5hiNd024lRFdUoqWy
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 03:20:28 GMT
-Content-Length: 142
+Sample Response
|
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 | PUT /?tagging HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization string
-Content-MD5: md5
-<Tagging>
- <TagSet>
- <Tag>
- <Key>Tag Name</Key>
- <Value>Tag Value</Value>
- </Tag>
- </TagSet>
+ |
This request contains no parameter.
+This request contains no message parameters.
Table 1 lists the request header.
@@ -51,7 +52,7 @@ Content-MD5: md5Base64-encoded 128-bit MD5 digest of the message according to RFC 1864.
Type: string
-Example: n58IG6hfM7vqI4K0vnWpog==
+Example: n58IG6hfM7vqI4K0vnWpog==
Yes
Tagging
Element of the tag set and tag
-Type: element
+Root element for TagSet and Tag
+Type: container
Ancestor: none
Yes
@@ -82,7 +83,7 @@ Content-MD5: md5TagSet
Element of the tag set
-Type: element
+Type: container
Ancestor: Tagging
Yes
@@ -90,8 +91,8 @@ Content-MD5: md5Tag
Element of the tag information
-Type: element
+Information element of Tag
+Type: container
Ancestor: TagSet
Yes
@@ -119,23 +120,24 @@ Content-MD5: md5 -1 -2 -3 -4 -5 | HTTP/1.1 status_code
-x-obs-request-id: request id
-x-obs-id-2: id
-Content-Length: length
-Date: date
- |
1 +2 +3 +4 +5 | HTTP/1.1 status_code +x-obs-request-id: request id +x-obs-id-2: id +Content-Length: length +Date: date + |
The response to the request uses common headers. For details, see Table 1.
This response involves no elements.
In addition common error codes, this API also returns other error codes. The following table lists common errors and possible causes. For details, see Table 3.
+In addition to common error codes, this API also returns other error codes. The following table lists common errors and possible causes. For details, see Table 3.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 | PUT /?tagging HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: Wed, 27 Jun 2018 13:22:50 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:Pf1ZyGvVYg2BzOjokZ/BAeR1mEQ=
-Content-MD5: MnAEvkfQIGnBpchOE2U6Og==
-Content-Length: 182
+ |
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +Server: OBS +x-obs-request-id: BF26000001643FEBA09B1ED46932CD07 +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSEZp87iEirC6DggPB5cN49pSvHBWClg +Date: Wed, 27 Jun 2018 13:22:50 GMT + |
1 -2 -3 -4 -5 | HTTP/1.1 204 No Content
-Server: OBS
-x-obs-request-id: BF26000001643FEBA09B1ED46932CD07
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSEZp87iEirC6DggPB5cN49pSvHBWClg
-Date: Wed, 27 Jun 2018 13:22:50 GMT
- |
This operation obtains information about tags of a bucket.
To perform this operation, you must have the GetBucketTagging permission. By default, only the bucket owner can obtain the tags of a bucket. The bucket owner can allow other users to perform this operation by setting a bucket policy or granting them the permission.
1 -2 -3 -4 | GET /?tagging HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization string
- |
1 +2 +3 +4 | GET /?tagging HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization string + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 | HTTP/1.1 status_code
-x-obs-request-id: request id
-x-obs-id-2: id
-Content-Type: application/xml
-Content-Length: length
-Date: date
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<Tagging xmlns="http://obs.example.com/doc/2015-06-30/">
- <TagSet>
- <Tag>
- <Key>key</Key>
- <Value>value</Value>
- </Tag>
- </TagSet>
+ |
The response to the request uses common headers. For details, see Table 1.
Tagging
Element of the tag set and tag.
-Type: element
+Type: container
Ancestor: none
TagSet
Element of the tag set.
-Type: element
+Type: container
Ancestor: Tagging
Tag
Element of the tag information.
-Type: element
+Type: container
Ancestor: TagSet
1 -2 -3 -4 -5 -6 | GET /?tagging HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: Wed, 27 Jun 2018 13:25:44 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:H1INcyc5i0XlHqYTfuzkPxLZUPM=
- |
1 +2 +3 +4 +5 +6 | GET /?tagging HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: Wed, 27 Jun 2018 13:25:44 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:H1INcyc5i0XlHqYTfuzkPxLZUPM= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 | HTTP/1.1 200 OK
-x-obs-request-id: 0002B7532E0000015BEB35330C5884X1
-x-obs-id-2: s12w20LYNQqSb7moq4ibgJwmQRSmVQV+rFBqplOGYkXUpXeS/nOmbkyD+E35K79j
-Content-Type: application/xml
-Date: Wed, 27 Jun 2018 13:25:44 GMT
-Content-Length: 441
+Sample Response
|
This operation deletes the tags of a bucket.
To perform this operation, you must have the PutBucketTagging permission. By default, only the bucket owner can delete the tags of a bucket. The bucket owner can allow other users to perform this operation by setting a bucket policy or granting them the permission.
1 -2 -3 -4 | DELETE /?tagging HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization string
- |
1 +2 +3 +4 | DELETE /?tagging HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization string + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 -2 -3 -4 -5 | HTTP/1.1 status_code
-x-obs-request-id: request id
-x-obs-id-2: id
-Content-Length: length
-Date: date
- |
1 +2 +3 +4 +5 | HTTP/1.1 status_code +x-obs-request-id: request id +x-obs-id-2: id +Content-Length: length +Date: date + |
The response to the request uses common headers. For details, see Table 1.
No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | DELETE /?tagging HTTP/1.1
-User-Agent: curl/7.19.7
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: Wed, 27 Jun 2018 13:46:58 GMT
-Authorization: authorization string
- |
1 +2 +3 +4 +5 +6 | DELETE /?tagging HTTP/1.1 +User-Agent: curl/7.19.7 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: Wed, 27 Jun 2018 13:46:58 GMT +Authorization: authorization string + |
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +x-obs-request-id: 0002B7532E0000015BEB2C212E53A17L +x-obs-id-2: CqT+86nnOkB+Cv9KZoVgZ28pSgMF+uGQBUC68flvkQeq6CxoCz65wWFMNBpXvea4 +Content-Length: 0 +Date: Wed, 27 Jun 2018 13:46:58 GMT + |
1 -2 -3 -4 -5 | HTTP/1.1 204 No Content
-x-obs-request-id: 0002B7532E0000015BEB2C212E53A17L
-x-obs-id-2: CqT+86nnOkB+Cv9KZoVgZ28pSgMF+uGQBUC68flvkQeq6CxoCz65wWFMNBpXvea4
-Content-Length: 0
-Date: Wed, 27 Jun 2018 13:46:58 GMT
- |
The bucket storage quota must be a positive integer in the unit of byte. The maximum storage quota is 263 – 1 bytes. The default bucket storage quota is 0, indicating that the bucket storage quota is not limited.
-
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 | PUT /?quota HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Content-Length: length
-Authorization: authorization
+ |
This request contains no parameter.
+This request contains no parameters.
This request uses common headers. For details, see Table 3.
1 -2 -3 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
- |
1 +2 +3 | HTTP/1.1 status_code +Date: date +Content-Length: length + |
The response to the request uses common headers. For details, see Table 1.
No special error responses are returned. For details about error responses, see Table 2.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | PUT /?quota HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:24:37 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:k/rbwnYaqYf0Ae6F0M3OJQ0dmI8=
-Content-Length: 106
+ |
1 +2 +3 +4 +5 +6 +7 | HTTP/1.1 100 Continue +HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF260000016435E09A2BCA388688AA08 +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSHbmBecv7ohDSvqaRObpxzgzJ9+l8xT +Date: WED, 01 Jul 2015 03:24:37 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 -7 | HTTP/1.1 100 Continue
-HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016435E09A2BCA388688AA08
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSHbmBecv7ohDSvqaRObpxzgzJ9+l8xT
-Date: WED, 01 Jul 2015 03:24:37 GMT
-Content-Length: 0
- |
Only the bucket owner can query information about the bucket storage quota. However, an inactive owner is not allowed to get the bucket quota. The bucket storage quota is measured by byte. 0 indicates that no upper limit is set.
1 -2 -3 -4 | GET /?quota HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?quota HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request contains no elements.
1 -2 -3 -4 -5 -6 -7 -8 -9 | HTTP/1.1 status_code
-Date: date
-Content-Type: application/xml
-Content-Length: length
+ |
The response to the request uses common headers. For details, see Table 1.
No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | GET /?quota HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:27:45 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:8m4bW1gFCNeXQlfu45uO2gpo7l8=
- |
1 +2 +3 +4 +5 +6 | GET /?quota HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 03:27:45 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:8m4bW1gFCNeXQlfu45uO2gpo7l8= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016436B55D8DED9AE26C4D18
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSs2Q5vz5AfpAJ/CMNgCfo2hmDowp7M9
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 03:27:45 GMT
-Content-Length: 150
+Sample Response
|
The OBS bucket storage statistics is measured in the background, and the storage data is not updated in real time. Therefore, you are not advised to perform real-time verification on the storage information.
1 -2 -3 -4 | GET /?storageinfo HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?storageinfo HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameters.
This request contains no elements.
1 -2 -3 -4 -5 -6 -7 -8 -9 | HTTP/1.1 status_code
-Date: date
-Content-Type: type
-Content-Length: length
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<GetBucketStorageInfoResult xmlns="http://obs.region.example.com/doc/2015-06-30/">
-<Size>size</Size>
-<ObjectNumber>number</ObjectNumber>
+ |
The response to the request uses common headers. For details, see Table 1.
Size
Size of stored data
-Type: integer
+Type: long
ObjectNumber
@@ -75,47 +77,49 @@ Content-Length: lengthNo special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | GET /?storageinfo HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:31:18 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:bLcdeJGYWw/eEEjMhPZx2MK5R9U=
- |
1 +2 +3 +4 +5 +6 | GET /?storageinfo HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 03:31:18 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:bLcdeJGYWw/eEEjMhPZx2MK5R9U= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016435DD2958BFDCDB86B55E
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSitZctaPYVnat49fVMd1O+OWIP1yrg3
-Content-Type: application/xml
-WED, 01 Jul 2015 03:31:18 GMT
-Content-Length: 206
+Sample Response
|
OBS uses the PUT method to configure a custom domain name for a bucket. After the configuration is successful, you can access the bucket through the domain name.
Ensure that the custom domain name can correctly resolve to the OBS service through DNS.
1 -2 -3 -4 -5 -6 -7 | PUT /?customdomain=domainname HTTP/1.1
-User-Agent: curl/7.29.0
-Host: bucketname.obs.region.example.com
-Accept: */*
-Date: date
-Authorization: authorization string
-Content-Length: 0
- |
1 +2 +3 +4 +5 +6 +7 | PUT /?customdomain=domainname HTTP/1.1 +User-Agent: curl/7.29.0 +Host: bucketname.obs.region.example.com +Accept: */* +Date: date +Authorization: authorization string +Content-Length: 0 + |
Parameter @@ -32,7 +33,7 @@ Content-Length: 0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
customdomain |
Custom domain name of a bucket. -Type: string, which must meet the naming convention of domain names. +Type: string, which must meet the naming conventions of domain names. Specifications: The value contains a maximum of 256 characters. No default value. Constraints: A bucket can have a maximum of 30 domain names. A custom domain name can be used for only one bucket. @@ -48,19 +49,20 @@ Content-Length: 0Request ElementsThis request involves no elements. Response Syntax
Response Syntax
Response HeadersThe response to the request uses common headers. For details, see Table 1. Error ResponsesNo special error responses are returned. For details about error responses, see Table 2. Sample Request
Sample Request
Sample Response
Sample Response
diff --git a/docs/obs/api-ref/obs_04_0060.html b/docs/obs/api-ref/obs_04_0060.html
index 1d5e6bf9f..ea7b5cb5c 100644
--- a/docs/obs/api-ref/obs_04_0060.html
+++ b/docs/obs/api-ref/obs_04_0060.html
@@ -3,19 +3,20 @@
Obtaining the Custom Domain Name of a BucketFunctionsOBS uses the GET method to obtain the custom domain name of a bucket. Request Syntax
Request Syntax
Request ParametersThis request message does not contain the request parameters. Request ElementsThis request involves no elements. Response Syntax
Response HeadersThe response to the request uses common headers. For details, see Table 1. Domains |
@@ -92,7 +94,7 @@ Content-Length: 272
Element indicating the custom domain name -Type: element +Type: container Children: DomainName, CreateTime Ancestor: ListBucketCustomDomainsResult CreateTime |
@@ -103,51 +105,53 @@ Content-Length: 272
Time when a custom domain name is created -Type: string, expressed in the form of UTC time. +Type: string, which must be a UTC time. Children: none Ancestor: Domains Error ResponsesNo special error responses are returned. For details about error responses, see Table 2. Sample Request
Sample Request
Sample Response
diff --git a/docs/obs/api-ref/obs_04_0061.html b/docs/obs/api-ref/obs_04_0061.html
index b3424799d..ca2ebdf6d 100644
--- a/docs/obs/api-ref/obs_04_0061.html
+++ b/docs/obs/api-ref/obs_04_0061.html
@@ -3,19 +3,20 @@
Deleting the Custom Domain Name of a BucketFunctionsOBS uses the DELETE method to delete the custom domain name of a bucket. Request Syntax
Request Syntax
Request Parameters
Response Syntax
Response HeadersThe response to the request uses common headers. For details, see Table 1. Error ResponsesNo special error responses are returned. For details about error responses, see Table 2. Sample Request
Sample Request
Sample Response
Sample Response
diff --git a/docs/obs/api-ref/obs_04_0062.html b/docs/obs/api-ref/obs_04_0062.html
index 4a731272f..d77fa143d 100644
--- a/docs/obs/api-ref/obs_04_0062.html
+++ b/docs/obs/api-ref/obs_04_0062.html
@@ -5,43 +5,44 @@
-After encryption is enabled for a bucket, objects uploaded to the bucket are encrypted with the encryption configuration the bucket. Currently, it only supports the server-side encryption using keys hosted by KMS (SSE-KMS). For details about SSE-KMS, see Server-Side Encryption (SSE-KMS). To perform this operation, you must have the permission to configure encryption for the bucket. By default, the bucket owner has this permission and can assign this permission to other users. Request Syntax
Request parametersThis request contains no parameter. +Request parametersThis request contains no message parameters. Request HeadersThis request uses common headers. For details, see Table 3. ServerSideEncryptionConfiguration |
@@ -68,9 +69,9 @@ Content-Length: length
Root element of the default encryption configuration of a bucket. -Type: element +Type: container Ancestor: none Children: Rule Rule Sub-element of the default encryption configuration of a bucket. -Type: element -Root element: ServerSideEncryptionConfiguration -Sub-element: ApplyServerSideEncryptionByDefault +Type: container +Ancestor: ServerSideEncryptionConfiguration +Children: ApplyServerSideEncryptionByDefault |
@@ -78,7 +79,7 @@ Content-Length: length
Yes ApplyServerSideEncryptionByDefault |
@@ -90,7 +91,7 @@ Content-Length: length
Sub-element of the default encryption configuration of a bucket. -Type: element +Type: container Ancestor: Rule Children: SSEAlgorithm, KMSMasterKeyID Server-side encryption algorithm used for the default encryption configuration of a bucket. Type: string Valid values: kms -Root element: ApplyServerSideEncryptionByDefault +Ancestor: ApplyServerSideEncryptionByDefault |
@@ -102,8 +103,8 @@ Content-Length: length
Yes Valid value formats are as follows:
In the preceding formats: -
Root element: ApplyServerSideEncryptionByDefault +
Ancestor: ApplyServerSideEncryptionByDefault |
@@ -123,13 +124,14 @@ Content-Length: length
No Response Syntax
Response Syntax
Response HeadersThe response to the request uses common headers. For details, see Table 1. Error ResponsesNo special error responses are returned. For details about error responses, see Table 2. Sample Request
Sample Response
Sample Response
diff --git a/docs/obs/api-ref/obs_04_0063.html b/docs/obs/api-ref/obs_04_0063.html
index 17a784e5c..b0af75ad4 100644
--- a/docs/obs/api-ref/obs_04_0063.html
+++ b/docs/obs/api-ref/obs_04_0063.html
@@ -4,61 +4,63 @@
FunctionsOBS uses the GET method to obtain the encryption configuration of a specified bucket. To perform this operation, you must have the GetEncryptionConfiguration permission. By default, only the bucket owner can delete the tags of a bucket. The bucket owner can allow other users to perform this operation by setting a bucket policy or granting them the permission. Request Syntax
Request Syntax
Request parametersThis request contains no parameter. +Request parametersThis request contains no message parameters. Request HeadersThis request uses common headers. For details, see Table 3. Request ElementsThis request involves no elements. Response Syntax
Response HeadersThe response to the request uses common headers. For details, see Table 1. ServerSideEncryptionConfiguration |
@@ -81,7 +83,7 @@ Date: date
Root element of the default encryption configuration of a bucket. -Type: element +Type: container Ancestor: none Children: Rule Rule |
@@ -89,7 +91,7 @@ Date: date
Sub-element of the default encryption configuration of a bucket. -Type: element +Type: container Ancestor: ServerSideEncryptionConfiguration Children: ApplyServerSideEncryptionByDefault ApplyServerSideEncryptionByDefault |
@@ -98,7 +100,7 @@ Date: date
Sub-element of the default encryption configuration of a bucket. -Type: element +Type: container Ancestor: Rule Children: SSEAlgorithm, KMSMasterKeyID The server-side encryption algorithm used for encryption configuration of a bucket. Type: string -Valid values: kms +Valid value: kms Ancestor: ApplyServerSideEncryptionByDefault |
In addition common error codes, this API also returns other error codes. The following table lists common errors and possible causes. For details, see Table 2.
+In addition to common error codes, this API also returns others. The following table lists common errors and possible causes. For details, see Table 2.
1 -2 -3 -4 -5 -6 | GET /?encryption HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: Thu, 21 Feb 2019 03:05:34 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:DpSAlmLX/BTdjxU5HOEwflhM0WI=
- |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF26000001643670AC06E7B9A7767921
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSvK6z8HV6nrJh49gsB5vqzpgtohkiFm
-Date: Thu, 21 Feb 2019 03:05:34 GMT
-Content-Length: 788
+ |
OBS uses the DELETE method to delete the encryption configuration of a specified bucket.
To perform this operation, you must have the PutEncryptionConfiguration permission. By default, only the bucket owner can delete the tags of a bucket. The bucket owner can allow other users to perform this operation by setting a bucket policy or granting them the permission.
1 -2 -3 -4 -5 -6 | DELETE /?encryption HTTP/1.1
-User-Agent: curl/7.29.0
-Host: bucketname.obs.region.example.com
-Accept: */*
-Date: date
-Authorization: authorization string
- |
1 +2 +3 +4 +5 +6 | DELETE /?encryption HTTP/1.1 +User-Agent: curl/7.29.0 +Host: bucketname.obs.region.example.com +Accept: */* +Date: date +Authorization: authorization string + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 -2 -3 -4 -5 | HTTP/1.1 status_code
-Server: OBS
-x-obs-request-id: request id
-x-obs-id-2: id
-Date: date
- |
1 +2 +3 +4 +5 | HTTP/1.1 status_code +Server: OBS +x-obs-request-id: request id +x-obs-id-2: id +Date: date + |
The response to the request uses common headers. For details, see Table 1.
No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | DELETE /examplebucket?encryption HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: Tue, 08 Jan 2019 13:18:35 +0000
-Authorization: OBS UDSIAMSTUBTEST000001:UT9F2YUgaFu9uFGMmxFj2CBgQHs=
- |
1 +2 +3 +4 +5 +6 | DELETE /examplebucket?encryption HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: Tue, 08 Jan 2019 13:18:35 +0000 +Authorization: OBS UDSIAMSTUBTEST000001:UT9F2YUgaFu9uFGMmxFj2CBgQHs= + |
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +Server: OBS +x-obs-request-id: 000001682D993B666808E265A3F6361D +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSyB46jGSQsu06m1nyIeKxTuJ+H27ooC +Date: Tue, 08 Jan 2019 13:14:03 GMT + |
1 -2 -3 -4 -5 | HTTP/1.1 204 No Content
-Server: OBS
-x-obs-request-id: 000001682D993B666808E265A3F6361D
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSyB46jGSQsu06m1nyIeKxTuJ+H27ooC
-Date: Tue, 08 Jan 2019 13:14:03 GMT
- |
The maximum size of a network configuration request for a bucket is 10 KB.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 | PUT /?website HTTP/1.1
-Host: bucketname.obs.region.example.com
-Content-Length: length
-Date: date
-Authorization: authorization
-<WebsiteConfiguration>
- <RedirectAllRequestsTo>
- <HostName>hostName</HostName>
- </RedirectAllRequestsTo>
+ |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
WebsiteConfiguration
Root node configured on the website
-Type: element
+Type: container
Ancestor: none
Yes
@@ -57,7 +58,7 @@ Authorization: authorizationRedirectAllRequestsTo
Describes the redirection behavior for every request to this bucket's website endpoint. If this element is present, no other siblings are allowed.
-Type: element
+Type: container
Ancestor: WebsiteConfiguration
Yes
@@ -97,7 +98,7 @@ Authorization: authorizationWebsiteConfiguration
Root element for the website configuration
-Type: element
+Type: container
Ancestor: none
Yes
@@ -106,7 +107,7 @@ Authorization: authorizationIndexDocument
Suff element
-Type: element
+Type: container
Ancestor: WebsiteConfiguration
Yes
@@ -124,7 +125,7 @@ Authorization: authorizationErrorDocument
Key element
-Type: element
+Type: container
Ancestor: WebsiteConfiguration
No
@@ -143,7 +144,7 @@ Authorization: authorizationRoutingRules
Routing element
-Type: element
+Type: container
Ancestor: WebsiteConfiguration
No
@@ -152,7 +153,7 @@ Authorization: authorizationRoutingRule
Element of a redirection rule. A redirection rule contains a Condition and a Redirect. When the Condition is matched, Redirect takes effect.
-Type: element
+Type: container
Ancestor: RoutingRules
At least the RoutingRule element is required.
Condition
Element for describing a condition that must be met for the specified redirection to apply.
-Type: element
+Type: container
Ancestor: RoutingRule
No
@@ -195,7 +196,7 @@ Authorization: authorizationRedirect
Element for redirection information. You can redirect requests to another host, to another web page, or with another protocol. You can specify an error code to be returned after an error.
-Type: element
+Type: container
Ancestor: RoutingRule
Yes
@@ -259,13 +260,14 @@ Authorization: authorization -1 -2 -3 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
- |
1 +2 +3 | HTTP/1.1 status_code +Date: date +Content-Length: length + |
The response to the request uses common headers. For details, see Table 1.
No special error responses are returned. For details about error responses, see Table 2.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 | PUT /?website HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:40:29 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:pUK7Yp0yebnq4P6gqzVjoS7whoM=
-Content-Length: 194
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF2600000164360D144670B9D02AABC6 +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSItqMZ/AoFUX97l1xx8s67V3cCQtXWk +Date: WED, 01 Jul 2015 03:40:29 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF2600000164360D144670B9D02AABC6
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSItqMZ/AoFUX97l1xx8s67V3cCQtXWk
-Date: WED, 01 Jul 2015 03:40:29 GMT
-Content-Length: 0
- |
You can perform this operation to get the static website hosting configuration of a bucket.
To perform this operation, you must have the GetBucketWebsite permission. By default, only the bucket owner can perform this operation. The bucket owner can grant the permission to other users by configuring the bucket policy or user policy.
1 -2 -3 -4 | GET /?website HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?website HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 | HTTP/1.1 status_code
-Date: date
-Content-Type: type
-Content-Length: length
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<WebsiteConfiguration xmlns="http://obs.region.example.com/doc/2015-06-30/">
- <RedirectAllRequestsTo>
- <HostName>hostName</HostName>
- </RedirectAllRequestsTo>
+ |
The response to the request uses common headers. For details, see Table 1.
For other errors, see Table 2.
1 -2 -3 -4 -5 -6 | GET /?website HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:41:54 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:Yxt1Ru+feHE0S94R7dcBp+hfLnI=
- |
1 +2 +3 +4 +5 +6 | GET /?website HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 03:41:54 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:Yxt1Ru+feHE0S94R7dcBp+hfLnI= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF2600000164363442EC03A8CA3DD7F5
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSFbGOmlN0BVp1kbwN3har8jbVvtKEKN
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 03:41:54 GMT
-Content-Length: 250
+Sample Response
|
You can perform this operation to delete the website configuration of a bucket.
To perform this operation, you must have the DeleteBucketWebsite permission. By default, only the bucket owner can perform this operation. The bucket owner can grant the permission to other users by configuring the bucket policy or user policy.
1 -2 -3 -4 | DELETE /?website HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | DELETE /?website HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 -2 -3 -4 | HTTP/1.1 status_code
-Date: date
-Content-Type: type
-Content-Length: length
- |
1 +2 +3 +4 | HTTP/1.1 status_code +Date: date +Content-Type: type +Content-Length: length + |
The response to the request uses common headers. For details, see Table 1.
No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | DELETE /?website HTTP/1.1
-User-Agent: curl/7.29.0
-Host: bucketname.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:44:37 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:AZ1b0N5eLknxNOe/c0BISV1bEqc=
- |
1 +2 +3 +4 +5 +6 | DELETE /?website HTTP/1.1 +User-Agent: curl/7.29.0 +Host: bucketname.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 03:44:37 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:AZ1b0N5eLknxNOe/c0BISV1bEqc= + |
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +Server: OBS +x-obs-request-id: BF2600000164363786230E2001DC0807 +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSFUG4fEyDRgzUiEY2i71bJndBCy+wUZ +Date: WED, 01 Jul 2015 03:44:37 GMT + |
1 -2 -3 -4 -5 | HTTP/1.1 204 No Content
-Server: OBS
-x-obs-request-id: BF2600000164363786230E2001DC0807
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSFUG4fEyDRgzUiEY2i71bJndBCy+wUZ
-Date: WED, 01 Jul 2015 03:44:37 GMT
- |
To perform this operation, you must have the PutBucketCORS permission. By default, only the bucket owner can perform this operation. The bucket owner can grant the permission to other users by configuring the bucket policy or user policy.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 | PUT /?cors HTTP/1.1
-Host: bucketname.obs.region.example.com
-Content-Length: length
-Date: date
-Authorization: authorization
-Content-MD5: MD5
-<?xml version="1.0" encoding="UTF-8"?>
-<CORSConfiguration>
- <CORSRule>
- <ID>id</ID>
- <AllowedMethod>method</AllowedMethod>
- <AllowedOrigin>origin</AllowedOrigin>
- <AllowedHeader>header</AllowedHeader>
- <MaxAgeSeconds>seconds</MaxAgeSeconds>
- <ExposeHeader>header</ExposeHeader>
- </CORSRule>
+ |
This request contains no parameter.
+This request contains no message parameters.
Base64-encoded 128-bit MD5 digest of the message according to RFC 1864
Type: string
-Example: n58IG6hfM7vqI4K0vnWpog==
+Example: n58IG6hfM7vqI4K0vnWpog==
Yes
CORSConfiguration
Root node of CORSRule and its capacity cannot exceed 64 KB.
-Type: Container
+Type: container
Ancestor: none
Yes
@@ -90,7 +91,7 @@ Content-MD5: MD5CORSRule
CORS rules. CORSConfiguration can contain a maximum of 100 rules.
-Type: Container
+Type: container
Ancestor: CORSConfiguration
Yes
@@ -137,7 +138,7 @@ Content-MD5: MD5Indicates the response time of CORS that can be cached by a client. It is expressed in seconds.
Each CORSRule can contain only one MaxAgeSeconds. It can be set to a negative value.
-Type: Integer
+Type: integer
Ancestor: CORSRule
No
@@ -156,15 +157,16 @@ Content-MD5: MD5 -1 -2 -3 -4 | HTTP/1.1 status_code
+ |
The response to the request uses common headers. For details, see Table 1.
No special error responses are returned. For details about error responses, see Table 2.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 | PUT /?cors HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:51:52 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:lq7BGoqE9yyhdEwE6KojJ7ysVxU=
-Content-MD5: NGLzvw81f/A2C9PiGO0aZQ==
-Content-Length: 617
+ |
1 +2 +3 +4 +5 +6 +7 | HTTP/1.1 100 Continue +HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF26000001643627112BD03512FC94A4 +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSYi6wLC4bkrvuS9sqnlRjxK2a5Fe3ry +Date: WED, 01 Jul 2015 03:51:52 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 -7 | HTTP/1.1 100 Continue
-HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF26000001643627112BD03512FC94A4
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSYi6wLC4bkrvuS9sqnlRjxK2a5Fe3ry
-Date: WED, 01 Jul 2015 03:51:52 GMT
-Content-Length: 0
- |
You can perform this operation to obtain CORS configuration information about a specified bucket.
To perform this operation, you must have the GetBucketCORS permission. By default, only the bucket owner can perform this operation. The bucket owner can grant the permission to other users by configuring the bucket policy or user policy.
1 -2 -3 -4 | GET /?cors HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /?cors HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | HTTP/1.1 status_code
-Content-Type: application/xml
-Date: date
-Content-Length: length
+ |
The response to the request uses common headers. For details, see Table 1.
CORSConfiguration
Root node of CORSRules and its capacity cannot exceed 64 KB.
-Type: Container
+Type: container
Ancestor: none
CORSRule
CORS rule. CORSConfiguration can contain a maximum of 100 rules.
-Type: Container
+Type: container
Ancestor: CORSConfiguration
Response time of CORS that can be cached by a client. It is expressed in seconds.
Each CORSRule can contain only one MaxAgeSeconds. It can be set to a negative value.
-Type: Integer
+Type: integer
Ancestor: CORSRule
For other errors, see Table 2.
-1 -2 -3 -4 -5 -6 | GET /?cors HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:54:36 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:WJGghTrPQQXRuCx5go1fHyE+Wwg=
- |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF2600000164363593F10738B80CACBE
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSpngvwC5TskcLGh7Fz5KRmCFIayuY8p
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 03:54:36 GMT
-Content-Length: 825
+ |
This operation is used to delete the CORS configuration of a bucket. After the CORS configuration is deleted, the bucket and objects in it cannot be accessed by requests from other websites.
To perform this operation, you must have the PutBucketCORS permission.
1 -2 -3 -4 | DELETE /?cors HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | DELETE /?cors HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request contains no parameter.
+This request contains no message parameters.
This request uses common headers. For details, see Table 3.
This request involves no elements.
1 -2 -3 -4 | HTTP/1.1 status_code
-Date: date
-Content-Type: application/xml
-Content-Length: length
- |
1 +2 +3 +4 | HTTP/1.1 status_code +Date: date +Content-Type: application/xml +Content-Length: length + |
The response to the request uses common headers. For details, see Table 1.
No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | DELETE /?cors HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 03:56:41 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:mKUs/uIPb8BP0ZhvMd4wEy+EbiI=
- |
1 +2 +3 +4 +5 +6 | DELETE /?cors HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 03:56:41 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:mKUs/uIPb8BP0ZhvMd4wEy+EbiI= + |
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +Server: OBS +x-obs-request-id: BF26000001643639F290185BB27F793A +x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSLWMRFJfckapW+ktT/+1AnAz7XlNU0b +Date: WED, 01 Jul 2015 03:56:41 GMT + |
1 -2 -3 -4 -5 | HTTP/1.1 204 No Content
-Server: OBS
-x-obs-request-id: BF26000001643639F290185BB27F793A
-x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSLWMRFJfckapW+ktT/+1AnAz7XlNU0b
-Date: WED, 01 Jul 2015 03:56:41 GMT
- |
OPTIONS /object HTTP/1.1
OPTIONS / HTTP/1.1
1 -2 -3 -4 -5 -6 | OPTIONS / HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
-Origin: origin
-Access-Control-Request-Method: method
- |
1 +2 +3 +4 +5 +6 | OPTIONS / HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization +Origin: origin +Access-Control-Request-Method: method + |
This request contains no parameter.
+This request contains no message parameters.
This request uses the headers described in Table 1.
@@ -66,25 +67,26 @@ Access-Control-Request-Method: methodThis request involves no elements.
1 -2 -3 -4 -5 -6 -7 -8 -9 | HTTP/1.1 status_code
-Content-Type: application/xml
-Access-Control-Allow-Origin: origin
-Access-Control-Allow-Methods: method
-Access-Control-Allow-Header: header
-Access-Control-Max-Age: time
-Access-Control-Expose-Headers: header
-Date: date
-Content-Length: length
- |
1 +2 +3 +4 +5 +6 +7 +8 +9 | HTTP/1.1 status_code +Content-Type: application/xml +Access-Control-Allow-Origin: origin +Access-Control-Allow-Methods: method +Access-Control-Allow-Header: header +Access-Control-Max-Age: time +Access-Control-Expose-Headers: header +Date: date +Content-Length: length + |
The response uses the following headers as described in Table 2.
@@ -170,47 +172,49 @@ Content-Length: lengthFor other errors, see Table 2.
1 -2 -3 -4 -5 -6 -7 -8 | OPTIONS / HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:02:15 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:7RqP1vjemo6U+Adv9/Y6eGzWrzA=
-Origin: www.example.com
-Access-Control-Request-Method: PUT
- |
1 +2 +3 +4 +5 +6 +7 +8 | OPTIONS / HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 04:02:15 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:7RqP1vjemo6U+Adv9/Y6eGzWrzA= +Origin: www.example.com +Access-Control-Request-Method: PUT + |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF260000016436314E8FF936946DBC9C +Access-Control-Allow-Origin: www.example.com +Access-Control-Allow-Methods: POST,GET,HEAD,PUT,DELETE +Access-Control-Max-Age: 100 +Access-Control-Expose-Headers: ExposeHeader_1,ExposeHeader_2 +Access-Control-Allow-Credentials: true +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCTlYimJvOyJncCLNm5y/iz6MAGLNxTuS +Date: WED, 01 Jul 2015 04:02:15 GMT +Content-Length: 0 + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF260000016436314E8FF936946DBC9C
-Access-Control-Allow-Origin: www.example.com
-Access-Control-Allow-Methods: POST,GET,HEAD,PUT,DELETE
-Access-Control-Max-Age: 100
-Access-Control-Expose-Headers: ExposeHeader_1,ExposeHeader_2
-Access-Control-Allow-Credentials: true
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCTlYimJvOyJncCLNm5y/iz6MAGLNxTuS
-Date: WED, 01 Jul 2015 04:02:15 GMT
-Content-Length: 0
- |
OPTIONS /object HTTP/1.1
OPTIONS / HTTP/1.1
1 -2 -3 -4 -5 -6 | OPTIONS /object HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
-Origin: origin
-Access-Control-Request-Method: method
- |
1 +2 +3 +4 +5 +6 | OPTIONS /object HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization +Origin: origin +Access-Control-Request-Method: method + |
This request contains no parameter.
+This request contains no message parameters.
Table 1 describes headers used by this request.
@@ -64,25 +65,26 @@ Access-Control-Request-Method: methodThis request involves no elements.
1 -2 -3 -4 -5 -6 -7 -8 -9 | HTTP/1.1 status_code
-Content-Type: type
-Access-Control-Allow-Origin: origin
-Access-Control-Allow-Methods: method
-Access-Control-Allow-Header: header
-Access-Control-Max-Age: time
-Access-Control-Expose-Headers: header
-Date: date
-Content-Length: length
- |
1 +2 +3 +4 +5 +6 +7 +8 +9 | HTTP/1.1 status_code +Content-Type: type +Access-Control-Allow-Origin: origin +Access-Control-Allow-Methods: method +Access-Control-Allow-Header: header +Access-Control-Max-Age: time +Access-Control-Expose-Headers: header +Date: date +Content-Length: length + |
The request uses the headers described in Table 2.
@@ -168,47 +170,49 @@ Content-Length: lengthFor other errors, see Table 2.
1 -2 -3 -4 -5 -6 -7 -8 | OPTIONS /object_1 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:02:19 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:bQZG9c2aokAJsHOOkuVBK6cHZZQ=
-Origin: www.example.com
-Access-Control-Request-Method: PUT
- |
1 +2 +3 +4 +5 +6 +7 +8 | OPTIONS /object_1 HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 04:02:19 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:bQZG9c2aokAJsHOOkuVBK6cHZZQ= +Origin: www.example.com +Access-Control-Request-Method: PUT + |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF26000001643632D12EFCE1C1294555 +Access-Control-Allow-Origin: www.example.com +Access-Control-Allow-Methods: POST,GET,HEAD,PUT,DELETE +Access-Control-Max-Age: 100 +Access-Control-Expose-Headers: ExposeHeader_1,ExposeHeader_2 +Access-Control-Allow-Credentials: true +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCS+DXV4zZetbTqFehhEcuXywTa/mi3T3 +Date: WED, 01 Jul 2015 04:02:19 GMT +Content-Length: 0 + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF26000001643632D12EFCE1C1294555
-Access-Control-Allow-Origin: www.example.com
-Access-Control-Allow-Methods: POST,GET,HEAD,PUT,DELETE
-Access-Control-Max-Age: 100
-Access-Control-Expose-Headers: ExposeHeader_1,ExposeHeader_2
-Access-Control-Allow-Credentials: true
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCS+DXV4zZetbTqFehhEcuXywTa/mi3T3
-Date: WED, 01 Jul 2015 04:02:19 GMT
-Content-Length: 0
- |
If versioning is enabled for a bucket, the system automatically generates a unique version ID for the requested object in this bucket and returns the version ID in response header x-obs-version-id. If versioning is suspended for the bucket, the object version ID is null. For details about the versioning statuses of a bucket, see Configuring Versioning for a Bucket.
1 -2 -3 -4 -5 -6 -7 -8 | PUT /ObjectName HTTP/1.1
-Host: bucketname.obs.region.example.com
-Content-Type: application/xml
-Content-Length: length
-Authorization: authorization
-Date: date
-<Optional Additional Header>
-<object Content>
- |
1 +2 +3 +4 +5 +6 +7 +8 | PUT /ObjectName HTTP/1.1 +Host: bucketname.obs.region.example.com +Content-Type: application/xml +Content-Length: length +Authorization: authorization +Date: date +<Optional Additional Header> +<object Content> + |
This request contains no parameter.
+This request contains no parameters.
This request uses common headers. For details, see Table 3. The request can use additional headers, as listed in Table 1.
OBS supports the six HTTP request headers: Cache-Control, Expires, Content-Encoding, Content-Disposition, Content-Type, and Content-Language. If these headers are carried in an object upload request, their values are saved. You can also call the metadata modification API, provided by OBS, to change the values of the six headers. When the object is downloaded or queried, the saved values are set for corresponding HTTP headers and returned to the client.
@@ -54,7 +55,7 @@ Date: dateBase64-encoded 128-bit MD5 digest of the message according to RFC 1864.
Type: string
-Example: n58IG6hfM7vqI4K0vnWpog==
+Example: n58IG6hfM7vqI4K0vnWpog==
No
This header can be added to set access control policies for objects when creating the objects. The access control policies are the predefined common policies, including private, public-read, public-read-write.
Type: string
Note: This header is a predefined policy expressed in a character string.
-Example: x-obs-acl: public-read
+Example: x-obs-acl: public-read
No
When creating an object, you can use this header to specify the storage class for the object. If you do not use this header, the object storage class is the default storage class of the bucket.
Type: string
-Note: There are three storage classes: STANDARD (Standard storage class), WARM (Warm storage class), and COLD (Cold storage class). Therefore, this parameter value can be STANDARD, WARM, or COLD. These values are case sensitive.
-Example: x-obs-storage-class: STANDARD
+Storage class value options: STANDARD (Standard), WARM (Warm), COLD (Cold). These values are case sensitive.
+Example: x-obs-storage-class: STANDARD
No
When creating an object, you can use a header starting with x-obs-meta- to define object metadata in an HTTP request. Custom metadata will be returned in the response header when you retrieve or query the metadata of the object.
Type: string
-Example: x-obs-meta-test: test metadata
+Example: x-obs-meta-test: test metadata
No
Indicates that SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption: kms
+Example: x-obs-server-side-encryption: kms
No. This header is required when SSE-KMS is used.
The following two formats are supported:
1. regionID:domainID:key/key_id
2. key_id
-regionID is the ID of the region to which the key belongs. domainID is the account ID of the tenant to which the key belongs. key_id is the key ID created in KMS.
+regionID is the ID of the region to which the key belongs. domainID is the account ID of the tenant to which the key belongs. key_id is the key ID created in KMS.
Example:
1. x-obs-server-side-encryption-kms-key-id:region:domainiddomainiddomainiddoma0001: key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0
2. x-obs-server-side-encryption-kms-key-id: 4f1cd4de-ab64-4807-920a-47fc42e7f0d0
@@ -166,7 +167,7 @@ Date: dateEncryption algorithm. The header is used in SSE-C mode.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm: AES256
+Example: x-obs-server-side-encryption-customer-algorithm: AES256
Constraint: This header must be used together with x-obs-server-side-encryption-customer-key and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -176,7 +177,7 @@ Date: dateIndicates a key used to encrypt objects. The header is used in SSE-C mode. This key is used to encrypt objects.
Type: string
-Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
Constraint: This header is a Base64-encoded 256-bit key and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -186,7 +187,7 @@ Date: dateIndicates the MD5 value of a key used to encrypt objects. The header is used in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
Constraint: This header is a Base64-encoded 128-bit MD5 value and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key.
No. This header is required when SSE-C is used.
@@ -206,7 +207,7 @@ Date: dateIndicates the expiration time of an object, in days. An object will be automatically deleted once it expires (calculated from the last modification time of the object).
This field can be configured only when an object is uploaded and cannot be modified through the metadata modification API.
Type: integer
-Example: x-obs-expires:3
+Example: x-obs-expires:3
No
This request contains no elements. Its body contains only the content of the requested object.
1 -2 -3 | HTTP/1.1 status_code
-Content-Length: length
-Content-Type: type
- |
1 +2 +3 | HTTP/1.1 status_code +Content-Length: length +Content-Type: type + |
The response to the request uses common headers. For details, see Table 1.
In addition to the common response headers, the following message headers may also be used. For details, see Table 2.
@@ -244,7 +246,7 @@ Content-Type: typeThis header is included in a response if SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption:kms
+Example: x-obs-server-side-encryption:kms
x-obs-server-side-encryption-kms-key-id
@@ -253,21 +255,21 @@ Content-Type: typeType: string
Format: regionID:domainID:key/key_id
regionID is the ID of the region to which the key belongs. domainID is the account ID of the tenant to which the key belongs. key_id is the key ID used in this encryption.
-Example: x-obs-server-side-encryption-kms-key-id:region:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0
+Example: x-obs-server-side-encryption-kms-key-id:region:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0
x-obs-server-side-encryption-customer-algorithm
An encryption algorithm. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
x-obs-server-side-encryption-customer-key-MD5
The MD5 value of a key used to encrypt objects. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
x-obs-storage-class
@@ -285,211 +287,221 @@ Content-Type: typeNo special error responses are returned. For details about error responses, see Table 2.
Upload an object.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 | PUT /object01 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:11:15 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:gYqplLq30dEX7GMi2qFWyjdFsyw=
-Content-Length: 10240
-Expect: 100-continue
+Sample Response 1
|
1 -2 -3 -4 -5 -6 -7 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BF2600000164364C10805D385E1E3C67
-ETag: "d41d8cd98f00b204e9800998ecf8427e"
-x-obs-id-2: 32AAAWJAMAABAAAQAAEAABAAAQAAEAABCTzu4Jp2lquWuXsjnLyPPiT3cfGhqPoY
-Date: WED, 01 Jul 2015 04:11:15 GMT
-Content-Length: 0
- |
Set the ACL when uploading an object.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | PUT /object01 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:13:55 GMT
+Sample Response 2
|
1 -2 -3 -4 -5 -6 -7 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BB7800000164845759E4F3B39ABEE55E
-ETag: "d41d8cd98f00b204e9800998ecf8427e"
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSReVRNuas0knI+Y96iXrZA7BLUgj06Z
-Date: WED, 01 Jul 2015 04:13:55 GMT
-Content-Length: 0
- |
Upload objects when versioning is enabled for the bucket.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | PUT /object01 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:17:12 GMT
-x-obs-storage-class: WARM
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:uFVJhp/dJqj/CJIVLrSZ0gpw3ng=
-Content-Length: 10240
-Expect: 100-continue
+Sample Response 3
|
1 -2 -3 -4 -5 -6 -7 -8 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: DCD2FC9CAB78000001439A51DB2B2577
-ETag: "d41d8cd98f00b204e9800998ecf8427e"
-X-OBS-ID-2: GcVgfeOJHx8JZHTHrRqkPsbKdB583fYbr3RBbHT6mMrBstReVILBZbMAdLiBYy1l
-Date: WED, 01 Jul 2015 04:17:12 GMT
-x-obs-version-id: AAABQ4q2M9_c0vycq3gAAAAAVURTRkha
-Content-Length: 0
- |
MD5 is carried when an object is uploaded.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | PUT /object01 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:17:50 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:uFVJhp/dJqj/CJIVLrSZ0gpw3ng=
-Content-Length: 10
-Content-MD5: 6Afx/PgtEy+bsBjKZzihnw==
-Expect: 100-continue
+Sample Response 4
Sample Request 5If static website hosting has been configured for a bucket, you can configure parameters as follows when you upload an object. Then, users will be redirected when they download the object. +
Sample Response 5
|
1 -2 -3 -4 -5 -6 -7 -8 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: DCD2FC9CAB78000001439A51DB2B2577
-x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTmxB5ufMj/7/GzP8TFwTbp33u0xhn2Z
-ETag: "1072e1b96b47d7ec859710068aa70d57"
-Date: WED, 01 Jul 2015 04:17:12 GMT
-x-obs-version-id: AAABQ4q2M9_c0vycq3gAAAAAVURTRkha
-Content-Length: 0
- |
Upload an object and carry the signature in the URL.
PUT /object02?AccessKeyId=H4IPJX0TQTHTHEBQQCEC&Expires=1532688887&Signature=EQmDuOhaLUrzrzRNZxwS72CXeXM%3D HTTP/1.1 @@ -500,64 +512,67 @@ Content-Length: 1024 [1024 Byte data content]
1 -2 -3 -4 -5 -6 -7 -8 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: DCD2FC9CAB78000001439A51DB2B2577
-x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTmxB5ufMj/7/GzP8TFwTbp33u0xhn2Z
-ETag: "1072e1b96b47d7ec859710068aa70d57"
-Date: Fri, 27 Jul 2018 10:52:31 GMT
-x-obs-version-id: AAABQ4q2M9_c0vycq3gAAAAAVURTRkha
-Content-Length: 0
- |
1 +2 +3 +4 +5 +6 +7 +8 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: DCD2FC9CAB78000001439A51DB2B2577 +x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTmxB5ufMj/7/GzP8TFwTbp33u0xhn2Z +ETag: "1072e1b96b47d7ec859710068aa70d57" +Date: Fri, 27 Jul 2018 10:52:31 GMT +x-obs-version-id: AAABQ4q2M9_c0vycq3gAAAAAVURTRkha +Content-Length: 0 + |
Upload an object of a specified storage class.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | PUT /object01 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:15:07 GMT
-x-obs-storage-class: WARM
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:uFVJhp/dJqj/CJIVLrSZ0gpw3ng=
-Content-Length: 10240
-Expect: 100-continue
+Sample Response 7
|
1 -2 -3 -4 -5 -6 -7 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BB7800000164846A2112F98BF970AA7E
-ETag: "d41d8cd98f00b204e9800998ecf8427e"
-x-obs-id-2: a39E0UgAIAABAAAQAAEAABAAAQAAEAABCTPOUJu5XlNyU32fvKjM/92MQZK2gtoB
-Date: WED, 01 Jul 2015 04:15:07 GMT
-Content-Length: 0
- |
Uploading an object adds it to a bucket. This requires users to have the write operation.
+This operation uploads an object to a bucket. To use this operation, you must have the write permission on the bucket.
The name of each object in a bucket must be unique.
With versioning not enabled, if an object to be uploaded has the same name as an existing object in the bucket, the newly uploaded object will overwrite the existing one. To protect data from being corrupted during transmission, you can add the Content-MD5 parameter in the form field. After receiving the request, OBS will perform an MD5 consistency check. If the two MD5 values are inconsistent, the system returns an error message. You can also specify the value of the x-obs-acl parameter to configure an access control policy for the object.
@@ -17,119 +17,120 @@If versioning is enabled for a bucket, the system automatically generates a unique version ID for the requested object in this bucket and returns the version ID in response header x-obs-version-id. If versioning is suspended for a bucket, the version ID of the requested object in this bucket is null. For details about the versioning statuses of a bucket, see Configuring Versioning for a Bucket.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 | POST / HTTP/1.1
-Host: bucketname.obs.region.example.com
-User-Agent: browser_data
-Accept: file_types
-Accept-Language: Regions
-Accept-Encoding: encoding
-Accept-Charset: character_set
-Keep-Alive: 300
-Connection: keep-alive
-Content-Type: multipart/form-data; boundary=9431149156168
-Content-Length: length
+ |
This request contains no parameter.
+This request contains no parameters.
When creating an object, you can use this header to specify the storage class for the object. If you do not use this header, the object storage class is the default storage class of the bucket.
Type: string
-Note: There are three storage classes: STANDARD (Standard storage class), WARM (Warm storage class), and COLD (Cold storage class). Therefore, this parameter value can be STANDARD, WARM, or COLD. These values are case sensitive.
+Storage class value options: STANDARD (Standard), WARM (Warm), COLD (Cold). These values are case sensitive.
An example is provided as follows:
In POLICY: {"storage-class": "STANDARD" },
In HTML: <input type="text" name="x-obs-storage-class" value="STANDARD" />
@@ -312,7 +313,7 @@ Upload to OBSIndicates the address (URL) to which a successfully responded request is redirected.
Type: string.
+Type: string
An example is provided as follows:
In POLICY: {"success_action_redirect": "http://123458.com"},
In HTML: <input type="text" name="success_action_redirect" value="http://123458.com" />
@@ -356,7 +357,7 @@ Upload to OBSIndicates that SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption:kms
+Example: x-obs-server-side-encryption:kms
No. This header is required when SSE-KMS is used.
The following two formats are supported:
1. regionID:domainID:key/key_id
2. key_id
-regionID is the ID of the region to which the key belongs. domainID is the account ID of the tenant to which the key belongs. key_id is the key ID created in KMS.
+regionID is the ID of the region to which the key belongs. domainID is the account ID of the tenant to which the key belongs. key_id is the key ID created in KMS.
Example:
1. x-obs-server-side-encryption-kms-key-id: region:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0
2. x-obs-server-side-encryption-kms-key-id:4f1cd4de-ab64-4807-920a-47fc42e7f0d0
@@ -380,7 +381,7 @@ Upload to OBSEncryption algorithm. The header is used in SSE-C mode.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
Constraint: This header must be used together with x-obs-server-side-encryption-customer-key and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -390,7 +391,7 @@ Upload to OBSA key used to encrypt objects. The header is used in SSE-C mode. This key is used to encrypt objects.
Type: string
-Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
Constraint: This header is a Base64-encoded 256-bit key and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -400,7 +401,7 @@ Upload to OBSIndicates the MD5 value of a key used to encrypt objects. The header is used in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
Constraint: This header is a Base64-encoded 128-bit MD5 value and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key.
No. This header is required when SSE-C is used.
@@ -410,7 +411,7 @@ Upload to OBSIndicates the expiration time of an object, in days. An object will be automatically deleted once it expires (calculated from the last modification time of the object).
Type: integer
-Example: x-obs-expires:3
+Example: x-obs-expires:3
No
1 -2 -3 -4 -5 | HTTP/1.1 status_code
-Content-Type: application/xml
-Location: location
-Date: date
-ETag: etag
- |
1 +2 +3 +4 +5 | HTTP/1.1 status_code +Content-Type: application/xml +Location: location +Date: date +ETag: etag + |
The response to the request uses common headers. For details, see Table 1.
In addition to the common response headers, the following message headers may also be used. For details, see Table 3.
@@ -481,7 +483,7 @@ ETag: etagThis header is included in a response if SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption:kms
+Example: x-obs-server-side-encryption:kms
x-obs-server-side-encryption-kms-key-id
@@ -490,21 +492,21 @@ ETag: etagType: string
Format: regionID:domainID:key/key_id
regionID is the ID of the region to which the key belongs. domainID is the account ID of the tenant to which the key belongs. key_id is the key ID used in this encryption.
-Example: x-obs-server-side-encryption-kms-key-id:region:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0
+Example: x-obs-server-side-encryption-kms-key-id:region:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0
x-obs-server-side-encryption-customer-algorithm
Indicates an encryption algorithm. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
x-obs-server-side-encryption-customer-key-MD5
Indicates the MD5 value of a key used to encrypt objects. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
No special error responses are returned. For details about error responses, see Table 2.
Common POST upload
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 | POST / HTTP/1.1
-Date: WED, 01 Jul 2015 04:15:23 GMT
-Host: examplebucket.obs.region.example.com
-Content-Type: multipart/form-data; boundary=7db143f50da2
-Content-Length: 2424
-Origin: www.example.com
+ |
After CORS is configured for a bucket, the response contains the Access-Control-* information.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 | HTTP/1.1 204 No Content
-x-obs-request-id: 90E2BA00C26C00000133B442A90063FD
-x-obs-id-2: OTBFMkJBMDBDMjZDMDAwMDAxMzNCNDQyQTkwMDYzRkRBQUFBQUFBQWJiYmJiYmJi
-Access-Control-Allow-Origin: www.example.com
-Access-Control-Allow-Methods: POST,GET,HEAD,PUT
-Access-Control-Allow-Headers: acc_header_01
-Access-Control-Max-Age: 100
-Access-Control-Expose-Headers: exp_header_01
-Content-Type: text/xml
-Location: http://examplebucket.obs.region.example.com/object01
-Date: WED, 01 Jul 2015 04:15:23 GMT
-ETag: "ab7abb0da4bca5323ab6119bb5dcd296"
- |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 | HTTP/1.1 204 No Content +x-obs-request-id: 90E2BA00C26C00000133B442A90063FD +x-obs-id-2: OTBFMkJBMDBDMjZDMDAwMDAxMzNCNDQyQTkwMDYzRkRBQUFBQUFBQWJiYmJiYmJi +Access-Control-Allow-Origin: www.example.com +Access-Control-Allow-Methods: POST,GET,HEAD,PUT +Access-Control-Allow-Headers: acc_header_01 +Access-Control-Max-Age: 100 +Access-Control-Expose-Headers: exp_header_01 +Content-Type: text/xml +Location: http://examplebucket.obs.region.example.com/object01 +Date: WED, 01 Jul 2015 04:15:23 GMT +ETag: "ab7abb0da4bca5323ab6119bb5dcd296" + |
Upload an object with the x-obs-acl, storage class, and redirection header fields carried in the request message.
Before encoding, the policy content is as follows:
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 | {
- "expiration":"2018-07-17T04:54:35Z",
- "conditions":[
- {
- "content-type":"text/plain"
- },
- {
- "x-obs-storage-class":"WARM"
- },
- {
- "success_action_redirect":"http://www.example.com"
- },
- {
- "x-obs-acl":"public-read"
- },
- [
- "starts-with",
- "$bucket",
- ""
- ],
- [
- "starts-with",
- "$key",
- ""
- ]
- ]
+ |
Sample request:
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 | POST / HTTP/1.1
-Host: examplebucket.obs.region.example.com
-Accept-Encoding: identity
-Content-Length: 947
-Content-Type: multipart/form-data; boundary=9431149156168
-User-Agent: OBS/Test
+ |
1 +2 +3 +4 +5 +6 +7 | HTTP/1.1 204 No Content +Server: OBS +Location: http://examplebucket.obs.region.example.com/my-obs-object-key-demo +ETag: "17a83fc8d431273405bd266114b7e034" +x-obs-request-id: 5DEB00000164A728A7C7F4E032214CFA +x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCSwj2PcBE0YcoLHUDO7GSj+rVByzjflA +Date: Tue, 17 Jul 2018 07:33:36 GMT + |
Use a token for authentication.
+1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 | POST / HTTP/1.1 +Content-Type:multipart/form-data; boundary=9431149156168 +Content-Length: 634 +Host: examplebucket.obs.region.example.com + +--9431149156168 +Content-Disposition: form-data; name="key" +obj01 + +--9431149156168 +Content-Disposition: form-data; name="token" +UDSIAMSTUBTEST002538:XsVcTzR2/A284oE4VH9qPndGcuE=:eyJjb25kaXRpb25zIjogW3siYnVja2V0IjogInRlc3QzMDAzMDU4NzE2NjI2ODkzNjcuMTIifSwgeyJDb250ZW50LVR5cGUiOiAiYXBwbGljYXRpb24veG1sIn0sIFsiZXEiLCAiJGtleSIsICJvYmoudHh0Il1dLCAiZXhwaXJhdGlvbiI6ICIyMDIyLTA5LTA5VDEyOjA5OjI3WiJ9 + +--9431149156168 +Content-Disposition: form-data; name="file"; filename="myfile" +Content-Type: text/plain +01234567890 + +--9431149156168-- +Content-Disposition: form-data; name="submit" +Upload to OBS + |
The response to the authentication using a token
+1 +2 +3 +4 +5 +6 +7 | HTTP/1.1 204 No Content +Server: OBS +Location: http://examplebucket.obs.region.example.com/my-obs-object-key-demo +ETag: "7eda50a430fed940023acb9c4c6a2fff" +x-obs-request-id: 000001832010443D80F30B649B969C47 +x-obs-id-2: 32AAAUgAIAABAAAQAAEAABAAAQAAEAABCTj0yO9KJd5In+i9pzTgCDVG9vMnk7O/ +Date: Fri,09Sep 2022 02: 24:40 GMT + |
1 -2 -3 -4 -5 -6 -7 | HTTP/1.1 204 No Content
-Server: OBS
-Location: http://examplebucket.obs.region.example.com/my-obs-object-key-demo
-ETag: "17a83fc8d431273405bd266114b7e034"
-x-obs-request-id: 5DEB00000164A728A7C7F4E032214CFA
-x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCSwj2PcBE0YcoLHUDO7GSj+rVByzjflA
-Date: Tue, 17 Jul 2018 07:33:36 GMT
- |
Users can determine whether to copy the metadata of the source object to the target object (by default) or replace the metadata of the target object with the metadata contained in the request. The ACL of the source object is not copied to the target object. By default, the ACL of the target object is private. You can set an ACL for the target object by sending an API request.
The request for copying an object needs to carry the information about the bucket and object to be copied in the header field. The message body cannot be carried.
This operation supports server-side encryption.
-The target object size range is [0, 5 GB]. If the source object size exceeds 5 GB, you can only copy some objects using the Range API.
+An object copy can be up to 5 GB in size. If the source object size exceeds 5 GB, you can only copy part of the object.
By default, x-obs-copy-source specifies the latest version of the source object. If the latest version of the source object has a deletion marker, the object is considered to have been deleted. You can add versionId to request header x-obs-copy-source to copy an object with the specified version ID.
If a bucket has versioning enabled, the system automatically generates a unique version ID for the requested object in this bucket and returns the version ID in response header x-obs-version-id. If versioning is suspended for the bucket, the object version ID is null.
@@ -13,33 +13,34 @@You cannot determine whether a request is executed successfully only using status_code in the header returned by HTTP. If 200 in status_code is returned, the server has received the request and starts to process the request. The body in the response shows whether the copy succeeds. If the body contains ETag, the copy succeeds. Otherwise, the copy failed.
-If source objects are OBS Cold objects, check the restore status of the objects. You can copy these objects only after they are restored. If the source object is not retrieved or is being retrieved, the copying fails and error 403 Forbidden is returned. The fault is described as follows:
+If source objects are in the Cold storage class, ensure that these objects have been restored before you copy them. If a source object is not restored or is being restored, its copy will fail and error 403 Forbidden will be returned. The fault is described as follows:
ErrorCode: InvalidObjectState
ErrorMessage: Operation is not valid for the source object's storage class
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 | PUT /destinationObjectName HTTP/1.1
-Host: bucketname.obs.region.example.com
-x-obs-copy-source: /sourceBucket/sourceObject
-x-obs-metadata-directive: metadata_directive
-x-obs-copy-source-if-match: etag
-x-obs-copy-source-if-none-match: etag
-x-obs-copy-source-if-unmodified-since: time_stamp
-x-obs-copy-source-if-modified-since: time_stamp
-Authorization: signature
-Date: date
- |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 | PUT /destinationObjectName HTTP/1.1 +Host: bucketname.obs.region.example.com +x-obs-copy-source: /sourceBucket/sourceObject +x-obs-metadata-directive: metadata_directive +x-obs-copy-source-if-match: etag +x-obs-copy-source-if-none-match: etag +x-obs-copy-source-if-unmodified-since: time_stamp +x-obs-copy-source-if-modified-since: time_stamp +Authorization: signature +Date: date + |
This request contains no parameter.
+This request contains no message parameters.
You can add optional headers to specify the object to be copied. Table 3 describes the optional headers.
@@ -55,7 +56,7 @@ Date: dateThis header can be added to set access control policies for objects when copying the objects. The access control policies are the predefined common policies, including private, public-read, public-read-write.
Type: string
-Example: x-obs-acl: acl
+Example: x-obs-acl: acl
No
Indicates names of the source bucket and the source object. If the source object has multiple versions, the versionId parameter can be used to specify the desired version.
Type: string
Constraint: URL encoding is required for handling Chinese characters.
-Example: x-obs-copy-source: /source_bucket/sourceObject
+Example: x-obs-copy-source: /source_bucket/sourceObject
Yes
Type: string
Valid values: COPY and REPLACE
Default value: COPY
-Example: x-obs-metadata-directive: metadata_directive
+Example: x-obs-metadata-directive: metadata_directive
Constraints: Values other than COPY or REPLACE result in an immediate 400-based error response. If you need to modify the metadata (the same for both the source and target objects), this parameter must be set to REPLACE, otherwise, the request is invalid and the server returns a 400 HTTP status code error. This parameter cannot be used to change an encrypted object to a non-encrypted object (the same for both the source and target objects). If you use this parameter to change the encrypted object, the system returns 400.
No
@@ -118,7 +119,7 @@ Date: dateCopies the source object only if its ETag matches the one specified by this header. Otherwise, a 412 HTTP status code error (failed precondition) is returned.
Type: string
-Example: x-obs-copy-source-if-match: etag
+Example: x-obs-copy-source-if-match: etag
Constraint: This parameter can be used with x-obs-copy-source-if-unmodified-since but not other conditional copy parameters.
No
@@ -128,17 +129,17 @@ Date: dateCopies the object only if its ETag does not match the one specified in this header. Otherwise, a 412 HTTP status code error (failed precondition) is returned.
Type: string
-Example: x-obs-copy-source-if-none-match: etag
+Example: x-obs-copy-source-if-none-match: etag
Constraint: This parameter can be used with x-obs-copy-source-if-modified-since but not other conditional copy parameters.
No
x-obs-copy-source-if-unmodified- since
+x-obs-copy-source-if-unmodified-since
Copies the source object only if it has not been modified since the time specified by this header. Otherwise, a 412 HTTP status code error (failed precondition) is returned. This header can be used with x-obs-copy-source-if-match, but cannot be used with other conditional copy headers.
Type: HTTP time character string complying with the format specified at http://www.ietf.org/rfc/rfc2616.txt
-Example: x-obs-copy-source-if-unmodified -since: time-stamp
+Example: x-obs-copy-source-if-unmodified-since: time-stamp
No
Copies the source object only if it has not been modified since the time specified by this header. Otherwise, a 412 HTTP status code error (failed precondition) is returned. This header can be used with x-obs-copy-source-if-none-match, but cannot be used with other conditional copy headers
Type: HTTP time character string complying with the format specified at http://www.ietf.org/rfc/rfc2616.txt
-Example: x-obs-copy-source-if-modified-since: time-stamp
+Example: x-obs-copy-source-if-modified-since: time-stamp
No
When copying an object, you can use this header to specify the storage class for the object. If you do not use this header, the object storage class is the default storage class of the destination bucket where the object is copied to.
Type: string
-Note: There are three storage classes: STANDARD (Standard storage class), WARM (Warm storage class), and COLD (Cold storage class). Therefore, this parameter value can be STANDARD, WARM, or COLD. These values are case sensitive.
-Example: x-obs-storage-class: STANDARD
+Storage class value options: STANDARD (Standard), WARM (Warm), COLD (Cold). These values are case sensitive.
+Example: x-obs-storage-class: STANDARD
No
Indicates that SSE-KMS is used. Objects are encrypted using SSE-KMS.
Type: string
-Example: x-obs-server-side-encryption: kms
+Example: x-obs-server-side-encryption: kms
No. This header is required when SSE-KMS is used.
The following two formats are supported:
1. regionID:domainID:key/key_id
2. key_id
-regionID is the ID of the region to which the key belongs. domainID is the account ID of the tenant to which the key belongs. key_id is the key ID created in KMS.
+regionID is the ID of the region to which the key belongs. domainID is the account ID of the tenant to which the key belongs. key_id is the key ID created in KMS.
Example:
1. x-obs-server-side-encryption-kms-key-id: region:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0
2. x-obs-server-side-encryption-kms-key-id: 4f1cd4de-ab64-4807-920a-47fc42e7f0d0
@@ -200,7 +201,7 @@ Date: dateEncryption algorithm. The header is used in SSE-C mode.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm: AES256
+Example: x-obs-server-side-encryption-customer-algorithm: AES256
Constraint: This header must be used together with x-obs-server-side-encryption-customer-key and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -210,7 +211,7 @@ Date: dateIndicates the key used to encrypt an object. The header is used in SSE-C mode.
Type: string
-Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
Constraint: This header is a Base64-encoded 256-bit key and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -220,7 +221,7 @@ Date: dateIndicates the MD5 value of a key used to encrypt a destination object. The header is used in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
Constraint: This header is a Base64-encoded 128-bit MD5 value and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key.
No. This header is required when SSE-C is used.
@@ -240,7 +241,7 @@ Date: dateIndicates the key used to decrypt a source object. The header is used in SSE-C mode. SSE-C mode.
Type: string
-Example: x-obs-copy-source-server-side-encryption-customer-key: K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-copy-source-server-side-encryption-customer-key: K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
Constraint: This header is a Base64-encoded 256-bit key and must be used together with x-obs-copy-source-server-side-encryption-customer-algorithm and x-obs-copy-source-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used to copy a source object.
@@ -250,7 +251,7 @@ Date: dateIndicates the MD5 value of the key used to decrypt a source object. The header is used in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key.
Type: string
-Example: x-obs-copy-source-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-copy-source-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
Constraint: This header is a Base64-encoded 128-bit MD5 value and must be used together with x-obs-copy-source-server-side-encryption-customer-algorithm and x-obs-copy-source-server-side-encryption-customer-key.
No. This header is required when SSE-C is used to copy a source object.
@@ -272,27 +273,28 @@ Date: dateThis request contains no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 | HTTP/1.1 status_code
-Content-Type: application/xml
-Date: date
-Content-Length: length
+ |
This header is included in a response if SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption: kms
+Example: x-obs-server-side-encryption: kms
x-obs-server-side-encryption-kms-key-id
@@ -335,19 +337,19 @@ Content-Length: lengthIndicates an encryption algorithm. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm: AES256
+Example: x-obs-server-side-encryption-customer-algorithm: AES256
x-obs-server-side-encryption-customer-key-MD5
Indicates the MD5 value of a key used to encrypt objects. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
x-obs-storage-class
This header is returned when the storage class of an object is not Standard. The value can be WARM or COLD.
+This header is returned when the storage class of an object is not Standard. The value can be WARM or COLD.
Type: string
No special error responses are returned. For details about error responses, see Table 2.
Copy the object srcobject in bucket bucket to the destobject object in bucket examplebucket.
-1 -2 -3 -4 -5 -6 -7 | PUT /destobject HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:19:21 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:2rZR+iaH8xUewvUKuicLhLHpNoU=
-x-obs-copy-source: /bucket/srcobject
- |
1 +2 +3 +4 +5 +6 +7 | PUT /destobject HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 04:19:21 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:2rZR+iaH8xUewvUKuicLhLHpNoU= +x-obs-copy-source: /bucket/srcobject + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 001B21A61C6C00000134031BE8005293
-x-obs-id-2: MDAxQjIxQTYxQzZDMDAwMDAxMzQwMzFCRTgwMDUyOTNBQUFBQUFBQWJiYmJiYmJi
-Date: WED, 01 Jul 2015 04:19:21 GMT
-Content-Length: 249
+Sample Response 1
|
Copy a multi-version object and copy the object srcobject whose version number is AAABQ4uBLdLc0vycq3gAAAAEVURTRkha in bucket bucket to the destobject object in bucket examplebucket.
-1 -2 -3 -4 -5 -6 -7 | PUT /destobject HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:20:29 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:4BLYv+1UxfRSHBMvrhVLDszxvcY=
-x-obs-copy-source: /bucket/srcobject?versionId=AAABQ4uBLdLc0vycq3gAAAAEVURTRkha
- |
1 +2 +3 +4 +5 +6 +7 | PUT /destobject HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 04:20:29 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:4BLYv+1UxfRSHBMvrhVLDszxvcY= +x-obs-copy-source: /bucket/srcobject?versionId=AAABQ4uBLdLc0vycq3gAAAAEVURTRkha + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: DCD2FC9CAB78000001438B8A9C898B79
-x-obs-id-2: DB/qBZmbN6AIoX9mrrSNYdLxwvbO0tLR/l6/XKTT4NmZspzharwp5Z74ybAYVOgr
-Content-Type: application/xml
-x-obs-version-id: AAABQ4uKnOrc0vycq3gAAAAFVURTRkha
-x-obs-copy-source-version-id: AAABQ4uBLdLc0vycq3gAAAAEVURTRkha
-Date: WED, 01 Jul 2015 04:20:29 GMT
-Transfer-Encoding: chunked
+Sample Response 2
|
By default, the GET operation returns the current version of an object. If the current version of the object is a deletion marker, OBS returns a code meaning non-existence of the object. To obtain an object of a specified version, the versionId parameter can be used to specify the desired version.
If the object to be downloaded is a Cold object, restore it before downloading it. The response varies with the retrieval status of the object. If the object has been restored, the x-obs-restore header is returned indicating the expiry date of the object when it is successfully downloaded. If you request downloading Cold objects that are not restored or are being restored, a 403 Forbidden error is returned.
+If the object you want to download is in the Cold storage class, ensure that this object has been restored before you download it. The response varies depending on the object's restore state. If an object has been restored, the x-obs-restore header (indicating the expiry date of the object) is returned when the object is successfully downloaded. If you send a request to download Cold objects that are not restored or are being restored, a 403 Forbidden error will be returned.
+1 +2 +3 +4 +5 +6 | GET /ObjectName HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization +Range:bytes=byte_range +<Optional Additional Header> + |
1 -2 -3 -4 -5 -6 | GET /ObjectName HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
-Range:bytes=byte_range
-<Optional Additional Header>
- |
The field is optional. If it does not exist, you can obtain the whole content.
attname
Rewrites the Content-Disposition header in the response.
+Rewrites the Content-Disposition header in the response.
Type: string
Example:
attname=name1
@@ -156,7 +157,7 @@ Range:bytes=byte_rangeReturns the object only if its ETag is the same as the one specified by this header. Otherwise, 412 Precondition Failed is returned.
Type: string
-(Example: 0f64741bf7cb1089e988e4585d0d3434)
+Example: 0f64741bf7cb1089e988e4585d0d3434
No
Returns the object only if its ETag is different from the one specified by this header. Otherwise, 304 Not Modified is returned.
Type: string
-(Example: 0f64741bf7cb1089e988e4585d0d3434)
+Example: 0f64741bf7cb1089e988e4585d0d3434
No
Indicates an encryption algorithm. The header is used in SSE-C mode.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
Constraint: This header must be used together with x-obs-server-side-encryption-customer-key and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -184,7 +185,7 @@ Range:bytes=byte_rangeIndicates a key used to encrypt objects. The header is used in SSE-C mode. This key is used to decrypt objects.
Type: string
-Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
Constraint: This header is a Base64-encoded 256-bit key and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -194,7 +195,7 @@ Range:bytes=byte_rangeIndicates the MD5 value of a key used to encrypt objects. The header is used in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
Constraint: This header is a Base64-encoded 128-bit MD5 value and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key.
No. This header is required when SSE-C is used.
@@ -206,23 +207,24 @@ Range:bytes=byte_rangeThis request involves no elements.
1 -2 -3 -4 -5 -6 -7 -8 | HTTP/1.1 status_code
-Content-Type: type
-Date: date
-Content-Length: length
-Etag: etag
-Last-Modified: time
+ |
This header is included in a response if SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption:kms
+Example: x-obs-server-side-encryption:kms
x-obs-server-side-encryption-kms-key-id
@@ -280,14 +282,14 @@ Last-Modified: timeIndicates a decryption algorithm. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
x-obs-server-side-encryption-customer-key-MD5
Indicates the MD5 value of a key used to decrypt objects. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
x-obs-object-type
@@ -311,226 +313,235 @@ Last-Modified: timeNo special error responses are returned. For details about error responses, see Table 2.
Download the entire object.
-1 -2 -3 -4 -5 -6 | GET /object01 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:24:33 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:NxtSMS0jaVxlLnxlO9awaMTn47s=
- |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 8DF400000163D3F2A89604C49ABEE55E
-Accept-Ranges: bytes
-ETag: "3b46eaf02d3b6b1206078bb86a7b7013"
-Last-Modified: WED, 01 Jul 2015 01:20:29 GMT
-Content-Type: binary/octet-stream
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSQwxJ2I1VvxD/Xgwuw2G2RQax30gdXU
-Date: WED, 01 Jul 2015 04:24:33 GMT
-Content-Length: 4572
+ |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 8DF400000163D3F2A89604C49ABEE55E +Accept-Ranges: bytes +ETag: "3b46eaf02d3b6b1206078bb86a7b7013" +Last-Modified: WED, 01 Jul 2015 01:20:29 GMT +Content-Type: binary/octet-stream +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSQwxJ2I1VvxD/Xgwuw2G2RQax30gdXU +Date: WED, 01 Jul 2015 04:24:33 GMT +Content-Length: 4572 + +[4572 Bytes object content] + |
Download the specified range of an object (download a range of an object).
-1 -2 -3 -4 -5 -6 -7 | GET /object01 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: Mon, 14 Sep 2020 09:59:04 GMT
+ |
Download the specified range of an object (download multiple ranges of an object).
-1 -2 -3 -4 -5 -6 -7 | GET /object01 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: Mon, 14 Sep 2020 10:02:43 GMT
+ |
Download the specified range of an object (download a range of an object).
+1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 +13 | HTTP/1.1 206 Partial Content +Server: OBS +x-obs-request-id: 000001748C0DBC35802E360C9E869F31 +Accept-Ranges: bytes +ETag: "2200446c2082f27ed2a569601ca4e360" +Last-Modified: Mon, 14 Sep 2020 01:16:20 GMT +Content-Range: bytes 20-30/4583 +Content-Type: binary/octet-stream +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSn2JHu4okx9NBRNZAvBGawa3lt3g31g +Date: Mon, 14 Sep 2020 09:59:04 GMT +Content-Length: 11 + +[ 11 Bytes object content] + |
Download the specified range of an object (download multiple ranges of an object).
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 | HTTP/1.1 206 Partial Content
-Server: OBS
-x-obs-request-id: 8DF400000163D3F2A89604C49ABEE55E
-Accept-Ranges: bytes
-ETag: "2200446c2082f27ed2a569601ca4e360"
-Last-Modified: Mon, 14 Sep 2020 01:16:20 GMT
-Content-Type: multipart/byteranges;boundary=35bcf444-e65f-4c76-9430-7e4a68dd3d26
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSIBWFOVW8eeWujkqSnoIANC2mNR1cdF
-Date: Mon, 14 Sep 2020 10:02:43 GMT
-Content-Length: 288
+ |
Download an object if its Etag value matches.
-1 -2 -3 -4 -5 -6 -7 | GET /object01 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:24:33 GMT
-If-Match: 682e760adb130c60c120da3e333a8b09
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:NxtSMS0jaVxlLnxlO9awaMTn47s=
- |
1 +2 +3 +4 +5 +6 +7 | GET /object01 HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 04:24:33 GMT +If-Match: 682e760adb130c60c120da3e333a8b09 +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:NxtSMS0jaVxlLnxlO9awaMTn47s= + |
If the Etag value of the stored object is not 682e760adb130c60c120da3e333a8b09, the system displays a message indicating that the download fails.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 | HTTP/1.1 412 Precondition Failed
-Server: OBS
-x-obs-request-id: 8DF400000163D3F2A89604C49ABEE55E
-Content-Type: application/xml
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSQwxJ2I1VvxD/Xgwuw2G2RQax30gdXU
-Date: WED, 01 Jul 2015 04:20:51 GMT
+ |
If the Etag value of the stored object is 682e760adb130c60c120da3e333a8b09, the download is successful.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 5DEB00000164A21E1FC826C58F6BA001
-Accept-Ranges: bytes
-ETag: "682e760adb130c60c120da3e333a8b09"
-Last-Modified: Mon, 16 Jul 2015 08:03:34 GMT
-Content-Type: application/octet-stream
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSbkdml1sLSvKnoHaRcOwRI+6+ustDwk
-Date: Mon, 16 Jul 2015 08:04:00 GMT
-Content-Length: 8
+ |
Carry the signature in the URL when downloading an object.
GET /object02?AccessKeyId=H4IPJX0TQTHTHEBQQCEC&Expires=1532688887&Signature=EQmDuOhaLUrzrzRNZxwS72CXeXM%3D HTTP/1.1 @@ -539,111 +550,116 @@ Host: examplebucket.obs.region.example.co Accept: */* Date: Fri, 27 Jul 2018 10:52:31 GMT
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 804F00000164DB5E5B7FB908D3BA8E00
-ETag: "682e760adb130c60c120da3e333a8b09"
-Last-Modified: Mon, 16 Jul 2015 08:03:34 GMT
-Content-Type: application/octet-stream
-x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTlpxILjhVK/heKOWIP8Wn2IWmQoerfw
-Date: Fri, 27 Jul 2018 10:52:31 GMT
-Content-Length: 8
+ |
Use the response-content-disposition parameter to download and rename an object.
-1 -2 -3 -4 -5 -6 | GET /object01?response-content-disposition=attachment; filename*=utf-8''name1 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:24:33 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:NxtSMS0jaVxlLnxlO9awaMTn47s=
- |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 804F00000164DB5E5B7FB908D3BA8E00
-ETag: "682e760adb130c60c120da3e333a8b09"
-Last-Modified: Mon, 16 Jul 2015 08:03:34 GMT
-Content-Type: application/octet-stream
-x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTlpxILjhVK/heKOWIP8Wn2IWmQoerfw
-Date: Fri, 27 Jul 2018 10:52:31 GMT
-Content-Length: 8
-Content-Disposition: attachment; filename*=utf-8''name1
+ |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 804F00000164DB5E5B7FB908D3BA8E00 +ETag: "682e760adb130c60c120da3e333a8b09" +Last-Modified: Mon, 16 Jul 2015 08:03:34 GMT +Content-Type: application/octet-stream +x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTlpxILjhVK/heKOWIP8Wn2IWmQoerfw +Date: Fri, 27 Jul 2018 10:52:31 GMT +Content-Length: 8 +Content-Disposition: attachment; filename*=utf-8''name1 + +[ 8 Bytes object content] + |
Use the attname parameter to download and rename an object.
-1 -2 -3 -4 -5 -6 | GET /object01?attname=name1 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:24:33 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:NxtSMS0jaVxlLnxlO9awaMTn47s=
- |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 804F00000164DB5E5B7FB908D3BA8E00
-ETag: "682e760adb130c60c120da3e333a8b09"
-Last-Modified: Mon, 16 Jul 2015 08:03:34 GMT
-Content-Type: application/octet-stream
-x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTlpxILjhVK/heKOWIP8Wn2IWmQoerfw
-Date: Fri, 27 Jul 2018 10:52:31 GMT
-Content-Length: 8
-Content-Disposition: attachment; filename*=utf-8''name1
+ |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 804F00000164DB5E5B7FB908D3BA8E00 +ETag: "682e760adb130c60c120da3e333a8b09" +Last-Modified: Mon, 16 Jul 2015 08:03:34 GMT +Content-Type: application/octet-stream +x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTlpxILjhVK/heKOWIP8Wn2IWmQoerfw +Date: Fri, 27 Jul 2018 10:52:31 GMT +Content-Length: 8 +Content-Disposition: attachment; filename*=utf-8''name1 + +[ 8 Bytes object content] + |
Users with the read permission on objects can perform the HeadObject operation to obtain metadata of objects. The object metadata is included in the response.
This operation supports server-side encryption.
By default, this operation returns the latest metadata of an object. If the object has a deletion marker, status code 404 is returned. To obtain the object metadata of a specified version, the versionId parameter can be used to specify the desired version.
+By default, this operation returns the latest metadata of an object. If the object has a delete marker, status code 404 is returned. To obtain the object metadata of a specified version, the versionId parameter can be used to specify the desired version.
+1 +2 +3 +4 | HEAD /ObjectName HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
1 -2 -3 -4 | HEAD /ObjectName HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
Table 1 describes the request parameters.
@@ -54,7 +55,7 @@ Authorization: authorizationOrigin of the cross-domain request specified by the pre-request. Generally, it is a domain name.
Type: string
Yes
+No
Access-Control-Request-Headers
@@ -69,7 +70,7 @@ Authorization: authorizationIndicates a decryption algorithm. The header is used in SSE-C mode.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
Constraint: This header must be used together with x-obs-server-side-encryption-customer-key and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -79,7 +80,7 @@ Authorization: authorizationIndicates a key used to decrypt objects. The header is used in SSE-C mode.
Type: string
-Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
Constraint: This header is a Base64-encoded 256-bit key and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -89,7 +90,7 @@ Authorization: authorizationIndicates the MD5 value of a key used to decrypt objects. The header is used in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
Constraint: This header is a Base64-encoded 128-bit MD5 value and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key.
No. This header is required when SSE-C is used.
@@ -101,19 +102,20 @@ Authorization: authorizationThis request involves no elements.
1 -2 -3 -4 -5 -6 | HTTP/1.1 status_code
-Content-Type: type
-Date: date
-Content-Length: length
-Etag: etag
-Last-Modified: time
- |
1 +2 +3 +4 +5 +6 | HTTP/1.1 status_code +Content-Type: type +Date: date +Content-Length: length +Etag: etag +Last-Modified: time + |
This header is included in a response if SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption:kms
+Example: x-obs-server-side-encryption:kms
x-obs-server-side-encryption-kms-key-id
@@ -193,25 +195,25 @@ Last-Modified: timeIndicates a decryption algorithm. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
x-obs-server-side-encryption-customer-key-MD5
Indicates the MD5 value of a key used to decrypt objects. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
x-obs-storage-class
This header is returned when the storage class of an object is not Standard. The value can be WARM or COLD.
+This header is returned when the storage class of an object is not Standard. The value can be WARM or COLD.
Type: string
x-obs-restore
For a Cold object that is being restored or has been restored, this header is returned. Indicates the object restoring status. Value options are as follows: restoring ongoing-request=true; you have obtained ongoing-request=false, expiry-date=Wed, 07 Nov 2012 00:00:00 GMT. In the preceding information, expiry-date indicates the expiration time after the object is restored.
+This header is returned when a Cold object is being restored or has been restored. It represents the object's restore status, which can be ongoing-request="true" (the object is being restored) or ongoing-request="false", expiry-date="Wed, 07 Nov 2012 00:00:00 GMT" (the object has been restored). In these statuses, expiry-date indicates when the restored object will expire.
Type: string
No special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | HEAD /object1 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:19:25 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:/cARjk81l2iExMfQqn6iT3qEZ74=
- |
1 +2 +3 +4 +5 +6 | HEAD /object1 HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 04:19:25 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:/cARjk81l2iExMfQqn6iT3qEZ74= + |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 8DF400000163D3E4BB5905C41B6E65B6 +Accept-Ranges: bytes +ETag: "3b46eaf02d3b6b1206078bb86a7b7013" +Last-Modified: WED, 01 Jul 2015 01:19:21 GMT +Content-Type: binary/octet-stream +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSD3nAiTaBoeyt9oHp9vTYtXnLDmwV6D +Date: WED, 01 Jul 2015 04:19:21 GMT +Content-Length: 4572 + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 8DF400000163D3E4BB5905C41B6E65B6
-Accept-Ranges: bytes
-ETag: "3b46eaf02d3b6b1206078bb86a7b7013"
-Last-Modified: WED, 01 Jul 2015 01:19:21 GMT
-Content-Type: binary/octet-stream
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSD3nAiTaBoeyt9oHp9vTYtXnLDmwV6D
-Date: WED, 01 Jul 2015 04:19:21 GMT
-Content-Length: 4572
- |
When versioning is enabled for a bucket, a deletion marker with a unique version number is generated when an object is deleted without specifying the version. However, the object is not actually deleted. If versioning is suspended for a bucket and no version is specified when you delete an object, the object whose version number is null is deleted, and a deletion marker with version number null is generated.
To delete an object of a specified version, the versionId parameter can be used to specify the desired version.
1 -2 -3 -4 | DELETE /ObjectName HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | DELETE /ObjectName HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
Table 1 describes the request parameters.
For deleting an object, only parameters listed in Table 1 are supported. If the request contains parameters that cannot be identified by OBS, the server returns the 400 error code.
@@ -44,11 +45,12 @@ Authorization: authorizationThis request involves no elements.
1 -2 | HTTP/1.1 status_code
-Date: date
- |
1 +2 | HTTP/1.1 status_code +Date: date + |
The response to the request uses common headers. For details, see Table 1.
In addition to the common response headers, the following message headers may also be used. For details, see Table 2.
@@ -82,31 +84,33 @@ Date: dateNo special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | DELETE /object2 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:19:21 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:MfK9JCnSFHCrJmjv7iRkRrrce2s=
- |
1 +2 +3 +4 +5 +6 | DELETE /object2 HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 04:19:21 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:MfK9JCnSFHCrJmjv7iRkRrrce2s= + |
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +Server: OBS +x-obs-request-id: 8DF400000163D3F51DEA05AC9CA066F1 +x-obs-id-2: 32AAAUgAIAABAAAQAAEAABAAAQAAEAABCSgkM4Dij80gAeFY8pAZIwx72QhDeBZ5 +Date: WED, 01 Jul 2015 04:19:21 GMT + |
1 -2 -3 -4 -5 | HTTP/1.1 204 No Content
-Server: OBS
-x-obs-request-id: 8DF400000163D3F51DEA05AC9CA066F1
-x-obs-id-2: 32AAAUgAIAABAAAQAAEAABAAAQAAEAABCSgkM4Dij80gAeFY8pAZIwx72QhDeBZ5
-Date: WED, 01 Jul 2015 04:19:21 GMT
- |
Objects in batches can be deleted in verbose or quiet mode. With verbose mode, OBS returns results of successful and failed deletion in an XML response; with quiet mode, OBS only returns results of failed deletion in an XML response. OBS uses the verbose mode by default and you can specify the quiet mode in the request body.
For batch deletion, the request header must contain Content-MD5 and Content-Length, so that the message body can be identified if network transmission error is detected at the server side.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 | POST /?delete HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
-Content-MD5: MD5
-Content-Length: length
+ |
This request involves no parameters.
This request uses elements to specify the list of objects to be deleted in a batch. Table 1 describes the elements.
-Element +
Response HeadersThe response to the request uses common headers. For details, see Table 1. 3. If the request header does not contain Content-MD5, OBS returns 400 Bad Request. Other errors are included in Table 2. -Sample Request
Sample Response
diff --git a/docs/obs/api-ref/obs_04_0087.html b/docs/obs/api-ref/obs_04_0087.html
index 04c8ceac9..c75b02171 100644
--- a/docs/obs/api-ref/obs_04_0087.html
+++ b/docs/obs/api-ref/obs_04_0087.html
@@ -1,9 +1,9 @@
Restoring Cold Objects-FunctionsTo obtain the content of an object in the Cold storage class, you need to restore the object first and then you can download it. After an object is restored, a copy of the object is saved in the Standard storage class. By doing so, the object in the Cold storage class and its copy in the Standard storage class co-exist in the bucket. The copy will be automatically deleted upon the expiration of its retention period. +FunctionsTo obtain the content of an object in the Cold storage class, you need to restore the object first and then you can download it. After an object is restored, a copy of the object is saved in the Standard storage class. By doing so, the object in the Cold storage class and its copy in the Standard storage class co-exist in the bucket. The copy will be automatically deleted once its retention period expires. VersioningBy default, this operation returns the latest version of an object. If the object has a deletion marker, status code 404 is returned. To restore an object of a specified version, the versionId parameter can be used to specify the desired version. +VersioningBy default, this operation returns the latest version of an object. If the object has a delete marker, status code 404 is returned. To restore an object of a specified version, the versionId parameter can be used to specify the desired version. Request SyntaxPOST /ObjectName?restore&versionId=VersionID HTTP/1.1 Host: bucketname.obs.region.example.com @@ -52,7 +52,7 @@ Content-MD5: MD5 |
-RestoreRequest Container for restoration information +Container for the restore information Type: container Yes @@ -61,14 +61,14 @@ Content-MD5: MD5Days Indicates the storage duration of the restored object. The minimum value is 1 and the maximum value is 30. -Type: positive integer +Type: integer Yes |
-RestoreJob Container for restoring options +Container for the restore options Type: container No @@ -76,9 +76,9 @@ Content-MD5: MD5 |
-Tier Restoring options: Expedited | Standard -Expedited indicates that data can be restored within 1 to 5 minutes. -Standard indicates that the data can be restored within 3 to 5 hours. + |
@@ -89,11 +89,12 @@ Content-MD5: MD5
Restore options: Expedited | Standard +Expedited indicates that objects can be quickly restored within 1 to 5 minutes from Archive storage and within 3 to 5 hours from Deep Archive storage. +Standard indicates that objects can be restored within 3 to 5 hours from Archive storage and within 5 to 12 hours from Deep Archive storage. The default value is Standard. Type: string Response Syntax
Response Syntax
Response HeadersThe response to the request uses common headers. For details, see Table 1. | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
InvalidObjectState |
-The restored object is not a Cold object. + | The restored object is not in the Cold storage. ErrorMessage: Restore is not allowed, as object's storage class is not COLD |
403 Forbidden @@ -160,47 +161,49 @@ Date: date |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 | POST /object?restore HTTP/1.1
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:39:46 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:kaEwOixnSVuS6If3Q0Lnd6kxm5A=
-Content-Length: 183
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 202 Accepted +Server: OBS +x-obs-request-id: A2F500000163F374CCBB2063F834C6C4 +x-obs-id-2: 32AAAUgAIAABAAAQAAEAABAAAQAAEAABCSLbWIs23RR95NVpkbWlJdlm8Dq+wQBw +Date: WED, 01 Jul 2015 04:39:46 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 202 Accepted
-Server: OBS
-x-obs-request-id: A2F500000163F374CCBB2063F834C6C4
-x-obs-id-2: 32AAAUgAIAABAAAQAAEAABAAAQAAEAABCSLbWIs23RR95NVpkbWlJdlm8Dq+wQBw
-Date: WED, 01 Jul 2015 04:39:46 GMT
-Content-Length: 0
- |
By default, this operation modifies the ACL of the latest version of an object. To specify a specified version, the request can carry the versionId parameter.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 | PUT /ObjectName?acl HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
+ |
Table 1 describes the request parameters.
@@ -117,7 +118,7 @@ Authorization: authorizationGrants permissions to all users.
Value range: Everyone
-Type: enumeration
+Type: string
No
Delivered
Indicates whether an object ACL inherits the ACL of a bucket.
-Type: boolean Default value: true
+Type: boolean
+Default value: true
No
Permission
Authorized permission.
-Type: enumeration
+Value options: READ | READ_ACP | WRITE_ACP | FULL_CONTROL
+Type: string
No
1 -2 -3 | HTTP/1.1 status_code
-Content-Length: length
-Content-Type: application/xml
- |
1 +2 +3 | HTTP/1.1 status_code +Content-Length: length +Content-Type: application/xml + |
The response to the request uses common headers. For details, see Table 1.
In addition to the common response headers, the following message headers may also be used. For details, see Table 3.
@@ -181,89 +185,91 @@ Content-Type: application/xmlNo special error responses are returned. For details about error responses, see Table 2.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 | PUT /obj2?acl HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:42:34 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:8xAODun1ofjkwHm8YhtN0QEcy9M=
-Content-Length: 727
+ |
1 +2 +3 +4 +5 +6 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 8DF400000163D3F0FD2A03D2D30B0542 +x-obs-id-2: 32AAAUgAIAABAAAQAAEAABAAAQAAEAABCTjCqTmsA1XRpIrmrJdvcEWvZyjbztdd +Date: WED, 01 Jul 2015 04:42:34 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 8DF400000163D3F0FD2A03D2D30B0542
-x-obs-id-2: 32AAAUgAIAABAAAQAAEAABAAAQAAEAABCTjCqTmsA1XRpIrmrJdvcEWvZyjbztdd
-Date: WED, 01 Jul 2015 04:42:34 GMT
-Content-Length: 0
- |
By default, this operation obtains the ACL of the latest version of an object. If the object has a delete marker, status code 404 is returned. To obtain the ACL of a specified version, the versionId parameter can be used to specify the desired version.
1 -2 -3 -4 | GET /ObjectName?acl HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | GET /ObjectName?acl HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
The request parameter specifies the object ACL to be obtained. For details about the parameters, see Table 1.
@@ -49,47 +50,48 @@ Authorization: authorizationThis request involves no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
-Content-Type: application/xml
+ |
The response to the request uses common headers. For details, see Table 1.
In addition to the common response headers, the following message headers may also be used. For details, see Table 2.
@@ -161,91 +163,93 @@ Content-Type: application/xmlNo special error responses are returned. For details about error responses, see Table 2.
1 -2 -3 -4 -5 -6 | GET /object011?acl HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:45:55 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:YcmvNQxItGjFeeC1K2HeUEp8MMM=
- |
1 +2 +3 +4 +5 +6 | GET /object011?acl HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 04:45:55 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:YcmvNQxItGjFeeC1K2HeUEp8MMM= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 8DF400000163D3E650F3065C2295674C
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCS+wsHqRuA2Tx+mXUpNtBbWLPMle9CIx
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 04:45:55 GMT
-Content-Length: 769
+Sample Response
|
This operation modifies, deletes, or adds metadata to uploaded objects in a bucket.
+1 +2 +3 +4 +5 +6 +7 +8 | PUT /ObjectName?metadata HTTP/1.1 +Host: bucketname.obs.region.example.com +Content-Type: application/xml +Content-Length: length +Authorization: authorization +Date: date +<Optional Additional Header> +<object Content> + |
Parameter + |
+Description + |
+Mandatory + |
+
|---|---|---|
versionId + |
+Object version ID +Type: string + |
+No + |
+
OBS supports the six HTTP request headers: Cache-Control, Expires, Content-Encoding, Content-Disposition, Content-Type, and Content-Language. It saves these header values in the metadata of the object. When the object is downloaded or queried, the saved values are set for corresponding HTTP headers and returned to the client.
+Header + |
+Description + |
+Mandatory + |
+
|---|---|---|
x-obs-metadata-directive + |
+Metadata operation indicator. +The value can be REPLACE_NEW or REPLACE. +REPLACE_NEW: The metadata that has an existing value is replaced. A value is assigned to the metadata that does not have a value. The metadata that is not specified remains unchanged. (Note: a header with custom metadata is replaced.) +REPLACE: Use the header field carried in the current request to replace the original metadata. The metadata that is not specified (except x-obs-storage-class) will be deleted. +Type: string + |
+Yes + |
+
Cache-Control + |
+Specifies the cache behavior of the web page when the object is downloaded. +Type: string + |
+No + |
+
Content-Disposition + |
+Specifies the name of the object when it is downloaded. +Type: string + |
+No + |
+
Content-Encoding + |
+Specifies the content encoding format when an object is being uploaded. +Type: string + |
+No + |
+
Content-Language + |
+Specifies the content language format when an object is downloaded. +Type: string + |
+No + |
+
Content-Type + |
+Object file type. +Type: string + |
+No + |
+
Expires + |
+Specifies the cache expiration time of the web page when the object is downloaded. +Type: string + |
+No + |
+
x-obs-website-redirect-location + |
+When the bucket is configured with the website redirection, the request for obtaining the object can be redirected to another object or an external URL in the bucket. +In the following example, the request header sets the redirection to an object (anotherPage.html) in the same bucket: +x-obs-website-redirect-location:/anotherPage.html +In the following example, the request header sets the object redirection to an external URL: +x-obs-website-redirect-location:http://www.example.com/ +Type: string +Constraint: The value must be prefixed by a slash (/), http://, or https://. The length of the value cannot exceed 2 KB. + |
+No + |
+
x-obs-storage-class + |
+Specifies the storage class of an object. +Type: string +Storage class value options: STANDARD (OBS Standard), WARM (OBS Warm), COLD (OBS Cold). These values are case sensitive. +Example: x-obs-storage-class: STANDARD + |
+No + |
+
x-obs-meta-* + |
+A message header starting with x-obs-meta- can be added to a request to add custom metadata for object management. Custom metadata will be returned in the response header when you retrieve or query the metadata of the object. +Type: string +Example: x-obs-meta-test: test metadata + |
+No + |
+
This request involves no elements.
+1 +2 +3 +4 +5 | HTTP/1.1 status_code +Date: date +Content-Length: length +Etag: etag +Last-Modified: time + |
Header + |
+Description + |
+
|---|---|
x-obs-metadata-directive + |
+Metadata operation indicator. +The value can be REPLACE_NEW or REPLACE. +Type: string + |
+
Cache-Control + |
+Specifies the cache behavior of the web page when the object is downloaded. If a request carries this header field, the response message must contain this header field. +Type: string + |
+
Content-Disposition + |
+Specifies the name of the object when it is downloaded. If a request carries this header field, the response message must contain this header field. +Type: string + |
+
Content-Encoding + |
+Specifies the content encoding format when an object is being uploaded. If a request carries this header field, the response message must contain this header field. +Type: string + |
+
Content-Language + |
+Specifies the content language format when an object is downloaded. If a request carries this header field, the response message must contain this header field. +Type: string + |
+
Expires + |
+Specifies the cache expiration time of the web page when the object is downloaded. If a request carries this header field, the response message must contain this header field. +Type: string + |
+
x-obs-website-redirect-location + |
+When the bucket is configured with the website redirection, the request for obtaining the object can be redirected to another object or an external URL in the bucket. If a request carries this header field, the response message must contain this header field. +Type: string + |
+
x-obs-storage-class + |
+Specifies the storage class of an object. If a request carries this header field, the response message must contain this header field. +Type: string + |
+
x-obs-meta-* + |
+Custom metadata is used to manage objects in a customized manner. If a request carries this header field, the response message must contain this header field. +Type: string + |
+
This response involves no elements.
+No special error responses are returned. For details about error responses, see Table 2.
+Adding Object Metadata
+Add the following metadata to the object: Content-Type:application/zip and x-obs-meta-test:meta.
+1 +2 +3 +4 +5 +6 +7 +8 +9 | PUT /object?metadata HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 14:24:33 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:NxtSMS0jaVxlLnxlO9awaMTn47s= +x-obs-metadata-directive:REPLACE_NEW +Content-Type:application/zip +x-obs-meta-test:meta + |
1 +2 +3 +4 +5 +6 +7 +8 +9 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 8DF400000163D3E4BB5905C41B6E65B6 +Accept-Ranges: bytes +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSD3nAiTaBoeyt9oHp9vTYtXnLDmwV6D +Date: WED, 01 Jul 2015 04:19:21 GMT +Content-Length: 0 +x-obs-metadata-directive:REPLACE_NEW +x-obs-meta-test:meta + |
Modifying Object Metadata
+If metadata x-obs-meta-test:testmeta exists in the object and the value of x-obs-storage-class is WARM, change the metadata x-obs-meta-test of the object to newmeta and change x-obs-storage-class to COLD.
+1 +2 +3 +4 +5 +6 +7 +8 +9 | PUT /object?metadata HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 14:24:33 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:NxtSMS0jaVxlLnxlO9awaMTn47s= +x-obs-metadata-directive:REPLACE_NEW +x-obs-meta-test:newmeta +x-obs-storage-class:COLD + |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 8DF400000163D3E4BB5905C41B6E65B6 +Accept-Ranges: bytes +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSD3nAiTaBoeyt9oHp9vTYtXnLDmwV6D +Date: WED, 01 Jul 2015 04:19:21 GMT +Content-Length: 0 +x-obs-metadata-directive:REPLACE_NEW +x-obs-meta-test:newmeta +x-obs-storage-class:COLD + |
Deleting Object Metadata
+Metadata x-obs-meta-test:newmeta and Content-Type:application/zip exist in the object, and delete x-obs-meta-test.
+1 +2 +3 +4 +5 +6 +7 +8 | PUT /object?metadata HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 14:24:33 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:NxtSMS0jaVxlLnxlO9awaMTn47s= +x-obs-metadata-directive:REPLACE +Content-Type:application/zip + |
1 +2 +3 +4 +5 +6 +7 +8 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 8DF400000163D3E4BB5905C41B6E65B6 +Accept-Ranges: bytes +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSD3nAiTaBoeyt9oHp9vTYtXnLDmwV6D +Date: WED, 01 Jul 2015 04:19:21 GMT +Content-Length: 0 +x-obs-metadata-directive:REPLACE + |
This operation can modify an object from a specified position.
+
This API is supported only by parallel file systems. For details about how to create a parallel file system, see Sample Request 4.
+PUT /ObjectName?modify&position=Position HTTP/1.1 +Host: bucketname.obs.region.example.com +Content-Type: type +Content-Length: length +Authorization: authorization +Date: date +<object Content>+
The request needs to specify parameters in the message, indicating that the upload is for modification, and specifying the position in the object to be modified. Table 1 describes the parameters.
+ + +This request uses common request headers. For details, see Table 3.
+This request involves no elements.
+1 +2 +3 +4 +5 +6 +7 | HTTP/1.1 status_code +Date: Date +ETag: etag +Content-Length: length +Server: OBS +x-obs-request-id: request-id +x-obs-id-2: id + |
The response to the request uses common headers. For details, see Table 1.
+This response involves no elements.
+No special error responses are returned. For details about error responses, see Table 2.
+PUT /ObjectName?modify&position=Position HTTP/1.1 +Host: examplebucket.obs.region.example.com +Date: Wed, 08 Jul 2015 06:57:01 GMT +Content-Type: image/jpg +Content-Length: 1458 +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:kZoYNv66bsmc10+dcGKw5x2PRrk= + +[1458 bytes of object data]+
1 +2 +3 +4 +5 +6 +7 | HTTP/1.1 200 +Date: Wed, 08 Jul 2015 06:57:02 GMT +ETag: "d41d8cd98f00b204e9800998ecf8427e" +Content-Length: 0 +Server: OBS +x-obs-request-id: 8DF400000163D3F0FD2A03D2D30B0542 +x-obs-id-2: 32AAAUgAIAABAAAQAAEAABAAAQAAEAABCTjCqTmsA1XRpIrmrJdvcEWvZyjbztd + |
This operation can truncate an object to a specified size.
+
This API is supported only by parallel file systems. For details about how to create a parallel file system, see Sample Request 4.
+PUT /ObjectName?truncate&length=Length HTTP/1.1 +Host: bucketname.obs.region.example.com +Authorization: authorization +Content-Length: length +Date: date+
The request needs to specify parameters in the message, indicating that this is to truncate an object to a specified size. Table 1 describes the parameters.
+ + +This request uses common request headers. For details, see Table 3.
+This request involves no elements.
+1 +2 +3 +4 +5 | HTTP/1.1 204 status_code +Server: OBS +x-obs-request-id: request-id +x-obs-id-2: id +Date: Date + |
The response to the request uses common headers. For details, see Table 1.
+This response involves no elements.
+No special error responses are returned. For details about error responses, see Table 2.
+PUT /ObjectName?truncate&length=1000 HTTP/1.1 +Host: examplebucket.obs.region.example.com +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:75/Y4Ng1izvzc1nTGxpMXTE6ynw= +Content-Length: 1 +Date: WED, 01 Jul 2015 04:19:20 GMT+
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +Server: OBS +x-obs-request-id: 8DF400000163D3F51DEA05AC9CA066F1 +x-obs-id-2: 32AAAUgAIAABAAAQAAEAABAAAQAAEAABCSgkM4Dij80gAeFY8pAZIwx72QhDeBZ5 +Date: WED, 01 Jul 2015 04:19:21 GMT + |
This operation can rename an object.
+
This API is supported only by parallel file systems. For details about how to create a parallel file system, see Sample Request 4. Renaming an object is a non-idempotent operation.
+POST /ObjectName?name=Name&rename HTTP/1.1 +Host: bucketname.obs.region.example.com +Authorization: authorization +Date: date+
The request needs to specify parameters in the message, indicating that this is a renaming operation, specifying the new name. Table 1 describes the parameters.
+ + +This request uses common request headers. For details, see Table 3.
+This request involves no elements.
+1 +2 +3 +4 +5 | HTTP/1.1 204 status_code +Server: OBS +x-obs-request-id: request-id +x-obs-id-2: id +Date: Date + |
The response to the request uses common headers. For details, see Table 1.
+This response involves no elements.
+No special error responses are returned. For details about error responses, see Table 2.
+POST /ObjectName?name=file2&rename HTTP/1.1 +Host: examplebucket.obs.region.example.com +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:75/Y4Ng1izvzc1nTGxpMXTE6ynw= +Date: WED, 01 Jul 2015 04:19:20 GMT+
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +Server: OBS +x-obs-request-id: 8DF400000163D3F51DEA05AC9CA066F1 +x-obs-id-2: 32AAAUgAIAABAAAQAAEAABAAAQAAEAABCSgkM4Dij80gAeFY8pAZIwx72QhDeBZ5 +Date: WED, 01 Jul 2015 04:19:21 GMT + |
This operation queries all the multipart upload tasks that are initialized but have not been merged or canceled in a bucket.
GET /?uploads&max-uploads=max HTTP/1.1 @@ -66,59 +66,60 @@ Authorization: authorization
This request involves no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
+ |
The response to the request uses common headers. For details, see Table 1.
NextUploadIdMarker
Value of UploadMarker in a subsequent request after a multipart upload list is truncated
+Value of UploadMarker in a subsequent request when a multipart upload list is truncated.
Type: string
Ancestor: ListMultipartUploadsResult
StorageClass
Indicates the storage class that will be used for storing an object when the multipart is uploaded.
-Type: enumeration
+Type: string
Ancestor: Upload
CommonPrefixes. Prefix
Indicates a different prefix in the group information in CommonPrefixes.
+Indicates a different prefix in the group information in CommonPrefixes.
Type: string
Ancestor: CommonPrefixes
Other errors are included in Table 2.
List the initialized multipart tasks without any parameter.
-1 -2 -3 -4 -5 -6 | GET /?uploads HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 04:51:21 GMT
-Authorization: OBS UDSIAMSTUBTEST000008:XdmZgYQ+ZVy1rjxJ9/KpKq+wrU0=
- |
1 +2 +3 +4 +5 +6 | GET /?uploads HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 04:51:21 GMT +Authorization: OBS UDSIAMSTUBTEST000008:XdmZgYQ+ZVy1rjxJ9/KpKq+wrU0= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 8DF400000163D405534D046A2295674C
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSDaHP+a+Bp0RI6Mm9XvCOrf7q3qvBQW
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 04:51:21 GMT
-Content-Length: 681
+Sample Response 1
|
List the initialized multipart tasks with the prefix and delimiter.
-The following example describes how to list initialized multipart tasks when there are two multipart tasks in the bucket examplebucket, and their object names are multipart-object001 and part2-key02. Set prefix to multipart and set delimiter to object001.
+The following example describes how to list two initiated multipart uploads (with objects multipart-object001 and part2-key02 in bucket examplebucket. In this listing operation, prefix is set to multipart and object001 is set to delimiter.
GET /?uploads&delimiter=object001&prefix=multipart HTTP/1.1 User-Agent: curl/7.29.0 Host: examplebucket.obs.region.example.com @@ -367,49 +370,50 @@ Accept: */* Date: WED, 01 Jul 2015 04:51:21 GMT Authorization: OBS UDSIAMSTUBTEST000008:XdmZgYQ+ZVy1rjxJ9/KpKq+wrU0=
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 5DEB00000164A27A1610B8250790D703
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSq3ls2ZtLDD6pQLcJq1yGITXgspSvBR
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 04:51:21 GMT
-Content-Length: 681
+ |
Before using this operation, make an API operation call to create a multipart upload task. The system will return a globally unique upload ID as the multipart upload identifier. This identifier can be used in subsequent requests including UploadPart, CompleteMultipartUpload, and ListParts. Create a multipart upload task does not affect the object that has the same name as object to be uploaded in multiple parts. You can create more than one multipart upload tasks for an object. This operation request can contain headers x-obs-acl, x-obs-meta-*, Content-Type, and Content-Encoding. The headers are recorded in the multipart upload metadata.
This operation supports server-side encryption.
1 -2 -3 -4 | POST /ObjectName?uploads HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: authorization
- |
1 +2 +3 +4 | POST /ObjectName?uploads HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request uses parameters to specify a multipart upload. Table 1 describes the parameters.
@@ -96,8 +97,8 @@ Authorization: authorizationWhen initiating a multi-part upload task, you can add this header to specify the storage class for the object. If you do not use this header, the object storage class is the default storage class of the bucket.
Type: string
-Note: There are three storage classes: STANDARD (Standard storage class), WARM (Warm storage class), and COLD (Cold storage class). Therefore, this parameter value can be STANDARD, WARM, or COLD. These values are case sensitive.
-Example: x-obs-storage-class: STANDARD
+Storage class value options: STANDARD (Standard), WARM (Warm), COLD (Cold). These values are case sensitive.
+Example: x-obs-storage-class: STANDARD
No
Indicates that SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption:kms
+Example: x-obs-server-side-encryption:kms
No. This header is required when SSE-KMS is used.
The following two formats are supported:
1. regionID:domainID:key/key_id
2. key_id
-regionID is the ID of the region to which the key belongs. domainID is the account ID of the tenant to which the key belongs. key_id is the key ID created in KMS.
+regionID is the ID of the region to which the key belongs. domainID is the account ID of the tenant to which the key belongs. key_id is the key ID created in KMS.
Example:
1. x-obs-server-side-encryption-kms-key-id:region:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0
2. x-obs-server-side-encryption-kms-key-id:4f1cd4de-ab64-4807-920a-47fc42e7f0d0
@@ -140,7 +141,7 @@ Authorization: authorizationIndicates an encryption algorithm. The header is used in SSE-C mode.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
Constraint: This header must be used together with x-obs-server-side-encryption-customer-key and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -150,7 +151,7 @@ Authorization: authorizationThe key used to encrypt objects. The header is used in SSE-C mode. This key is used to encrypt objects.
Type: string
-Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
Constraint: This header is a Base64-encoded 256-bit key and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used.
@@ -160,7 +161,7 @@ Authorization: authorizationIndicates the MD5 value of a key used to encrypt objects. The header is used in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
Constraint: This header is a Base64-encoded 128-bit MD5 value and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key.
No. This header is required when SSE-C is used.
@@ -170,7 +171,7 @@ Authorization: authorizationIndicates the expiration time of an object, in days. An object will be automatically deleted once it expires (calculated from the last modification time of the object).
Type: integer
-Example: x-obs-expires:3
+Example: x-obs-expires:3
No
This request involves no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
-Connection: status
+ |
The response to the request uses common headers. For details, see Table 1.
@@ -218,7 +220,7 @@ Connection: statusThis header is included in a response if SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption:kms
+Example: x-obs-server-side-encryption:kms
x-obs-server-side-encryption-kms-key-id
@@ -234,14 +236,14 @@ Connection: statusIndicates an encryption algorithm. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
x-obs-server-side-encryption-customer-key-MD5
Indicates the MD5 value of a key used to encrypt objects. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
1. If the AK or signature is invalid, OBS returns 403 Forbidden and the error code is AccessDenied.
-2. If the bucket does not exist, OBS returns 404 Not Found and the error code is NoSuchBucket.
+2. If the bucket is not found, OBS returns 404 Not Found and the error code is NoSuchBucket.
3. Check whether the user has the write permission for the specified bucket. If no, OBS returns 403 Forbidden and the error code is AccessDenied.
Other errors are included in Table 2.
Initialize a multipart task.
-1 -2 -3 -4 | POST /objectkey?uploads HTTP/1.1
-Host: examplebucket.obs.region.example.com
-Date: WED, 01 Jul 2015 05:14:52 GMT
-Authorization: OBS AKIAIOSFODNN7EXAMPLE:VGhpcyBtZXNzYWdlIHNpZ25lZGGieSRlbHZpbmc=
- |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-id-2: Weag1LuByRx9e6j5Onimru9pO4ZVKnJ2Qz7/C1NPcfTWAtRPfTaOFg==
-x-obs-request-id: 996c76696e6727732072657175657374
-Date: WED, 01 Jul 2015 05:14:52 GMT
-Content-Length: 303
+Sample Response 1
|
The ACL is carried when the multipart task is initialized.
-1 -2 -3 -4 -5 | POST /objectkey?uploads HTTP/1.1
-Host: examplebucket.obs.region.example.com
-Date: WED, 01 Jul 2015 05:15:43 GMT
+Sample Response 2
|
Indicates an encryption algorithm. The header is used in SSE-C mode.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
Constraint: This header must be used together with x-obs-server-side-encryption-customer-key and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used. The encryption algorithm must be the same as that used to initiate multipart upload tasks.
@@ -69,7 +69,7 @@ Content-MD5:md5Indicates a key used to encrypt objects. The header is used in SSE-C mode. This key is used to encrypt objects.
Type: string
-Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
Constraint: This header is a Base64-encoded 256-bit key and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used. The key must be the same as that used to initiate multipart upload tasks.
@@ -79,7 +79,7 @@ Content-MD5:md5Indicates the MD5 value of a key used to encrypt objects. The header is used in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
Constraint: This header is a Base64-encoded 128-bit MD5 value and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key.
No. This header is required when SSE-C is used. The MD5 value must be the same as that used to initiate multipart upload tasks.
@@ -91,15 +91,16 @@ Content-MD5:md5This request involves no elements.
1 -2 -3 -4 | HTTP/1.1 status_code
-Date: date
-ETag: etag
-Content-Length: length
- |
1 +2 +3 +4 | HTTP/1.1 status_code +Date: date +ETag: etag +Content-Length: length + |
The response to the request uses common headers. For details, see Table 1.
@@ -113,7 +114,7 @@ Content-Length: lengthThis header is included in a response if SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption:kms
+Example: x-obs-server-side-encryption:kms
x-obs-server-side-encryption-kms-key-id
@@ -129,14 +130,14 @@ Content-Length: lengthIndicates an encryption algorithm. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
x-obs-server-side-encryption-customer-key-MD5
Indicates the MD5 value of a key used to encrypt objects. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
This response involves no elements.
Other errors are included in Table 2.
PUT /object02?partNumber=1&uploadId=00000163D40171ED8DF4050919BD02B8 HTTP/1.1 @@ -158,21 +159,22 @@ Content-Length: 102015348 [102015348 Byte part content]
1 -2 -3 -4 -5 -6 -7 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 8DF400000163D40956A703289CA066F1
-ETag: "b026324c6904b2a9cb4b88d6d61c81d1"
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCUQu/EOEVSMa04GXVwy0z9WI+BsDKvfh
-Date: WED, 01 Jul 2015 05:15:55 GMT
-Content-Length: 0
- |
1 +2 +3 +4 +5 +6 +7 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 8DF400000163D40956A703289CA066F1 +ETag: "b026324c6904b2a9cb4b88d6d61c81d1" +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCUQu/EOEVSMa04GXVwy0z9WI+BsDKvfh +Date: WED, 01 Jul 2015 05:15:55 GMT +Content-Length: 0 + |
Copy the source object and save it as part1. If a part1 already exists before the copying, the original part1 will be overwritten by the newly copied part1. After the copy is successful, only the latest part1 is displayed. The old part1 data will be deleted. Therefore, ensure that the target part does not exist or has no value when using the part copy operation. Otherwise, data may be deleted by mistake. The source object in the copy process does not change.
If source objects are Cold objects, check the restoration status of the objects. You can copy these objects only after they are restored. If the source object is not restored or is being restored, the copy fails and error 403 Forbidden is returned. The fault is described as follows:
+If source objects are in the Cold storage class, ensure that these objects have been restored before you copy them. If the source object is not restored or is being restored, the copy fails and error 403 Forbidden is returned. The fault is described as follows:
ErrorCode: InvalidObjectState
ErrorMessage: Operation is not valid for the source object's storage class
Indicates an algorithm used to encrypt a destination part. The header is used in SSE-C mode.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
Constraint: This header must be used together with x-obs-server-side-encryption-customer-key and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used. The encryption algorithm must be the same as that used to initiate multipart upload tasks.
@@ -89,7 +89,7 @@ Content-Length: lengthIndicates a key used to encrypt a destination part. The header is used in SSE-C mode. This key is used to encrypt objects.
Type: string
-Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
Constraint: This header is a Base64-encoded 256-bit key and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used. The key must be the same as that used to initiate multipart upload tasks.
@@ -99,7 +99,7 @@ Content-Length: lengthIndicates the MD5 value of a key used to encrypt a destination part. The header is used in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
Constraint: This header is a Base64-encoded 128-bit MD5 value and must be used together with x-obs-server-side-encryption-customer-algorithm and x-obs-server-side-encryption-customer-key.
No. This header is required when SSE-C is used. The MD5 value must be the same as that used to initiate multipart upload tasks.
@@ -109,7 +109,7 @@ Content-Length: lengthIndicates an algorithm used by a source object. The header is used in SSE-C mode.
Type: string
-Example: x-obs-copy-source-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-copy-source-server-side-encryption-customer-algorithm:AES256
Constraint: This header must be used together with x-obs-copy-source-server-side-encryption-customer-key and x-obs-copy-source-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used to copy a source object.
@@ -119,7 +119,7 @@ Content-Length: lengthIndicates the algorithm used to decrypt a source object. The header is used in SSE-C mode.
Type: string
-Example: x-obs-copy-source-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-copy-source-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
Constraint: This header is a Base64-encoded 256-bit key and must be used together with x-obs-copy-source-server-side-encryption-customer-algorithm and x-obs-copy-source-server-side-encryption-customer-key-MD5.
No. This header is required when SSE-C is used to copy a source object.
@@ -129,7 +129,7 @@ Content-Length: lengthIndicates the MD5 value of the key used for the source object. The header is used in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key.
Type: string
-Example: x-obs-copy-source-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-copy-source-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
Constraint: This header is a Base64-encoded 128-bit MD5 value and must be used together with x-obs-copy-source-server-side-encryption-customer-algorithm and x-obs-copy-source-server-side-encryption-customer-key.
No. This header is required when SSE-C is used to copy a source object.
@@ -162,7 +162,7 @@ Date: dateThis header is included in a response if SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption:kms
+Example: x-obs-server-side-encryption:kms
x-obs-server-side-encryption-kms-key-id
@@ -178,14 +178,14 @@ Date: dateIndicates an encryption algorithm. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
x-obs-server-side-encryption-customer-key-MD5
Indicates the MD5 value of a key used to encrypt objects. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 8DF400000163D40ABBD20405D30B0542
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCTIJpD2efLy5o8sTTComwBb2He0j11Ne
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 05:16:32 GMT
-Transfer-Encoding: chunked
+ |
This request involves no elements.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 | HTTP/1.1 status_code
-Date: date
-Content-Length: length
+ |
The response to the request uses common headers. For details, see Table 1.
StorageClass
Indicates the storage type.
-Type: enumeration
+Type: string
Value options: STANDARD | WARM | COLD
Ancestor: ListPartsResult
Other errors are included in Table 2.
1 -2 -3 -4 -5 -6 | GET /object02?uploadId=00000163D40171ED8DF4050919BD02B8 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 05:20:35 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:xkABdSrBPrz5yqzuZdJnK5oL/yU=
- |
1 +2 +3 +4 +5 +6 | GET /object02?uploadId=00000163D40171ED8DF4050919BD02B8 HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 05:20:35 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:xkABdSrBPrz5yqzuZdJnK5oL/yU= + |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 8DF400000163D40C099A04EF4DD1BDD9
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSK71fr+hDnzB0JBvQC1B9+S12AWxC41
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 05:20:35 GMT
-Content-Length: 888
+Sample Response
|
After uploading all parts for a multipart upload, you can use this operation to complete the multipart upload. Before performing this operation, you cannot download the uploaded data. When merging parts, you need to copy the additional message header information recorded during the initialization of the multipart upload task to the object metadata. The processing process is the same as that of the common upload object with these message headers. In the case of merging parts concurrently, the Last Write Win policy must be followed but the time for initiating Last Write is specified as the time when a part multipart upload is initiated.
If a multipart upload has not been aborted, the uploaded parts occupy your storage quota. After all parts in the multipart upload are merged to an object, only the object occupies your storage quota. If a part uploaded in a multipart upload is not used in any merging parts multipart uploads, the part will be deleted to release storage quota.
You can send a request for downloading all or some data of the generated multipart by specifying a range.
@@ -12,45 +12,46 @@
If 10 parts are uploaded but only nine parts are selected for merge, the parts that are not merged will be automatically deleted by the system. The parts that are not merged cannot be restored after being deleted. Before combining the parts, adopt the interface used to list the parts that have been uploaded to check all parts to ensure that no part is missed.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 | POST /ObjectName?uploadId=uploadID HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Content-Length: length
-Authorization: authorization
-<CompleteMultipartUpload>
- <Part>
- <PartNumber>partNum</PartNumber>
- <ETag>etag</ETag>
- </Part>
- <Part>
- <PartNumber>partNum</PartNumber>
- <ETag>etag</ETag>
- </Part>
- <Part>
- <PartNumber>partNum</PartNumber>
- <ETag>etag</ETag>
- </Part>
+ |
This request uses parameters to specify the ID of a multipart upload whose parts will be merged. Table 1 describes the parameters.
@@ -114,25 +115,26 @@ Authorization: authorization1 -2 -3 -4 -5 -6 -7 -8 -9 | HTTP/1.1 status_code
-Date: date
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<CompleteMultipartUploadResult xmlns="http://obs.region.example.com/doc/2015-06-30/">
- <Location>http://example-Bucket.obs.region.example.com/example-Object</Location>
- <Bucket>bucketname</Bucket>
- <Key>ObjectName</Key>
- <ETag>ETag</ETag>
+ |
The response to the request uses common headers. For details, see Table 1.
In addition to the common response headers, the following message headers may also be used. For details, see Table 3.
@@ -153,7 +155,7 @@ Date: dateThis header is included in a response if SSE-KMS is used.
Type: string
-Example: x-obs-server-side-encryption:kms
+Example: x-obs-server-side-encryption:kms
x-obs-server-side-encryption-kms-key-id
@@ -169,7 +171,7 @@ Date: dateIndicates an encryption algorithm. This header is included in a response if SSE-C is used.
Type: string
-Example: x-obs-server-side-encryption-customer-algorithm:AES256
+Example: x-obs-server-side-encryption-customer-algorithm:AES256
Location
URL of the object after parts being merged.
+Path of the object after parts have been merged.
Type: string
Bucket
Bucket in which parts are combined
+Bucket in which parts are merged.
Type: string
Other errors are included in Table 2.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 8DF400000163D4625BE3075019BD02B8
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSN8D1AfQcIvyGBZ9+Ee+jU6zv1iYdO4
-Content-Type: application/xml
-Date: WED, 01 Jul 2015 05:23:46 GMT
-Content-Length: 326
+Sample Response
|
You can perform this operation to abort a multipart upload. You cannot upload or list parts after operations to merge parts or abort a multipart upload are performed.
1 -2 -3 -4 | DELETE /ObjectName?uploadId=uplaodID HTTP/1.1
-Host: bucketname.obs.region.example.com
-Date: date
-Authorization: auth
- |
1 +2 +3 +4 | DELETE /ObjectName?uploadId=uplaodID HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: auth + |
This request uses message parameters to specify the multipart upload task number of the segment task. Table 1 describes the parameters.
@@ -46,34 +47,36 @@ Date: dateThis response involves no elements.
Other errors are included in Table 2.
1 -2 -3 -4 -5 -6 | DELETE /object02?uploadId=00000163D46218698DF407362295674C HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: WED, 01 Jul 2015 05:28:27 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:QmM2d1DBXZ/b8drqtEv1QJHPbM0=
- |
1 +2 +3 +4 +5 +6 | DELETE /object02?uploadId=00000163D46218698DF407362295674C HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 05:28:27 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:QmM2d1DBXZ/b8drqtEv1QJHPbM0= + |
1 +2 +3 +4 +5 | HTTP/1.1 204 No Content +Server: OBS +x-obs-request-id: 8DF400000163D463E02A07EC2295674C +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCTp5YDlzn0UgqG3laRfkHLGyz7RpR9ON +Date: WED, 01 Jul 2015 05:28:27 GMT + |
1 -2 -3 -4 -5 | HTTP/1.1 204 No Content
-Server: OBS
-x-obs-request-id: 8DF400000163D463E02A07EC2295674C
-x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCTp5YDlzn0UgqG3laRfkHLGyz7RpR9ON
-Date: WED, 01 Jul 2015 05:28:27 GMT
- |
Indicates that SSE-KMS is used. Objects are encrypted using SSE-KMS.
Type: string
-Example: x-obs-server-side-encryption:kms
+Example: x-obs-server-side-encryption:kms
x-obs-server-side-encryption-kms-key-id
@@ -35,7 +35,7 @@API operations to which the newly added headers apply:
-OBS supports bucket policies. You can use a bucket policy to implement server-side encryption on all the objects stored in a bucket. For example, a tenant's object upload request does not contain the header x-obs-server-side-encryption:"kms" for server-side encryption (SSE-KMS), the following bucket policy will reject the upload request.
{
"Statement":[{
@@ -52,137 +52,143 @@
}
}
Use the default key to encrypt the uploaded object.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 | PUT /encryp1 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: Wed, 06 Jun 2018 09:08:21 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:f3/7eS6MFbW3JO4+7I5AtyAQENU=
+Sample Response 1
|
1 -2 -3 -4 -5 -6 -7 -8 -9 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 8DF400000163D45AA81D038B6AE4C482
-ETag: "d8bffdfbab5345d91ac05141789d2477"
-x-obs-server-side-encryption: kms
-x-obs-server-side-encryption-kms-key-id: region:783fc6652cf246c096ea836694f71855:key/522d6070-5ad3-4765-9737-9312ddc72cdb
-x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTv7cHmAnGfBAGXUHeibUsiETTNqlCqC
-Date: Wed, 06 Jun 2018 09:08:21 GMT
-Content-Length: 0
- |
Use a specified key to encrypt the uploaded object.
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 | PUT /encryp1 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: Wed, 06 Jun 2018 09:08:50 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:f3/PWjkXYTYGs5lPOctTNEI2QENU=
+ |
1 +2 +3 +4 +5 +6 +7 +8 +9 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 8DF400000163D45AA81D038B6AE4C482 +ETag: "d8bffdfbab5345d91ac05141789d2477" +x-obs-server-side-encryption: kms +x-obs-server-side-encryption-kms-key-id: region:783fc6652cf246c096ea836694f71855:key/522d6070-5ad3-4765-43a7-a7d1-ab21f498482d +x-obs-id-2: 32AAAUJAIAABAdiAEAABA09AEAABCTv7cHmAn12BAG83ibUsiET5eqlCqg +Date: Wed, 06 Jun 2018 09:08:50 GMT +Content-Length: 0 + |
Copy a common object and save it as an encrypted object by encrypting it using a specified key.
-1 -2 -3 -4 -5 -6 -7 -8 -9 | PUT /destobject HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
+ |
1 +2 +3 +4 +5 +6 +7 +8 +9 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BB78000001648480AF3900CED7F15155 +ETag: "d8bffdfbab5345d91ac05141789d2477" +x-obs-server-side-encryption: kms +x-obs-server-side-encryption-kms-key-id: region:783fc6652cf246c096ea836694f71855:key/522d6070-5ad3-4765-9737-9312ddc72cdb +x-obs-id-2: oRAXhgwdaLc9wKVHqTLSmQB7I35D+32AAAUJAIAABAAAQAAEAABAAAQAAEAABCS +Date: Wed, 06 Jun 2018 09:10:29 GMT +Content-Length: 0 + |
1 -2 -3 -4 -5 -6 -7 -8 -9 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BB78000001648480AF3900CED7F15155
-ETag: "d8bffdfbab5345d91ac05141789d2477"
-x-obs-server-side-encryption: kms
-x-obs-server-side-encryption-kms-key-id: region:783fc6652cf246c096ea836694f71855:key/522d6070-5ad3-4765-9737-9312ddc72cdb
-x-obs-id-2: oRAXhgwdaLc9wKVHqTLSmQB7I35D+32AAAUJAIAABAAAQAAEAABAAAQAAEAABCS
-Date: Wed, 06 Jun 2018 09:10:29 GMT
-Content-Length: 0
- |
Carry the signature in the URL and upload the encrypted object.
PUT /destobject?AccessKeyId=UI3SN1SRUQE14OYBKTZB&Expires=1534152518&x-obs-server-side-encryption=kms&Signature=chvmG7%2FDA%2FDCQmTRJu3xngldJpg%3D HTTP/1.1 @@ -191,25 +197,26 @@ Host: examplebucket.obs.region.example Accept: */* Date: Wed, 06 Jun 2018 09:10:29 GMT
1 -2 -3 -4 -5 -6 -7 -8 -9 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BB78000001648480AF3900CED7F15155
-ETag: "d8bffdfbab5345d91ac05141789d2477"
-x-obs-server-side-encryption: kms
-x-obs-server-side-encryption-kms-key-id: region:783fc6652cf246c096ea836694f71855:key/522d6070-5ad3-4765-9737-9312ddc72cdb
-x-obs-id-2: oRAXhgwdaLc9wKVHqTLSmQB7I35D+32AAAUJAIAABAAAQAAEAABAAAQAAEAABCS
-Date: Wed, 06 Jun 2018 09:10:29 GMT
-Content-Length: 0
- |
1 +2 +3 +4 +5 +6 +7 +8 +9 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BB78000001648480AF3900CED7F15155 +ETag: "d8bffdfbab5345d91ac05141789d2477" +x-obs-server-side-encryption: kms +x-obs-server-side-encryption-kms-key-id: region:783fc6652cf246c096ea836694f71855:key/522d6070-5ad3-4765-9737-9312ddc72cdb +x-obs-id-2: oRAXhgwdaLc9wKVHqTLSmQB7I35D+32AAAUJAIAABAAAQAAEAABAAAQAAEAABCS +Date: Wed, 06 Jun 2018 09:10:29 GMT +Content-Length: 0 + |
x-obs-server-side-encryption-customer-algorithm
Indicates an encryption algorithm. The header is used in SSE-C mode.
-Example: x-obs-server-side-encryption-customer-algorithm: AES256
+Example: x-obs-server-side-encryption-customer-algorithm: AES256
x-obs-server-side-encryption-customer-key
Indicates the key used to encrypt objects in SSE-C mode. The header value is a Base64-encoded 256-bit key.
-Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
x-obs-server-side-encryption-customer-key-MD5
Indicates the MD5 value of the key used to encrypt an object. The header is used in SSE-C mode. The value of the element is an MD5 Base64-encoded hash. The MD5 value is used to check whether any error occurs during the transmission of the key.
-Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==
x-obs-copy-source-server-side-encryption-customer-algorithm
Indicates the algorithm used to decrypt a source object. The header is used in SSE-C mode.
-Example: x-obs-server-side-encryption-customer-algorithm: AES256
+Example: x-obs-server-side-encryption-customer-algorithm: AES256
x-obs-copy-source-server-side-encryption-customer-key
Indicates the key used to decrypt a source object. The header is used in SSE-C mode.
-Example: x-obs-copy-source-server-side-encryption-customer-algorithm: K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
+Example: x-obs-copy-source-server-side-encryption-customer-algorithm: K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=
x-obs-copy-source-server-side-encryption-customer-key-MD5
Indicates the MD5 value of the key used to decrypt a source object. The header is used in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key.
-Example: x-obs-copy-source-server-side-encryption-customer-key:4XvB3tbNTN+tIEVa0/fGaQ==
+Example: x-obs-copy-source-server-side-encryption-customer-key:4XvB3tbNTN+tIEVa0/fGaQ==
Upload an object with the SSE-C encryption mode.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 | PUT /encryp2 HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: Wed, 06 Jun 2018 09:12:00 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:mZSfafoM+llApk0HGOThlqeccu0=
+Sample Response 1
|
1 -2 -3 -4 -5 -6 -7 -8 -9 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 8DF400000163D45E0017055619BD02B8
-ETag: "0f91242c7f3d86f98ae572a686d0696e"
-x-obs-server-side-encryption-customer-algorithm: AES256
-x-obs-server-side-encryption-customer-key-MD5: 4XvB3tbNTN+tIEVa0/fGaQ==
-x-obs-id-2: 32AAAUgAIAABAAAQAAEAABAAAQAAEAABCSSAJ8bTNJV0X+Ote1PtuWecqyMh6zBJ
-Date: Wed, 06 Jun 2018 09:12:00 GMT
-Content-Length: 0
- |
Copy the SSE-C encrypted object and save it as the KMS encrypted object.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 | PUT /kmsobject HTTP/1.1
-User-Agent: curl/7.29.0
-Host: examplebucket.obs.region.example.com
-Accept: */*
-Date: Wed, 06 Jun 2018 09:20:10 GMT
-Authorization: OBS H4IPJX0TQTHTHEBQQCEC:mZSfafoM+llApk0HGOThlqeccu0=
+Sample Response 2
|
1 -2 -3 -4 -5 -6 -7 -8 -9 | HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: BB7800000164848E0FC70528B9D92C41
-ETag: "1072e1b96b47d7ec859710068aa70d57"
-x-obs-server-side-encryption: kms
-x-obs-server-side-encryption-kms-key-id: region:783fc6652cf246c096ea836694f71855:key/522d6070-5ad3-4765-9737-9312ddc72cdb
-x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTkkRzQXs9ECzZcavVRncBqqYNkoAEsr
-Date: Wed, 06 Jun 2018 09:20:10 GMT
-Content-Length: 0
- |
The URL contains the signature and the SSE-C encrypted object is uploaded.
PUT /encrypobject?AccessKeyId=H4IPJX0TQTHTHEBQQCEC&Expires=1532688887&Signature=EQmDuOhaLUrzrzRNZxwS72CXeXM%3D HTTP/1.1 @@ -175,25 +179,26 @@ Expect: 100-continue [5242 Byte object contents]
1 -2 -3 -4 -5 -6 -7 -8 -9 | HTTP/1.1 100 Continue
-HTTP/1.1 200 OK
-Server: OBS
-x-obs-request-id: 804F00000164DB5E5B7FB908D3BA8E00
-ETag: "1072e1b96b47d7ec859710068aa70d57"
-x-obs-server-side-encryption-customer-algorithm: AES256
-x-obs-server-side-encryption-customer-key-MD5: 4XvB3tbNTN+tIEVa0/fGaQ==
-x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTlpxILjhVK/heKOWIP8Wn2IWmQoerfw
-Content-Length: 0
- |
1 +2 +3 +4 +5 +6 +7 +8 +9 | HTTP/1.1 100 Continue +HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: 804F00000164DB5E5B7FB908D3BA8E00 +ETag: "1072e1b96b47d7ec859710068aa70d57" +x-obs-server-side-encryption-customer-algorithm: AES256 +x-obs-server-side-encryption-customer-key-MD5: 4XvB3tbNTN+tIEVa0/fGaQ== +x-obs-id-2: 32AAAUJAIAABAAAQAAEAABAAAQAAEAABCTlpxILjhVK/heKOWIP8Wn2IWmQoerfw +Content-Length: 0 + |
The response body also contains information about the error. The following is an error response example that shows common elements in the Representational State Transfer (REST) error response body.
-1 -2 -3 -4 -5 -6 -7 -8 -9 | <?xml version="1.0" encoding="UTF-8"?>
-<Error>
-<Code>NoSuchKey</Code>
-<Message>The resource you requested does not exist</Message>
-<Resource>/example-bucket/object</Resource>
-<RequestId>001B21A61C6C0000013402C4616D5285</RequestId>
-<HostId>RkRCRDJENDc5MzdGQkQ4OUY3MTI4NTQ3NDk2Mjg0M0FB
-QUFBQUFBYmJiYmJiYmJD</HostId>
+ |
Table 1 describes the meaning of each element.
@@ -778,6 +779,15 @@ QUFBQUFBYmJiYmJiYmJD</HostId>Modify according to the condition prompt in the returned message body.
414 URI Too Long
+Request-URI Too Large
+The URI used in the request was too long.
+Shorten the URI length.
+416 Client Requested Range Not Satisfiable
InvalidRange
diff --git a/docs/obs/api-ref/obs_04_0117.html b/docs/obs/api-ref/obs_04_0117.html index d4ab7e177..bf2b29ccf 100644 --- a/docs/obs/api-ref/obs_04_0117.html +++ b/docs/obs/api-ref/obs_04_0117.html @@ -1,7 +1,7 @@When an API is called, the domain ID (DomainID) and user ID (UserID) need to be specified in some requests. Therefore, you need to obtain them from the console. The procedure is as follows:
+During API calls, the domain ID (DomainID) and user ID (UserID) need to be specified in some requests. Therefore, you need to obtain them from the console. The procedure is as follows:
On the My Credentials page, view the domain ID and user ID.
This operation lists objects in a bucket. To use this operation, you must have the permission to read the bucket.
+If the bucket name is specified in a request URI and list-type is explicitly set to 2, that is, GET /?list-type is set to 2, descriptions of some or all objects in the bucket is returned in the format of the V2 API. Information about a maximum of 1000 objects can be returned at a time. If one or more of the prefix, encoding-type, max-keys, delimiter, fetch-owner, start-after, and continuation-token parameters are also specified, the specified objects are returned based on the syntax described in Table 1.
+1 +2 +3 +4 | GET /?list-type=2 HTTP/1.1 +Host: bucketname.obs.region.example.com +Date: date +Authorization: authorization + |
This request uses parameters to list some objects in a bucket. Specific parameters are described in the following table.
+ +Parameter + |
+Description + |
+Mandatory + |
+
|---|---|---|
list-type + |
+It can be set to 2 only, indicating that the ListObjectV2 API is used. +Type: integer + |
+Yes + |
+
prefix + |
+Lists objects that begin with the specified prefix. +Type: string + |
+No + |
+
start-after + |
+Specifies a marker when listing objects in a bucket. With a marker configured, objects after this marker will be returned in alphabetical order. +Type: string + |
+No + |
+
max-keys + |
+Sets the maximum number of objects returned (in alphabetical order) in the response. The value ranges from 1 to 1000. If there are over 1,000 objects, only 1,000 objects are returned by default. +Type: integer + |
+No + |
+
delimiter + |
+Separator used to group object names. If a prefix is specified, objects with the same string from the prefix to the first delimiter are grouped into one CommonPrefixes. If no prefix is specified, objects with the same string from the first character to the first delimiter are grouped into one CommonPrefixes. +For example, there are three objects (abcd, abcde, and bbcde) in a bucket. If delimiter is set to d and prefix is set to a, objects abcd and abcde are grouped into a CommonPrefixes with abcd as the prefix. If only delimiter is set to d, objects abcd and abcde are grouped into a CommonPrefixes with abcd as the prefix, and bbcde is grouped separately into another CommonPrefixes with bbcd as the prefix. +Type: string + |
+No + |
+
continuation-token + |
+Specifies the token after which objects are returned in alphabetical order. +Type: string +Valid value: value of NextContinuationToken in the response body of the last request + |
+No + |
+
fetch-owner + |
+Specifies whether to return the object owner information. +Type: boolean +Optional value: true or false + |
+No + |
+
This request uses common request headers. For details, see Table 3.
+This request contains no elements.
+1 +2 +3 +4 +5 +6 | HTTP/1.1 status_code +Date: date +x-obs-bucket-location: region +Content-Type: application/xml +Content-Length: length +<Response Body> + |
The response to the request uses common headers. For details, see Table 1.
+This response lists objects in the XML format. Specific elements are described in Table 2.
+ +Element + |
+Description + |
+
|---|---|
ListBucketResult + |
+A list of objects in a bucket +Type: XML + |
+
Contents + |
+Object metadata +Type: XML +Ancestor: ListBucketResult + |
+
CommonPrefixes + |
+Group information. If you specify a delimiter in the request, the response contains group information in CommonPrefixes. +Type: XML +Ancestor: ListBucketResult + |
+
ContinuationToken + |
+Parameter ContinuationToken specified in a request +Type: string +Ancestor: ListBucketResult + |
+
KeyCount + |
+Number of objects returned +Type: integer +Ancestor: ListBucketResult + |
+
NextContinuationToken + |
+ContinuationToken is returned when not all the objects are listed. The next list requests can be continued with this ContinuationToken. +Type: string +Ancestor: ListVersionsResult + |
+
StartAfter + |
+Parameter StartAfter specified in a request + |
+
Delimiter + |
+Parameter delimiter specified in a request +Type: string +Ancestor: ListBucketResult + |
+
ETag + |
+Base64-encoded 128-bit MD5 digest of an object. ETag is the unique identifier of the object content. It can be used to determine whether the object content is changed. For example, if the ETag value is A when an object is uploaded, but this value has changed to B when the object is downloaded, it indicates that the object content has been changed. The ETag value is a hash of the object. The ETag reflects changes only to the object content, rather than its metadata. An uploaded object or copied object has a unique ETag after being encrypted using MD5. (If the object is encrypted on the server side, the ETag value is not the MD5 digest of the object, but the unique identifier calculated through server-side encryption.) +Type: string +Ancestor: ListBucketResult.Contents + |
+
Type + |
+Object type. This parameter is returned when the object type is not Normal. +Type: string +Ancestor: ListBucketResult.Contents + |
+
ID + |
+Tenant ID of the object owner +Type: string +Ancestor: ListBucketResult.Contents.Owner + |
+
IsTruncated + |
+Determines whether the returned list of objects is truncated. The value true indicates that the list was truncated and false indicates that the list was not truncated. +Type: boolean +Ancestor: ListBucketResult + |
+
Key + |
+Object name +Type: string +Ancestor: ListBucketResult.Contents + |
+
LastModified + |
+Time (UTC) when an object was last modified +Type: date +Ancestor: ListBucketResult.Contents + |
+
MaxKeys + |
+Maximum number of objects returned +Type: string +Ancestor: ListBucketResult + |
+
Name + |
+Name of the requested bucket +Type: string +Ancestor: ListBucketResult + |
+
Owner + |
+User information, including the domain ID and username +Type: XML +Ancestor: ListBucketResult.Contents + |
+
Prefix + |
+Prefix of an object name. Only objects whose names have this prefix are listed. +Type: string +Ancestor: ListBucketResult + |
+
Size + |
+Object size in bytes +Type: string +Ancestor: ListBucketResult.Contents + |
+
StorageClass + |
+Storage class of an object +Type: string +Value options: STANDARD | WARM | COLD +Ancestor: ListBucketResult.Contents + |
+
No special error responses are returned. For details about error responses, see Table 2.
+List all objects.
+1 +2 +3 +4 +5 +6 | GET /?list-type=2 HTTP/1.1 +User-Agent: curl/7.29.0 +Host: examplebucket.obs.region.example.com +Accept: */* +Date: WED, 01 Jul 2015 02:28:25 GMT +Authorization: OBS H4IPJX0TQTHTHEBQQCEC:KiyoYze4pmRNPYfmlXBfRTVxt8c= + |
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 | HTTP/1.1 200 OK +Server: OBS +x-obs-request-id: BF260000016435D34E379ABD93320CB9 +x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSXiN7GPL/yXM6OSBaYCUV1zcY5OelWp +Content-Type: application/xml +Date: WED, 01 Jul 2015 02:23:30 GMT +Content-Length: 586 + +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<ListBucketResult xmlns="http://obs.example.com/doc/2015-06-30/"> +<Name>name</Name> + <Prefix/> + <KeyCount>1</KeyCount> + <MaxKeys>1000</MaxKeys> + <IsTruncated>false</IsTruncated> + <Contents> + <Key>obj</Key> + <LastModified>2021-11-08T11:03:04.236Z</LastModified> + <ETag>"42648685023dcae595357d91a0936104"</ETag> + <Size>4939</Size> + <StorageClass>STANDARD</StorageClass> + </Contents> +</ListBucketResult> + |