We will need a token to run this request. You can follow my previous post to learn how to get a token.
Once the token is acquired, it will be a GET request.
URL: https://management.azure.com/subscriptions/{{subscriptionId}}/providers/Microsoft.Storage/storageAccounts?api-version=2018-07-01
Replace {{subscriptionId}} with your subId.
And added an “Authorization” header with value “Bearer {{bearerToken}}“, replacing {{bearerToken}} with your acquired token.
The response will be a JSON containing a list of all the resource groups in the subscription.
RESPONSE:
{ "value": [ { "sku": { "name": "Standard_LRS", "tier": "Standard" }, "kind": "Storage", "id": "/subscriptions/yoursub/resourceGroups/yourresourcegroup/providers/Microsoft.Storage/storageAccounts/yourstoragename", "name": "yourstoragename", "type": "Microsoft.Storage/storageAccounts", "location": "southeastasia", "tags": {}, "properties": { "networkAcls": { "bypass": "AzureServices", "virtualNetworkRules": [], "ipRules": [], "defaultAction": "Allow" }, "trustedDirectories": [ "abcdfdfdfkljlksdfds" ], "supportsHttpsTrafficOnly": false, "encryption": { "services": { "file": { "enabled": true, "lastEnabledTime": "2018-05-29T06:01:13.8618426Z" }, "blob": { "enabled": true, "lastEnabledTime": "2018-05-29T06:01:13.8618426Z" } }, "keySource": "Microsoft.Storage" }, "provisioningState": "Succeeded", "creationTime": "2018-05-29T06:01:13.8149620Z", "primaryEndpoints": { "blob": "https://yourstoragename.blob.core.windows.net/", "queue": "https://yourstoragename.queue.core.windows.net/", "table": "https://yourstoragename.table.core.windows.net/", "file": "https://yourstoragename.file.core.windows.net/" }, "primaryLocation": "southeastasia", "statusOfPrimary": "available" } } ] }
PS: I will soon be uploading a postman collection.