This topic describes how to use Python SDK V2 to manage real-time access of Archive objects for a bucket.
Usage notes
The sample code in this topic uses the region ID
cn-hangzhouof the China (Hangzhou) region. By default, the public endpoint is used to access resources in a bucket. If you want to access resources in the bucket by using other Alibaba Cloud services in the same region in which the bucket is located, use an internal endpoint. For more information about the regions and endpoints supported by OSS, see Regions and endpoints.
Method definition
Enable real-time access of Archive objects for a bucket
put_bucket_archive_direct_read(request: PutBucketArchiveDirectReadRequest, **kwargs) → PutBucketArchiveDirectReadResultQuery whether real-time access of Archive objects is enabled for a bucket
get_bucket_archive_direct_read(request: GetBucketArchiveDirectReadRequest, **kwargs) → GetBucketArchiveDirectReadResultRequest parameters
Parameter | Type | Description |
request | PutBucketArchiveDirectReadRequest | The request parameters. For more information, see PutBucketArchiveDirectReadRequest |
GetBucketArchiveDirectReadRequest | The request parameters. For more information, see GetBucketArchiveDirectReadRequest |
Response parameters
Type | Description |
PutBucketArchiveDirectReadResult | The response parameters. For more information, see PutBucketArchiveDirectReadResult |
GetBucketArchiveDirectReadResult | The response parameters. For more information, see GetBucketArchiveDirectReadResult |
For the complete definition of the method to enable real-time access of Archive objects for a bucket, see put_bucket_archive_direct_read.
For the complete definition of the method to query whether real-time access of Archive objects is enabled for a bucket, see get_bucket_archive_direct_read.