Jabs

My feedback

  1. 237 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    12 comments  ·  Storage » General  ·  Flag idea as inappropriate…  ·  Admin →
    Jabs commented  · 

    In one of the link: https://docs.microsoft.com/en-us/rest/api/storagerp/operations/list#operation

    It is mentioned that in jason response to following rest API call:

    GET https://management.azure.com/providers/Microsoft.Storage/operations?api-version=2018-07-01

    we can get used capacity of storage account:

    {
    "name": "Microsoft.Storage/storageAccounts/providers/Microsoft.Insights/metricDefinitions/read",
    "display": {
    "provider": "Microsoft Storage",
    "resource": "Storage Accounts",
    "operation": "Get list of Microsoft Storage Metrics definitions",
    "description": "Get list of Microsoft Storage Metrics definitions."
    },
    "origin": "system",
    "properties": {
    "serviceSpecification": {
    "metricSpecifications": [
    {
    "name": "UsedCapacity",
    "displayName": "Used capacity",
    "displayDescription": "Account used capacity",
    "unit": "Bytes",
    "aggregationType": "Average",
    "fillGapWithZero": false,
    "category": "Capacity",
    "resourceIdDimensionNameOverride": "AccountResourceId"
    }
    ]
    }
    }
    }

    But REST API i not taking Storage Account name and access key. So how to construct GET REST API for my storage account: STGACT1 and access key: AKey1 to get the used capacity of my storage account?

Feedback and Knowledge Base