X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fexamples%2Fboto3%2Flist_unordered.py;fp=ceph%2Fexamples%2Fboto3%2Flist_unordered.py;h=0000000000000000000000000000000000000000;hb=1e59de90020f1d8d374046ef9cca56ccd4e806e2;hp=979051319692f4477208c689f96d81ee32668a94;hpb=bd41e436e25044e8e83156060a37c23cb661c364;p=ceph.git diff --git a/ceph/examples/boto3/list_unordered.py b/ceph/examples/boto3/list_unordered.py deleted file mode 100755 index 979051319..000000000 --- a/ceph/examples/boto3/list_unordered.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/python - -import boto3 -import sys - -if len(sys.argv) != 2: - print('Usage: ' + sys.argv[0] + ' ') - sys.exit(1) - -# bucket name as first argument -bucketname = sys.argv[1] - -# endpoint and keys from vstart -endpoint = 'http://127.0.0.1:8000' -access_key='0555b35654ad1656d804' -secret_key='h7GhxuBLTrlhVUyxSPUKUV8r/2EI4ngqJxD7iBdBYLhwluN30JaT3Q==' - -client = boto3.client('s3', - endpoint_url=endpoint, - aws_access_key_id=access_key, - aws_secret_access_key=secret_key) - -# getting an unordered list of objects is an extension to AWS S3 API - -print(client.list_objects(Bucket=bucketname, AllowUnordered=True))