How to get the progress of oss lifecycle

0

I can get the progress(status) of the lifecycle by radosgw-admin lc list, I don't know how to get it by s3-Boto3, I need your help

eg:radosgw-admin lc list result

[
    {
        "bucket":":xx:xx",
        "started":"xxx",
        "status":"COMPLETE"
    }
]
已提問 2 年前檢視次數 196 次
1 個回答
0

Hello shuijing,

It seems like you are able to get the S3 lifecycle information by radosgw-admin lc list, and you want some guidance on how to get it by s3-Boto3.

This link[1] contained the code example shows how to get an S3 bucket’s lifecycle configuration via SDK for Boto3. This third-party link[2] also has a code example along with the steps on the approach to this problem.

References:
[1] https://docs.aws.amazon.com/AmazonS3/latest/userguide/example_s3_GetBucketLifecycleConfiguration_section.html
[2] https://www.tutorialspoint.com/how-to-get-the-lifecycle-of-a-s3-bucket-using-boto3-and-aws-client

Becky_J
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南