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년 전186회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠