2

I have a storage account set up and a single container in it. The access level is set to public and I can access the individual blobs as so:

https://img.blob.core.windows.net/images/name_of_blob

However, when I try to access the URL of the container (images) directly:

https://img.blob.core.windows.net/images/

I get this response:

<Error>
  <Code>ResourceNotFound</Code>
  <Message>The specified resource does not exist.</Message>
</Error>

Is there a way to get a list of all the blobs within the container through a URL request?

3
  • 1
    How about using the REST API? Commented Jun 11, 2019 at 10:23
  • Yes, this is what I was looking for, thanks! Commented Jun 11, 2019 at 10:28
  • Glad to hear it, I've added my comment and as answer. It would be good if you could accept it to that your question shows as resolved for other users. :-) Commented Jun 11, 2019 at 10:32

2 Answers 2

4

How about using the REST API?

Something like:

GET https://myaccount.blob.core.windows.net/mycontainer?restype=container&comp=list

Be sure to pass in any required headers as per the documentation linked above.

Sign up to request clarification or add additional context in comments.

Comments

0

When you created the container, the public access level must have been set at 'Blob'. If you set the public access level at 'Container' from the dropdown, you should be able to access the list.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.