{
  "parameters": {
    "api-version": "2026-06-01",
    "externalCloudProviderId": "100",
    "externalCloudProviderType": "externalBillingAccounts",
    "parameters": {
      "type": "Usage",
      "dataset": {
        "filter": {
          "and": [
            {
              "or": [
                {
                  "dimensions": {
                    "name": "ResourceLocation",
                    "operator": "In",
                    "values": [
                      "East US",
                      "West Europe"
                    ]
                  }
                },
                {
                  "tags": {
                    "name": "Environment",
                    "operator": "In",
                    "values": [
                      "UAT",
                      "Prod"
                    ]
                  }
                }
              ]
            },
            {
              "dimensions": {
                "name": "ResourceGroup",
                "operator": "In",
                "values": [
                  "API"
                ]
              }
            }
          ]
        },
        "granularity": "Daily"
      },
      "timeframe": "MonthToDate"
    }
  },
  "responses": {
    "200": {
      "body": {
        "name": "6dc7b06a-d90a-4df5-b655-ce6cf1c0814d",
        "type": "Microsoft.CostManagement/query",
        "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d",
        "properties": {
          "columns": [
            {
              "name": "PreTaxCost",
              "type": "Number"
            },
            {
              "name": "ServiceName",
              "type": "String"
            },
            {
              "name": "Currency",
              "type": "String"
            }
          ],
          "nextLink": null,
          "rows": [
            [
              0,
              "abc db",
              "USD"
            ],
            [
              30.2572751438,
              "abc compute cloud",
              "USD"
            ],
            [
              0.07675760200000002,
              "abc file system",
              "USD"
            ],
            [
              50.43096419040001,
              "abc elasticache",
              "USD"
            ]
          ]
        }
      }
    }
  },
  "operationId": "Query_UsageByExternalCloudProviderType",
  "title": "ExternalBillingAccountQueryList"
}
