{
  "parameters": {
    "api-version": "2026-06-01",
    "billingAccountId": "70664866",
    "parameters": {
      "type": "Usage",
      "dataset": {
        "aggregation": {
          "totalCost": {
            "name": "PreTaxCost",
            "function": "Sum"
          }
        },
        "granularity": "None",
        "grouping": [
          {
            "name": "ResourceGroup",
            "type": "Dimension"
          }
        ]
      },
      "timeframe": "TheLastMonth"
    },
    "scope": "providers/Microsoft.Billing/billingAccounts/70664866"
  },
  "responses": {
    "200": {
      "body": {
        "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd",
        "type": "microsoft.costmanagement/Query",
        "id": "/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd",
        "properties": {
          "columns": [
            {
              "name": "PreTaxCost",
              "type": "Number"
            },
            {
              "name": "ResourceGroup",
              "type": "String"
            },
            {
              "name": "Currency",
              "type": "String"
            }
          ],
          "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D",
          "rows": [
            [
              19.545363672276512,
              "JapanUnifia-Trial",
              "USD"
            ],
            [
              173.41979241290323,
              "RVIIOT-TRIAL",
              "USD"
            ],
            [
              20.35941656262545,
              "VSTSHOL-1595322048000",
              "USD"
            ]
          ]
        }
      }
    },
    "204": {}
  },
  "operationId": "Query_Usage",
  "title": "BillingAccountQueryGrouping-Legacy"
}
