0

I am looking for a REST API using which my application can determine the location of the Blob Storage account. The application has an access to a specific blob using the Shared Access Signature.

6
  • Did u have a read into learn.microsoft.com/en-us/azure/storage/blobs/… Commented Sep 10, 2017 at 16:09
  • What language are you using? Why existing SDKs are not enough? Commented Sep 10, 2017 at 16:18
  • Please provide sample input Commented Sep 10, 2017 at 16:24
  • .NET SDK supports retrieving blob.Uri. You can use Fiddler to intercept what REST API call it makes underneath. Commented Sep 10, 2017 at 16:25
  • I went through the REST APIs I did see learn.microsoft.com/en-us/rest/api/storagerp/StorageAccounts/… , which could get the location of the Storage Account. However in this case the application doesn't have details of the underlying storage account hence parameters like resource manager name aren't available. The application doesn't have the full access to azure subscription , it just has access to the blob using SAS signatures Commented Sep 10, 2017 at 16:32

1 Answer 1

3

If you just have a blob's SAS URL, then you will not be able to find the location of the storage account.

In order to get the location of a storage account, you would need to use is Storage Resource Provider API especially Storage Accounts - Get Properties operation there. When you perform this operation, the location of the storage account is available in primaryLocation attribute in response. In order to perform this operation, you would need access to underlying Azure Subscription.

Using Storage REST API it is not possible to find this information currently. This API enables you to manage the data in a storage account.

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

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.