How to use AWS S3 REST API ListObjects v2 with multiple parent child bucket directories

0 votes

What am I missing here?

I'm able to list objects with no problem using the AWS CLI and this command:

AWS s3 ls s3://bucket.mycompany.com/parent-dir1/parent-dir2/

But using the REST API via Postman, an equivalent request returns an empty response.

  • Tool: Postman

  • Method: GET

  • Auth: enter image description here

  • Headers:

    • I've tried with no headers and with x-and-content-sha256 UNSIGNED-PAYLOAD

    • The message says "This is a duplicate header and will be overridden..." when I try to use this header enter image description here

  • Response:

  • Status 200 but response is empty(There are MANY files in parent-dir2).

enter image description hereenter image description here

Apr 25, 2022 in AWS by Rahul
• 9,680 points
995 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In AWS

0 votes
1 answer

How to use AWS S3 REST API ListObjects(v2) with multiple parent/child bucket directories?

Here you have to use the ListObjectsV2 ...READ MORE

answered Feb 15, 2022 in AWS by anonymous
1,307 views
0 votes
0 answers
+1 vote
3 answers

How to get ARN for s3 Bucket using aws cli .

An ARN is a non-opaque, constructible identifier, ...READ MORE

answered Aug 16, 2018 in AWS by Priyaj
• 58,020 points
5,644 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,020 points
5,957 views
–1 vote
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,020 points
5,204 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,820 points
2,868 views
0 votes
2 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP