检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Code string Explanation: Error code returned by the OBS server. Message string Explanation: Error description returned by the OBS server. HostId string Explanation: Request server ID returned by the OBS server. RequestId string Explanation: Request ID returned by the OBS server.
Command Line Structure In Windows obsutil rm obs://bucket [-f] [-config=xxx] [-e=xxx] [-i=xxx] [-k=xxx] [-t=xxx] In Linux or macOS ./obsutil rm obs://bucket [-f] [-config=xxx] [-e=xxx] [-i=xxx] [-k=xxx] [-t=xxx] Examples Take the Windows OS as an example.
Run the obsutil restore obs://bucket-test/key command to restore a single object whose storage class is cold. obsutil restore obs://bucket-test/key Start at 2024-09-30 08:56:17.9537365 +0000 UTC Start to restore object [key] in the bucket [bucket-test] successfully, cost [252] ms
The network connection between the OBS client and OBS server is abnormal. Solution: Check the network status.
OBS supports CORS rules that allow the resources in OBS to be requested by other domains. This API returns the CORS configuration of a bucket.
OBS supports CORS rules that allow the resources in OBS to be requested from other origins. This API returns the CORS configuration of a bucket.
Sample Request 2 Grant permissions to an OBS user.
For details, see Introduction to OBS Access Control, IAM Custom Policies, and Configuring an Object Policy. The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
If the bucket is not found, OBS returns 404 Not Found and the error code is NoSuchBucket. View the bucket ACL to check whether the user has the read permission for the requested bucket. If the user does not have the read permission, OBS returns 403 AccessDenied.
Tags are used to identify and classify OBS buckets or objects. To configure tags for a bucket on OBS Console, see Configuring Tags for a Bucket. For more information, see Tags. Parent topic: Tag Management
OBS allows you to copy your service data stored in OBS to a specified region, but Huawei Cloud does not detect the stored data. You need to ensure the legal compliance of your use of OBS on your own.
OBS does not involve folders like in a file system. All elements in buckets are objects. To create a folder in OBS is essentially to create an object whose size is 0 and whose name ends with a slash (/).
OBS BrowserJS SDK provides a group of pre-defined constants that can be directly used. You can call ObsClient.enums to obtain the pre-defined constants. For details, see the OBS BrowserJS SDK API Reference. Parent topic: Quick Start
To avoid any confusion this might cause, mount your parallel file system to an empty directory. obsfs can be used to mount parallel file systems but not OBS buckets.
OBS PHP SDK provides a group of pre-defined constants that can be directly used. You can call ObsClient to obtain the pre-defined constants. For details about predefined constants, see the OBS PHP SDK API Reference. Parent topic: Quick Start
Once WORM is enabled for a bucket, OBS automatically enables versioning for the bucket and the versioning cannot be suspended for that bucket. You can perform this operation to enable or suspend versioning for a bucket.
Why Is There a Charge of $0.01 USD on My OBS Bill? Why Is There a Large Amount of Outbound Internet Traffic in My Bill?
mirrorBackToSource HTTP/1.1 Host: bucketname.obs.region.myhuaweicloud.com Authorization: OBS H4IPJX0TQTHTHEBQQCEC:sc2PM13Wlfcoc/YZLK0MwsI2Zpo= Date: Tue, 21 Jul 2020 17:28:46 GMT Sample Response HTTP/1.1 204 No Content Server: OBS Date: Tue, 07 Jul 2020 07:38:30 GMT Parent topic:
obscompresspolicy HTTP/1.1 Host: bucketname.obs.region.myhuaweicloud.com Authorization: OBS H4IPJX0TQTHTHEBQQCEC:sc2PM13Wlfcoc/YZLK0MwsI2Zpo= Date: Tue, 21 Jul 2020 17:28:46 GMT Sample Response HTTP/1.1 204 No Content Server: OBS Date: Tue, 07 Jul 2020 07:38:30 GMT Parent topic:
The following table lists the object content: Field Storage Class Description HttpStatusCode integer HTTP status code Reason string Reason description RequestId string Request ID returned by the OBS server Other fields See the OBS PHP SDK API Reference.