{ "parameters": { "api-version": "2026-06-01", "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" }, "responses": { "200": { "body": { "value": [ { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample", "name": "swaggerExample", "type": "Microsoft.CostManagement/Views", "eTag": "\"1d4ff9fe66f1d10\"", "properties": { "displayName": "swagger Example", "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "query": { "type": "Usage", "timeframe": "MonthToDate", "dataSet": { "granularity": "Daily", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, "grouping": [], "sorting": [ { "direction": "Ascending", "name": "UsageDate" } ] } }, "chart": "Table", "accumulated": "true", "metric": "ActualCost", "kpis": [ { "type": "Forecast", "id": null, "enabled": true }, { "type": "Budget", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", "enabled": true } ], "pivots": [ { "type": "Dimension", "name": "ServiceName" }, { "type": "Dimension", "name": "MeterCategory" }, { "type": "TagKey", "name": "swaggerTagKey" } ] } }, { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample2", "name": "swaggerExample2", "type": "Microsoft.CostManagement/Views", "eTag": "\"1d4ffa5a9c2430c\"", "properties": { "displayName": "swagger Example 2", "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "query": { "type": "Usage", "timeframe": "LastMonthToDate", "dataSet": { "granularity": "Daily", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, "grouping": [], "sorting": [ { "direction": "Ascending", "name": "UsageDate" } ] } }, "chart": "GroupedColumn", "accumulated": "true", "metric": "ActualCost", "kpis": [ { "type": "Forecast", "id": null, "enabled": true }, { "type": "Budget", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", "enabled": true } ], "pivots": [ { "type": "Dimension", "name": "ServiceName" }, { "type": "Dimension", "name": "MeterCategory" }, { "type": "TagKey", "name": "swaggerTagKey" } ] } } ] } } }, "operationId": "Views_ListByScope", "title": "ResourceGroupViewList" }