Error in calling Azure rest API -The requested URI does not represent any resource on the server

2.2k Views Asked by At

i am calling Azure Rest API to list all blobs in a directory (inside container) throuh informatica cloud using web service transformation.But i am getting error while running the mapping InvalidUriThe requested URI does not represent any resource on the server. API: https://<account_name>.blob.core.windows.net/training?restype=container&comp=list&prefix=training/Type/Class

1

There are 1 best solutions below

1
On

Could not reproduce your issue, the REST API - List Blobs works fine on my side.

You could refer to the sample below, make sure you are using it the same as mine.

Note: When you using prefix, you have already used the container name training in the url, don't use it again in the parameter, it should be prefix=Type/Class.

Request URL:

GET https://accountname.blob.core.windows.net/training?restype=container&comp=list&prefix=Type/Class

Request header:

x-ms-version = 2019-12-12

Test in the postman:

enter image description here

My storage structure:

enter image description here