检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 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.
Ways to List Buckets You can use OBS Console, APIs, SDKs, OBS Browser+, or obsutil to list buckets. Using OBS Console Log in to the management console. Click in the upper left corner and choose Storage > Object Storage Service.
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.
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.
/obsutil cp /temp/test.txt obs://bucket-test/test.txt If the command output is as follows, the file is uploaded.
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.
If a file is larger than 5 GB, you can use OBS Browser+ or obsutil to upload it. Or you can use the OBS SDKs or API to upload the file (up to 48.8 TB) with a multipart upload. OBS Browser+ allows you to upload up to 500 files at a time.
# Use the instance to access OBS
Ways to Share an Object You can use OBS Console, APIs, SDKs, OBS Browser+, or obsutil to share an object. Using OBS Console In the navigation pane of OBS Console, choose Object Storage. In the bucket list, click the bucket you want to operate. The Objects page is displayed.
For details, see Introduction to OBS Access Control, IAM Custom Policies, and Creating a Custom Bucket Policy. The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
With the quiet mode, OBS only returns the list of objects that failed to be deleted. This element is valid when set to true. Otherwise, OBS ignores it.
With pay-per-use billing, you can continue using OBS as long as your account has enough balance. If your account is in arrears, your data stored in OBS will be retained, and your account will be suspended.
Before You Start Overview Using OBS Accessing OBS
The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
You need to configure network settings before you can access OBS over the intranet of a given region. For details, see Accessing OBS from an ECS over an Intranet.
Why Is the Number of Objects I Downloaded from OBS to My Local Windows PC Different from That in OBS? Can I Rename an Object or a Folder?
To access a bucket using the OBS BrowserJS SDK, you must first configure CORS for the bucket. Ensure that you are familiar with OBS basic concepts, such as buckets, objects, and access keys (AK and SK).
import ObsClient from obs import PutObjectHeader, GetObjectHeader from obs import SseKmsHeader import os import traceback # Obtain an AK and SK pair using environment variables or import the AK and SK pair in other ways.
The network is in poor conditions, and the connection to the OBS server is interrupted frequently. The upload task is manually suspended. The device is faulty. The device is powered off suddenly. The following describes how to manually delete fragments on OBS Console.
The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.