rest - Get aws bucket content listing using Postman - "Get Bucket (Version 2)" RestAPI -


i using postman send aws s3 restapi "get bucket (version 2)" bucket listing.

name of bucket "test-bucket-1.ahadomain.com" (ahadomain.com dummy nonexistent domain used when naming bucket in aws). user credentials using has permissions make s3 calls. following info on page - http://docs.aws.amazon.com/amazons3/latest/api/v2-restbucketget.html

i using endpoint : https://test-bucket-1.s3.us-east-1.amazonaws.com sending following headers : content-type, host, x-amz-content-sha256, x-amz-date, authorization

do need add "list-type" query parameter or header? if query parameter, how state in url.

i getting following response, not contain listing of content, info bucket itself:

<?xml version="1.0" encoding="utf-8"?> <listallmybucketsresult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">     <owner>         <id>6893100ea2b48696e8ccc3aa17414f4325cf59b574474ad9de0bcb0d139590c9</id>         <displayname>ahmedsmail</displayname>     </owner>     <buckets>         <bucket>             <name>test-bucket-1.ahadomain.com</name>             <creationdate>2017-09-06t06:36:15.000z</creationdate>         </bucket>     </buckets> </listallmybucketsresult> 

any appreciated.

thank you, ahmed.

you can following:

  1. set methos get
  2. in url: https://s3.amazonaws.com/test-bucket-1.ahadomain.com/?list-type=2
    note: if region of bucket not in us-east-1, change s3.amazonaws.com correct s3 endpoint of region.
  3. in authorization tab, set following:
    a. type: aws signature
    b. accesskey:
    c. secretkey:
    d. aws region: us-east-1
    note: change if not region of bucket
    e. service name: s3
    f. check "save helper data request"
  4. go headers tab, delete entries if there any.
  5. then click "send" button

here sample result


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -