Getting Storage Account Properties using Storage Services REST API

前端 未结 1 1489
广开言路
广开言路 2021-01-24 08:05

Is there a way to get properties of a storage account, specifically the kind of account - GPv1, GPv2 or blob storage, through an API in Storage Services?

I came across h

1条回答
  •  一生所求
    2021-01-24 08:35

    When it comes to managing storage accounts, there are two REST APIs:

    1. Storage Service REST API: This API is used to manage the data in the storage accounts. This makes use of account name and access key (also known as storage account key). You can find more details about this API here: https://docs.microsoft.com/en-us/rest/api/storageservices/.
    2. Storage Resource Provider (SRP) REST API: This API is used to manage storage accounts. You can use this API to create, update, delete storage accounts, regenerate account keys and get information about the storage account themselves. This makes use of Azure AD for authentication and authorization. You can find more details about this API here: https://docs.microsoft.com/en-us/rest/api/storagerp/.

    Now coming to your question, you can't really use Storage Service REST API to find information about the type of storage account. You would need to use Storage Resource Provider API to find this information. In particular you will be consuming Get Properties SRP API to find this information.

    0 讨论(0)
提交回复
热议问题