检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Lifecycle Rule Configuration You can configure lifecycle rules by using OBS Console, APIs, or SDKs. 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.
Restrictions To modify an object, you must be the PFS owner or have the required permission (obs:bucket:PutObject in IAM or PutObject in a policy). For details, see Introduction to OBS Access Control, IAM Custom Policies, and Configuring an Object Policy.
StorageClassEnum.Standard OBS Infrequent Access Is applicable to storing semi-frequently accessed (less than 12 times a year) data requiring quick response. StorageClassEnum.Warm OBS Archive Is applicable to archiving rarely-accessed (once a year) data.
// require 'obs-autoloader.php'; // Declare the namespace. use Obs\ObsClient; // Create an instance of ObsClient. $obsClient = new ObsClient ( [ //Obtain an AK/SK pair using environment variables or import the AK/SK pair in other ways.
access_key_id: process.env.ACCESS_KEY_ID, secret_access_key: process.env.SECRET_ACCESS_KEY, // (Optional) If you use a temporary AK/SK pair and a security token to access OBS, you are advised not to use hard coding, which may result in information leakage.
access_key_id: process.env.ACCESS_KEY_ID, secret_access_key: process.env.SECRET_ACCESS_KEY, // (Optional) If you use a temporary AK/SK pair and a security token to access OBS, you are advised not to use hard coding, which may result in information leakage.
In the bucket list on OBS Console, click the bucket you need to delete the object from. The Objects page is displayed. In the navigation pane, choose Permissions > Bucket ACL.
If there is no such a default master key, OBS will create one and use it by default.
If the source bucket or destination bucket does not exist, OBS returns 404 Not Found and the error code is NoSuchBucket. If the source object does not exist, OBS returns 404 Not Found and the error code is NoSuchKey.
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.
Before using the OBS C SDK to initiate an OBS request, you need to call the initialization API. When you are exiting the process, you need to call the initialization cancellation API to release resources.
Before using the OBS C SDK to initiate an OBS request, you need to call the initialization API. When you are exiting the process, you need to call the initialization cancellation API to release resources.
Why Is There a Charge of $0.01 USD on My OBS Bill?
To learn more about domain names, see OBS Domain Names. Figure 1 Object link To allow anonymous users to access objects in Archive or Deep Archive storage using URLs, ensure that these objects are in the Restored state. Parent Topic: Object Management
Default value: None requestId str Explanation: Request ID returned by the OBS server Default value: None indicator str Explanation: Error indicator returned by the OBS server. Default value: None hostId str Explanation: Requested server ID.
Restrictions To configure object ACL, you must be the bucket owner or have the required permission (obs:object:PutObjectAcl in IAM or PutObjectAcl in a bucket policy). For details, see Introduction to OBS Access Control, IAM Custom Policies, and Configuring an Object Policy.
To create a folder in OBS is essentially to create an object whose size is 0 and whose name ends with a slash (/).
For the sake of high DNS resolution performance and OBS reliability, you can set server only to the domain name of OBS, instead of the IP address. For details about SDK proxy configuration, see Configuring an SDK Proxy (SDK for Node.js).
OBS deletes tags from the current object version by default. You can use the versionId parameter to delete tags from any other version. If the version you are deleting tags from is a delete marker, OBS returns 404 Not Found.
Response Syntax 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 Response Headers The response to the request uses common headers. For details, see Table 1.