From a1f8ab6334d0642f97b2415a37acc7b4f7ce484e Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 29 Aug 2025 16:18:12 +0800 Subject: [PATCH 01/45] The first version of TSP --- .../CostManagement.Management/Alert.tsp | 57 + .../CostManagement.Management/Budget.tsp | 73 + .../CostAllocationRuleDefinition.tsp | 75 + .../CostDetailsOperationResults.tsp | 67 + .../CostManagement.Management/Export.tsp | 122 + ...erateDetailedCostReportOperationResult.tsp | 44 + ...ateDetailedCostReportOperationStatuses.tsp | 67 + .../ScheduledAction.tsp | 186 + .../CostManagement.Management/Setting.tsp | 67 + .../CostManagement.Management/View.tsp | 137 + .../back-compatible.tsp | 181 + ...enefitRecommendationsByBillingAccount.json | 124 + ...zationSummariesReportByBillingAccount.json | 39 + ...zationSummariesReportByBillingProfile.json | 41 + ...ilizationSummariesReportByReservation.json | 40 + ...tionSummariesReportByReservationOrder.json | 38 + ...ilizationSummariesReportBySavingsPlan.json | 40 + ...tionSummariesReportBySavingsPlanOrder.json | 38 + .../SavingsPlan-BillingAccount.json | 50 + .../SavingsPlan-BillingProfile.json | 35 + .../SavingsPlan-SavingsPlanId-Monthly.json | 51 + .../SavingsPlan-SavingsPlanOrderId-Daily.json | 34 + .../2025-03-01/BillingAccountAlerts.json | 100 + .../BillingAccountDimensionsList.json | 60 + ...lingAccountDimensionsListExpandAndTop.json | 62 + ...illingAccountDimensionsListWithFilter.json | 43 + .../2025-03-01/BillingAccountForecast.json | 122 + .../2025-03-01/BillingAccountQuery.json | 110 + .../BillingAccountQueryGrouping.json | 72 + .../2025-03-01/BillingProfileAlerts.json | 101 + .../2025-03-01/BillingProfileForecast.json | 123 + ...eateOrUpdate-Cost-Subscription-Budget.json | 229 + ...countEA-AlertRule-ReservationIdFilter.json | 127 + ...-AlertRule-ReservedResourceTypeFilter.json | 127 + .../EA/BillingAccountEA-AlertRule.json | 97 + ...Profile-AlertRule-ReservationIdFilter.json | 128 + ...-AlertRule-ReservedResourceTypeFilter.json | 128 + .../MCA/BillingProfile-AlertRule.json | 98 + ...ustomer-AlertRule-ReservationIdFilter.json | 128 + ...-AlertRule-ReservedResourceTypeFilter.json | 128 + .../MCA/Customer-AlertRule.json | 98 + .../Budgets/Delete/DeleteBudget.json | 14 + .../Budgets/Get/Cost/Get-Cost-Budget.json | 87 + .../Get-ReservationUtilization-AlertRule.json | 53 + ...ountBudgetsList-EA-CategoryTypeFilter.json | 46 + .../List/EA/BillingAccountBudgetsList-EA.json | 107 + .../List/EA/DepartmentBudgetsList.json | 80 + .../List/EA/EnrollmentAccountBudgetsList.json | 80 + ...untBudgetsList-MCA-CategoryTypeFilter.json | 46 + .../MCA/BillingAccountBudgetsList-MCA.json | 107 + ...ProfileBudgetsList-CategoryTypeFilter.json | 85 + .../List/MCA/BillingProfileBudgetsList.json | 146 + ...ustomerBudgetsList-CategoryTypeFilter.json | 85 + .../Budgets/List/MCA/CustomerBudgetsList.json | 146 + .../List/MCA/InvoiceSectionBudgetsList.json | 81 + .../List/RBAC/ManagementGroupBudgetsList.json | 224 + .../List/RBAC/ResourceGroupBudgetsList.json | 155 + .../List/RBAC/SubscriptionBudgetsList.json | 193 + ...stAllocationRuleCheckNameAvailability.json | 21 + .../2025-03-01/CostAllocationRuleCreate.json | 128 + .../CostAllocationRuleCreateTag.json | 131 + .../2025-03-01/CostAllocationRuleDelete.json | 13 + .../2025-03-01/CostAllocationRuleGet.json | 52 + .../2025-03-01/CostAllocationRulesList.json | 130 + ...lsOperationResultsBySubscriptionScope.json | 48 + .../examples/2025-03-01/DepartmentAlerts.json | 101 + .../2025-03-01/DepartmentDimensionsList.json | 61 + .../DepartmentDimensionsListExpandAndTop.json | 63 + .../DepartmentDimensionsListWithFilter.json | 44 + .../2025-03-01/DepartmentForecast.json | 123 + .../examples/2025-03-01/DepartmentQuery.json | 111 + .../2025-03-01/DepartmentQueryGrouping.json | 73 + .../DismissResourceGroupAlerts.json | 61 + .../2025-03-01/DismissSubscriptionAlerts.json | 60 + .../EAPriceSheetForBillingPeriod.json | 26 + .../2025-03-01/EnrollmentAccountAlerts.json | 101 + .../EnrollmentAccountDimensionsList.json | 49 + ...mentAccountDimensionsListExpandAndTop.json | 63 + ...llmentAccountDimensionsListWithFilter.json | 44 + .../2025-03-01/EnrollmentAccountForecast.json | 123 + .../2025-03-01/EnrollmentAccountQuery.json | 111 + .../EnrollmentAccountQueryGrouping.json | 80 + .../ExportCreateOrUpdateByBillingAccount.json | 145 + ...tCreateOrUpdateByBillingAccountCustom.json | 142 + ...CreateOrUpdateByBillingAccountMonthly.json | 145 + ...ateOrUpdateByBillingAccountPricesheet.json | 145 + ...ateByBillingAccountReservationDetails.json | 149 + ...llingAccountReservationRecommendation.json | 188 + ...BillingAccountReservationTransactions.json | 148 + .../ExportCreateOrUpdateByDepartment.json | 146 + ...portCreateOrUpdateByEnrollmentAccount.json | 146 + ...ExportCreateOrUpdateByManagementGroup.json | 145 + .../ExportCreateOrUpdateByResourceGroup.json | 146 + .../ExportCreateOrUpdateBySubscription.json | 145 + .../ExportDeleteByBillingAccount.json | 13 + .../2025-03-01/ExportDeleteByDepartment.json | 14 + .../ExportDeleteByEnrollmentAccount.json | 14 + .../ExportDeleteByManagementGroup.json | 13 + .../ExportDeleteByResourceGroup.json | 14 + .../ExportDeleteBySubscription.json | 13 + .../2025-03-01/ExportGetByBillingAccount.json | 54 + .../2025-03-01/ExportGetByDepartment.json | 55 + .../ExportGetByEnrollmentAccount.json | 55 + .../ExportGetByManagementGroup.json | 54 + .../2025-03-01/ExportGetByResourceGroup.json | 55 + .../2025-03-01/ExportGetBySubscription.json | 54 + .../2025-03-01/ExportRunByBillingAccount.json | 13 + ...BillingAccountWithOptionalRequestBody.json | 19 + .../2025-03-01/ExportRunByDepartment.json | 14 + .../ExportRunByEnrollmentAccount.json | 14 + .../ExportRunByManagementGroup.json | 13 + .../2025-03-01/ExportRunByResourceGroup.json | 14 + .../2025-03-01/ExportRunBySubscription.json | 13 + .../ExportRunHistoryGetByBillingAccount.json | 104 + .../ExportRunHistoryGetByDepartment.json | 105 + ...xportRunHistoryGetByEnrollmentAccount.json | 105 + .../ExportRunHistoryGetByManagementGroup.json | 104 + .../ExportRunHistoryGetByResourceGroup.json | 105 + .../ExportRunHistoryGetBySubscription.json | 104 + .../ExportsGetByBillingAccount.json | 99 + .../2025-03-01/ExportsGetByDepartment.json | 104 + .../ExportsGetByEnrollmentAccount.json | 104 + .../ExportsGetByManagementGroup.json | 103 + .../2025-03-01/ExportsGetByResourceGroup.json | 104 + .../2025-03-01/ExportsGetBySubscription.json | 103 + .../ExternalBillingAccountAlerts.json | 100 + .../ExternalBillingAccountForecast.json | 111 + .../ExternalBillingAccountsDimensions.json | 59 + .../ExternalBillingAccountsQuery.json | 101 + .../ExternalSubscriptionAlerts.json | 100 + .../ExternalSubscriptionForecast.json | 94 + .../ExternalSubscriptionsDimensions.json | 59 + .../ExternalSubscriptionsQuery.json | 80 + ...riseAgreementCustomerAndBillingPeriod.json | 49 + ...ilsReportByBillingProfileAndInvoiceId.json | 49 + ...llingProfileAndInvoiceIdAndCustomerId.json | 49 + ...tDetailsReportByCustomerAndTimePeriod.json | 55 + ...tailsReportByDepartmentsAndTimePeriod.json | 55 + ...portByEnrollmentAccountsAndTimePeriod.json | 55 + ...ailsReportBySubscriptionAndTimePeriod.json | 55 + ...yBillingAccountLegacyAndBillingPeriod.json | 32 + ...ostReportByBillingProfileAndInvoiceId.json | 32 + ...llingProfileAndInvoiceIdAndCustomerId.json | 33 + ...iledCostReportByCustomerAndTimePeriod.json | 35 + ...CostReportBySubscriptionAndTimePeriod.json | 35 + ...rtOperationResultsBySubscriptionScope.json | 29 + ...ortOperationStatusBySubscriptionScope.json | 27 + ...ervationDetailsReportByBillingAccount.json | 27 + ...ervationDetailsReportByBillingProfile.json | 28 + .../2025-03-01/InvoiceSectionAlerts.json | 102 + .../2025-03-01/InvoiceSectionForecast.json | 124 + .../MCABillingAccountDimensionsList.json | 48 + ...lingAccountDimensionsListExpandAndTop.json | 62 + ...illingAccountDimensionsListWithFilter.json | 43 + .../2025-03-01/MCABillingAccountQuery.json | 110 + .../MCABillingAccountQueryGrouping.json | 72 + .../MCABillingProfileDimensionsList.json | 49 + ...lingProfileDimensionsListExpandAndTop.json | 63 + ...illingProfileDimensionsListWithFilter.json | 44 + .../2025-03-01/MCABillingProfileQuery.json | 111 + .../MCABillingProfileQueryGrouping.json | 73 + .../2025-03-01/MCACustomerDimensionsList.json | 49 + ...MCACustomerDimensionsListExpandAndTop.json | 63 + .../MCACustomerDimensionsListWithFilter.json | 44 + .../examples/2025-03-01/MCACustomerQuery.json | 111 + .../2025-03-01/MCACustomerQueryGrouping.json | 73 + .../MCAInvoiceSectionDimensionsList.json | 50 + ...oiceSectionDimensionsListExpandAndTop.json | 64 + ...nvoiceSectionDimensionsListWithFilter.json | 45 + .../2025-03-01/MCAInvoiceSectionQuery.json | 112 + .../MCAInvoiceSectionQueryGrouping.json | 74 + .../ManagementGroupDimensionsList.json | 48 + ...gementGroupDimensionsListExpandAndTop.json | 62 + ...nagementGroupDimensionsListWithFilter.json | 43 + .../2025-03-01/ManagementGroupQuery.json | 110 + .../ManagementGroupQueryGrouping.json | 79 + .../examples/2025-03-01/OperationList.json | 115 + .../2025-03-01/PricesheetDownload.json | 25 + .../PricesheetDownloadByBillingProfile.json | 24 + .../examples/2025-03-01/PrivateView.json | 71 + .../2025-03-01/PrivateViewCreateOrUpdate.json | 187 + .../2025-03-01/PrivateViewDelete.json | 12 + .../examples/2025-03-01/PrivateViewList.json | 133 + .../2025-03-01/ResourceGroupAlerts.json | 101 + .../ResourceGroupDimensionsList.json | 59 + .../2025-03-01/ResourceGroupForecast.json | 105 + .../2025-03-01/ResourceGroupQuery.json | 99 + .../ResourceGroupQueryGrouping.json | 74 + .../2025-03-01/SingleResourceGroupAlert.json | 56 + .../2025-03-01/SingleSubscriptionAlert.json | 55 + .../2025-03-01/SubscriptionAlerts.json | 100 + .../SubscriptionDimensionsList.json | 61 + .../2025-03-01/SubscriptionForecast.json | 122 + .../2025-03-01/SubscriptionQuery.json | 110 + .../2025-03-01/SubscriptionQueryGrouping.json | 77 + .../2025-03-01/ViewByResourceGroup.json | 72 + .../ViewCreateOrUpdateByResourceGroup.json | 188 + .../2025-03-01/ViewDeleteByResourceGroup.json | 13 + ...eAvailability-private-scheduledAction.json | 20 + ...meAvailability-shared-scheduledAction.json | 19 + ...cheduledAction-createOrUpdate-private.json | 129 + ...scheduledAction-createOrUpdate-shared.json | 136 + .../scheduledAction-delete-private.json | 12 + .../scheduledAction-delete-shared.json | 13 + .../scheduledAction-get-private.json | 53 + .../scheduledAction-get-shared.json | 54 + ...on-insightAlert-createOrUpdate-shared.json | 108 + .../scheduledAction-sendNow-private.json | 11 + .../scheduledAction-sendNow-shared.json | 12 + .../scheduledActions-list-private.json | 91 + ...heduledActions-listWithFilter-private.json | 92 + .../examples/2025-03-01/setting-delete.json | 13 + .../examples/2025-03-01/setting-get.json | 22 + .../2025-03-01/settings-createOrUpdate.json | 39 + .../examples/2025-03-01/settingsList.json | 25 + .../CostManagement.Management/main.tsp | 55 + .../CostManagement.Management/models.tsp | 4617 +++++++++++++++++ .../CostManagement.Management/routes.tsp | 872 ++++ .../CostManagement.Management/tspconfig.yaml | 14 + 219 files changed, 22324 insertions(+) create mode 100644 specification/cost-management/CostManagement.Management/Alert.tsp create mode 100644 specification/cost-management/CostManagement.Management/Budget.tsp create mode 100644 specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp create mode 100644 specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp create mode 100644 specification/cost-management/CostManagement.Management/Export.tsp create mode 100644 specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp create mode 100644 specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationStatuses.tsp create mode 100644 specification/cost-management/CostManagement.Management/ScheduledAction.tsp create mode 100644 specification/cost-management/CostManagement.Management/Setting.tsp create mode 100644 specification/cost-management/CostManagement.Management/View.tsp create mode 100644 specification/cost-management/CostManagement.Management/back-compatible.tsp create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitRecommendationsByBillingAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCheckNameAvailability.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleDelete.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingAccount.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingProfile.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/OperationList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownload.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownloadByBillingProfile.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateView.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewCreateOrUpdate.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewDelete.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-private-scheduledAction.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-private.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-private.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json create mode 100644 specification/cost-management/CostManagement.Management/main.tsp create mode 100644 specification/cost-management/CostManagement.Management/models.tsp create mode 100644 specification/cost-management/CostManagement.Management/routes.tsp create mode 100644 specification/cost-management/CostManagement.Management/tspconfig.yaml diff --git a/specification/cost-management/CostManagement.Management/Alert.tsp b/specification/cost-management/CostManagement.Management/Alert.tsp new file mode 100644 index 000000000000..2047a9619d74 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/Alert.tsp @@ -0,0 +1,57 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.CostManagement; +/** + * An individual alert. + */ +@extensionResource +model Alert is Azure.ResourceManager.ExtensionResource { + ...ResourceNameParameter< + Resource = Alert, + KeyName = "alertId", + SegmentName = "alerts", + NamePattern = "" + >; +} + +@armResourceOperations +interface Alerts { + /** + * Gets the alert for the scope by alert ID. + */ + get is Extension.Read; + + /** + * Dismisses the specified alert + */ + @patch(#{ implicitOptionality: false }) + dismiss is Extension.CustomPatchSync< + Extension.ScopeParameter, + Alert, + PatchModel = DismissAlertPayload + >; + + /** + * Lists the alerts for scope defined. + */ + list is Extension.ListByTarget< + Extension.ScopeParameter, + Alert, + Response = ArmResponse + >; +} + +@@doc(Alert.name, "Alert ID"); +@@doc(Alert.properties, "Alert properties."); +@@doc(Alerts.dismiss::parameters.properties, + "Parameters supplied to the Dismiss Alert operation." +); diff --git a/specification/cost-management/CostManagement.Management/Budget.tsp b/specification/cost-management/CostManagement.Management/Budget.tsp new file mode 100644 index 000000000000..302902c10577 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/Budget.tsp @@ -0,0 +1,73 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.CostManagement; +/** + * A budget resource. + */ +@extensionResource +model Budget is Azure.ResourceManager.ExtensionResource { + ...ResourceNameParameter< + Resource = Budget, + KeyName = "budgetName", + SegmentName = "budgets", + NamePattern = "^[a-zA-Z0-9_-]+$" + >; +} + +@armResourceOperations +interface Budgets { + /** + * Gets the budget for the scope by budget name. + */ + get is Extension.Read; + + /** + * The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation. + */ + createOrUpdate is Extension.CreateOrReplaceSync< + Extension.ScopeParameter, + Budget + >; + + /** + * The operation to delete a budget. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + delete is Extension.DeleteSync< + Extension.ScopeParameter, + Budget, + Response = ArmDeletedResponse + >; + + /** + * Lists all budgets for the defined scope. + */ + list is Extension.ListByTarget< + Extension.ScopeParameter, + Budget, + Parameters = { + /** + * OData filter option. May be used to filter budgets by properties/category. The filter supports 'eq' only. + */ + @query("$filter") + $filter?: string; + } + >; +} + +@@maxLength(Budget.name, 63); +@@minLength(Budget.name, 1); +@@doc(Budget.name, "Budget Name."); +@@doc(Budget.properties, "The properties of the budget."); +@@doc(Budgets.createOrUpdate::parameters.resource, + "Parameters supplied to the Create Budget operation." +); diff --git a/specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp b/specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp new file mode 100644 index 000000000000..d4e4068344c7 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp @@ -0,0 +1,75 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.CostManagement; +/** + * The cost allocation rule model definition + */ +@tenantResource +model CostAllocationRuleDefinition + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = CostAllocationRuleDefinition, + KeyName = "ruleName", + SegmentName = "costAllocationRules", + NamePattern = "[A-Za-z0-9\\-_]+" + >; +} + +alias billingAccountExternalResource = Extension.ExternalResource< + "Microsoft.Billing", + "billingAccounts", + "{billingAccountId}" +>; + +@armResourceOperations +interface CostAllocationRuleDefinitions { + /** + * Get a cost allocation rule by rule name and billing account or enterprise enrollment. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("CostAllocationRules_Get") + get is ArmResourceRead; + + /** + * Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("CostAllocationRules_CreateOrUpdate") + createOrUpdate is ArmResourceCreateOrReplaceSync; + + /** + * Delete cost allocation rule for billing account or enterprise enrollment. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("CostAllocationRules_Delete") + delete is ArmResourceDeleteSync; + + /** + * Get the list of all cost allocation rules for a billing account or enterprise enrollment. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("CostAllocationRules_List") + list is ArmResourceListByParent< + CostAllocationRuleDefinition, + Response = ArmResponse + >; +} + +@@doc(CostAllocationRuleDefinition.name, + "Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters." +); +@@doc(CostAllocationRuleDefinition.properties, + "Cost allocation rule properties" +); +@@doc(CostAllocationRuleDefinitions.createOrUpdate::parameters.resource, + "Cost allocation rule to be created or updated" +); diff --git a/specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp b/specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp new file mode 100644 index 000000000000..6a1ef9ec6a47 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp @@ -0,0 +1,67 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.CostManagement; +// FIXME: CostDetailsOperationResults has no properties property +/** + * The result of the long running operation for cost details Api. + */ +@extensionResource +model CostDetailsOperationResults + is Azure.ResourceManager.ExtensionResource<{}> { + ...ResourceNameParameter< + Resource = CostDetailsOperationResults, + KeyName = "operationId", + SegmentName = "costDetailsOperationResults", + NamePattern = "" + >; + + /** + * The status of the cost details operation + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + status?: CostDetailsStatusType; + + /** + * The manifest of the report generated by the operation. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + manifest?: ReportManifest; + + /** + * The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + validTill?: utcDateTime; + + /** + * The details of the error. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + error?: ErrorDetails; +} + +@armResourceOperations +interface GenerateCostDetailsReport { + /** + * Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header. + */ + getOperationResults is Extension.Read< + Extension.ScopeParameter, + CostDetailsOperationResults, + Response = ArmResponse | AcceptedResponse + >; +} + +@@doc(CostDetailsOperationResults.name, "The target operation Id."); diff --git a/specification/cost-management/CostManagement.Management/Export.tsp b/specification/cost-management/CostManagement.Management/Export.tsp new file mode 100644 index 000000000000..6c87b19a91a0 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/Export.tsp @@ -0,0 +1,122 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.CostManagement; +/** + * An export resource. + */ +@extensionResource +model Export is Azure.ResourceManager.ExtensionResource { + ...ResourceNameParameter< + Resource = Export, + KeyName = "exportName", + SegmentName = "exports", + NamePattern = "" + >; + + /** + * The managed identity associated with Export + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + identity?: Azure.ResourceManager.CommonTypes.SystemAssignedServiceIdentity; + + /** + * The location of the Export's managed identity. Only required when utilizing managed identity. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + @visibility(Lifecycle.Read, Lifecycle.Create) + location?: string; +} + +@armResourceOperations +interface Exports { + /** + * The operation to get the export for the defined scope by export name. + */ + get is Extension.Read< + Extension.ScopeParameter, + Export, + Parameters = { + /** + * May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last 10 runs of the export. + */ + @query("$expand") + $expand?: string; + } + >; + + /** + * The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. + */ + createOrUpdate is Extension.CreateOrReplaceSync< + Extension.ScopeParameter, + Export + >; + + /** + * The operation to delete a export. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + delete is Extension.DeleteSync< + Extension.ScopeParameter, + Export, + Response = ArmDeletedResponse + >; + + /** + * The operation to list all exports at the given scope. + */ + list is Extension.ListByTarget< + Extension.ScopeParameter, + Export, + Parameters = { + /** + * May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last run of each export. + */ + @query("$expand") + $expand?: string; + }, + Response = ArmResponse + >; + + /** + * The operation to run an export. + */ + @action("run") + execute is Extension.ActionSync< + Extension.ScopeParameter, + Export, + ExportRunRequest, + OkResponse, + OptionalRequestBody = true + >; + + /** + * The operation to get the run history of an export for the defined scope and export name. + */ + @get + @action("runHistory") + getExecutionHistory is Extension.ActionSync< + Extension.ScopeParameter, + Export, + void, + ArmResponse + >; +} + +@@doc(Export.name, "Export Name."); +@@doc(Export.properties, "The properties of the export."); +@@doc(Exports.createOrUpdate::parameters.resource, + "Parameters supplied to the CreateOrUpdate Export operation." +); +@@doc(Exports.execute::parameters.body, + "Parameters supplied to the Execute Export operation." +); diff --git a/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp b/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp new file mode 100644 index 000000000000..56074ec755d1 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp @@ -0,0 +1,44 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.CostManagement; +/** + * The result of the long running operation for cost detailed report. + */ +@extensionResource +model GenerateDetailedCostReportOperationResult + is Azure.ResourceManager.ExtensionResource { + ...ResourceNameParameter< + Resource = GenerateDetailedCostReportOperationResult, + KeyName = "operationId", + SegmentName = "operationResults", + NamePattern = "" + >; +} + +@armResourceOperations +interface GenerateDetailedCostReportOperationResults { + /** + * Gets the result of the specified operation. The link with this operationId is provided as a response header of the initial request. + */ + get is Extension.Read< + Extension.ScopeParameter, + GenerateDetailedCostReportOperationResult, + Response = ArmResponse | AcceptedResponse + >; +} + +@@doc(GenerateDetailedCostReportOperationResult.name, + "The target operation Id." +); +@@doc(GenerateDetailedCostReportOperationResult.properties, + "The properties of the resource generated." +); diff --git a/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationStatuses.tsp b/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationStatuses.tsp new file mode 100644 index 000000000000..57b4aaa95630 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationStatuses.tsp @@ -0,0 +1,67 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.CostManagement; +/** + * The status of the long running operation for cost detailed report. + */ +@extensionResource +model GenerateDetailedCostReportOperationStatuses + is Azure.ResourceManager.ExtensionResource { + ...ResourceNameParameter< + Resource = GenerateDetailedCostReportOperationStatuses, + KeyName = "operationId", + SegmentName = "operationStatus", + NamePattern = "" + >; + + /** + * The status of the long running operation. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + status?: Status; + + /** + * The startTime of the operation. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + startTime?: string; + + /** + * The endTime of the operation. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + endTime?: string; + + /** + * The details of the error. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + error?: ErrorDetails; +} + +@armResourceOperations +interface GenerateDetailedCostReportOperationStatus { + /** + * Get the status of the specified operation. This link is provided in the GenerateDetailedCostReport creation request response header. + */ + get is Extension.Read< + Extension.ScopeParameter, + GenerateDetailedCostReportOperationStatuses + >; +} + +@@doc(GenerateDetailedCostReportOperationStatuses.name, + "The target operation Id." +); +@@doc(GenerateDetailedCostReportOperationStatuses.properties, + "The properties of the usage file generated." +); diff --git a/specification/cost-management/CostManagement.Management/ScheduledAction.tsp b/specification/cost-management/CostManagement.Management/ScheduledAction.tsp new file mode 100644 index 000000000000..187efb0b293f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/ScheduledAction.tsp @@ -0,0 +1,186 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.CostManagement; +/** + * Scheduled action definition. + */ +@tenantResource +model ScheduledAction + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = ScheduledAction, + KeyName = "name", + SegmentName = "scheduledActions", + NamePattern = "" + >; +} + +@armResourceOperations +interface ScheduledActionOps + extends Azure.ResourceManager.Legacy.ExtensionOperations< + { + ...ApiVersionParameter, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "Microsoft.CostManagement", + }, + {}, + { + /** Scheduled action name. */ + @path + @segment("scheduledActions") + @key + name: string, + } + > {} + +@armResourceOperations +interface ScheduledActions { + /** + * Get the private scheduled action by name. + */ + get is ScheduledActionOps.Read; + + /** + * Create or update a private scheduled action. + */ + createOrUpdate is ScheduledActionOps.CreateOrUpdateSync< + ScheduledAction, + Parameters = { + /** + * ETag of the Entity. Not required when creating an entity. Optional when updating an entity and can be specified to achieve optimistic concurrency. + */ + @header + `If-Match`?: string; + } + >; + + /** + * Delete a private scheduled action. + */ + delete is ScheduledActionOps.DeleteSync; + + /** + * Processes a private scheduled action. + */ + @action("execute") + run is ScheduledActionOps.ActionSync; +} +@armResourceOperations +interface ScheduledActionOperationGroupOps + extends Azure.ResourceManager.Legacy.ExtensionOperations< + { + ...ApiVersionParameter, + + /** undefined */ + @path + @segment("") + @key + scope: string, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "Microsoft.CostManagement", + }, + {}, + { + /** Scheduled action name. */ + @path + @segment("scheduledActions") + @key + name: string, + } + > {} + +@armResourceOperations +interface ScheduledActionOperationGroup { + /** + * Get the shared scheduled action from the given scope by name. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("ScheduledActions_GetByScope") + getByScope is ScheduledActionOperationGroupOps.Read< + Extension.ScopeParameter, + ScheduledAction + >; + + /** + * Create or update a shared scheduled action within the given scope. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("ScheduledActions_CreateOrUpdateByScope") + createOrUpdateByScope is ScheduledActionOperationGroupOps.CreateOrUpdateSync< + Extension.ScopeParameter, + ScheduledAction, + Parameters = { + /** + * ETag of the Entity. Not required when creating an entity. Optional when updating an entity and can be specified to achieve optimistic concurrency. + */ + @header + `If-Match`?: string; + } + >; + + /** + * Delete a scheduled action within the given scope. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("ScheduledActions_DeleteByScope") + deleteByScope is ScheduledActionOperationGroupOps.DeleteSync< + Extension.ScopeParameter, + ScheduledAction + >; + + /** + * List all private scheduled actions. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("ScheduledActions_List") + list is ScheduledActionOperationGroupOps.List< + Extension.ScopeParameter, + ScheduledAction, + Parameters = { + /** + * May be used to filter scheduled actions by properties/viewId. Supported operator is 'eq'. + */ + @query("$filter") + $filter?: string; + } + >; + + /** + * Runs a shared scheduled action within the given scope. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("ScheduledActions_RunByScope") + @action("execute") + runByScope is ScheduledActionOperationGroupOps.ActionSync< + Extension.ScopeParameter, + ScheduledAction, + void, + OkResponse + >; +} + +@@doc(ScheduledAction.name, "Scheduled action name."); +@@doc(ScheduledAction.properties, "The properties of the scheduled action."); +@@doc(ScheduledActions.createOrUpdate::parameters.resource, + "Scheduled action to be created or updated." +); +@@doc(ScheduledActionOperationGroup.createOrUpdateByScope::parameters.resource, + "Scheduled action to be created or updated." +); diff --git a/specification/cost-management/CostManagement.Management/Setting.tsp b/specification/cost-management/CostManagement.Management/Setting.tsp new file mode 100644 index 000000000000..a74e15fb3339 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/Setting.tsp @@ -0,0 +1,67 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.CostManagement; +// FIXME: Setting has no properties property +/** + * Setting definition. + */ +@extensionResource +model Setting is Azure.ResourceManager.ExtensionResource<{}> { + ...ResourceNameParameter< + Resource = Setting, + KeyName = "type", + SegmentName = "settings", + NamePattern = "", + Type = SettingType + >; + + /** + * Specifies the kind of settings. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + kind: SettingsKind; +} + +@armResourceOperations +interface Settings { + /** + * Get the setting from the given scope by name. + */ + getByScope is Extension.Read; + + /** + * Create or update a setting within the given scope. + */ + createOrUpdateByScope is Extension.CreateOrReplaceSync< + Extension.ScopeParameter, + Setting + >; + + /** + * Delete a setting within the given scope. + */ + deleteByScope is Extension.DeleteSync; + + /** + * List all cost management settings in the requested scope. + */ + list is Extension.ListByTarget< + Extension.ScopeParameter, + Setting, + Response = ArmResponse + >; +} + +@@doc(Setting.name, "Setting type."); +@@doc(Settings.createOrUpdateByScope::parameters.resource, + "Setting to be created or updated." +); diff --git a/specification/cost-management/CostManagement.Management/View.tsp b/specification/cost-management/CostManagement.Management/View.tsp new file mode 100644 index 000000000000..8312d2c58c6c --- /dev/null +++ b/specification/cost-management/CostManagement.Management/View.tsp @@ -0,0 +1,137 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.CostManagement; +/** + * States and configurations of Cost Analysis. + */ +@tenantResource +model View is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = View, + KeyName = "viewName", + SegmentName = "views", + NamePattern = "" + >; +} + +@armResourceOperations +interface ViewOps + extends Azure.ResourceManager.Legacy.ExtensionOperations< + { + ...ApiVersionParameter, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "Microsoft.CostManagement", + }, + {}, + { + /** View name */ + @path + @segment("views") + @key + viewName: string, + } + > {} + +@armResourceOperations +interface Views { + /** + * Gets the view by view name. + */ + get is ViewOps.Read; + + /** + * The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. + */ + createOrUpdate is ViewOps.CreateOrUpdateSync; + + /** + * The operation to delete a view. + */ + delete is ViewOps.DeleteSync; +} +@armResourceOperations +interface ViewOperationGroupOps + extends Azure.ResourceManager.Legacy.ExtensionOperations< + { + ...ApiVersionParameter, + + /** undefined */ + @path + @segment("") + @key + scope: string, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "Microsoft.CostManagement", + }, + {}, + { + /** View name */ + @path + @segment("views") + @key + viewName: string, + } + > {} + +@armResourceOperations +interface ViewOperationGroup { + /** + * Gets the view for the defined scope by view name. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Views_GetByScope") + getByScope is ViewOperationGroupOps.Read; + + /** + * The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Views_CreateOrUpdateByScope") + createOrUpdateByScope is ViewOperationGroupOps.CreateOrUpdateSync< + Extension.ScopeParameter, + View + >; + + /** + * The operation to delete a view. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Views_DeleteByScope") + deleteByScope is ViewOperationGroupOps.DeleteSync< + Extension.ScopeParameter, + View + >; + + /** + * Lists all views by tenant and object. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Views_List") + list is ViewOperationGroupOps.List; +} + +@@doc(View.name, "View name"); +@@doc(View.properties, "The properties of the view."); +@@doc(Views.createOrUpdate::parameters.resource, + "Parameters supplied to the CreateOrUpdate View operation." +); +@@doc(ViewOperationGroup.createOrUpdateByScope::parameters.resource, + "Parameters supplied to the CreateOrUpdate View operation." +); diff --git a/specification/cost-management/CostManagement.Management/back-compatible.tsp b/specification/cost-management/CostManagement.Management/back-compatible.tsp new file mode 100644 index 000000000000..e14ddbba1767 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/back-compatible.tsp @@ -0,0 +1,181 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.CostManagement; + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ExportRun.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ReportManifest.requestContext); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ViewProperties.query); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(DismissAlertPayload.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ForecastResult.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Dimension.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(QueryResult.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(OperationStatus.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(PriceSheetOperationStatus.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(IncludedQuantityUtilizationSummary.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(SavingsPlanUtilizationSummary.properties); + +@@clientLocation(CostAllocationRuleDefinitions.get, "CostAllocationRules"); +@@clientLocation(CostAllocationRuleDefinitions.createOrUpdate, + "CostAllocationRules" +); +@@clientName(CostAllocationRuleDefinitions.createOrUpdate::parameters.resource, + "costAllocationRule" +); +@@clientLocation(CostAllocationRuleDefinitions.delete, "CostAllocationRules"); +@@clientLocation(CostAllocationRuleDefinitions.list, "CostAllocationRules"); + +@@clientName(Budgets.createOrUpdate::parameters.resource, "parameters"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Budget.properties); + +@@clientName(Exports.createOrUpdate::parameters.resource, "parameters"); +@@clientName(Exports.execute::parameters.body, "parameters"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Export.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(CostDetailsOperationResults.manifest); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(GenerateDetailedCostReportOperationResult.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(GenerateDetailedCostReportOperationStatuses.properties); + +@@clientName(Views.createOrUpdate::parameters.resource, "parameters"); +@@clientLocation(ViewOperationGroup.getByScope, Views); +@@clientLocation(ViewOperationGroup.createOrUpdateByScope, Views); +@@clientName(ViewOperationGroup.createOrUpdateByScope::parameters.resource, + "parameters" +); +@@clientLocation(ViewOperationGroup.deleteByScope, Views); +@@clientLocation(ViewOperationGroup.list, Views); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(View.properties); + +@@clientName(Alerts.dismiss::parameters.properties, "parameters"); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(Alert.properties); + +@@clientName(ScheduledActions.createOrUpdate::parameters.resource, + "scheduledAction" +); +@@clientLocation(ScheduledActionOperationGroup.getByScope, ScheduledActions); +@@clientLocation(ScheduledActionOperationGroup.createOrUpdateByScope, + ScheduledActions +); +@@clientName(ScheduledActionOperationGroup.createOrUpdateByScope::parameters.resource, + "scheduledAction" +); +@@clientLocation(ScheduledActionOperationGroup.deleteByScope, ScheduledActions); +@@clientLocation(ScheduledActionOperationGroup.list, ScheduledActions); +@@clientLocation(ScheduledActionOperationGroup.runByScope, ScheduledActions); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ScheduledAction.properties); + +@@clientName(Settings.createOrUpdateByScope::parameters.resource, "setting"); + +@@clientLocation(CostAllocationRulesOperationGroup.checkNameAvailability, + "CostAllocationRules" +); + +@@clientLocation(BenefitRecommendationsOperationGroup.list, + "BenefitRecommendations" +); + +@@clientLocation(BenefitUtilizationSummariesOperationGroup.listByBillingAccountId, + "BenefitUtilizationSummaries" +); +@@clientLocation(BenefitUtilizationSummariesOperationGroup.listByBillingProfileId, + "BenefitUtilizationSummaries" +); +@@clientLocation(BenefitUtilizationSummariesOperationGroup.listBySavingsPlanOrder, + "BenefitUtilizationSummaries" +); +@@clientLocation(BenefitUtilizationSummariesOperationGroup.listBySavingsPlanId, + "BenefitUtilizationSummaries" +); + +@@clientLocation(GenerateBenefitUtilizationSummariesReportOperationGroup.generateByBillingAccount, + "GenerateBenefitUtilizationSummariesReport" +); +@@clientLocation(GenerateBenefitUtilizationSummariesReportOperationGroup.generateByBillingProfile, + "GenerateBenefitUtilizationSummariesReport" +); +@@clientLocation(GenerateBenefitUtilizationSummariesReportOperationGroup.generateByReservationOrderId, + "GenerateBenefitUtilizationSummariesReport" +); +@@clientLocation(GenerateBenefitUtilizationSummariesReportOperationGroup.generateByReservationId, + "GenerateBenefitUtilizationSummariesReport" +); +@@clientLocation(GenerateBenefitUtilizationSummariesReportOperationGroup.generateBySavingsPlanOrderId, + "GenerateBenefitUtilizationSummariesReport" +); +@@clientLocation(GenerateBenefitUtilizationSummariesReportOperationGroup.generateBySavingsPlanId, + "GenerateBenefitUtilizationSummariesReport" +); + +@@clientLocation(GenerateCostDetailsReportOperationGroup.createOperation, + GenerateCostDetailsReport +); + +@@clientLocation(GenerateDetailedCostReportOperationGroup.createOperation, + "GenerateDetailedCostReport" +); + +@@clientLocation(AlertsOperationGroup.listExternal, Alerts); + +@@clientLocation(ForecastOperationGroup.usage, "Forecast"); +@@clientLocation(ForecastOperationGroup.externalCloudProviderUsage, "Forecast"); + +@@clientLocation(DimensionsOperationGroup.list, "Dimensions"); +@@clientLocation(DimensionsOperationGroup.byExternalCloudProviderType, + "Dimensions" +); + +@@clientLocation(QueryOperationGroup.usage, "Query"); +@@clientLocation(QueryOperationGroup.usageByExternalCloudProviderType, "Query"); + +@@clientLocation(GenerateReservationDetailsReportOperationGroup.byBillingAccountId, + "GenerateReservationDetailsReport" +); +@@clientLocation(GenerateReservationDetailsReportOperationGroup.byBillingProfileId, + "GenerateReservationDetailsReport" +); + +@@clientLocation(PriceSheetOperationGroup.downloadByInvoice, "PriceSheet"); +@@clientLocation(PriceSheetOperationGroup.downloadByBillingProfile, + "PriceSheet" +); +@@clientLocation(PriceSheetOperationGroup.downloadByBillingAccount, + "PriceSheet" +); + +@@clientLocation(ScheduledActionsOperationGroup.checkNameAvailability, + ScheduledActions +); +@@clientLocation(ScheduledActionsOperationGroup.checkNameAvailabilityByScope, + ScheduledActions +); diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitRecommendationsByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitRecommendationsByBillingAccount.json new file mode 100644 index 000000000000..36ae06ccc866 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitRecommendationsByBillingAccount.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "$expand": "properties/usage,properties/allRecommendationDetails", + "$filter": "properties/lookBackPeriod eq 'Last7Days' AND properties/term eq 'P1Y'", + "api-version": "2025-03-01", + "billingScope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.CostManagement/benefitRecommendations", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/benefitRecommendations/00000000-0000-0000-0000-000000000000", + "kind": "SavingsPlan", + "properties": { + "allRecommendationDetails": { + "value": [ + { + "averageUtilizationPercentage": 99.33, + "benefitCost": 52.002, + "commitmentAmount": 0.164, + "coveragePercentage": 54.609, + "overageCost": 144.841, + "savingsAmount": 21.424, + "savingsPercentage": 9.815, + "totalCost": 196.843, + "wastageCost": 0.035 + }, + { + "averageUtilizationPercentage": 81.474, + "benefitCost": 83.754, + "commitmentAmount": 0.161, + "coveragePercentage": 56.748, + "overageCost": 120.389, + "savingsAmount": 14.124, + "savingsPercentage": 6.47, + "totalCost": 204.143, + "wastageCost": 0.1 + } + ] + }, + "armSkuName": "Compute_Savings_Plan", + "commitmentGranularity": "Hourly", + "costWithoutBenefit": 218.267, + "currencyCode": "USD", + "firstConsumptionDate": "2022-10-18T00:00:00Z", + "lastConsumptionDate": "2022-10-25T00:00:00Z", + "lookBackPeriod": "Last7Days", + "recommendationDetails": { + "averageUtilizationPercentage": 99.33, + "benefitCost": 52.002, + "commitmentAmount": 0.164, + "coveragePercentage": 54.609, + "overageCost": 144.841, + "savingsAmount": 21.424, + "savingsPercentage": 9.815, + "totalCost": 196.843, + "wastageCost": 0.035 + }, + "scope": "Shared", + "term": "P1Y", + "totalHours": 168, + "usage": { + "charges": [ + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2 + ], + "usageGrain": "Hourly" + } + } + } + ] + } + } + }, + "operationId": "BenefitRecommendations_List", + "title": "BenefitRecommendationsBillingAccountList" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json new file mode 100644 index 000000000000..e299c994a2d2 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "benefitUtilizationSummariesRequest": { + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "Reservation", + "startDate": "2022-06-01T00:00:00Z" + }, + "billingAccountId": "8099099" + }, + "responses": { + "200": { + "body": { + "input": { + "billingAccountId": "8099099", + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "Reservation", + "startDate": "2022-06-01T00:00:00Z" + }, + "properties": { + "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "validUntil": "2022-06-12T02:56:55.5021869Z" + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/8099099/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByBillingAccount", + "title": "GenerateUtilizationSummariesReportByBillingAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json new file mode 100644 index 000000000000..68dcae4416b2 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "benefitUtilizationSummariesRequest": { + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "Reservation", + "startDate": "2022-06-01T00:00:00Z" + }, + "billingAccountId": "00000000-0000-0000-0000-000000000000", + "billingProfileId": "CZSFR-SDFXC-DSDF" + }, + "responses": { + "200": { + "body": { + "input": { + "billingAccountId": "00000000-0000-0000-0000-000000000000", + "billingProfileId": "CZSFR-SDFXC-DSDF", + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "Reservation", + "startDate": "2022-06-01T00:00:00Z" + }, + "properties": { + "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "validUntil": "2022-06-12T02:56:55.5021869Z" + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000/billingProfiles/CZSFR-SDFXC-DSDF/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByBillingProfile", + "title": "GenerateUtilizationSummariesReportByBillingProfile" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json new file mode 100644 index 000000000000..97847d3e9d7a --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "benefitUtilizationSummariesRequest": { + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "startDate": "2022-06-01T00:00:00Z" + }, + "reservationId": "00000000-0000-0000-0000-000000000000", + "reservationOrderId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "input": { + "benefitId": "00000000-0000-0000-0000-000000000000", + "benefitOrderId": "00000000-0000-0000-0000-000000000000", + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "Reservation", + "startDate": "2022-06-01T00:00:00Z" + }, + "properties": { + "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "validUntil": "2022-06-12T02:56:55.5021869Z" + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Capacity/reservationorders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByReservationId", + "title": "GenerateUtilizationSummariesReportByReservation" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json new file mode 100644 index 000000000000..f3f040696c3d --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "benefitUtilizationSummariesRequest": { + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "startDate": "2022-06-01T00:00:00Z" + }, + "reservationOrderId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "input": { + "benefitOrderId": "00000000-0000-0000-0000-000000000000", + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "Reservation", + "startDate": "2022-06-01T00:00:00Z" + }, + "properties": { + "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "validUntil": "2022-06-12T02:56:55.5021869Z" + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Capacity/reservationorders/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByReservationOrderId", + "title": "GenerateUtilizationSummariesReportByReservationOrder" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json new file mode 100644 index 000000000000..a8cab0f35052 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "benefitUtilizationSummariesRequest": { + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "startDate": "2022-06-01T00:00:00Z" + }, + "savingsPlanId": "00000000-0000-0000-0000-000000000000", + "savingsPlanOrderId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "input": { + "benefitId": "00000000-0000-0000-0000-000000000000", + "benefitOrderId": "00000000-0000-0000-0000-000000000000", + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "SavingsPlan", + "startDate": "2022-06-01T00:00:00Z" + }, + "properties": { + "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "validUntil": "2022-06-12T02:56:55.5021869Z" + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Capacity/savingsPlanOrders/00000000-0000-0000-0000-000000000000/savingsPlans/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanId", + "title": "GenerateUtilizationSummariesReportBySavingsPlan" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json new file mode 100644 index 000000000000..5a92ed254033 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "benefitUtilizationSummariesRequest": { + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "startDate": "2022-06-01T00:00:00Z" + }, + "savingsPlanOrderId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "input": { + "benefitOrderId": "00000000-0000-0000-0000-000000000000", + "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "SavingsPlan", + "startDate": "2022-06-01T00:00:00Z" + }, + "properties": { + "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "validUntil": "2022-06-12T02:56:55.5021869Z" + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrders/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanOrderId", + "title": "GenerateUtilizationSummariesReportBySavingsPlanOrder" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json new file mode 100644 index 000000000000..82acd538a50c --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345", + "filter": "properties/usageDate ge 2022-10-15 and properties/usageDate le 2022-10-18", + "grain": "Daily" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", + "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", + "kind": "SavingsPlan", + "properties": { + "armSkuName": "Compute_Savings_Plan", + "avgUtilizationPercentage": 90, + "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", + "benefitType": "SavingsPlan", + "maxUtilizationPercentage": 100, + "minUtilizationPercentage": 80, + "usageDate": "2022-10-16T00:00:00Z" + } + }, + { + "name": "88cccc88-8ccc-8c88-888c-88cc8c8c88c8_444d44dd-d4d4-4dd4-444d-4dd4444ddddd_20211117", + "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/benefitUtilizationSummaries/88cccc88-8ccc-8c88-888c-88cc8c8c88c8_444d44dd-d4d4-4dd4-444d-4dd4444ddddd_20211117", + "kind": "SavingsPlan", + "properties": { + "armSkuName": "Compute_Savings_Plan", + "avgUtilizationPercentage": 60, + "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/88cccc88-8ccc-8c88-888c-88cc8c8c88c8/savingsPlans/444d44dd-d4d4-4dd4-444d-4dd4444ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/88cccc88-8ccc-8c88-888c-88cc8c8c88c8", + "benefitType": "SavingsPlan", + "maxUtilizationPercentage": 70, + "minUtilizationPercentage": 50, + "usageDate": "2022-10-17T00:00:00Z" + } + } + ] + } + } + }, + "operationId": "BenefitUtilizationSummaries_ListByBillingAccountId", + "title": "SavingsPlanUtilizationSummaries-BillingAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json new file mode 100644 index 000000000000..9c774a7f7c3c --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "c0a00000-0e04-5ee3-000e-f0c6e00000ec:c0a00000-0e04-5ee3-000e-f0c6e00000ec", + "billingProfileId": "200e5e90-000e-4960-8dcd-8d00a02db000", + "filter": "properties/usageDate ge 2022-10-15 and properties/usageDate le 2022-10-18", + "grain": "Daily" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", + "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.Billing/billingAccounts/c0a00000-0e04-5ee3-000e-f0c6e00000ec:c0a00000-0e04-5ee3-000e-f0c6e00000ec/billingProfiles/200e5e90-000e-4960-8dcd-8d00a02db000/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", + "kind": "SavingsPlan", + "properties": { + "armSkuName": "Compute_Savings_Plan", + "avgUtilizationPercentage": 90, + "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", + "benefitType": "SavingsPlan", + "maxUtilizationPercentage": 100, + "minUtilizationPercentage": 80, + "usageDate": "2022-10-16T00:00:00Z" + } + } + ] + } + } + }, + "operationId": "BenefitUtilizationSummaries_ListByBillingProfileId", + "title": "SavingsPlanUtilizationSummaries-BillingProfile" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json new file mode 100644 index 000000000000..a28d29c3772f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "filter": "properties/usageDate ge 2022-10-15 and properties/usageDate le 2022-10-18", + "grain": "Monthly", + "savingsPlanId": "222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "savingsPlanOrderId": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_202111", + "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_202111", + "kind": "SavingsPlan", + "properties": { + "armSkuName": "Compute_Savings_Plan", + "avgUtilizationPercentage": 90, + "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", + "benefitType": "SavingsPlan", + "maxUtilizationPercentage": 100, + "minUtilizationPercentage": 80, + "usageDate": "2022-10-16T00:00:00Z" + } + }, + { + "name": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_202112", + "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_202112", + "kind": "SavingsPlan", + "properties": { + "armSkuName": "Compute_Savings_Plan", + "avgUtilizationPercentage": 80, + "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", + "benefitType": "SavingsPlan", + "maxUtilizationPercentage": 90, + "minUtilizationPercentage": 70, + "usageDate": "2022-10-17T00:00:00Z" + } + } + ] + } + } + }, + "operationId": "BenefitUtilizationSummaries_ListBySavingsPlanId", + "title": "SavingsPlanUtilizationSummariesMonthlyWithSavingsPlanId" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json new file mode 100644 index 000000000000..0aa04ebc2383 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "filter": "properties/usageDate ge 2022-10-15 and properties/usageDate le 2022-10-18", + "grain": "Daily", + "savingsPlanOrderId": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", + "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", + "kind": "SavingsPlan", + "properties": { + "armSkuName": "Compute_Savings_Plan", + "avgUtilizationPercentage": 90, + "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", + "benefitType": "SavingsPlan", + "maxUtilizationPercentage": 100, + "minUtilizationPercentage": 80, + "usageDate": "2022-10-16T00:00:00Z" + } + } + ] + } + } + }, + "operationId": "BenefitUtilizationSummaries_ListBySavingsPlanOrder", + "title": "SavingsPlanUtilizationSummariesDaily" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json new file mode 100644 index 000000000000..69cf13af6a9b --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } + } + }, + { + "name": "11111111-1111-1111-111111111111", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2019-08-31T17:51:55.1808807Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } + } + } + ] + } + } + }, + "operationId": "Alerts_List", + "title": "BillingAccountAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json new file mode 100644 index 000000000000..353a7b279b22 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "scope": "providers/Microsoft.Billing/billingAccounts/100" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2018-05-01_2018-05-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsList-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..671eeec475e6 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "$expand": "properties/data", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "100", + "scope": "providers/Microsoft.Billing/billingAccounts/100" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsListExpandAndTop-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json new file mode 100644 index 000000000000..b9ebee186e4e --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "100", + "scope": "providers/Microsoft.Billing/billingAccounts/100" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource Id", + "category": "ResourceId", + "data": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsListWithFilter-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json new file mode 100644 index 000000000000..1a51eda8a589 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "Cost", + "function": "Sum" + } + }, + "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" + }, + "includeActualCost": false, + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "CostStatus", + "type": "String" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Forecast?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 2.10333307059661, + 20180331, + "Forecast", + "USD" + ], + [ + 218.68795741935486, + 20180331, + "Forecast", + "USD" + ], + [ + 0.14384913581657052, + 20180401, + "Forecast", + "USD" + ], + [ + 0.009865586851323632, + 20180429, + "Forecast", + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Forecast_Usage", + "title": "BillingAccountForecast" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json new file mode 100644 index 000000000000..d598625538fe --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json @@ -0,0 +1,110 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "70664866", + "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" + }, + "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": "UsageDate", + "type": "Number" + }, + { + "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", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.35941656262545, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "BillingAccountQuery-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json new file mode 100644 index 000000000000..25870ba0567b --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2025-03-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" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json new file mode 100644 index 000000000000..00a48668f039 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } + } + }, + { + "name": "11111111-1111-1111-111111111111", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2019-08-31T17:51:55.1808807Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } + } + } + ] + } + } + }, + "operationId": "Alerts_List", + "title": "BillingProfileAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json new file mode 100644 index 000000000000..70295730121e --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "Cost", + "function": "Sum" + } + }, + "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" + }, + "includeActualCost": false, + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "CostStatus", + "type": "String" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 2.10333307059661, + 20180331, + "Forecast", + "USD" + ], + [ + 218.68795741935486, + 20180331, + "Forecast", + "USD" + ], + [ + 0.14384913581657052, + 20180401, + "Forecast", + "USD" + ], + [ + 0.009865586851323632, + 20180429, + "Forecast", + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Forecast_Usage", + "title": "BillingProfileForecast" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json new file mode 100644 index 000000000000..aabdda2fd2a2 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json @@ -0,0 +1,229 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "budgetName": "TestBudget", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "amount": 100.65, + "category": "Cost", + "filter": { + "and": [ + { + "dimensions": { + "name": "ResourceId", + "operator": "In", + "values": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1" + ] + } + }, + { + "tags": { + "name": "category", + "operator": "In", + "values": [ + "Dev", + "Prod" + ] + } + }, + { + "tags": { + "name": "department", + "operator": "In", + "values": [ + "engineering", + "sales" + ] + } + } + ] + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "locale": "en-us", + "operator": "GreaterThan", + "threshold": 80, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "TestBudget", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", + "properties": { + "amount": 100.65, + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "filter": { + "and": [ + { + "dimensions": { + "name": "ResourceId", + "operator": "In", + "values": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1" + ] + } + }, + { + "tags": { + "name": "category", + "operator": "In", + "values": [ + "Dev", + "Prod" + ] + } + }, + { + "tags": { + "name": "department", + "operator": "In", + "values": [ + "engineering", + "sales" + ] + } + } + ] + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "locale": "en-us", + "operator": "GreaterThan", + "threshold": 80, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + }, + "201": { + "body": { + "name": "TestBudget", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "properties": { + "amount": 100.65, + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "filter": { + "and": [ + { + "dimensions": { + "name": "ResourceId", + "operator": "In", + "values": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1" + ] + } + }, + { + "tags": { + "name": "category", + "operator": "In", + "values": [ + "Dev", + "Prod" + ] + } + }, + { + "tags": { + "name": "department", + "operator": "In", + "values": [ + "engineering", + "sales" + ] + } + } + ] + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "locale": "en-us", + "operator": "GreaterThan", + "threshold": 80, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-Cost-Subscription-Budget" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json new file mode 100644 index 000000000000..4d13039ced2c --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json @@ -0,0 +1,127 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "budgetName": "TestAlertRule", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + }, + "201": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservationIdFilter" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json new file mode 100644 index 000000000000..9a9e9415879a --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json @@ -0,0 +1,127 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "budgetName": "TestAlertRule", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservedResourceType", + "operator": "In", + "values": [ + "VirtualMachines", + "SqlDatabases", + "CosmosDb" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservedResourceType", + "operator": "In", + "values": [ + "VirtualMachines", + "SqlDatabases", + "CosmosDb" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + }, + "201": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservedResourceType", + "operator": "In", + "values": [ + "VirtualMachines", + "SqlDatabases", + "CosmosDb" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservedResourceTypeFilter" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json new file mode 100644 index 000000000000..1a4df8767a60 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "budgetName": "TestAlertRule", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + }, + "201": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json new file mode 100644 index 000000000000..ab87bca5490d --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json @@ -0,0 +1,128 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "billingProfileId": "KKKK-LLLL-MMM-NNN", + "budgetName": "TestAlertRule", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + }, + "responses": { + "200": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + }, + "201": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule-ReservationIdFilter" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json new file mode 100644 index 000000000000..1c5e81cf52ce --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json @@ -0,0 +1,128 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "billingProfileId": "KKKK-LLLL-MMM-NNN", + "budgetName": "TestAlertRule", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservedResourceType", + "operator": "In", + "values": [ + "VirtualMachines", + "SqlDatabases", + "CosmosDb" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + }, + "responses": { + "200": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservedResourceType", + "operator": "In", + "values": [ + "VirtualMachines", + "SqlDatabases", + "CosmosDb" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + }, + "201": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservedResourceType", + "operator": "In", + "values": [ + "VirtualMachines", + "SqlDatabases", + "CosmosDb" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule-ReservedResourceTypeFilter" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json new file mode 100644 index 000000000000..1c298d4996db --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "billingProfileId": "KKKK-LLLL-MMM-NNN", + "budgetName": "TestAlertRule", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + }, + "responses": { + "200": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + }, + "201": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule.json" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json new file mode 100644 index 000000000000..2275c8dcab45 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json @@ -0,0 +1,128 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "budgetName": "TestAlertRule", + "customerId": "000000-1111-2222-3333-444444444444", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + }, + "201": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule-ReservationIdFilter" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json new file mode 100644 index 000000000000..7ed77e566e3f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json @@ -0,0 +1,128 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "budgetName": "TestAlertRule", + "customerId": "000000-1111-2222-3333-444444444444", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservedResourceType", + "operator": "In", + "values": [ + "VirtualMachines", + "SqlDatabases", + "CosmosDb" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservedResourceType", + "operator": "In", + "values": [ + "VirtualMachines", + "SqlDatabases", + "CosmosDb" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + }, + "201": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservedResourceType", + "operator": "In", + "values": [ + "VirtualMachines", + "SqlDatabases", + "CosmosDb" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule-ReservedResourceTypeFilter" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json new file mode 100644 index 000000000000..d663e4208d22 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "budgetName": "TestAlertRule", + "customerId": "000000-1111-2222-3333-444444444444", + "parameters": { + "eTag": "\"1d34d016a593709\"", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + }, + "201": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule.json" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json new file mode 100644 index 000000000000..3cd6a5dc4b62 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "budgetName": "TestBudget", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + }, + "operationId": "Budgets_Delete", + "title": "DeleteBudget" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json new file mode 100644 index 000000000000..ceaec0f044fa --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "budgetName": "TestBudget", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "TestBudget", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "properties": { + "amount": 100.65, + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "filter": { + "and": [ + { + "dimensions": { + "name": "ResourceId", + "operator": "In", + "values": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1" + ] + } + }, + { + "tags": { + "name": "category", + "operator": "In", + "values": [ + "Dev", + "Prod" + ] + } + }, + { + "tags": { + "name": "department", + "operator": "In", + "values": [ + "engineering", + "sales" + ] + } + } + ] + }, + "notifications": { + "Actual_GreaterThan_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_Get", + "title": "Get-Cost-Budget" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json new file mode 100644 index 000000000000..faed115cf11b --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "billingProfileId": "KKKK-LLLL-MMM-NNN", + "budgetName": "TestAlertRule", + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + }, + "responses": { + "200": { + "body": { + "name": "TestAlertRule", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservedResourceType", + "operator": "In", + "values": [ + "VirtualMachines", + "SqlDatabases", + "CosmosDb" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + } + }, + "operationId": "Budgets_Get", + "title": "Get-ReservationUtilization-AlertRule" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json new file mode 100644 index 000000000000..26c7c35eb090 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "$filter": "properties/category eq 'ReservationUtilization'", + "api-version": "2025-03-01", + "billingAccountId": "123456", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestRUAlert", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "BillingAccountBudgetsList-EA-CategoryTypeFilter" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json new file mode 100644 index 000000000000..858b14f704fb --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestBudget1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157c\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget1", + "properties": { + "amount": 10000, + "category": "Cost", + "currentSpend": { + "amount": 8000, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 80, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestBudget2", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157d\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget2", + "properties": { + "amount": 15000, + "category": "Cost", + "currentSpend": { + "amount": 12000, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_70_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 70, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestRUAlert", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "BillingAccountBudgetsList-EA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json new file mode 100644 index 000000000000..bb4734065488 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "departmentId": "789101", + "scope": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "DepartmentBudget1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157e\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget1", + "properties": { + "amount": 5000, + "category": "Cost", + "currentSpend": { + "amount": 3000, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_60_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "DepartmentBudget2", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget2", + "properties": { + "amount": 8000, + "category": "Cost", + "currentSpend": { + "amount": 6000, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_75_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 75, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "DepartmentBudgetsList-EA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json new file mode 100644 index 000000000000..ae3d8ec82d61 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "enrollmentAccountId": "473845", + "scope": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "EnrollmentAccountBudget1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157e\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget1", + "properties": { + "amount": 5000, + "category": "Cost", + "currentSpend": { + "amount": 3000, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_60_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "EnrollmentAccountBudget2", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget2", + "properties": { + "amount": 8000, + "category": "Cost", + "currentSpend": { + "amount": 6000, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_75_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 75, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "EnrollmentAccountBudgetsList-EA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json new file mode 100644 index 000000000000..721dda95d0c8 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "$filter": "properties/category eq 'ReservationUtilization'", + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestRUAlert", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "BillingAccountBudgetsList-MCA-CategoryTypeFilter" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json new file mode 100644 index 000000000000..e629ae438918 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestBudget1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157c\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget1", + "properties": { + "amount": 10000, + "category": "Cost", + "currentSpend": { + "amount": 8000, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 80, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestBudget2", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157d\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget2", + "properties": { + "amount": 15000, + "category": "Cost", + "currentSpend": { + "amount": 12000, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_70_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 70, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestRUAlert", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "BillingAccountBudgetsList-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json new file mode 100644 index 000000000000..d26c136ab55f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "$filter": "properties/category eq 'ReservationUtilization'", + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "billingProfileId": "MYDEVTESTBP", + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestRUAlert1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestRUAlert2", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 80 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "BillingProfileBudgetsList-MCA-CategoryTypeFilter" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json new file mode 100644 index 000000000000..5c3127309fa8 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "billingProfileId": "MYDEVTESTBP", + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestBudget1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157c\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget1", + "properties": { + "amount": 200, + "category": "Cost", + "currentSpend": { + "amount": 30, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 80, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestBudget2", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157d\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget2", + "properties": { + "amount": 600, + "category": "Cost", + "currentSpend": { + "amount": 20, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_70_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 70, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestRUAlert1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestRUAlert2", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 80 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "BillingProfileBudgetsList-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json new file mode 100644 index 000000000000..b4654b0772e2 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "$filter": "properties/category eq 'ReservationUtilization'", + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "customerId": "000000-1111-2222-3333-444444444444", + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestRUAlert1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestRUAlert2", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 80 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "CustomerBudgetsList-MCA-CSP-CategoryTypeFilter" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json new file mode 100644 index 000000000000..076f3baf4d2f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "customerId": "000000-1111-2222-3333-444444444444", + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestBudget1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157c\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444", + "properties": { + "amount": 200, + "category": "Cost", + "currentSpend": { + "amount": 30, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 80, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestBudget2", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157d\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestBudget2", + "properties": { + "amount": 600, + "category": "Cost", + "currentSpend": { + "amount": 20, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_70_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 70, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestRUAlert1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "properties": { + "category": "ReservationUtilization", + "filter": {}, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 + } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestRUAlert2", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "properties": { + "category": "ReservationUtilization", + "filter": { + "dimensions": { + "name": "ReservationId", + "operator": "In", + "values": [ + "00000000-0000-0000-0000-000000000000", + "00000000-0000-0000-0000-000000000001", + "00000000-0000-0000-0000-000000000002" + ] + } + }, + "notifications": { + "Actual_LessThan_99_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 80 + } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "CustomerBudgetsList-MCA-CSP" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json new file mode 100644 index 000000000000..74ae447ce9d8 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", + "billingProfileId": "MYDEVTESTBP", + "invoiceSectionId": "AAAA-BBBB-CCC-DDD", + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestBudget1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157c\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget1", + "properties": { + "amount": 20, + "category": "Cost", + "currentSpend": { + "amount": 5, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 80, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestBudget2", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157d\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget2", + "properties": { + "amount": 60, + "category": "Cost", + "currentSpend": { + "amount": 20, + "unit": "USD" + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_70_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 70, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "InvoiceSectionBudgetsList-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json new file mode 100644 index 000000000000..1ea89857e66d --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json @@ -0,0 +1,224 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "scope": "Microsoft.Management/managementGroups/MYDEVTESTMG", + "subscriptionId": "MYDEVTESTMG" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestBudget", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "Microsoft.Management/managementGroups/MYDEVTESTMG/Microsoft.CostManagement/budgets/TestBudget", + "properties": { + "amount": 10000, + "category": "Cost", + "currentSpend": { + "amount": 8000.89, + "unit": "USD" + }, + "filter": {}, + "notifications": { + "Actual_GreaterThanOrEqualTo_80_Percent": { + "contactEmails": [ + "managers@contoso.com" + ], + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestBudget", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", + "properties": { + "amount": 600.65, + "category": "Cost", + "currentSpend": { + "amount": 120.89, + "unit": "USD" + }, + "filter": {}, + "notifications": { + "Actual_GreaterThanOrEqualTo_60_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestBudget", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "properties": { + "amount": 100.65, + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "filter": { + "and": [ + { + "dimensions": { + "name": "ResourceId", + "operator": "In", + "values": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1" + ] + } + }, + { + "tags": { + "name": "category", + "operator": "In", + "values": [ + "Dev", + "Prod" + ] + } + }, + { + "tags": { + "name": "department", + "operator": "In", + "values": [ + "engineering", + "sales" + ] + } + } + ] + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_90_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 90, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThan", + "threshold": 80 + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestBudget1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", + "properties": { + "amount": 200.65, + "category": "Cost", + "currentSpend": { + "amount": 120.89, + "unit": "USD" + }, + "filter": {}, + "notifications": { + "Actual_GreaterThanOrEqualTo_60_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_40_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThan", + "threshold": 40 + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "ManagementGroupBudgetsList" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json new file mode 100644 index 000000000000..c9608286e759 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json @@ -0,0 +1,155 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestBudget0", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget0", + "properties": { + "amount": 100.65, + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "filter": { + "and": [ + { + "dimensions": { + "name": "ResourceId", + "operator": "In", + "values": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1" + ] + } + }, + { + "tags": { + "name": "category", + "operator": "In", + "values": [ + "Dev", + "Prod" + ] + } + }, + { + "tags": { + "name": "department", + "operator": "In", + "values": [ + "engineering", + "sales" + ] + } + } + ] + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_90_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 90, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThan", + "threshold": 80 + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestBudget1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", + "properties": { + "amount": 200.65, + "category": "Cost", + "currentSpend": { + "amount": 120.89, + "unit": "USD" + }, + "filter": {}, + "notifications": { + "Actual_GreaterThanOrEqualTo_60_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_40_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThan", + "threshold": 40 + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "ResourceGroupBudgetsList" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json new file mode 100644 index 000000000000..8a8ddb75eea5 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json @@ -0,0 +1,193 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestBudget", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", + "properties": { + "amount": 600.65, + "category": "Cost", + "currentSpend": { + "amount": 120.89, + "unit": "USD" + }, + "filter": {}, + "notifications": { + "Actual_GreaterThanOrEqualTo_60_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, + "thresholdType": "Actual" + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestBudget", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "properties": { + "amount": 100.65, + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" + }, + "filter": { + "and": [ + { + "dimensions": { + "name": "ResourceId", + "operator": "In", + "values": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1" + ] + } + }, + { + "tags": { + "name": "category", + "operator": "In", + "values": [ + "Dev", + "Prod" + ] + } + }, + { + "tags": { + "name": "department", + "operator": "In", + "values": [ + "engineering", + "sales" + ] + } + } + ] + }, + "notifications": { + "Actual_GreaterThanOrEqualTo_90_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 90, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_80_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThan", + "threshold": 80 + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + }, + { + "name": "TestBudget1", + "type": "Microsoft.CostManagement/budgets", + "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", + "properties": { + "amount": 200.65, + "category": "Cost", + "currentSpend": { + "amount": 120.89, + "unit": "USD" + }, + "filter": {}, + "notifications": { + "Actual_GreaterThanOrEqualTo_60_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_40_Percent": { + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], + "enabled": true, + "operator": "GreaterThan", + "threshold": 40 + } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" + } + } + } + ] + } + } + }, + "operationId": "Budgets_List", + "title": "SubscriptionBudgetsList" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCheckNameAvailability.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCheckNameAvailability.json new file mode 100644 index 000000000000..11ea79d2241f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCheckNameAvailability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "costAllocationRuleCheckNameAvailabilityRequest": { + "name": "testRule", + "type": "Microsoft.CostManagement/costAllocationRules" + } + }, + "responses": { + "200": { + "body": { + "message": "A cost allocation rule with name testRule is already present for the billing account 100. Please specify a differnt name.", + "nameAvailable": false, + "reason": "AlreadyExists" + } + } + }, + "operationId": "CostAllocationRules_CheckNameAvailability", + "title": "CostAllocationRuleCheckNameAvailability" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json new file mode 100644 index 000000000000..640fe677f50f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json @@ -0,0 +1,128 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "costAllocationRule": { + "properties": { + "description": "This is a testRule", + "status": "Active", + "details": { + "sourceResources": [ + { + "name": "ResourceGroupName", + "resourceType": "Dimension", + "values": [ + "sampleRG", + "secondRG" + ] + } + ], + "targetResources": [ + { + "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", + "values": [ + { + "name": "destinationRG", + "percentage": 45 + }, + { + "name": "destinationRG2", + "percentage": 54 + } + ] + } + ] + } + } + }, + "ruleName": "testRule" + }, + "responses": { + "200": { + "body": { + "name": "testRule", + "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "properties": { + "description": "This is a testRule", + "createdDate": "2020-06-18T22:21:51.1287144Z", + "status": "Creating", + "updatedDate": "2020-06-18T22:21:51.1287144Z", + "details": { + "sourceResources": [ + { + "name": "ResourceGroupName", + "resourceType": "Dimension", + "values": [ + "sampleRG" + ] + } + ], + "targetResources": [ + { + "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", + "values": [ + { + "name": "destinationRG", + "percentage": 50 + }, + { + "name": "destinationRG2", + "percentage": 50 + } + ] + } + ] + } + } + } + }, + "201": { + "body": { + "name": "testRule", + "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "properties": { + "description": "This is a testRule", + "createdDate": "2020-06-18T22:21:51.1287144Z", + "status": "Creating", + "updatedDate": "2020-06-18T22:21:51.1287144Z", + "details": { + "sourceResources": [ + { + "name": "ResourceGroupName", + "resourceType": "Dimension", + "values": [ + "sampleRG" + ] + } + ], + "targetResources": [ + { + "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", + "values": [ + { + "name": "destinationRG", + "percentage": 50 + }, + { + "name": "destinationRG2", + "percentage": 50 + } + ] + } + ] + } + } + } + } + }, + "operationId": "CostAllocationRules_CreateOrUpdate", + "title": "CostAllocationRulesCreateResourceGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json new file mode 100644 index 000000000000..d278ed95881c --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json @@ -0,0 +1,131 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "costAllocationRule": { + "properties": { + "description": "This is a testRule", + "status": "Active", + "details": { + "sourceResources": [ + { + "name": "category", + "resourceType": "Tag", + "values": [ + "devops" + ] + } + ], + "targetResources": [ + { + "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", + "values": [ + { + "name": "destinationRG", + "percentage": 33.33 + }, + { + "name": "destinationRG2", + "percentage": 33.33 + }, + { + "name": "destinationRG3", + "percentage": 33.34 + } + ] + } + ] + } + } + }, + "ruleName": "testRule" + }, + "responses": { + "200": { + "body": { + "name": "testRule", + "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "properties": { + "description": "This is a testRule", + "createdDate": "2020-06-18T22:21:51.1287144Z", + "status": "Creating", + "updatedDate": "2020-06-18T22:21:51.1287144Z", + "details": { + "sourceResources": [ + { + "name": "ResourceGroupName", + "resourceType": "Dimension", + "values": [ + "sampleRG" + ] + } + ], + "targetResources": [ + { + "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", + "values": [ + { + "name": "destinationRG", + "percentage": 50 + }, + { + "name": "destinationRG2", + "percentage": 50 + } + ] + } + ] + } + } + } + }, + "201": { + "body": { + "name": "testRule", + "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "properties": { + "description": "This is a testRule", + "createdDate": "2020-06-18T22:21:51.1287144Z", + "status": "Creating", + "updatedDate": "2020-06-18T22:21:51.1287144Z", + "details": { + "sourceResources": [ + { + "name": "ResourceGroupName", + "resourceType": "Dimension", + "values": [ + "sampleRG" + ] + } + ], + "targetResources": [ + { + "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", + "values": [ + { + "name": "destinationRG", + "percentage": 50 + }, + { + "name": "destinationRG2", + "percentage": 50 + } + ] + } + ] + } + } + } + } + }, + "operationId": "CostAllocationRules_CreateOrUpdate", + "title": "CostAllocationRulesCreateTag" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleDelete.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleDelete.json new file mode 100644 index 000000000000..7444ad8bb1b6 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "ruleName": "testRule" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "CostAllocationRules_Delete", + "title": "DeleteCostAllocationRule" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json new file mode 100644 index 000000000000..b0d8785b10e7 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "ruleName": "testRule" + }, + "responses": { + "200": { + "body": { + "name": "testRule", + "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "properties": { + "description": "This is a testRule", + "createdDate": "2020-06-18T22:21:51.1287144Z", + "status": "NotActive", + "updatedDate": "2020-06-18T22:21:51.1287144Z", + "details": { + "sourceResources": [ + { + "name": "ResourceGroupName", + "resourceType": "Dimension", + "values": [ + "sampleRG" + ] + } + ], + "targetResources": [ + { + "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", + "values": [ + { + "name": "destinationRG", + "percentage": 50 + }, + { + "name": "destinationRG2", + "percentage": 50 + } + ] + } + ] + } + } + } + } + }, + "operationId": "CostAllocationRules_Get", + "title": "CostAllocationRules" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json new file mode 100644 index 000000000000..6f7be949d310 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json @@ -0,0 +1,130 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "testRule", + "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "properties": { + "description": "This is a testRule", + "createdDate": "2020-06-18T22:21:51.1287144Z", + "status": "NotActive", + "updatedDate": "2020-06-18T22:21:51.1287144Z", + "details": { + "sourceResources": [ + { + "name": "ResourceGroupName", + "resourceType": "Dimension", + "values": [ + "sampleRG" + ] + } + ], + "targetResources": [ + { + "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", + "values": [ + { + "name": "destinationRG", + "percentage": 50 + }, + { + "name": "destinationRG2", + "percentage": 50 + } + ] + } + ] + } + } + }, + { + "name": "testRule2", + "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule2", + "properties": { + "description": "This is a second test Rule", + "createdDate": "2020-06-18T22:21:51.1287144Z", + "status": "Active", + "updatedDate": "2020-06-18T22:21:51.1287144Z", + "details": { + "sourceResources": [ + { + "name": "SubscriptionId", + "resourceType": "Dimension", + "values": [ + "2A002F2D-536F-4D7C-90DA-3D0BAE879B0E" + ] + } + ], + "targetResources": [ + { + "name": "category", + "policyType": "FixedProportion", + "resourceType": "Tag", + "values": [ + { + "name": "devops", + "percentage": 100 + } + ] + } + ] + } + } + }, + { + "name": "testRule3", + "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule3", + "properties": { + "description": "This is a third test Rule", + "createdDate": "2020-06-18T22:21:51.1287144Z", + "status": "Active", + "updatedDate": "2020-06-18T22:21:51.1287144Z", + "details": { + "sourceResources": [ + { + "name": "category", + "resourceType": "Tag", + "values": [ + "devops" + ] + } + ], + "targetResources": [ + { + "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", + "values": [ + { + "name": "ResourceGroup", + "percentage": 55.55 + }, + { + "name": "ResourceGroupSecond", + "percentage": 44.45 + } + ] + } + ] + } + } + } + ] + } + } + }, + "operationId": "CostAllocationRules_List", + "title": "CostAllocationRulesList" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json new file mode 100644 index 000000000000..ff0b52648777 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "operationId": "00000000-0000-0000-0000-000000000000", + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "manifest": { + "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], + "byteCount": 32741, + "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", + "requestContext": { + "requestBody": { + "metric": "ActualCost", + "timePeriod": { + "end": "2020-03-15", + "start": "2020-03-01" + } + }, + "requestScope": "subscriptions/00000000-0000-0000-0000-000000000000" + } + }, + "status": "Completed", + "validTill": "2022-05-10T08:08:46.1973252Z" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2025-03-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateCostDetailsReport_GetOperationResults", + "title": "Get details of the operation result" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json new file mode 100644 index 000000000000..2ae497baff02 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "departmentId": "123", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } + } + }, + { + "name": "11111111-1111-1111-111111111111", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2019-08-31T17:51:55.1808807Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } + } + } + ] + } + } + }, + "operationId": "Alerts_List", + "title": "DepartmentAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json new file mode 100644 index 000000000000..c5b563d476ab --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "departmentId": "123", + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2018-05-01_2018-05-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "DepartmentDimensionsList-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..82127b31cd66 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "$expand": "properties/data", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "100", + "departmentId": "123", + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "DepartmentDimensionsListExpandAndTop-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json new file mode 100644 index 000000000000..e6819b87fac4 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "100", + "departmentId": "123", + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource Id", + "category": "ResourceId", + "data": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "DepartmentDimensionsListWithFilter-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json new file mode 100644 index 000000000000..e5c1945fffc6 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "departmentId": "123", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "Cost", + "function": "Sum" + } + }, + "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" + }, + "includeActualCost": false, + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "CostStatus", + "type": "String" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/Forecast?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 2.10333307059661, + 20180331, + "Forecast", + "USD" + ], + [ + 218.68795741935486, + 20180331, + "Forecast", + "USD" + ], + [ + 0.14384913581657052, + 20180401, + "Forecast", + "USD" + ], + [ + 0.009865586851323632, + 20180429, + "Forecast", + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Forecast_Usage", + "title": "DepartmentForecast" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json new file mode 100644 index 000000000000..9aec79d1253b --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "70664866", + "departmentId": "123", + "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" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.35941656262545, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "DepartmentQuery-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json new file mode 100644 index 000000000000..3eccf551c7ba --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "70664866", + "departmentId": "123", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "None", + "grouping": [ + { + "name": "ResourceGroup", + "type": "Dimension" + } + ] + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/70664866/departments/123/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/departments/123/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": "DepartmentQueryGrouping-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json new file mode 100644 index 000000000000..5c9ba463bcbb --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "alertId": "22222222-2222-2222-2222-222222222222", + "api-version": "2025-03-01", + "parameters": { + "properties": { + "status": "Dismissed" + } + }, + "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "22222222-2222-2222-2222-222222222222", + "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Dismissed", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", + "unit": "USD" + } + } + } + } + }, + "operationId": "Alerts_Dismiss", + "title": "PatchResourceGroupAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json new file mode 100644 index 000000000000..3530f6aa87f2 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "alertId": "22222222-2222-2222-2222-222222222222", + "api-version": "2025-03-01", + "parameters": { + "properties": { + "status": "Dismissed" + } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "22222222-2222-2222-2222-222222222222", + "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Dismissed", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", + "unit": "USD" + } + } + } + } + }, + "operationId": "Alerts_Dismiss", + "title": "PatchSubscriptionAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json new file mode 100644 index 000000000000..a7e2104c4e8a --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "0000000", + "billingPeriodName": "202311" + }, + "responses": { + "200": { + "body": { + "properties": { + "downloadUrl": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", + "validTill": "2023-09-30T17:32:28Z" + }, + "status": "Completed" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/0000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01", + "Retry-After": "60" + } + } + }, + "operationId": "PriceSheet_DownloadByBillingAccount", + "title": "EAPriceSheetForBillingPeriod" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json new file mode 100644 index 000000000000..e2914c357163 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "enrollmentAccountId": "456", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } + } + }, + { + "name": "11111111-1111-1111-111111111111", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2019-08-31T17:51:55.1808807Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } + } + } + ] + } + } + }, + "operationId": "Alerts_List", + "title": "EnrollmentAccountAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json new file mode 100644 index 000000000000..266d0340b5b6 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2018-05-01_2018-05-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "EnrollmentAccountDimensionsList-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..d5296fd9d0bc --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "$expand": "properties/data", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "EnrollmentAccountDimensionsListExpandAndTop-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json new file mode 100644 index 000000000000..42570afd32d4 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource Id", + "category": "ResourceId", + "data": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "EnrollmentAccountDimensionsListWithFilter-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json new file mode 100644 index 000000000000..37f553bafdf4 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "enrollmentAccountId": "456", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "Cost", + "function": "Sum" + } + }, + "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" + }, + "includeActualCost": false, + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "CostStatus", + "type": "String" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/Forecast?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 2.10333307059661, + 20180331, + "Forecast", + "USD" + ], + [ + 218.68795741935486, + 20180331, + "Forecast", + "USD" + ], + [ + 0.14384913581657052, + 20180401, + "Forecast", + "USD" + ], + [ + 0.009865586851323632, + 20180429, + "Forecast", + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Forecast_Usage", + "title": "EnrollmentAccountForecast" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json new file mode 100644 index 000000000000..51cb82ac5313 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "70664866", + "enrollmentAccountId": "456", + "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" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.35941656262545, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "EnrollmentAccountQuery-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json new file mode 100644 index 000000000000..637d6f2cafa5 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "70664866", + "enrollmentAccountId": "456", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [ + { + "name": "ResourceGroup", + "type": "Dimension" + } + ] + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.35941656262545, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "EnrollmentAccountQueryGrouping-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json new file mode 100644 index 000000000000..ccdd04919ac8 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json @@ -0,0 +1,145 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json new file mode 100644 index 000000000000..8ba0e787d841 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json @@ -0,0 +1,142 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2025-04-03T00:00:00.000Z", + "to": "2025-04-03T00:00:00.000Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "status": "Inactive" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2025-04-03T00:00:00Z", + "to": "2025-04-03T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "None", + "status": "Inactive" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2025-04-03T00:00:00Z", + "to": "2025-04-03T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "None", + "status": "Inactive" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccountCustom" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json new file mode 100644 index 000000000000..b63d7dfcc893 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json @@ -0,0 +1,145 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "TheLastMonth" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Monthly", + "recurrencePeriod": { + "from": "2020-06-05T00:00:00Z", + "to": "2030-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "TheLastMonth" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-05T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Monthly", + "recurrencePeriod": { + "from": "2020-06-05T00:00:00Z", + "to": "2030-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "TheLastMonth" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-05T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Monthly", + "recurrencePeriod": { + "from": "2020-06-05T00:00:00Z", + "to": "2030-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccountMonthly" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json new file mode 100644 index 000000000000..3679eb5cfa56 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json @@ -0,0 +1,145 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "PriceSheet", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "TheCurrentMonth" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "PriceSheet", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "TheCurrentMonth" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "PriceSheet", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "TheCurrentMonth" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccountPricesheet" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json new file mode 100644 index 000000000000..0b867a831c89 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json @@ -0,0 +1,149 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ReservationDetails", + "dataSet": { + "configuration": { + "dataVersion": "2023-03-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ReservationDetails", + "dataSet": { + "configuration": { + "columns": [], + "dataVersion": "2023-03-01", + "filters": [] + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ReservationDetails", + "dataSet": { + "configuration": { + "columns": [], + "dataVersion": "2023-03-01", + "filters": [] + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccountReservationDetails" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json new file mode 100644 index 000000000000..ccc8ffb6e080 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json @@ -0,0 +1,188 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ReservationRecommendations", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01", + "filters": [ + { + "name": "ReservationScope", + "value": "Single" + }, + { + "name": "ResourceType", + "value": "VirtualMachines" + }, + { + "name": "LookBackPeriod", + "value": "Last7Days" + } + ] + } + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ReservationRecommendations", + "dataSet": { + "configuration": { + "columns": [], + "dataVersion": "2023-05-01", + "filters": [ + { + "name": "ReservationScope", + "value": "Single" + }, + { + "name": "ResourceType", + "value": "VirtualMachines" + }, + { + "name": "LookBackPeriod", + "value": "Last7Days" + } + ] + }, + "granularity": null + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ReservationRecommendations", + "dataSet": { + "configuration": { + "columns": [], + "dataVersion": "2023-05-01", + "filters": [ + { + "name": "ReservationScope", + "value": "Single" + }, + { + "name": "ResourceType", + "value": "VirtualMachines" + }, + { + "name": "LookBackPeriod", + "value": "Last7Days" + } + ] + }, + "granularity": null + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccountReservationRecommendation" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json new file mode 100644 index 000000000000..e02bd086ea1e --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ReservationTransactions", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + } + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ReservationTransactions", + "dataSet": { + "configuration": { + "columns": [], + "dataVersion": "2023-05-01", + "filters": [] + }, + "granularity": null + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ReservationTransactions", + "dataSet": { + "configuration": { + "columns": [], + "dataVersion": "2023-05-01", + "filters": [] + }, + "granularity": null + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateExportCreateOrUpdateByBillingAccountReservationTransactionsByBillingAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json new file mode 100644 index 000000000000..1dc0b252617c --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12", + "departmentId": "1234", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Parquet", + "compressionMode": "snappy", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Parquet", + "compressionMode": "snappy", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Parquet", + "compressionMode": "snappy", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByDepartment" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json new file mode 100644 index 000000000000..b61b65fdd93c --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByEnrollmentAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json new file mode 100644 index 000000000000..73afc0c69842 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json @@ -0,0 +1,145 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "managementGroupId": "TestMG", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "scope": "providers/Microsoft.Management/managementGroups/TestMG" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByManagementGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json new file mode 100644 index 000000000000..19f285a7d2c9 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByResourceGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json new file mode 100644 index 000000000000..86cc3007e166 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json @@ -0,0 +1,145 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateBySubscription" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json new file mode 100644 index 000000000000..f5c307267fc9 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteByBillingAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json new file mode 100644 index 000000000000..d0c1b42cfe6b --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12", + "departmentId": "1234", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteByDepartment" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json new file mode 100644 index 000000000000..f5691cd9456f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteByEnrollmentAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json new file mode 100644 index 000000000000..075fe9475b26 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "managementGroupId": "TestMG", + "scope": "providers/Microsoft.Management/managementGroups/TestMG" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteByManagementGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json new file mode 100644 index 000000000000..9fa12702e272 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteByResourceGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json new file mode 100644 index 000000000000..700c834acc51 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteBySubscription" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json new file mode 100644 index 000000000000..eba2387b5b90 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-05-01T00:00:00Z", + "to": "2020-05-31T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + } + } + }, + "operationId": "Exports_Get", + "title": "ExportGetByBillingAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json new file mode 100644 index 000000000000..2c332471b6df --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12", + "departmentId": "1234", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + } + } + }, + "operationId": "Exports_Get", + "title": "ExportGetByDepartment" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json new file mode 100644 index 000000000000..b26a3a26ce12 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2019-09-01T00:00:00Z", + "to": "2019-09-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + } + } + }, + "operationId": "Exports_Get", + "title": "ExportGetByEnrollmentAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json new file mode 100644 index 000000000000..6f0a1b4d1e95 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "managementGroupId": "TestMG", + "scope": "providers/Microsoft.Management/managementGroups/TestMG" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2019-09-01T00:00:00Z", + "to": "2020-09-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + } + } + }, + "operationId": "Exports_Get", + "title": "ExportGetByManagementGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json new file mode 100644 index 000000000000..52704ee651d4 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + } + } + }, + "operationId": "Exports_Get", + "title": "ExportGetByResourceGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json new file mode 100644 index 000000000000..9c14283a7942 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2019-06-01T00:00:00Z", + "to": "2019-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + } + } + }, + "operationId": "Exports_Get", + "title": "ExportGetBySubscription" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json new file mode 100644 index 000000000000..5deb42bc5723 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Execute", + "title": "ExportRunByBillingAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json new file mode 100644 index 000000000000..8737f587b161 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "exportRunRequest": { + "timePeriod": { + "from": "2023-12-01T00:00:00.000Z", + "to": "2023-12-31T00:00:00.000Z" + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Execute", + "title": "ExportRunByBillingAccountWithOptionalRequestBody" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json new file mode 100644 index 000000000000..fbefe693c05e --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12", + "departmentId": "1234", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Execute", + "title": "ExportRunByDepartment" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json new file mode 100644 index 000000000000..bdc568be8b48 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Execute", + "title": "ExportRunByEnrollmentAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json new file mode 100644 index 000000000000..15dad37b0545 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "managementGroupId": "TestMG", + "scope": "providers/Microsoft.Management/managementGroups/TestMG" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Execute", + "title": "ExportRunByManagementGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json new file mode 100644 index 000000000000..2587197c786c --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Execute", + "title": "ExportRunByResourceGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json new file mode 100644 index 000000000000..3fde65142397 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + }, + "operationId": "Exports_Execute", + "title": "ExportRunBySubscription" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json new file mode 100644 index 000000000000..7b91815e76fb --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json @@ -0,0 +1,104 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "OnDemand", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "Scheduled", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" + } + } + ] + } + } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetByBillingAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json new file mode 100644 index 000000000000..a83ce931e8e4 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12", + "departmentId": "1234", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "OnDemand", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "Scheduled", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" + } + } + ] + } + } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetByDepartment" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json new file mode 100644 index 000000000000..4c040958a340 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "OnDemand", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "Scheduled", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" + } + } + ] + } + } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetByEnrollmentAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json new file mode 100644 index 000000000000..5f51564771f8 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json @@ -0,0 +1,104 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "managementGroupId": "TestMG", + "scope": "providers/Microsoft.Management/managementGroups/TestMG" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "OnDemand", + "fileName": "ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" + } + }, + { + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "Scheduled", + "fileName": "ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" + } + } + ] + } + } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetByManagementGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json new file mode 100644 index 000000000000..21834ac56272 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "OnDemand", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" + } + }, + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "Scheduled", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" + } + } + ] + } + } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetByResourceGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json new file mode 100644 index 000000000000..f583414076ef --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json @@ -0,0 +1,104 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "exportName": "TestExport", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "OnDemand", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" + } + }, + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "properties": { + "endDate": "2020-06-30T00:00:00Z", + "executionType": "Scheduled", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", + "runSettings": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" + } + } + ] + } + } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetBySubscription" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json new file mode 100644 index 000000000000..1f2524484fd6 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json @@ -0,0 +1,99 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestExport1", + "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport1", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + }, + { + "name": "TestExport2", + "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport2", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "WeekToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + ] + } + } + }, + "operationId": "Exports_List", + "title": "ExportsGetByBillingAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json new file mode 100644 index 000000000000..12708e7d0f03 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json @@ -0,0 +1,104 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12", + "departmentId": "1234", + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/123" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestExport1", + "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport1", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + }, + { + "name": "TestExport2", + "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport2", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + ] + } + } + }, + "operationId": "Exports_List", + "title": "ExportsGetByDepartment" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json new file mode 100644 index 000000000000..c8d070d24482 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json @@ -0,0 +1,104 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestExport1", + "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport1", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + }, + { + "name": "TestExport2", + "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport2", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + ] + } + } + }, + "operationId": "Exports_List", + "title": "ExportsGetByEnrollmentAccount" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json new file mode 100644 index 000000000000..5995fba57176 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "managementGroupId": "TestMG", + "scope": "providers/Microsoft.Management/managementGroups/TestMG" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestExport1", + "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport1", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + }, + { + "name": "TestExport2", + "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport2", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + ] + } + } + }, + "operationId": "Exports_List", + "title": "ExportsGetByManagementGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json new file mode 100644 index 000000000000..30f6c0ac9954 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json @@ -0,0 +1,104 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestExport1", + "type": "Microsoft.CostManagement/exports", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport1", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + }, + { + "name": "TestExport2", + "type": "Microsoft.CostManagement/exports", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport2", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + ] + } + } + }, + "operationId": "Exports_List", + "title": "ExportsGetByResourceGroup" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json new file mode 100644 index 000000000000..6bec2ec2b0ef --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "TestExport1", + "type": "Microsoft.CostManagement/exports", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport1", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true + } + }, + { + "name": "TestExport2", + "type": "Microsoft.CostManagement/exports", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport2", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + ] + } + } + }, + "operationId": "Exports_List", + "title": "ExportsGetBySubscription" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json new file mode 100644 index 000000000000..d6819f7d1245 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "externalCloudProviderId": "100", + "externalCloudProviderType": "externalBillingAccounts" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } + } + }, + { + "name": "11111111-1111-1111-111111111111", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2019-08-31T17:51:55.1808807Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } + } + } + ] + } + } + }, + "operationId": "Alerts_ListExternal", + "title": "ExternalBillingAccountAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json new file mode 100644 index 000000000000..831a576dbb41 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "externalCloudProviderId": "100", + "externalCloudProviderType": "externalBillingAccounts", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "Cost", + "function": "Sum" + } + }, + "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" + }, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + } + }, + "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": "CostStatus", + "type": "String" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": null, + "rows": [ + [ + 0, + "Forecast", + "USD" + ], + [ + 30.2572751438, + "Forecast", + "USD" + ], + [ + 0.07675760200000002, + "Forecast", + "USD" + ], + [ + 50.43096419040001, + "Forecast", + "USD" + ] + ] + } + } + } + }, + "operationId": "Forecast_ExternalCloudProviderUsage", + "title": "ExternalBillingAccountForecast" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json new file mode 100644 index 000000000000..fd74a5cdc8b7 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "externalCloudProviderId": "100", + "externalCloudProviderType": "externalBillingAccounts" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceType_2019-12-01_2019-12-31", + "type": "microsoft.consumption/dimensions", + "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceType_2019-12-01_2019-12-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 0, + "usageEnd": "2019-12-31T00:00:00Z", + "usageStart": "2019-12-01T00:00:00Z" + } + }, + { + "name": "dimensions_ResourceId_2019-12-01_2019-12-31", + "type": "microsoft.consumption/dimensions", + "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceId_2019-12-01_2019-12-31", + "properties": { + "description": "Resource ID", + "category": "ResourceId", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 0, + "usageEnd": "2019-12-31T00:00:00Z", + "usageStart": "2019-12-01T00:00:00Z" + } + } + ] + } + } + }, + "operationId": "Dimensions_ByExternalCloudProviderType", + "title": "ExternalBillingAccountDimensionList" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json new file mode 100644 index 000000000000..d3fd6d65c45c --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2025-03-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" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json new file mode 100644 index 000000000000..56e974cbc9df --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "externalCloudProviderId": "100", + "externalCloudProviderType": "externalSubscriptions" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } + } + }, + { + "name": "11111111-1111-1111-111111111111", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2019-08-31T17:51:55.1808807Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } + } + } + ] + } + } + }, + "operationId": "Alerts_ListExternal", + "title": "ExternalSubscriptionAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json new file mode 100644 index 000000000000..d641baedc985 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "externalCloudProviderId": "100", + "externalCloudProviderType": "externalSubscriptions", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "Cost", + "function": "Sum" + } + }, + "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" + }, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + } + }, + "responses": { + "200": { + "body": { + "name": "d99477af-7510-40ee-aca2-e59bdca0d10d", + "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "CostStatus", + "type": "String" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": null, + "rows": [] + } + } + } + }, + "operationId": "Forecast_ExternalCloudProviderUsage", + "title": "ExternalSubscriptionForecast" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json new file mode 100644 index 000000000000..028a67d2edf5 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "externalCloudProviderId": "100", + "externalCloudProviderType": "externalSubscriptions" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceType_2019-12-01_2019-12-31", + "type": "microsoft.consumption/dimensions", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceType_2019-12-01_2019-12-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 0, + "usageEnd": "2019-12-31T00:00:00Z", + "usageStart": "2019-12-01T00:00:00Z" + } + }, + { + "name": "dimensions_ResourceId_2019-12-01_2019-12-31", + "type": "microsoft.consumption/dimensions", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceId_2019-12-01_2019-12-31", + "properties": { + "description": "Resource ID", + "category": "ResourceId", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 0, + "usageEnd": "2019-12-31T00:00:00Z", + "usageStart": "2019-12-01T00:00:00Z" + } + } + ] + } + } + }, + "operationId": "Dimensions_ByExternalCloudProviderType", + "title": "ExternalSubscriptionDimensionList" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json new file mode 100644 index 000000000000..883679605a15 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "externalCloudProviderId": "100", + "externalCloudProviderType": "externalSubscriptions", + "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": "d99477af-7510-40ee-aca2-e59bdca0d10d", + "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": null, + "rows": [] + } + } + } + }, + "operationId": "Query_UsageByExternalCloudProviderType", + "title": "ExternalSubscriptionsQuery" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json new file mode 100644 index 000000000000..a01a65646944 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "billingPeriod": "202205", + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "id": "providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "manifest": { + "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], + "byteCount": 32741, + "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", + "requestContext": { + "requestBody": { + "billingPeriod": "202205", + "metric": "ActualCost" + }, + "requestScope": "providers/Microsoft.Billing/billingAccounts/12345" + } + }, + "status": "Completed", + "validTill": "2022-05-10T08:08:46.1973252Z" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2025-03-01", + "Retry-After": "60" + } + }, + "204": {} + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json new file mode 100644 index 000000000000..4d621be8f753 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "invoiceId": "M1234567", + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "manifest": { + "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], + "byteCount": 32741, + "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", + "requestContext": { + "requestBody": { + "billingPeriod": "202205", + "metric": "ActualCost" + }, + "requestScope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + } + }, + "status": "Completed", + "validTill": "2022-05-10T08:08:46.1973252Z" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2025-03-01", + "Retry-After": "60" + } + }, + "204": {} + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByBillingProfileAndInvoiceId" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json new file mode 100644 index 000000000000..50e8393d170c --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "invoiceId": "M1234567", + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "manifest": { + "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], + "byteCount": 32741, + "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", + "requestContext": { + "requestBody": { + "billingPeriod": "202205", + "metric": "ActualCost" + }, + "requestScope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + } + }, + "status": "Completed", + "validTill": "2022-05-10T08:08:46.1973252Z" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2025-03-01", + "Retry-After": "60" + } + }, + "204": {} + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json new file mode 100644 index 000000000000..59a908306b97 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "metric": "ActualCost", + "timePeriod": { + "end": "2020-03-15", + "start": "2020-03-01" + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "manifest": { + "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], + "byteCount": 32741, + "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", + "requestContext": { + "requestBody": { + "metric": "ActualCost", + "timePeriod": { + "end": "2020-03-15", + "start": "2020-03-01" + } + }, + "requestScope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + } + }, + "status": "Completed", + "validTill": "2022-05-10T08:08:46.1973252Z" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2025-03-01", + "Retry-After": "60" + } + }, + "204": {} + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByCustomerAndTimePeriod" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json new file mode 100644 index 000000000000..432b808d57d2 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "metric": "ActualCost", + "timePeriod": { + "end": "2020-03-15", + "start": "2020-03-01" + } + }, + "scope": "providers/Microsoft.Billing/departments/12345" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "id": "providers/Microsoft.Billing/departments/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "manifest": { + "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], + "byteCount": 32741, + "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", + "requestContext": { + "requestBody": { + "metric": "ActualCost", + "timePeriod": { + "end": "2020-03-15", + "start": "2020-03-01" + } + }, + "requestScope": "providers/Microsoft.Billing/departments/12345" + } + }, + "status": "Completed", + "validTill": "2022-05-10T08:08:46.1973252Z" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/departments/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2025-03-01", + "Retry-After": "60" + } + }, + "204": {} + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByDepartmentsAndTimePeriod" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json new file mode 100644 index 000000000000..c17a4763b4e5 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "metric": "ActualCost", + "timePeriod": { + "end": "2020-03-15", + "start": "2020-03-01" + } + }, + "scope": "providers/Microsoft.Billing/enrollmentAccounts/1234" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "id": "providers/Microsoft.Billing/enrollmentAccounts/1234/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "manifest": { + "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], + "byteCount": 32741, + "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", + "requestContext": { + "requestBody": { + "metric": "ActualCost", + "timePeriod": { + "end": "2020-03-15", + "start": "2020-03-01" + } + }, + "requestScope": "providers/Microsoft.Billing/enrollmentAccounts/1234" + } + }, + "status": "Completed", + "validTill": "2022-05-10T08:08:46.1973252Z" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/enrollmentAccounts/1234/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2025-03-01", + "Retry-After": "60" + } + }, + "204": {} + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json new file mode 100644 index 000000000000..09d8cd8d0ba2 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "metric": "ActualCost", + "timePeriod": { + "end": "2020-03-15", + "start": "2020-03-01" + } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "manifest": { + "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], + "byteCount": 32741, + "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", + "requestContext": { + "requestBody": { + "metric": "ActualCost", + "timePeriod": { + "end": "2020-03-15", + "start": "2020-03-01" + } + }, + "requestScope": "subscriptions/00000000-0000-0000-0000-000000000000" + } + }, + "status": "Completed", + "validTill": "2022-05-10T08:08:46.1973252Z" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2025-03-01", + "Retry-After": "60" + } + }, + "204": {} + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportBySubscriptionAndTimePeriod" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json new file mode 100644 index 000000000000..71686b857a41 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "billingPeriod": "202008", + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "properties": { + "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "validTill": "2020-12-08T05:55:59.4394737Z" + } + } + }, + "202": { + "headers": { + "Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateDetailedCostReport_CreateOperation", + "title": "GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json new file mode 100644 index 000000000000..5bef30aa8911 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "invoiceId": "M1234567", + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "properties": { + "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "validTill": "2020-12-08T05:55:59.4394737Z" + } + } + }, + "202": { + "headers": { + "Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateDetailedCostReport_CreateOperation", + "title": "GenerateDetailedCostReportByBillingProfileAndInvoiceId" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json new file mode 100644 index 000000000000..b6e21bd1a4f5 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "customerId": "456789", + "invoiceId": "M1234567", + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "properties": { + "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "validTill": "2020-12-08T05:55:59.4394737Z" + } + } + }, + "202": { + "headers": { + "Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateDetailedCostReport_CreateOperation", + "title": "GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json new file mode 100644 index 000000000000..12e26c9a454a --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "metric": "ActualCost", + "timePeriod": { + "end": "2020-03-15", + "start": "2020-03-01" + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "properties": { + "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "validTill": "2020-12-08T05:55:59.4394737Z" + } + } + }, + "202": { + "headers": { + "Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateDetailedCostReport_CreateOperation", + "title": "GenerateDetailedCostReportByCustomerAndTimePeriod" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json new file mode 100644 index 000000000000..bff64d73d0c5 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "metric": "ActualCost", + "timePeriod": { + "end": "2020-03-15", + "start": "2020-03-01" + } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "properties": { + "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "validTill": "2020-12-08T05:55:59.4394737Z" + } + } + }, + "202": { + "headers": { + "Azure-Consumption-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2021-10-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000?api-version=2021-10-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateDetailedCostReport_CreateOperation", + "title": "GenerateDetailedCostReportBySubscriptionAndTimePeriod" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json new file mode 100644 index 000000000000..48b55796bec6 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "operationId": "00000000-0000-0000-0000-000000000000", + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "properties": { + "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "validTill": "2020-12-08T05:55:59.4394737Z" + } + } + }, + "202": { + "headers": { + "Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateDetailedCostReportOperationResults_Get", + "title": "Get details of the operation result" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json new file mode 100644 index 000000000000..075f4171db77 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "operationId": "00000000-0000-0000-0000-000000000000", + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Consumption/operationStatus", + "error": { + "code": "0", + "message": null + }, + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationStatus/00000000-0000-0000-0000-000000000000", + "properties": { + "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "validTill": "2020-12-08T05:55:59.4394737Z" + }, + "status": "Completed" + } + } + }, + "operationId": "GenerateDetailedCostReportOperationStatus_Get", + "title": "Get details of the operation status" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingAccount.json new file mode 100644 index 000000000000..7d0bc738bb9e --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingAccount.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "9845612", + "endDate": "2020-01-30", + "startDate": "2020-01-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "reportUrl": "https://storage.blob.core.windows.net/details/20200911/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "validUntil": "2020-09-12T02:56:55.5021869Z" + }, + "status": "Completed" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/9845612/providers/Microsoft.CostManagement/reservationDetailsOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2019-11-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateReservationDetailsReport_ByBillingAccountId", + "title": "ReservationDetails" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingProfile.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingProfile.json new file mode 100644 index 000000000000..d368c5c671aa --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingProfile.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "00000000-0000-0000-0000-000000000000", + "billingProfileId": "CZSFR-SDFXC-DSDF", + "endDate": "2020-01-30", + "startDate": "2020-01-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "reportUrl": "https://storage.blob.core.windows.net/details/20200911/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", + "validUntil": "2020-09-12T02:56:55.5021869Z" + }, + "status": "Completed" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000/billingProfiles/CZSFR-SDFXC-DSDF/providers/Microsoft.CostManagement/reservationDetailsOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2019-11-01", + "Retry-After": "60" + } + } + }, + "operationId": "GenerateReservationDetailsReport_ByBillingProfileId", + "title": "ReservationDetails" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json new file mode 100644 index 000000000000..6278f2d96245 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "invoiceSectionId": "9876", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } + } + }, + { + "name": "11111111-1111-1111-111111111111", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2019-08-31T17:51:55.1808807Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } + } + } + ] + } + } + }, + "operationId": "Alerts_List", + "title": "InvoiceSectionAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json new file mode 100644 index 000000000000..0aac79662c2c --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "invoiceSectionId": "9876", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "Cost", + "function": "Sum" + } + }, + "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" + }, + "includeActualCost": false, + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "CostStatus", + "type": "String" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 2.10333307059661, + 20180331, + "Forecast", + "USD" + ], + [ + 218.68795741935486, + 20180331, + "Forecast", + "USD" + ], + [ + 0.14384913581657052, + 20180401, + "Forecast", + "USD" + ], + [ + 0.009865586851323632, + 20180429, + "Forecast", + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Forecast_Usage", + "title": "InvoiceSectionForecast" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json new file mode 100644 index 000000000000..acf3bf89e84e --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsList-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..847e63e7b976 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "$expand": "properties/data", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsListExpandAndTop-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json new file mode 100644 index 000000000000..7dac1e9b611d --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceId_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "properties": { + "description": "Resource Id", + "category": "ResourceId", + "data": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsListWithFilter-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json new file mode 100644 index 000000000000..87cce97882c2 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json @@ -0,0 +1,110 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "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" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.35941656262545, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "BillingAccountQuery-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json new file mode 100644 index 000000000000..ad4e0890474a --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "None", + "grouping": [ + { + "name": "ResourceGroup", + "type": "Dimension" + } + ] + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/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/12345:6789/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-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json new file mode 100644 index 000000000000..536dd9c27224 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "BillingProfileDimensionsList-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..d6974668f39b --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "$expand": "properties/data", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "BillingProfileDimensionsListExpandAndTop-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json new file mode 100644 index 000000000000..c6fe8fa480b2 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceId_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "properties": { + "description": "Resource Id", + "category": "ResourceId", + "data": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "BillingProfileDimensionsListWithFilter-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json new file mode 100644 index 000000000000..f0acc9e7503f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "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" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.35941656262545, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "BillingProfileQuery-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json new file mode 100644 index 000000000000..68c0e8ba1687 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "None", + "grouping": [ + { + "name": "ResourceGroup", + "type": "Dimension" + } + ] + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/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/12345:6789/billingProfiles/13579/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": "BillingProfileQueryGrouping-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json new file mode 100644 index 000000000000..cdf5e179a07f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "customerId": "5678", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "CustomerDimensionsList-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..26f6fbbab8e7 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "$expand": "properties/data", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "customerId": "5678", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "CustomerDimensionsListExpandAndTop-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json new file mode 100644 index 000000000000..8c9e7210186a --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "customerId": "13579", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceId_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "properties": { + "description": "Resource Id", + "category": "ResourceId", + "data": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "CustomerDimensionsListWithFilter-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json new file mode 100644 index 000000000000..75a6c1301c9e --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "customerId": "5678", + "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" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.35941656262545, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "CustomerQuery-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json new file mode 100644 index 000000000000..32c855602280 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "customerId": "5678", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "None", + "grouping": [ + { + "name": "ResourceGroup", + "type": "Dimension" + } + ] + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/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/12345:6789/customers/5678/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": "CustomerQueryGrouping-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json new file mode 100644 index 000000000000..a6ae09b91257 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "invoiceSectionId": "9876", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "InvoiceSectionDimensionsList-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..ef7bc046ede5 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "$expand": "properties/data", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "invoiceSectionId": "9876", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "InvoiceSectionDimensionsListExpandAndTop-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json new file mode 100644 index 000000000000..d6ec7aed3b33 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "invoiceSectionId": "9876", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceId_2019-10-01_2019-10-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "properties": { + "description": "Resource Id", + "category": "ResourceId", + "data": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "InvoiceSectionDimensionsListWithFilter-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json new file mode 100644 index 000000000000..d89de3b5b653 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "invoiceSectionId": "9876", + "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" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.35941656262545, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "InvoiceSectionQuery-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json new file mode 100644 index 000000000000..a341db3431f1 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "invoiceSectionId": "9876", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "None", + "grouping": [ + { + "name": "ResourceGroup", + "type": "Dimension" + } + ] + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/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/12345:6789/billingProfiles/13579/invoiceSections/9876/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": "InvoiceSectionQueryGrouping-MCA" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json new file mode 100644 index 000000000000..4a1a95fdf96f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "managementGroupId": "MyMgId", + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2018-05-01_2018-05-31", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "ManagementGroupDimensionsList-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..3f5aea32a9ad --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "$expand": "properties/data", + "$top": 5, + "api-version": "2025-03-01", + "managementGroupId": "MyMgId", + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 377, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 37, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "ManagementGroupDimensionsListExpandAndTop-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json new file mode 100644 index 000000000000..84fb6b1f6a0f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, + "api-version": "2025-03-01", + "managementGroupId": "MyMgId", + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource Id", + "category": "ResourceId", + "data": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "http://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "ManagementGroupDimensionsListWithFilter-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json new file mode 100644 index 000000000000..0377dcbb8d24 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json @@ -0,0 +1,110 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "managementGroupId": "MyMgId", + "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" + }, + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.35941656262545, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "ManagementGroupQuery-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json new file mode 100644 index 000000000000..c1b3322ee2ce --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "managementGroupId": "MyMgId", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "None", + "grouping": [ + { + "name": "ResourceGroup", + "type": "Dimension" + } + ] + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + }, + "responses": { + "200": { + "body": { + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": "https://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", + "rows": [ + [ + 20.35941656262545, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "ManagementGroupQueryGrouping-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/OperationList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/OperationList.json new file mode 100644 index 000000000000..c5e41bf4472b --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/OperationList.json @@ -0,0 +1,115 @@ +{ + "parameters": { + "api-version": "2025-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.CostManagement/budgets/read", + "display": { + "description": "List the budgets by a subscription or a management group.", + "operation": "List budgets", + "provider": "Microsoft.CostManagement", + "resource": "Budgets" + }, + "id": "Microsoft.CostManagement/budgets/read" + }, + { + "name": "Microsoft.CostManagement/query/action", + "display": { + "description": "Query usage data by a scope.", + "operation": "Query usage data", + "provider": "Microsoft.CostManagement", + "resource": "Query" + }, + "id": "Microsoft.CostManagement/query/action" + }, + { + "name": "Microsoft.CostManagement/exports/read", + "display": { + "description": "List the exports by scope.", + "operation": "List exports", + "provider": "Microsoft.CostManagement", + "resource": "Exports" + }, + "id": "Microsoft.CostManagement/exports/read" + }, + { + "name": "Microsoft.CostManagement/exports/write", + "display": { + "description": "Create or update the specified export.", + "operation": "Create and update export", + "provider": "Microsoft.CostManagement", + "resource": "Exports" + }, + "id": "Microsoft.CostManagement/exports/write" + }, + { + "name": "Microsoft.CostManagement/exports/action", + "display": { + "description": "Run the specified export.", + "operation": "Run export", + "provider": "Microsoft.CostManagement", + "resource": "Exports" + }, + "id": "Microsoft.CostManagement/exports/action" + }, + { + "name": "Microsoft.CostManagement/exports/run/action", + "display": { + "description": "Run exports.", + "operation": "Run exports", + "provider": "Microsoft.CostManagement", + "resource": "exports/run" + }, + "id": "Microsoft.CostManagement/exports/run/action" + }, + { + "name": "Microsoft.CostManagement/alerts/read", + "display": { + "description": "List alerts.", + "operation": "List Alerts", + "provider": "Microsoft.CostManagement", + "resource": "Alerts" + }, + "id": "Microsoft.CostManagement/alerts/read" + }, + { + "name": "Microsoft.CostManagement/operations/read", + "display": { + "description": "List all supported operations by Microsoft.CostManagement resource provider.", + "operation": "List supported operations", + "provider": "Microsoft.CostManagement", + "resource": "Operations" + }, + "id": "Microsoft.CostManagement/operations/read" + }, + { + "name": "Microsoft.CostManagement/views/action", + "display": { + "description": "Create view.", + "operation": "Create views", + "provider": "Microsoft.CostManagement", + "resource": "Views" + }, + "id": "Microsoft.CostManagement/views/action" + }, + { + "name": "Microsoft.CostManagement/views/write", + "display": { + "description": "Update view.", + "operation": "Update views", + "provider": "Microsoft.CostManagement", + "resource": "Views" + }, + "id": "Microsoft.CostManagement/views/write" + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "OperationList" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownload.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownload.json new file mode 100644 index 000000000000..910e37e4da3b --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownload.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountName": "7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31", + "billingProfileName": "2USN-TPCD-BG7-TGB", + "invoiceName": "T000940677" + }, + "responses": { + "200": { + "body": { + "downloadUrl": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", + "expiryTime": "2022-09-30T17:32:28Z" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com:443/providers/Microsoft.Billing/billingAccounts/7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31/billingProfiles/2USN-TPCD-BG7-TGB/providers/Microsoft.CostManagement/operationResults/45000000-0000-0000-0000-000000000000?sessiontoken=0:000000&api-version=2025-03-01&OperationType=PriceSheet", + "OData-EntityId": "45000000-0000-0000-0000-000000000000", + "Retry-After": "60" + } + } + }, + "operationId": "PriceSheet_DownloadByInvoice", + "title": "PricesheetDownload" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownloadByBillingProfile.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownloadByBillingProfile.json new file mode 100644 index 000000000000..a32faf07cc38 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownloadByBillingProfile.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountName": "7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31", + "billingProfileName": "2USN-TPCD-BG7-TGB" + }, + "responses": { + "200": { + "body": { + "downloadUrl": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", + "expiryTime": "2018-07-21T17:32:28Z" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com:443/providers/Microsoft.Billing/billingAccounts/7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31/billingProfiles/2USN-TPCD-BG7-TGB/providers/Microsoft.CostManagement/operationResults/45000000-0000-0000-0000-000000000000?sessiontoken=0:000000&api-version=2025-03-01&OperationType=PriceSheet", + "OData-EntityId": "45000000-0000-0000-0000-000000000000", + "Retry-After": "60" + } + } + }, + "operationId": "PriceSheet_DownloadByBillingProfile", + "title": "PricesheetDownloadByBillingProfile" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateView.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateView.json new file mode 100644 index 000000000000..ee699534dcab --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateView.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "viewName": "swaggerExample" + }, + "responses": { + "200": { + "body": { + "name": "swaggerExample", + "type": "Microsoft.CostManagement/Views", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "/providers/Microsoft.CostManagement/views/swaggerExample", + "properties": { + "accumulated": "true", + "chart": "Table", + "displayName": "swagger Example", + "kpis": [ + { + "type": "Forecast", + "enabled": true, + "id": null + }, + { + "type": "Budget", + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" + } + ], + "metric": "ActualCost", + "pivots": [ + { + "name": "ServiceName", + "type": "Dimension" + }, + { + "name": "MeterCategory", + "type": "Dimension" + }, + { + "name": "swaggerTagKey", + "type": "TagKey" + } + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + }, + "scope": "" + } + } + } + }, + "operationId": "Views_Get", + "title": "PrivateView" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewCreateOrUpdate.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewCreateOrUpdate.json new file mode 100644 index 000000000000..11a7d6968592 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewCreateOrUpdate.json @@ -0,0 +1,187 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "eTag": "\"1d4ff9fe66f1d10\"", + "properties": { + "accumulated": "true", + "chart": "Table", + "displayName": "swagger Example", + "kpis": [ + { + "type": "Forecast", + "enabled": true, + "id": null + }, + { + "type": "Budget", + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" + } + ], + "metric": "ActualCost", + "pivots": [ + { + "name": "ServiceName", + "type": "Dimension" + }, + { + "name": "MeterCategory", + "type": "Dimension" + }, + { + "name": "swaggerTagKey", + "type": "TagKey" + } + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + } + } + }, + "viewName": "swaggerExample" + }, + "responses": { + "200": { + "body": { + "name": "swaggerExample", + "type": "Microsoft.CostManagement/Views", + "eTag": "\"1d4ffa5a9c2430c\"", + "id": "/providers/Microsoft.CostManagement/views/swaggerExample", + "properties": { + "accumulated": "true", + "chart": "Table", + "displayName": "swagger Example", + "kpis": [ + { + "type": "Forecast", + "enabled": true, + "id": null + }, + { + "type": "Budget", + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" + } + ], + "metric": "ActualCost", + "pivots": [ + { + "name": "ServiceName", + "type": "Dimension" + }, + { + "name": "MeterCategory", + "type": "Dimension" + }, + { + "name": "swaggerTagKey", + "type": "TagKey" + } + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + }, + "scope": "" + } + } + }, + "201": { + "body": { + "name": "swaggerExample", + "type": "Microsoft.CostManagement/Views", + "eTag": "\"1d4ffa5a9c2430c\"", + "id": "/providers/Microsoft.CostManagement/views/swaggerExample", + "properties": { + "accumulated": "true", + "chart": "Table", + "displayName": "swagger Example", + "kpis": [ + { + "type": "Forecast", + "enabled": true, + "id": null + }, + { + "type": "Budget", + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" + } + ], + "metric": "ActualCost", + "pivots": [ + { + "name": "ServiceName", + "type": "Dimension" + }, + { + "name": "MeterCategory", + "type": "Dimension" + }, + { + "name": "swaggerTagKey", + "type": "TagKey" + } + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + }, + "scope": "" + } + } + } + }, + "operationId": "Views_CreateOrUpdate", + "title": "CreateOrUpdatePrivateView" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewDelete.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewDelete.json new file mode 100644 index 000000000000..803e96bbae41 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "viewName": "TestView" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Views_Delete", + "title": "DeletePrivateView" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewList.json new file mode 100644 index 000000000000..293d11d908fe --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewList.json @@ -0,0 +1,133 @@ +{ + "parameters": { + "api-version": "2025-03-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "swaggerExample", + "type": "Microsoft.CostManagement/Views", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "/providers/Microsoft.CostManagement/views/swaggerExample", + "properties": { + "accumulated": "true", + "chart": "Table", + "displayName": "swagger Example", + "kpis": [ + { + "type": "Forecast", + "enabled": true, + "id": null + }, + { + "type": "Budget", + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" + } + ], + "metric": "ActualCost", + "pivots": [ + { + "name": "ServiceName", + "type": "Dimension" + }, + { + "name": "MeterCategory", + "type": "Dimension" + }, + { + "name": "swaggerTagKey", + "type": "TagKey" + } + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + }, + "scope": "" + } + }, + { + "name": "swaggerExample2", + "type": "Microsoft.CostManagement/Views", + "eTag": "\"1d4ffa5a9c2430c\"", + "id": "/providers/Microsoft.CostManagement/views/swaggerExample2", + "properties": { + "accumulated": "true", + "chart": "GroupedColumn", + "displayName": "swagger Example 2", + "kpis": [ + { + "type": "Forecast", + "enabled": true, + "id": null + }, + { + "type": "Budget", + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" + } + ], + "metric": "ActualCost", + "pivots": [ + { + "name": "ServiceName", + "type": "Dimension" + }, + { + "name": "MeterCategory", + "type": "Dimension" + }, + { + "name": "swaggerTagKey", + "type": "TagKey" + } + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "LastMonthToDate" + }, + "scope": "" + } + } + ] + } + } + }, + "operationId": "Views_List", + "title": "PrivateViewList" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json new file mode 100644 index 000000000000..4be576dc3b08 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } + } + }, + { + "name": "11111111-1111-1111-111111111111", + "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2019-08-31T17:51:55.1808807Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } + } + } + ] + } + } + }, + "operationId": "Alerts_List", + "title": "ResourceGroupAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json new file mode 100644 index 000000000000..c9e9488458e1 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "$expand": "properties/data", + "$top": 5, + "api-version": "2025-03-01", + "resourceGroupName": "system.orlando", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "microsoft.storage/storageaccounts" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 1, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource Id", + "category": "ResourceId", + "data": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/authprod", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/systemevents", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/armadminprod", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/publicsystemportal" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 27, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "ResourceGroupDimensionsList-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json new file mode 100644 index 000000000000..4866a10c6f11 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "Cost", + "function": "Sum" + } + }, + "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" + }, + "includeActualCost": false, + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "55312978-ba1b-415c-9304-cfd9c43c0481", + "type": "Microsoft.CostManagement/query", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "CostStatus", + "type": "String" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": null, + "rows": [ + [ + 2.10333307059661, + 20180331, + "Forecast", + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Forecast_Usage", + "title": "ResourceGroupForecast" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json new file mode 100644 index 000000000000..1c14235bfd1e --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json @@ -0,0 +1,99 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "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" + }, + "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481" + }, + "responses": { + "200": { + "body": { + "name": "9af9459d-441d-4055-9ed0-83d4c4a363fb", + "type": "microsoft.costmanagement/Query", + "id": "subscriptions/55312978-ba1b-415c-9304-c4b9c43c0481/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": null, + "rows": [ + [ + 2.10333307059661, + "ScreenSharingTest-peer", + 20180417, + "USD" + ], + [ + 20.10333307059661, + "ScreenSharingTest-peer", + 20180418, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "ResourceGroupQuery-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json new file mode 100644 index 000000000000..0e65fea1de1d --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [ + { + "name": "ResourceType", + "type": "Dimension" + } + ] + }, + "timeframe": "TheLastMonth" + }, + "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "9af9459d-441d-4055-9ed0-83d4c4a363fb", + "type": "microsoft.costmanagement/Query", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceType", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": null, + "rows": [ + [ + 2.10333307059661, + "Microsoft.SqlServer", + 20180417, + "USD" + ], + [ + 20.10333307059661, + "Microsoft.Compute", + 20180418, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "ResourceGroupQueryGrouping-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json new file mode 100644 index 000000000000..bbc210560e64 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "alertId": "22222222-2222-2222-2222-222222222222", + "api-version": "2025-03-01", + "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "22222222-2222-2222-2222-222222222222", + "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", + "unit": "USD" + } + } + } + } + }, + "operationId": "Alerts_Get", + "title": "SingleResourceGroupAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json new file mode 100644 index 000000000000..3a9165dbe112 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "alertId": "22222222-2222-2222-2222-222222222222", + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "22222222-2222-2222-2222-222222222222", + "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", + "unit": "USD" + } + } + } + } + }, + "operationId": "Alerts_Get", + "title": "SingleSubscriptionAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json new file mode 100644 index 000000000000..b06bf6362604 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } + } + }, + { + "name": "11111111-1111-1111-111111111111", + "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2019-08-31T17:51:55.1808807Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } + } + } + ] + } + } + }, + "operationId": "Alerts_List", + "title": "SubscriptionAlerts" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json new file mode 100644 index 000000000000..575e2645edc5 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "$expand": "properties/data", + "$top": 5, + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource group", + "category": "ResourceGroup", + "data": [ + "dcrg", + "rg", + "offlinegalleryrg", + "system.orlando.adminkeyvault", + "system.orlando.keyvault" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 68, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + }, + { + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.CostManagement/dimensions", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "properties": { + "description": "Resource type", + "category": "ResourceType", + "data": [ + "microsoft.storage/storageaccounts", + "microsoft.web.admin/role", + "microsoft.sql/servers", + "microsoft.compute/virtualmachines" + ], + "filterEnabled": true, + "groupingEnabled": true, + "total": 4, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" + } + } + ] + } + }, + "204": {} + }, + "operationId": "Dimensions_List", + "title": "SubscriptionDimensionsList-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json new file mode 100644 index 000000000000..1daab3032782 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "Cost", + "function": "Sum" + } + }, + "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" + }, + "includeActualCost": false, + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "55312978-ba1b-415c-9304-cfd9c43c0481", + "type": "Microsoft.CostManagement/query", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "CostStatus", + "type": "String" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": null, + "rows": [ + [ + 2.10333307059661, + 20180331, + "Forecast", + "USD" + ], + [ + 218.68795741935486, + 20180331, + "Forecast", + "USD" + ], + [ + 0.14384913581657052, + 20180401, + "Forecast", + "USD" + ], + [ + 0.009865586851323632, + 20180429, + "Forecast", + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Forecast_Usage", + "title": "SubscriptionForecast" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json new file mode 100644 index 000000000000..25af6f98b58e --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json @@ -0,0 +1,110 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "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" + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "55312978-ba1b-415c-9304-cfd9c43c0481", + "type": "microsoft.costmanagement/Query", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": null, + "rows": [ + [ + 2.10333307059661, + "ScreenSharingTest-peer", + 20180331, + "USD" + ], + [ + 218.68795741935486, + "Ict_StratAndPlan_GoldSprova_Prod", + 20180331, + "USD" + ], + [ + 0.14384913581657052, + "ssbciotelement01", + 20180401, + "USD" + ], + [ + 0.009865586851323632, + "ict_stratandplan_goldsprova_prod", + 20180429, + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "SubscriptionQuery-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json new file mode 100644 index 000000000000..53bb60046ac9 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "type": "Usage", + "dataset": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "None", + "grouping": [ + { + "name": "ResourceGroup", + "type": "Dimension" + } + ] + }, + "timeframe": "TheLastMonth" + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "55312978-ba1b-415c-9304-cfd9c43c0481", + "type": "microsoft.costmanagement/Query", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", + "properties": { + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "Currency", + "type": "String" + } + ], + "nextLink": null, + "rows": [ + [ + 0.009865586851323632, + "Ict_StratAndPlan_GoldSprova_Prod_0", + "USD" + ], + [ + 218.68795741935486, + "Ict_StratAndPlan_GoldSprova_Prod_1", + "USD" + ], + [ + 2.10333307059661, + "ScreenSharingTest-peer1", + "USD" + ], + [ + 0.14384913581657052, + "Ssbciotelement01", + "USD" + ] + ] + } + } + }, + "204": {} + }, + "operationId": "Query_Usage", + "title": "SubscriptionQueryGrouping-Legacy" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json new file mode 100644 index 000000000000..d748273acf9f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "viewName": "swaggerExample" + }, + "responses": { + "200": { + "body": { + "name": "swaggerExample", + "type": "Microsoft.CostManagement/Views", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample", + "properties": { + "accumulated": "true", + "chart": "Table", + "displayName": "swagger Example", + "kpis": [ + { + "type": "Forecast", + "enabled": true, + "id": null + }, + { + "type": "Budget", + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" + } + ], + "metric": "ActualCost", + "pivots": [ + { + "name": "ServiceName", + "type": "Dimension" + }, + { + "name": "MeterCategory", + "type": "Dimension" + }, + { + "name": "swaggerTagKey", + "type": "TagKey" + } + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + }, + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + } + } + } + }, + "operationId": "Views_GetByScope", + "title": "ResourceGroupView" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json new file mode 100644 index 000000000000..ea6ea3f2b1ea --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json @@ -0,0 +1,188 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "parameters": { + "eTag": "\"1d4ff9fe66f1d10\"", + "properties": { + "accumulated": "true", + "chart": "Table", + "displayName": "swagger Example", + "kpis": [ + { + "type": "Forecast", + "enabled": true, + "id": null + }, + { + "type": "Budget", + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" + } + ], + "metric": "ActualCost", + "pivots": [ + { + "name": "ServiceName", + "type": "Dimension" + }, + { + "name": "MeterCategory", + "type": "Dimension" + }, + { + "name": "swaggerTagKey", + "type": "TagKey" + } + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + } + } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "viewName": "swaggerExample" + }, + "responses": { + "200": { + "body": { + "name": "swaggerExample", + "type": "Microsoft.CostManagement/Views", + "eTag": "\"1d4ffa5a9c2430c\"", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample", + "properties": { + "accumulated": "true", + "chart": "Table", + "displayName": "swagger Example", + "kpis": [ + { + "type": "Forecast", + "enabled": true, + "id": null + }, + { + "type": "Budget", + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" + } + ], + "metric": "ActualCost", + "pivots": [ + { + "name": "ServiceName", + "type": "Dimension" + }, + { + "name": "MeterCategory", + "type": "Dimension" + }, + { + "name": "swaggerTagKey", + "type": "TagKey" + } + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + }, + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + } + } + }, + "201": { + "body": { + "name": "swaggerExample", + "type": "Microsoft.CostManagement/Views", + "eTag": "\"1d4ffa5a9c2430c\"", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample", + "properties": { + "accumulated": "true", + "chart": "Table", + "displayName": "swagger Example", + "kpis": [ + { + "type": "Forecast", + "enabled": true, + "id": null + }, + { + "type": "Budget", + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" + } + ], + "metric": "ActualCost", + "pivots": [ + { + "name": "ServiceName", + "type": "Dimension" + }, + { + "name": "MeterCategory", + "type": "Dimension" + }, + { + "name": "swaggerTagKey", + "type": "TagKey" + } + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + }, + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + } + } + } + }, + "operationId": "Views_CreateOrUpdateByScope", + "title": "ResourceGroupCreateOrUpdateView" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json new file mode 100644 index 000000000000..78d35fa86276 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "viewName": "TestView" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Views_DeleteByScope", + "title": "ResourceGroupDeleteView" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-private-scheduledAction.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-private-scheduledAction.json new file mode 100644 index 000000000000..99377e428e1e --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-private-scheduledAction.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "checkNameAvailabilityRequest": { + "name": "testName", + "type": "Microsoft.CostManagement/ScheduledActions" + } + }, + "responses": { + "200": { + "body": { + "message": "A private scheduled action with name 'testName' is already present. Please specify a differnt name.", + "nameAvailable": false, + "reason": "AlreadyExists" + } + } + }, + "operationId": "ScheduledActions_CheckNameAvailability", + "title": "ScheduledActionCheckNameAvailability" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json new file mode 100644 index 000000000000..e7ac9402132d --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "checkNameAvailabilityRequest": { + "name": "testName", + "type": "Microsoft.CostManagement/ScheduledActions" + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + }, + "operationId": "ScheduledActions_CheckNameAvailabilityByScope", + "title": "ScheduledActionCheckNameAvailabilityByScope" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json new file mode 100644 index 000000000000..8114c5f633f3 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json @@ -0,0 +1,129 @@ +{ + "parameters": { + "name": "monthlyCostByResource", + "If-Match": "", + "api-version": "2025-03-01", + "scheduledAction": { + "kind": "Email", + "properties": { + "displayName": "Monthly Cost By Resource", + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "daysOfWeek": [ + "Monday" + ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "weeksOfMonth": [ + "First", + "Third" + ] + }, + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + } + } + }, + "responses": { + "200": { + "body": { + "name": "monthlyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", + "properties": { + "displayName": "Monthly Cost By Resource", + "notification": { + "regionalFormat": "fr", + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ], + "language": "fr" + }, + "schedule": { + "daysOfWeek": [ + "Monday" + ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "weeksOfMonth": [ + "First", + "Third" + ] + }, + "scope": "", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-19T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "monthlyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", + "properties": { + "displayName": "Monthly Cost By Resource", + "notification": { + "regionalFormat": "fr", + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ], + "language": "fr" + }, + "schedule": { + "daysOfWeek": [ + "Monday" + ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "weeksOfMonth": [ + "First", + "Third" + ] + }, + "scope": "", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ScheduledActions_CreateOrUpdate", + "title": "CreateOrUpdatePrivateScheduledAction" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json new file mode 100644 index 000000000000..cc530086a430 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "name": "monthlyCostByResource", + "If-Match": "", + "api-version": "2025-03-01", + "scheduledAction": { + "kind": "Email", + "properties": { + "displayName": "Monthly Cost By Resource", + "fileDestination": { + "fileFormats": [ + "Csv" + ] + }, + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "daysOfWeek": [ + "Monday" + ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "weeksOfMonth": [ + "First", + "Third" + ] + }, + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "monthlyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", + "properties": { + "displayName": "Monthly Cost By Resource", + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "daysOfWeek": [ + "Monday" + ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "weeksOfMonth": [ + "First", + "Third" + ] + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-19T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "monthlyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", + "properties": { + "displayName": "Monthly Cost By Resource", + "fileDestination": { + "fileFormats": [ + "Csv" + ] + }, + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "daysOfWeek": [ + "Monday" + ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "weeksOfMonth": [ + "First", + "Third" + ] + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ScheduledActions_CreateOrUpdateByScope", + "title": "CreateOrUpdateScheduledActionByScope" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-private.json new file mode 100644 index 000000000000..ae27f156a672 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-private.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "name": "monthlyCostByResource", + "api-version": "2025-03-01" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ScheduledActions_Delete", + "title": "PrivateScheduledActionDelete" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json new file mode 100644 index 000000000000..cfc21bab05cc --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "name": "monthlyCostByResource", + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ScheduledActions_DeleteByScope", + "title": "ScheduledActionDeleteByScope" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json new file mode 100644 index 000000000000..a9771c8a4d0f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "name": "monthlyCostByResource", + "api-version": "2025-03-01" + }, + "responses": { + "200": { + "body": { + "name": "monthlyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", + "properties": { + "displayName": "Monthly Cost By Resource", + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "daysOfWeek": [ + "Monday" + ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "weeksOfMonth": [ + "First", + "Third" + ] + }, + "scope": "", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ScheduledActions_Get", + "title": "PrivateScheduledAction" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json new file mode 100644 index 000000000000..98cc0703eec2 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "name": "monthlyCostByResource", + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "monthlyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", + "properties": { + "displayName": "Monthly Cost By Resource", + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "daysOfWeek": [ + "Monday" + ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "weeksOfMonth": [ + "First", + "Third" + ] + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ScheduledActions_GetByScope", + "title": "ScheduledActionByScope" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json new file mode 100644 index 000000000000..14ae1518d298 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json @@ -0,0 +1,108 @@ +{ + "parameters": { + "name": "dailyAnomalyByResource", + "If-Match": "", + "api-version": "2025-03-01", + "scheduledAction": { + "kind": "InsightAlert", + "properties": { + "displayName": "Daily anomaly by resource", + "notification": { + "subject": "Cost anomaly detected in the resource", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Daily", + "startDate": "2020-06-19T22:21:51.1287144Z" + }, + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "dailyAnomalyByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", + "kind": "InsightAlert", + "properties": { + "displayName": "Daily anomaly by resource", + "fileDestination": { + "fileFormats": [] + }, + "notification": { + "subject": "Cost anomaly detected in the resource", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Daily", + "startDate": "2020-06-19T22:21:51.1287144Z" + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-19T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "dailyAnomalyByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", + "kind": "InsightAlert", + "properties": { + "displayName": "Daily anomaly by resource", + "fileDestination": { + "fileFormats": [] + }, + "notification": { + "subject": "Cost anomaly detected in the resource", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Daily", + "startDate": "2020-06-19T22:21:51.1287144Z" + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "ScheduledActions_CreateOrUpdateByScope", + "title": "CreateOrUpdateInsightAlertScheduledActionByScope" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-private.json new file mode 100644 index 000000000000..54c6427997a8 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-private.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "name": "monthlyCostByResource", + "api-version": "2025-03-01" + }, + "responses": { + "200": {} + }, + "operationId": "ScheduledActions_Run", + "title": "ScheduledActionSendNow" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json new file mode 100644 index 000000000000..ed404c53931f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "name": "monthlyCostByResource", + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + }, + "operationId": "ScheduledActions_RunByScope", + "title": "ScheduledActionRunByScope" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json new file mode 100644 index 000000000000..64ae26035c66 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2025-03-01" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "monthlyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", + "properties": { + "displayName": "Monthly Cost By Resource", + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "daysOfWeek": [ + "Monday" + ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "weeksOfMonth": [ + "First", + "Third" + ] + }, + "scope": "", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + }, + { + "name": "dailyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d15\"", + "id": "providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "kind": "Email", + "properties": { + "displayName": "Daily Cost By Resource", + "notification": { + "subject": "Daily Cost By Resource", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Daily", + "hourOfDay": 12, + "startDate": "2020-06-19T22:21:51.1287144Z" + }, + "scope": "", + "status": "Disabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "ScheduledActions_List", + "title": "PrivateScheduledActionsList" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json new file mode 100644 index 000000000000..5b99975a733f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "$filter": "properties/viewId eq '/providers/Microsoft.CostManagement/views/swaggerExample'", + "api-version": "2025-03-01" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "monthlyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d10\"", + "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", + "properties": { + "displayName": "Monthly Cost By Resource", + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "daysOfWeek": [ + "Monday" + ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "weeksOfMonth": [ + "First", + "Third" + ] + }, + "scope": "", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + }, + { + "name": "dailyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "eTag": "\"1d4ff9fe66f1d15\"", + "id": "providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "kind": "Email", + "properties": { + "displayName": "Daily Cost By Resource", + "notification": { + "subject": "Daily Cost By Resource", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, + "schedule": { + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Daily", + "hourOfDay": 12, + "startDate": "2020-06-19T22:21:51.1287144Z" + }, + "scope": "", + "status": "Disabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "ScheduledActions_List", + "title": "PrivateScheduledActionsListFilterByViewId" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json new file mode 100644 index 000000000000..35ac097f04e6 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "type": "taginheritance", + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "Settings_DeleteByScope", + "title": "SettingDeleteByScope" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json new file mode 100644 index 000000000000..b087ab4a8793 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "type": "taginheritance", + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "taginheritance", + "type": "Microsoft.CostManagement/Settings", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", + "kind": "taginheritance", + "properties": { + "preferContainerTags": false + } + } + } + }, + "operationId": "Settings_GetByScope", + "title": "SettingByScope" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json new file mode 100644 index 000000000000..ee023536cb01 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "type": "taginheritance", + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "setting": { + "kind": "taginheritance", + "properties": { + "preferContainerTags": false + } + } + }, + "responses": { + "200": { + "body": { + "name": "taginheritance", + "type": "Microsoft.CostManagement/Settings", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", + "kind": "taginheritance", + "properties": { + "preferContainerTags": false + } + } + }, + "201": { + "body": { + "name": "taginheritance", + "type": "Microsoft.CostManagement/Settings", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", + "kind": "taginheritance", + "properties": { + "preferContainerTags": false + } + } + } + }, + "operationId": "Settings_CreateOrUpdateByScope", + "title": "CreateOrUpdateSettingByScope" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json new file mode 100644 index 000000000000..980ca551b215 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "taginheritance", + "type": "Microsoft.CostManagement/Settings", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", + "kind": "taginheritance", + "properties": { + "preferContainerTags": false + } + } + ] + } + } + }, + "operationId": "Settings_List", + "title": "SettingsList" +} \ No newline at end of file diff --git a/specification/cost-management/CostManagement.Management/main.tsp b/specification/cost-management/CostManagement.Management/main.tsp new file mode 100644 index 000000000000..c619b4e436f7 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/main.tsp @@ -0,0 +1,55 @@ +/** + * PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS + * Generated by package: @autorest/openapi-to-typespec + * Parameters used: + * isFullCompatible: true + * guessResourceKey: false + * Version: 0.11.5 + * Date: 2025-08-29T08:07:29.469Z + */ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; +import "./back-compatible.tsp"; +import "./CostAllocationRuleDefinition.tsp"; +import "./Budget.tsp"; +import "./Export.tsp"; +import "./CostDetailsOperationResults.tsp"; +import "./GenerateDetailedCostReportOperationResult.tsp"; +import "./GenerateDetailedCostReportOperationStatuses.tsp"; +import "./View.tsp"; +import "./Alert.tsp"; +import "./ScheduledAction.tsp"; +import "./Setting.tsp"; +import "./routes.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager.Foundations; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; +/** + * CostManagement management client provides access to CostManagement resources for Azure Enterprise Subscriptions. + */ +@armProviderNamespace +@service(#{ title: "CostManagementClient" }) +@versioned(Versions) +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) +namespace Microsoft.CostManagement; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2025-03-01 API version. + */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_1) + v2025_03_01: "2025-03-01", +} + +interface Operations extends Azure.ResourceManager.Operations {} diff --git a/specification/cost-management/CostManagement.Management/models.tsp b/specification/cost-management/CostManagement.Management/models.tsp new file mode 100644 index 000000000000..012e8c53b6e8 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/models.tsp @@ -0,0 +1,4617 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.Core; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +namespace Microsoft.CostManagement; + +/** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" + */ +union Origin { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + user: "user", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + system: "system", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `user,system`: "user,system", +} + +/** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + */ +union ActionType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Internal: "Internal", +} + +/** + * Category of resource to use for allocation. + */ +union CostAllocationResourceType { + string, + + /** + * Indicates an Azure dimension such as a subscription id or resource group name is being used for allocation. + */ + Dimension: "Dimension", + + /** + * Allocates cost based on Azure Tag key value pairs. + */ + Tag: "Tag", +} + +/** + * Method to use for allocating cost. FixedProportion indicates that cost will be split based on specified percentage values. + */ +union CostAllocationPolicyType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + FixedProportion: "FixedProportion", +} + +/** + * Current status of the rule. + */ +union RuleStatus { + string, + + /** + * Rule is saved but not used to allocate costs. + */ + NotActive: "NotActive", + + /** + * Rule is saved and impacting cost allocation. + */ + Active: "Active", + + /** + * Rule is saved and cost allocation is being updated. Readonly value that cannot be submitted in a put request. + */ + Processing: "Processing", +} + +/** + * The reason this name is not available. + */ +union Reason { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Invalid: "Invalid", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AlreadyExists: "AlreadyExists", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Valid: "Valid", +} + +/** + * The number of days used to look back. + */ +union LookBackPeriod { + string, + + /** + * 7 days used to look back. + */ + Last7Days: "Last7Days", + + /** + * 30 days used to look back. + */ + Last30Days: "Last30Days", + + /** + * 60 days used to look back. + */ + Last60Days: "Last60Days", +} + +/** + * Grain which corresponds to value. + */ +union Grain { + string, + + /** + * Hourly grain corresponds to value per hour. + */ + Hourly: "Hourly", + + /** + * Hourly grain corresponds to value per day. + */ + Daily: "Daily", + + /** + * Hourly grain corresponds to value per month. + */ + Monthly: "Monthly", +} + +/** + * Grain which corresponds to value. + */ +union Term { + string, + + /** + * Benefit term is 1 year. + */ + P1Y: "P1Y", + + /** + * Benefit term is 3 years. + */ + P3Y: "P3Y", +} + +/** + * Kind of the recommendation scope. + */ +union Scope { + string, + + /** + * Single scope recommendation. + */ + Single: "Single", + + /** + * Shared scope recommendation. + */ + Shared: "Shared", +} + +/** + * Kind/type of the benefit. + */ +union BenefitKind { + string, + + /** + * Benefit is IncludedQuantity. + */ + IncludedQuantity: "IncludedQuantity", + + /** + * Benefit is Reservation. + */ + Reservation: "Reservation", + + /** + * Benefit is SavingsPlan. + */ + SavingsPlan: "SavingsPlan", +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +union GrainParameter { + string, + + /** + * Hourly grain corresponds to value per hour. + */ + Hourly: "Hourly", + + /** + * Hourly grain corresponds to value per day. + */ + Daily: "Daily", + + /** + * Hourly grain corresponds to value per month. + */ + Monthly: "Monthly", +} + +/** + * Enum representing the status of an async operation. + */ +union OperationStatusType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Running: "Running", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Complete: "Complete", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Completed: "Completed", +} + +/** + * The CSV file from the reportUrl and secondaryReportUrl blob link will consist of the following columns of benefit utilization data. UtilizedPercentage will be 0 for savings plans reports and non data bricks reservations. Utilization percentages will be 0 for data bricks reservations. + */ +union BenefitUtilizationSummaryReportSchema { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Kind: "Kind", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AvgUtilizationPercentage: "AvgUtilizationPercentage", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + BenefitOrderId: "BenefitOrderId", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + BenefitId: "BenefitId", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + BenefitType: "BenefitType", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MaxUtilizationPercentage: "MaxUtilizationPercentage", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MinUtilizationPercentage: "MinUtilizationPercentage", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UsageDate: "UsageDate", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UtilizedPercentage: "UtilizedPercentage", +} + +/** + * The category of the budget. + * - 'Cost' defines a Budget. + * - 'ReservationUtilization' defines a Reservation Utilization Alert Rule. + */ +union CategoryType { + string, + + /** + * A Budget that evaluates monetary cost of Azure resources against an amount, and alerts based on a configured notification threshold. + */ + Cost: "Cost", + + /** + * An Alert Rule that evaluates the utilization percentage of Azure Reservations, and alerts based on a configured notification threshold. + */ + ReservationUtilization: "ReservationUtilization", +} + +/** + * The time covered by a budget. Tracking of the amount will be reset based on the time grain. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + * + * Supported timeGrainTypes for **CategoryType: Cost** + * + * - Monthly + * - Quarterly + * - Annually + * - BillingMonth* + * - BillingQuarter* + * - BillingAnnual* + * + * *only supported for Web Direct customers. + * + * Supported timeGrainTypes for **CategoryType: ReservationUtilization** + * - Last7Days + * - Last30Days + * + * Required for CategoryType(s): Cost, ReservationUtilization. + */ +union TimeGrainType { + string, + + /** + * The budget will track costs in the current calendar month against the amount. + * + * Supported for CategoryType: Cost only. + */ + Monthly: "Monthly", + + /** + * The budget will track costs in the current calendar quarter against the amount. + * + * Supported for CategoryType: Cost only. + */ + Quarterly: "Quarterly", + + /** + * The budget will track costs in the current calendar year against the amount. + * + * Supported for CategoryType: Cost only. + */ + Annually: "Annually", + + /** + * The budget will track costs in the current billing month against the amount. + * + * Supported for CategoryType: Cost and Web Direct customers only. + */ + BillingMonth: "BillingMonth", + + /** + * The budget will track costs in the current billing quarter against the amount. + * + * Supported for CategoryType: Cost and Web Direct customers only. + */ + BillingQuarter: "BillingQuarter", + + /** + * The budget will track costs in the current billing year against the amount. + * + * Supported for CategoryType: Cost and Web Direct customers only. + */ + BillingAnnual: "BillingAnnual", + + /** + * The Reservation Utilization Alert Rule will evaluate reservations based on their 7-Day utilization percentage. + * + * Supported for CategoryType: ReservationUtilization only. + */ + Last7Days: "Last7Days", + + /** + * The Reservation Utilization Alert Rule will evaluate reservations based on their 30-Day utilization percentage. + * + * Supported for CategoryType: ReservationUtilization only. + */ + Last30Days: "Last30Days", +} + +/** + * The operator to use for comparison. + */ +union BudgetOperatorType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + In: "In", +} + +/** + * The comparison operator. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + * + * Supported operators for **CategoryType: Cost** + * - GreaterThan + * - GreaterThanOrEqualTo + * + * Supported operators for **CategoryType: ReservationUtilization** + * - LessThan + */ +union BudgetNotificationOperatorType { + string, + + /** + * Notification will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future. + * + * Supported for CategoryType(s): Cost. + */ + EqualTo: "EqualTo", + + /** + * Notification will be triggered if the evaluated cost is greater than the threshold value. Note: This is the recommended OperatorType while configuring Budget Alert. + * + * Supported for CategoryType(s): Cost. + */ + GreaterThan: "GreaterThan", + + /** + * Notification will be triggered if the evaluated cost is greater than or equal to the threshold value. + * + * Supported for CategoryType(s): Cost. + */ + GreaterThanOrEqualTo: "GreaterThanOrEqualTo", + + /** + * Notification will be triggered if any Reservations in the scope of the Reservation Utilization Alert Rule have a utilization less than the threshold percentage. + * + * Supported for CategoryType(s): ReservationUtilization. + */ + LessThan: "LessThan", +} + +/** + * Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days). + * + * Supported for CategoryType(s): ReservationUtilization. + */ +union Frequency { + string, + + /** + * After the threshold breaches and an Alert is fired, no further alerts will be sent until the next calendar day. + */ + Daily: "Daily", + + /** + * After the threshold breaches and an Alert is fired, no further alerts will be sent for 7 calendar days. + */ + Weekly: "Weekly", + + /** + * After the threshold breaches and an Alert is fired, no further alerts will be sent for 30 calendar days. + */ + Monthly: "Monthly", +} + +/** + * The type of threshold. + * + * Supported for CategoryType(s): Cost. + */ +union ThresholdType { + string, + + /** + * Actual costs budget alerts notify when the actual accrued cost exceeds the allocated budget. + */ + Actual: "Actual", + + /** + * Forecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions. + */ + Forecasted: "Forecasted", +} + +/** + * Language in which the recipient will receive the notification, + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + */ +union CultureCode { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `en-us`: "en-us", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `ja-jp`: "ja-jp", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `zh-cn`: "zh-cn", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `de-de`: "de-de", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `es-es`: "es-es", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `fr-fr`: "fr-fr", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `it-it`: "it-it", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `ko-kr`: "ko-kr", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `pt-br`: "pt-br", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `ru-ru`: "ru-ru", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `zh-tw`: "zh-tw", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `cs-cz`: "cs-cz", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `pl-pl`: "pl-pl", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `tr-tr`: "tr-tr", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `da-dk`: "da-dk", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `en-gb`: "en-gb", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `hu-hu`: "hu-hu", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `nb-no`: "nb-no", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `nl-nl`: "nl-nl", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `pt-pt`: "pt-pt", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `sv-se`: "sv-se", +} + +/** + * The status of the export's schedule. If 'Inactive', the export's schedule is paused. To enable export set the status to be Active and then make a PUT request. + */ +union StatusType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Inactive: "Inactive", +} + +/** + * The schedule recurrence. + */ +union RecurrenceType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Daily: "Daily", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Weekly: "Weekly", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Monthly: "Monthly", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Annually: "Annually", +} + +/** + * The format of the export being delivered. + */ +union FormatType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Csv: "Csv", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Parquet: "Parquet", +} + +/** + * The export delivery destination type. Currently only 'AzureBlob' is supported. + */ +union DestinationType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AzureBlob: "AzureBlob", +} + +/** + * The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + */ +union ExportType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Usage: "Usage", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ActualCost: "ActualCost", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AmortizedCost: "AmortizedCost", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + FocusCost: "FocusCost", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PriceSheet: "PriceSheet", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ReservationTransactions: "ReservationTransactions", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ReservationRecommendations: "ReservationRecommendations", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ReservationDetails: "ReservationDetails", +} + +/** + * The time frame for pulling data for the export. If custom, then a specific time period must be provided. + */ +union TimeframeType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MonthToDate: "MonthToDate", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + BillingMonthToDate: "BillingMonthToDate", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + TheLastMonth: "TheLastMonth", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + TheLastBillingMonth: "TheLastBillingMonth", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + WeekToDate: "WeekToDate", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Custom: "Custom", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + TheCurrentMonth: "TheCurrentMonth", +} + +/** + * The granularity of rows in the export. Currently 'Daily' is supported for most cases. + */ +union GranularityType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Daily: "Daily", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Monthly: "Monthly", +} + +/** + * The name of the filter. This is currently only supported for Export Definition type of ReservationRecommendations. Supported names are ['ReservationScope', 'LookBackPeriod', 'ResourceType'] + */ +union FilterItemNames { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ReservationScope: "ReservationScope", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ResourceType: "ResourceType", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + LookBackPeriod: "LookBackPeriod", +} + +/** + * The type of the export run. + */ +union ExecutionType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + OnDemand: "OnDemand", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Scheduled: "Scheduled", +} + +/** + * The last known status of the export run. + */ +union ExecutionStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Queued: "Queued", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + InProgress: "InProgress", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Completed: "Completed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Timeout: "Timeout", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NewDataNotAvailable: "NewDataNotAvailable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + DataNotAvailable: "DataNotAvailable", +} + +/** + * Allow customers to select overwrite data(OverwritePreviousReport) for exports. This setting will enable overwrite data for the same month in customer storage account. By default set to CreateNewReport. + */ +union DataOverwriteBehaviorType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + OverwritePreviousReport: "OverwritePreviousReport", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + CreateNewReport: "CreateNewReport", +} + +/** + * Allow customers to select compress data for exports. This setting will enable destination file compression scheme at runtime. By default set to None. Gzip is for csv and snappy for parquet. + */ +union CompressionModeType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + gzip: "gzip", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + snappy: "snappy", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + none: "none", +} + +/** + * The type of the detailed report. By default ActualCost is provided + */ +union CostDetailsMetricType { + string, + + /** + * Actual cost data. + */ + ActualCostCostDetailsMetricType: "ActualCost", + + /** + * Amortized cost data. + */ + AmortizedCostCostDetailsMetricType: "AmortizedCost", +} + +/** + * The status of the cost details operation + */ +union CostDetailsStatusType { + string, + + /** + * Operation is Completed. + */ + CompletedCostDetailsStatusType: "Completed", + + /** + * Operation is Completed and no cost data found. + */ + NoDataFoundCostDetailsStatusType: "NoDataFound", + + /** + * Operation Failed. + */ + FailedCostDetailsStatusType: "Failed", +} + +/** + * The data format of the report + */ +union CostDetailsDataFormat { + string, + + /** + * Csv data format. + */ + CsvCostDetailsDataFormat: "Csv", +} + +/** + * The type of the detailed report. By default ActualCost is provided + */ +union GenerateDetailedCostReportMetricType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ActualCost: "ActualCost", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AmortizedCost: "AmortizedCost", +} + +/** + * The status of the long running operation. + */ +union ReportOperationStatusType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + InProgress: "InProgress", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Completed: "Completed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Queued: "Queued", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NoDataFound: "NoDataFound", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ReadyToDownload: "ReadyToDownload", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + TimedOut: "TimedOut", +} + +/** + * The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + */ +union ReportType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Usage: "Usage", +} + +/** + * The time frame for pulling data for the report. If custom, then a specific time period must be provided. + */ +union ReportTimeframeType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + WeekToDate: "WeekToDate", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MonthToDate: "MonthToDate", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + YearToDate: "YearToDate", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Custom: "Custom", +} + +/** + * The granularity of rows in the report. + */ +union ReportGranularityType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Daily: "Daily", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Monthly: "Monthly", +} + +/** + * The name of the aggregation function to use. + */ +union FunctionType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Sum: "Sum", +} + +/** + * The type of the column in the report. + */ +union QueryColumnType { + string, + + /** + * The tag associated with the cost data. + */ + TagKey: "TagKey", + + /** + * The dimension of cost data. + */ + Dimension: "Dimension", +} + +/** + * Direction of sort. + */ +union ReportConfigSortingType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Ascending: "Ascending", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Descending: "Descending", +} + +/** + * The operator to use for comparison. + */ +union OperatorType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + In: "In", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Contains: "Contains", +} + +/** + * Chart type of the main view in Cost Analysis. Required. + */ +union ChartType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Area: "Area", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Line: "Line", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + StackedColumn: "StackedColumn", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + GroupedColumn: "GroupedColumn", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Table: "Table", +} + +/** + * Show costs accumulated over time. + */ +union AccumulatedType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `true`: "true", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `false`: "false", +} + +/** + * Metric to use when displaying costs. + */ +union MetricType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ActualCost: "ActualCost", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AmortizedCost: "AmortizedCost", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AHUB: "AHUB", +} + +/** + * KPI type (Forecast, Budget). + */ +union KpiTypeType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Forecast: "Forecast", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Budget: "Budget", +} + +/** + * Data type to show in view. + */ +union PivotTypeType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Dimension: "Dimension", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + TagKey: "TagKey", +} + +/** + * type of alert + */ +union AlertType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Budget: "Budget", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Invoice: "Invoice", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Credit: "Credit", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Quota: "Quota", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + General: "General", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + xCloud: "xCloud", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + BudgetForecast: "BudgetForecast", +} + +/** + * Alert category + */ +union AlertCategory { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Cost: "Cost", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Usage: "Usage", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Billing: "Billing", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + System: "System", +} + +/** + * Criteria that triggered alert + */ +union AlertCriteria { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + CostThresholdExceeded: "CostThresholdExceeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UsageThresholdExceeded: "UsageThresholdExceeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + CreditThresholdApproaching: "CreditThresholdApproaching", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + CreditThresholdReached: "CreditThresholdReached", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + QuotaThresholdApproaching: "QuotaThresholdApproaching", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + QuotaThresholdReached: "QuotaThresholdReached", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MultiCurrency: "MultiCurrency", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ForecastCostThresholdExceeded: "ForecastCostThresholdExceeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ForecastUsageThresholdExceeded: "ForecastUsageThresholdExceeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + InvoiceDueDateApproaching: "InvoiceDueDateApproaching", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + InvoiceDueDateReached: "InvoiceDueDateReached", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + CrossCloudNewDataAvailable: "CrossCloudNewDataAvailable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + CrossCloudCollectionError: "CrossCloudCollectionError", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + GeneralThresholdError: "GeneralThresholdError", +} + +/** + * Source of alert + */ +union AlertSource { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Preset: "Preset", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + User: "User", +} + +/** + * Type of timegrain cadence + */ +union AlertTimeGrainType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + None: "None", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Monthly: "Monthly", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Quarterly: "Quarterly", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Annually: "Annually", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + BillingMonth: "BillingMonth", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + BillingQuarter: "BillingQuarter", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + BillingAnnual: "BillingAnnual", +} + +/** + * operator used to compare currentSpend with amount + */ +union AlertOperator { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + None: "None", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + EqualTo: "EqualTo", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + GreaterThan: "GreaterThan", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + GreaterThanOrEqualTo: "GreaterThanOrEqualTo", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + LessThan: "LessThan", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + LessThanOrEqualTo: "LessThanOrEqualTo", +} + +/** + * alert status + */ +union AlertStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + None: "None", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Overridden: "Overridden", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Resolved: "Resolved", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Dismissed: "Dismissed", +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +union ExternalCloudProviderType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + externalSubscriptions: "externalSubscriptions", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + externalBillingAccounts: "externalBillingAccounts", +} + +/** + * The type of the forecast. + */ +union ForecastType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Usage: "Usage", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ActualCost: "ActualCost", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AmortizedCost: "AmortizedCost", +} + +/** + * The time frame for pulling data for the forecast. + */ +union ForecastTimeframe { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Custom: "Custom", +} + +/** + * The name of the column to aggregate. + */ +union FunctionName { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PreTaxCostUSD: "PreTaxCostUSD", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Cost: "Cost", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + CostUSD: "CostUSD", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + PreTaxCost: "PreTaxCost", +} + +/** + * The operator to use for comparison. + */ +union ForecastOperatorType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + In: "In", +} + +/** + * The operator to use for comparison. + */ +union QueryOperatorType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + In: "In", +} + +/** + * The CSV file from the reportUrl blob link consists of reservation usage data with the following schema at daily granularity + */ +union ReservationReportSchema { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + InstanceFlexibilityGroup: "InstanceFlexibilityGroup", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + InstanceFlexibilityRatio: "InstanceFlexibilityRatio", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + InstanceId: "InstanceId", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Kind: "Kind", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ReservationId: "ReservationId", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ReservationOrderId: "ReservationOrderId", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ReservedHours: "ReservedHours", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SkuName: "SkuName", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + TotalReservedQuantity: "TotalReservedQuantity", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UsageDate: "UsageDate", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UsedHours: "UsedHours", +} + +/** + * Destination of the view data. Currently only CSV format is supported. + */ +union FileFormat { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Csv: "Csv", +} + +/** + * Frequency of the schedule. + */ +union ScheduleFrequency { + string, + + /** + * Cost analysis data will be emailed every day. + */ + Daily: "Daily", + + /** + * Cost analysis data will be emailed every week. + */ + Weekly: "Weekly", + + /** + * Cost analysis data will be emailed every month. + */ + Monthly: "Monthly", +} + +/** + * Days of Week. + */ +union DaysOfWeek { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Monday: "Monday", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Tuesday: "Tuesday", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Wednesday: "Wednesday", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Thursday: "Thursday", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Friday: "Friday", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Saturday: "Saturday", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Sunday: "Sunday", +} + +/** + * Weeks of month. + */ +union WeeksOfMonth { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + First: "First", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Second: "Second", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Third: "Third", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Fourth: "Fourth", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Last: "Last", +} + +/** + * Status of the scheduled action. + */ +union ScheduledActionStatus { + string, + + /** + * Scheduled action is saved but will not be run. + */ + Disabled: "Disabled", + + /** + * Scheduled action is saved and will be run. + */ + Enabled: "Enabled", + + /** + * Scheduled action is expired. + */ + Expired: "Expired", +} + +/** + * Kind of the scheduled action. + */ +union ScheduledActionKind { + string, + + /** + * Cost analysis data will be emailed. + */ + Email: "Email", + + /** + * Cost anomaly information will be emailed. Available only on subscription scope at daily frequency. If no anomaly is detected on the resource, an email won't be sent. + */ + InsightAlert: "InsightAlert", +} + +/** + * The type of identity that created the resource. + */ +union CreatedByType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + User: "User", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Application: "Application", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + ManagedIdentity: "ManagedIdentity", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Key: "Key", +} + +/** + * The reason why the given name is not available. + */ +union CheckNameAvailabilityReason { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Invalid: "Invalid", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AlreadyExists: "AlreadyExists", +} + +/** + * Specifies the kind of settings. + */ +union SettingsKind { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + taginheritance: "taginheritance", +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +union SettingType { + string, + + /** + * This setting applies billing profile, invoice section, subscription and resource group tags to current month's usage data of child resources. + */ + taginheritance: "taginheritance", +} + +/** + * A Cost management REST API operation. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model CostManagementOperation + extends Azure.ResourceManager.CommonTypes.Operation { + /** + * Operation id: {provider}/{resource}/{operation}. + */ + @visibility(Lifecycle.Read) + id?: string; +} + +/** + * Localized display information for this particular operation. + */ +model OperationDisplay { + /** + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + */ + @visibility(Lifecycle.Read) + provider?: string; + + /** + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + */ + @visibility(Lifecycle.Read) + resource?: string; + + /** + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + */ + @visibility(Lifecycle.Read) + operation?: string; + + /** + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + */ + @visibility(Lifecycle.Read) + description?: string; +} + +/** + * Result of listing cost allocation rules. It contains a list of available rules in the billing account or enterprise enrollment provided. + */ +model CostAllocationRuleList is Azure.Core.Page; + +/** + * The properties of a cost allocation rule + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model CostAllocationRuleProperties { + /** + * Description of a cost allocation rule. + */ + description?: string; + + /** + * Resource information for the cost allocation rule + */ + details: CostAllocationRuleDetails; + + /** + * Status of the rule + */ + status: RuleStatus; + + /** + * Time at which the rule was created. Rules that change cost for the same resource are applied in order of creation. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdDate?: utcDateTime; + + /** + * Time at which the rule was last updated. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + updatedDate?: utcDateTime; +} + +/** + * Resource details of the cost allocation rule + */ +model CostAllocationRuleDetails { + /** + * Source resources for cost allocation. At this time, this list can contain no more than one element. + */ + @OpenAPI.extension("x-ms-identifiers", #["name"]) + sourceResources?: SourceCostAllocationResource[]; + + /** + * Target resources for cost allocation. At this time, this list can contain no more than one element. + */ + @OpenAPI.extension("x-ms-identifiers", #["name"]) + targetResources?: TargetCostAllocationResource[]; +} + +/** + * Source resources for cost allocation + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model SourceCostAllocationResource extends CostAllocationResource { + /** + * Source Resources for cost allocation. This list cannot contain more than 25 values. + */ + @OpenAPI.extension("x-ms-identifiers", #["name"]) + values: string[]; +} + +/** + * Common values for resources for cost allocation + */ +model CostAllocationResource { + /** + * Type of resources contained in this cost allocation rule + */ + resourceType: CostAllocationResourceType; + + /** + * If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag + */ + name: string; +} + +/** + * Target resources for cost allocation. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model TargetCostAllocationResource extends CostAllocationResource { + /** + * Target resources for cost allocation. This list cannot contain more than 25 values. + */ + @OpenAPI.extension("x-ms-identifiers", #["name"]) + values: CostAllocationProportion[]; + + /** + * Method of cost allocation for the rule + */ + policyType: CostAllocationPolicyType; +} + +/** + * Target resources and allocation + */ +model CostAllocationProportion { + /** + * Target resource for cost allocation + */ + name: string; + + /** + * Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00. + */ + percentage: float32; +} + +/** + * The cost allocation rule check name availability request + */ +model CostAllocationRuleCheckNameAvailabilityRequest { + /** + * Rule name + */ + name?: string; + + /** + * Resource type. This is expected to be Microsoft.CostManagement/costAllocationRules + */ + type?: string; +} + +/** + * The cost allocation rule check name availability response + */ +model CostAllocationRuleCheckNameAvailabilityResponse { + /** + * Whether this rule name is available + */ + nameAvailable?: boolean; + + /** + * The reason this name is not available + */ + reason?: Reason; + + /** + * Error message if the name is not available + */ + message?: string; +} + +/** + * benefit plan recommendation details. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model BenefitRecommendationModel extends BenefitResource { + /** + * The properties of the benefit recommendations. + */ + properties?: BenefitRecommendationProperties; +} + +/** + * The properties of the benefit recommendations. + */ +@discriminator("scope") +model BenefitRecommendationProperties { + /** + * The first usage date used for looking back for computing the recommendations. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + firstConsumptionDate?: utcDateTime; + + /** + * The last usage date used for looking back for computing the recommendations. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + lastConsumptionDate?: utcDateTime; + + /** + * The number of days of usage evaluated for computing the recommendations. + */ + lookBackPeriod?: LookBackPeriod; + + /** + * The total hours for which the cost is covered. Its equal to number of records in a property 'properties/usage/charges'. + */ + @visibility(Lifecycle.Read) + totalHours?: int32; + + /** + * On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations. + */ + usage?: RecommendationUsageDetails; + + /** + * ARM SKU name. 'Compute_Savings_Plan' for SavingsPlan. + */ + @visibility(Lifecycle.Read) + armSkuName?: string; + + /** + * Term period of the benefit. For example, P1Y or P3Y. + */ + term?: Term; + + /** + * Grain of the proposed commitment amount. Supported values: 'Hourly' + */ + commitmentGranularity?: Grain; + + /** + * An ISO 4217 currency code identifier for the costs and savings amounts. + */ + @visibility(Lifecycle.Read) + currencyCode?: string; + + /** + * The current cost without benefit, corresponds to 'totalHours' in the look-back period. + */ + @visibility(Lifecycle.Read) + costWithoutBenefit?: decimal; + + /** + * The details of the proposed recommendation. + */ + recommendationDetails?: AllSavingsBenefitDetails; + + /** + * The list of all benefit recommendations with the recommendation details. + */ + @visibility(Lifecycle.Read) + allRecommendationDetails?: AllSavingsList; + + /** + * Benefit scope. For example, Single or Shared. + */ + scope: Scope; +} + +/** + * On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations. + */ +model RecommendationUsageDetails { + /** + * The grain of the usage. Supported values: 'Hourly' + */ + usageGrain?: Grain; + + /** + * On-demand charges for each hour between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations. + */ + @visibility(Lifecycle.Read) + charges?: decimal[]; +} + +/** + * Benefit recommendation details. + */ +model AllSavingsBenefitDetails { + /** + * The difference between total cost and benefit cost for the 'totalHours' in the look-back period. + */ + @visibility(Lifecycle.Read) + overageCost?: decimal; + + /** + * The estimated cost with benefit for the 'totalHours' in the look-back period. It's equal to (commitmentAmount * totalHours) + */ + @visibility(Lifecycle.Read) + benefitCost?: decimal; + + /** + * Total cost, which is sum of benefit cost and overage cost. + */ + @visibility(Lifecycle.Read) + totalCost?: decimal; + + /** + * The amount saved for the 'totalHours' in the look-back period, by purchasing the recommended quantity of the benefit. + */ + @visibility(Lifecycle.Read) + savingsAmount?: decimal; + + /** + * The savings in percentage for the 'totalHours' in the look-back period, by purchasing the recommended quantity of benefit. + */ + @visibility(Lifecycle.Read) + savingsPercentage?: decimal; + + /** + * Estimated benefit coverage percentage for the 'totalHours' in the look-back period, with this commitment. + */ + @visibility(Lifecycle.Read) + coveragePercentage?: decimal; + + /** + * The commitment amount at the commitmentGranularity. + */ + @visibility(Lifecycle.Read) + commitmentAmount?: decimal; + + /** + * Estimated average utilization percentage for the 'totalHours' in the look-back period, with this commitment. + */ + @visibility(Lifecycle.Read) + averageUtilizationPercentage?: decimal; + + /** + * Estimated unused portion of the 'benefitCost'. + */ + @visibility(Lifecycle.Read) + wastageCost?: decimal; +} + +/** + * The list of all benefit recommendations with the recommendation details. + */ +model AllSavingsList { + /** + * The list of benefit recommendations with the recommendation details.. + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + value?: AllSavingsBenefitDetails[]; + + /** + * The link (URL) to the next page of results. + */ + @visibility(Lifecycle.Read) + nextLink?: url; +} + +/** + * The benefit resource model definition. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model BenefitResource extends Azure.ResourceManager.CommonTypes.Resource { + /** + * Reservation or SavingsPlan. + */ + kind?: BenefitKind; +} + +/** + * Benefit utilization summary resource. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +@discriminator("kind") +model BenefitUtilizationSummary + extends Azure.ResourceManager.CommonTypes.Resource { + /** + * Supported values: 'SavingsPlan'. + */ + kind: BenefitKind; +} + +/** + * Properties of an async benefit utilization summaries request. + */ +model BenefitUtilizationSummariesRequest { + /** + * Billing account the benefit utilization summaries report is for. Required for billing account and billing profile scopes. Not supported for any benefit scopes. + */ + billingAccountId?: string; + + /** + * Billing profile id the benefit utilization summaries report is for. Required for billing profile scope. Not supported for billing account or any benefit scopes. + */ + billingProfileId?: string; + + /** + * Benefit order id the benefit utilization summaries report is for. Required for benefit order and benefit id scopes. Not supported for any billing scopes. + */ + benefitOrderId?: string; + + /** + * Benefit id the benefit utilization summaries report is for. Required for benefit id scope. Not supported for benefit order or any billing scopes. + */ + benefitId?: string; + + /** + * The grain the summaries data is served at in the report. Accepted values are 'Daily' or 'Monthly'. + */ + grain: Grain; + + /** + * The start date of the summaries data that will be served in the report. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startDate: utcDateTime; + + /** + * The end date of the summaries data that will be served in the report. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endDate: utcDateTime; + + /** + * The type of benefit data requested. Required for billing account and billing profile scopes. Implied and not to be passed at benefit scopes. Supported values are Reservation and SavingsPlan + */ + kind?: BenefitKind; +} + +/** + * Status of a benefit utilization summaries report. Provides Async Benefit Utilization Summaries Request input, status, and report sas url. + */ +model BenefitUtilizationSummariesOperationStatus { + /** + * Input given to create the benefit utilization summaries report. + */ + input?: BenefitUtilizationSummariesRequest; + + /** + * The status of the creation of the benefit utilization summaries report. + */ + status?: OperationStatusType; + + /** + * Contains sas url to the async benefit utilization summaries report and a date that the url is valid until. These values will be empty if the report is in a Running or Failed state + */ + properties?: AsyncOperationStatusProperties; +} + +/** + * Object representing the report url and valid until date of the async report generated. + */ +model AsyncOperationStatusProperties { + /** + * Sas url to the async benefit utilization summaries report. Will be empty if the report is in Running or Failed state. + */ + reportUrl?: BenefitUtilizationSummaryReportSchema; + + /** + * Sas url to async benefit utilization summaries report in secondary storage in case of primary outage. Will be empty if the report is in Running or Failed state. + */ + secondaryReportUrl?: BenefitUtilizationSummaryReportSchema; + + /** + * The date that the sas url provided in reportUrl expires. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + validUntil?: utcDateTime; +} + +/** + * The properties of the budget. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model BudgetProperties { + /** + * The category of the budget. + * - 'Cost' defines a Budget. + * - 'ReservationUtilization' defines a Reservation Utilization Alert Rule. + */ + category: CategoryType; + + /** + * The total amount of cost to track with the budget. + * + * Supported for CategoryType(s): Cost. + * + * Required for CategoryType(s): Cost. + */ + amount?: float32; + + /** + * The time covered by a budget. Tracking of the amount will be reset based on the time grain. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + * + * Supported timeGrainTypes for **CategoryType: Cost** + * + * - Monthly + * - Quarterly + * - Annually + * - BillingMonth* + * - BillingQuarter* + * - BillingAnnual* + * + * *only supported for Web Direct customers. + * + * Supported timeGrainTypes for **CategoryType: ReservationUtilization** + * - Last7Days + * - Last30Days + * + * Required for CategoryType(s): Cost, ReservationUtilization. + */ + timeGrain: TimeGrainType; + + /** + * The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + * + * Required for CategoryType(s): Cost, ReservationUtilization. + */ + timePeriod: BudgetTimePeriod; + + /** + * May be used to filter budgets by user-specified dimensions and/or tags. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + */ + filter?: BudgetFilter; + + /** + * The current amount of cost which is being tracked for a budget. + * + * Supported for CategoryType(s): Cost. + */ + @visibility(Lifecycle.Read) + currentSpend?: CurrentSpend; + + /** + * Dictionary of notifications associated with the budget. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + * + * - Constraints for **CategoryType: Cost** - Budget can have up to 5 notifications with thresholdType: Actual and 5 notifications with thresholdType: Forecasted. + * - Constraints for **CategoryType: ReservationUtilization** - Only one notification allowed. thresholdType is not applicable. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + notifications?: Record; + + /** + * The forecasted cost which is being tracked for a budget. + * + * Supported for CategoryType(s): Cost. + */ + @visibility(Lifecycle.Read) + forecastSpend?: ForecastSpend; +} + +/** + * The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + * + * Required for CategoryType(s): Cost, ReservationUtilization. + */ +model BudgetTimePeriod { + /** + * The start date for the budget. + * + * - Constraints for **CategoryType: Cost** - Must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. + * + * - Constraints for **CategoryType: ReservationUtilization** - Must be on or after the current date and less than the end date. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startDate: utcDateTime; + + /** + * The end date for the budget. + * + * - Constraints for **CategoryType: Cost** - No constraints. If not provided, we default this to 10 years from the start date. + * + * - Constraints for **CategoryType: ReservationUtilization** - End date cannot be more than 3 years after the start date. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endDate?: utcDateTime; +} + +/** + * May be used to filter budgets by user-specified dimensions and/or tags. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + */ +model BudgetFilter { + /** + * The logical "AND" expression. Must have at least 2 items. + * + * Supported for CategoryType(s): Cost. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + and?: BudgetFilterProperties[]; + + /** + * Has comparison expression for a dimension. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + * + * Supported dimension names for **CategoryType: ReservationUtilization** + * - ReservationId + * - ReservedResourceType + */ + dimensions?: BudgetComparisonExpression; + + /** + * Has comparison expression for a tag. + * + * Supported for CategoryType(s): Cost. + */ + tags?: BudgetComparisonExpression; +} + +/** + * The Dimensions or Tags to filter a budget by. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + */ +model BudgetFilterProperties { + /** + * Has comparison expression for a dimension. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + * + * Supported dimension names for **CategoryType: ReservationUtilization** + * - ReservationId + * - ReservedResourceType + */ + dimensions?: BudgetComparisonExpression; + + /** + * Has comparison expression for a tag. + * + * Supported for CategoryType(s): Cost. + */ + tags?: BudgetComparisonExpression; +} + +/** + * The comparison expression to be used in the budgets. + */ +model BudgetComparisonExpression { + /** + * The name of the column to use in comparison. + */ + name: string; + + /** + * The operator to use for comparison. + */ + operator: BudgetOperatorType; + + /** + * Array of values to use for comparison + */ + values: string[]; +} + +/** + * The current amount of cost which is being tracked for a budget. + * + * Supported for CategoryType(s): Cost. + */ +model CurrentSpend { + /** + * The total amount of cost which is being tracked by the budget. + */ + @visibility(Lifecycle.Read) + amount?: float32; + + /** + * The unit of measure for the budget amount. + */ + @visibility(Lifecycle.Read) + unit?: string; +} + +/** + * The notification associated with a budget. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + */ +model Notification { + /** + * The notification is enabled or not. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + */ + enabled: boolean; + + /** + * The comparison operator. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + * + * Supported operators for **CategoryType: Cost** + * - GreaterThan + * - GreaterThanOrEqualTo + * + * Supported operators for **CategoryType: ReservationUtilization** + * - LessThan + */ + operator: BudgetNotificationOperatorType; + + /** + * Threshold value associated with a notification. It is always percent with a maximum of 2 decimal places. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + * + * **CategoryType: Cost** - Must be between 0 and 1000. Notification is sent when the cost exceeded the threshold. + * + * **CategoryType: ReservationUtilization** - Must be between 0 and 100. Notification is sent when a reservation has a utilization percentage below the threshold. + */ + threshold: float32; + + /** + * Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days). + * + * Supported for CategoryType(s): ReservationUtilization. + */ + frequency?: Frequency; + + /** + * Email addresses to send the notification to when the threshold is breached. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified. + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + */ + contactEmails: string[]; + + /** + * Subscription or Resource Group scopes only. Contact roles to send the notification to when the threshold is breached. + * + * Supported for CategoryType(s): Cost. + */ + contactRoles?: string[]; + + /** + * Subscription or Resource Group scopes only. Action groups to send the notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. + * + * Supported for CategoryType(s): Cost. + */ + contactGroups?: string[]; + + /** + * The type of threshold. + * + * Supported for CategoryType(s): Cost. + */ + thresholdType?: ThresholdType = ThresholdType.Actual; + + /** + * Language in which the recipient will receive the notification, + * + * Supported for CategoryType(s): Cost, ReservationUtilization. + */ + locale?: CultureCode; +} + +/** + * The forecasted cost which is being tracked for a budget. + * + * Supported for CategoryType(s): Cost. + */ +model ForecastSpend { + /** + * The forecasted cost for the total time period which is being tracked by the budget. This value is only provided if the budget contains a forecast alert type. + */ + @visibility(Lifecycle.Read) + amount?: float32; + + /** + * The unit of measure for the budget amount. + */ + @visibility(Lifecycle.Read) + unit?: string; +} + +/** + * The Resource model definition. + */ +model CostManagementProxyResource { + /** + * Resource Id. + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * Resource name. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * Resource type. + */ + @visibility(Lifecycle.Read) + type?: string; + + /** + * eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + */ + eTag?: string; +} + +/** + * Result of listing exports. It contains a list of available exports in the scope provided. + */ +model ExportListResult { + /** + * The list of exports. + */ + @visibility(Lifecycle.Read) + value?: Export[]; +} + +/** + * The properties of the export. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model ExportProperties extends CommonExportProperties { + /** + * Has schedule information for the export. + */ + schedule?: ExportSchedule; +} + +/** + * The schedule associated with the export. + */ +model ExportSchedule { + /** + * The status of the export's schedule. If 'Inactive', the export's schedule is paused. To enable export set the status to be Active and then make a PUT request. + */ + status?: StatusType; + + /** + * The schedule recurrence. + */ + recurrence?: RecurrenceType; + + /** + * Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date. + */ + recurrencePeriod?: ExportRecurrencePeriod; +} + +/** + * The start and end date for recurrence schedule. + */ +model ExportRecurrencePeriod { + /** + * The start date of recurrence. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + from: utcDateTime; + + /** + * The end date of recurrence. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + to?: utcDateTime; +} + +/** + * The common properties of the export. + */ +model CommonExportProperties { + /** + * The format of the export being delivered. + */ + format?: FormatType; + + /** + * Has delivery information for the export. + */ + deliveryInfo: ExportDeliveryInfo; + + /** + * Has the definition for the export. + */ + definition: ExportDefinition; + + /** + * If requested, has the most recent run history for the export. + */ + runHistory?: ExportExecutionListResult; + + /** + * If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file. + */ + partitionData?: boolean; + + /** + * Allow customers to select overwrite data(OverwritePreviousReport) for exports. This setting will enable overwrite data for the same month in customer storage account. By default set to CreateNewReport. + */ + dataOverwriteBehavior?: DataOverwriteBehaviorType; + + /** + * Allow customers to select compress data for exports. This setting will enable destination file compression scheme at runtime. By default set to None. Gzip is for csv and snappy for parquet. + */ + compressionMode?: CompressionModeType; + + /** + * The export description set by customer at time of export creation/update. + */ + exportDescription?: string; + + /** + * If the export has an active schedule, provides an estimate of the next run time. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + nextRunTimeEstimate?: utcDateTime; + + /** + * The export suspension reason if export is in SystemSuspended state. This is not populated currently. + */ + @visibility(Lifecycle.Read) + systemSuspensionContext?: ExportSuspensionContext; +} + +/** + * The delivery information associated with a export. + */ +model ExportDeliveryInfo { + /** + * Has destination for the export being delivered. + */ + destination: ExportDeliveryDestination; +} + +/** + * This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ). + */ +model ExportDeliveryDestination { + /** + * The export delivery destination type. Currently only 'AzureBlob' is supported. + */ + type?: DestinationType; + + /** + * The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified. + */ + resourceId?: string; + + /** + * The name of the container where exports will be uploaded. If the container does not exist it will be created. + */ + container: string; + + /** + * The name of the directory where exports will be uploaded. + */ + rootFolderPath?: string; + + /** + * A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified. + */ + sasToken?: string; + + /** + * The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId. + */ + storageAccount?: string; +} + +/** + * The definition of an export. + */ +model ExportDefinition { + /** + * The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + */ + type: ExportType; + + /** + * The time frame for pulling data for the export. If custom, then a specific time period must be provided. + */ + timeframe: TimeframeType; + + /** + * Has time period for pulling data for the export. + */ + timePeriod?: ExportTimePeriod; + + /** + * The definition for data in the export. + */ + dataSet?: ExportDataset; +} + +/** + * The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 1 calendar month. + */ +model ExportTimePeriod { + /** + * The start date for export data. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + from: utcDateTime; + + /** + * The end date for export data. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + to: utcDateTime; +} + +/** + * The definition for data in the export. + */ +model ExportDataset { + /** + * The granularity of rows in the export. Currently 'Daily' is supported for most cases. + */ + granularity?: GranularityType; + + /** + * The export dataset configuration. + */ + configuration?: ExportDatasetConfiguration; +} + +/** + * This is on path to deprecation and will not be supported going forward. + */ +model ExportDatasetConfiguration { + /** + * Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples). + */ + columns?: string[]; + + /** + * The data version for the selected for the export. If not provided then the export will default to latest data version. + */ + dataVersion?: string; + + /** + * Filters associated with the data sets. + */ + @OpenAPI.extension("x-ms-identifiers", #["name"]) + filters?: FilterItems[]; +} + +/** + * Will contain the filter name and value to operate on. This is currently only supported for Export Definition type of ReservationRecommendations. + */ +model FilterItems { + /** + * The name of the filter. This is currently only supported for Export Definition type of ReservationRecommendations. Supported names are ['ReservationScope', 'LookBackPeriod', 'ResourceType'] + */ + name?: FilterItemNames; + + /** + * Value to filter by. Currently values supported per name are, for 'ReservationScope' supported values are ['Single', 'Shared'], for 'LookBackPeriod' supported values are ['Last7Days', 'Last30Days', 'Last60Days'] and for 'ResourceType' supported values are ['VirtualMachines', 'SQLDatabases', 'PostgreSQL', 'ManagedDisk', 'MySQL', 'RedHat', 'MariaDB', 'RedisCache', 'CosmosDB', 'SqlDataWarehouse', 'SUSELinux', 'AppService', 'BlockBlob', 'AzureDataExplorer', 'VMwareCloudSimple']. + */ + value?: string; +} + +/** + * Result of listing the run history of an export. + */ +model ExportExecutionListResult { + /** + * A list of export runs. + */ + @visibility(Lifecycle.Read) + value?: ExportRun[]; +} + +/** + * An export run. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model ExportRun extends CostManagementProxyResource { + /** + * The properties of the export run. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: ExportRunProperties; +} + +/** + * The properties of the export run. + */ +model ExportRunProperties { + /** + * The type of the export run. + */ + executionType?: ExecutionType; + + /** + * The last known status of the export run. + */ + status?: ExecutionStatus; + + /** + * The identifier for the entity that triggered the export. For on-demand runs it is the user email. For scheduled runs it is 'System'. + */ + submittedBy?: string; + + /** + * The time when export was queued to be run. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + submittedTime?: utcDateTime; + + /** + * The time when export was picked up to be run. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + processingStartTime?: utcDateTime; + + /** + * The time when the export run finished. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + processingEndTime?: utcDateTime; + + /** + * The start datetime for the export. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startDate?: utcDateTime; + + /** + * The end datetime for the export. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endDate?: utcDateTime; + + /** + * The name of the exported file. + */ + fileName?: string; + + /** + * The manifest file location(URI location) for the exported files. + */ + manifestFile?: string; + + /** + * The export settings that were in effect for this run. + */ + runSettings?: CommonExportProperties; + + /** + * The details of any error. + */ + error?: ErrorDetails; +} + +/** + * The details of the error. + */ +model ErrorDetails { + /** + * Error code. + */ + @visibility(Lifecycle.Read) + code?: string; + + /** + * Error message indicating why the operation failed. + */ + @visibility(Lifecycle.Read) + message?: string; +} + +/** + * The properties of the export run. This is not populated currently. + */ +model ExportSuspensionContext { + /** + * The code for export suspension. + */ + suspensionCode?: string; + + /** + * The detailed reason for export suspension. + */ + suspensionReason?: string; + + /** + * The time when the export was suspended. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + suspensionTime?: utcDateTime; +} + +/** + * The export run request. + */ +model ExportRunRequest { + /** + * Has time period for pulling data for the export. + */ + timePeriod?: ExportTimePeriod; +} + +/** + * The definition of a cost detailed report. + */ +model GenerateCostDetailsReportRequestDefinition { + /** + * The type of the detailed report. By default ActualCost is provided + */ + metric?: CostDetailsMetricType; + + /** + * The specific date range of cost details requested for the report. This parameter cannot be used alongside either the invoiceId or billingPeriod parameters. If a timePeriod, invoiceId or billingPeriod parameter is not provided in the request body the API will return the current month's cost. API only allows data to be pulled for 1 month or less and no older than 13 months. If no timePeriod or billingPeriod or invoiceId is provided the API defaults to the open month time period + */ + timePeriod?: CostDetailsTimePeriod; + + /** + * This parameter can be used only by Enterprise Agreement customers. Use the YearMonth(e.g. 202008) format. This parameter cannot be used alongside either the invoiceId or timePeriod parameters. If a timePeriod, invoiceId or billingPeriod parameter is not provided in the request body the API will return the current month's cost. + */ + billingPeriod?: string; + + /** + * This parameter can only be used by Microsoft Customer Agreement customers. Additionally, it can only be used at the Billing Profile or Customer scope. This parameter cannot be used alongside either the billingPeriod or timePeriod parameters. If a timePeriod, invoiceId or billingPeriod parameter is not provided in the request body the API will return the current month's cost. + */ + invoiceId?: string; +} + +/** + * The start and end date for pulling data for the cost detailed report. API only allows data to be pulled for 1 month or less and no older than 13 months. + */ +model CostDetailsTimePeriod { + /** + * The start date to pull data from. example format 2020-03-15 + */ + start: string; + + /** + * The end date to pull data to. example format 2020-03-15 + */ + end: string; +} + +/** + * The manifest of the report generated by the operation. + */ +model ReportManifest { + /** + * The Manifest version. + */ + manifestVersion?: string; + + /** + * The data format of the report + */ + dataFormat?: CostDetailsDataFormat; + + /** + * The total number of bytes in all blobs. + */ + byteCount?: int64; + + /** + * The total number of blobs. + */ + blobCount?: int32; + + /** + * Is the data in compressed format. + */ + compressData?: boolean; + + /** + * The context of the Cost Details request. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + requestContext?: RequestContext; + + /** + * List of blob information generated by this operation. + */ + @OpenAPI.extension("x-ms-identifiers", #["blobLink"]) + blobs?: BlobInfo[]; +} + +/** + * The context of the Cost Details request. + */ +model RequestContext { + /** + * The request scope of the request. + */ + requestScope?: string; + + /** + * The request payload body provided in Cost Details call + */ + requestBody?: GenerateCostDetailsReportRequestDefinition; +} + +/** + * The blob information generated by this operation. + */ +model BlobInfo { + /** + * Link to the blob to download file. + */ + blobLink?: string; + + /** + * Bytes in the blob. + */ + byteCount?: int64; +} + +/** + * Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. + * + * Some Error responses: + * + * * 400 Bad Request - Invalid Request Payload. Request payload provided is not in a json format or had an invalid member not accepted in the request payload. + * + * * 400 Bad Request - Invalid request payload: can only have either timePeriod or invoiceId or billingPeriod. API only allows data to be pulled for either timePeriod or invoiceId or billingPeriod. Customer should provide only one of these parameters. + * + * * 400 Bad Request - Start date must be after . API only allows data to be pulled no older than 13 months from now. + * + * * 400 Bad Request - The maximum allowed date range is 1 months. API only allows data to be pulled for 1 month or less. + * + * * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "retry-after" header. + * + * * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" header. + */ +@error +model GenerateCostDetailsReportErrorResponse { + /** + * The details of the error. + */ + error?: ErrorDetails; +} + +/** + * The definition of a cost detailed report. + */ +model GenerateDetailedCostReportDefinition { + /** + * The type of the detailed report. By default ActualCost is provided + */ + metric?: GenerateDetailedCostReportMetricType; + + /** + * Has time period for pulling data for the cost detailed report. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided. + */ + timePeriod?: GenerateDetailedCostReportTimePeriod; + + /** + * Billing period in YearMonth(e.g. 202008) format. Only for legacy enterprise customers can use this. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided. + */ + billingPeriod?: string; + + /** + * Invoice ID for Pay-as-you-go and Microsoft Customer Agreement scopes. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided. + */ + invoiceId?: string; + + /** + * Customer ID for Microsoft Customer Agreement scopes (Invoice Id is also required for this). + */ + customerId?: string; +} + +/** + * The start and end date for pulling data for the cost detailed report. + */ +model GenerateDetailedCostReportTimePeriod { + /** + * The start date to pull data from. example format 2020-03-15 + */ + start: string; + + /** + * The end date to pull data to. example format 2020-03-15 + */ + end: string; +} + +/** + * The URL to download the generated report. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model DownloadURL { + /** + * The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + expiryTime?: utcDateTime; + + /** + * The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + validTill?: utcDateTime; + + /** + * The URL to download the generated report. + */ + downloadUrl?: string; +} + +/** + * Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. + * + * Some Error responses: + * + * * 413 Request Entity Too Large - Request is throttled. The amount of data required to fulfill the request exceeds the maximum size permitted of 2Gb. Please utilize our Exports feature instead. + * + * * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" header. + * + * * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" header. + */ +@error +model GenerateDetailedCostReportErrorResponse { + /** + * The details of the error. + */ + error?: ErrorDetails; +} + +/** + * The status of the long running operation. + */ +model Status { + /** + * The status of the long running operation. + */ + status?: ReportOperationStatusType; +} + +/** + * The properties of the view. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model ViewProperties { + /** + * User input name of the view. Required. + */ + displayName?: string; + + /** + * Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope. + */ + scope?: string; + + /** + * Date the user created this view. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdOn?: utcDateTime; + + /** + * Date when the user last modified this view. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + modifiedOn?: utcDateTime; + + /** + * Date range of the current view. + */ + dateRange?: string; + + /** + * Currency of the current view. + */ + @visibility(Lifecycle.Read) + currency?: string; + + /** + * Query body configuration. Required. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + query?: ReportConfigDefinition; + + /** + * Chart type of the main view in Cost Analysis. Required. + */ + chart?: ChartType; + + /** + * Show costs accumulated over time. + */ + accumulated?: AccumulatedType; + + /** + * Metric to use when displaying costs. + */ + metric?: MetricType; + + /** + * List of KPIs to show in Cost Analysis UI. + */ + kpis?: KpiProperties[]; + + /** + * Configuration of 3 sub-views in the Cost Analysis UI. + */ + @OpenAPI.extension("x-ms-identifiers", #["name"]) + pivots?: PivotProperties[]; +} + +/** + * The definition of a report config. + */ +model ReportConfigDefinition { + /** + * The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + */ + type: ReportType; + + /** + * The time frame for pulling data for the report. If custom, then a specific time period must be provided. + */ + timeframe: ReportTimeframeType; + + /** + * Has time period for pulling data for the report. + */ + timePeriod?: ReportConfigTimePeriod; + + /** + * Has definition for data in this report config. + */ + dataSet?: ReportConfigDataset; + + /** + * If true, report includes monetary commitment. + */ + includeMonetaryCommitment?: boolean; +} + +/** + * The start and end date for pulling data for the report. + */ +model ReportConfigTimePeriod { + /** + * The start date to pull data from. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + from: utcDateTime; + + /** + * The end date to pull data to. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + to: utcDateTime; +} + +/** + * The definition of data present in the report. + */ +model ReportConfigDataset { + /** + * The granularity of rows in the report. + */ + granularity?: ReportGranularityType; + + /** + * Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided. + */ + configuration?: ReportConfigDatasetConfiguration; + + /** + * Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + @OpenAPI.extension("x-ms-identifiers", #["name"]) + aggregation?: Record; + + /** + * Array of group by expression to use in the report. Report can have up to 2 group by clauses. + */ + @OpenAPI.extension("x-ms-identifiers", #["name", "type"]) + grouping?: ReportConfigGrouping[]; + + /** + * Array of order by expression to use in the report. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + sorting?: ReportConfigSorting[]; + + /** + * Has filter expression to use in the report. + */ + filter?: ReportConfigFilter; +} + +/** + * The configuration of dataset in the report. + */ +model ReportConfigDatasetConfiguration { + /** + * Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns. + */ + columns?: string[]; +} + +/** + * The aggregation expression to be used in the report. + */ +model ReportConfigAggregation { + /** + * The name of the column to aggregate. + */ + name: string; + + /** + * The name of the aggregation function to use. + */ + function: FunctionType; +} + +/** + * The group by expression to be used in the report. + */ +model ReportConfigGrouping { + /** + * Has type of the column to group. + */ + type: QueryColumnType; + + /** + * The name of the column to group. This version supports subscription lowest possible grain. + */ + name: string; +} + +/** + * The order by expression to be used in the report. + */ +model ReportConfigSorting { + /** + * Direction of sort. + */ + direction?: ReportConfigSortingType; + + /** + * The name of the column to sort. + */ + name: string; +} + +/** + * The filter expression to be used in the report. + */ +model ReportConfigFilter { + /** + * The logical "AND" expression. Must have at least 2 items. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + and?: ReportConfigFilter[]; + + /** + * The logical "OR" expression. Must have at least 2 items. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + or?: ReportConfigFilter[]; + + /** + * Has comparison expression for a dimension + */ + dimensions?: ReportConfigComparisonExpression; + + /** + * Has comparison expression for a tag + */ + tags?: ReportConfigComparisonExpression; +} + +/** + * The comparison expression to be used in the report. + */ +model ReportConfigComparisonExpression { + /** + * The name of the column to use in comparison. + */ + name: string; + + /** + * The operator to use for comparison. + */ + operator: OperatorType; + + /** + * Array of values to use for comparison + */ + values: string[]; +} + +/** + * Each KPI must contain a 'type' and 'enabled' key. + */ +model KpiProperties { + /** + * KPI type (Forecast, Budget). + */ + type?: KpiTypeType; + + /** + * ID of resource related to metric (budget). + */ + id?: string; + + /** + * show the KPI in the UI? + */ + enabled?: boolean; +} + +/** + * Each pivot must contain a 'type' and 'name'. + */ +model PivotProperties { + /** + * Data type to show in view. + */ + type?: PivotTypeType; + + /** + * Data field to show in view. + */ + name?: string; +} + +/** + * Result of alerts. + */ +model AlertsResult { + /** + * List of alerts. + */ + @visibility(Lifecycle.Read) + value?: Alert[]; + + /** + * URL to get the next set of alerts results if there are any. + */ + @visibility(Lifecycle.Read) + nextLink?: string; +} + +/** + * Alert properties. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model AlertProperties { + /** + * defines the type of alert + */ + definition?: AlertPropertiesDefinition; + + /** + * Alert description + */ + description?: string; + + /** + * Source of alert + */ + source?: AlertSource; + + /** + * Alert details + */ + details?: AlertPropertiesDetails; + + /** + * related budget + */ + costEntityId?: string; + + /** + * alert status + */ + status?: AlertStatus; + + /** + * dateTime in which alert was created + */ + creationTime?: string; + + /** + * dateTime in which alert was closed + */ + closeTime?: string; + + /** + * dateTime in which alert was last modified + */ + modificationTime?: string; + + /** + * User who last modified the alert + */ + statusModificationUserName?: string; + + /** + * dateTime in which the alert status was last modified + */ + statusModificationTime?: string; +} + +/** + * defines the type of alert + */ +model AlertPropertiesDefinition { + /** + * type of alert + */ + type?: AlertType; + + /** + * Alert category + */ + category?: AlertCategory; + + /** + * Criteria that triggered alert + */ + criteria?: AlertCriteria; +} + +/** + * Alert details + */ +model AlertPropertiesDetails { + /** + * Type of timegrain cadence + */ + timeGrainType?: AlertTimeGrainType; + + /** + * datetime of periodStartDate + */ + periodStartDate?: string; + + /** + * notificationId that triggered this alert + */ + triggeredBy?: string; + + /** + * array of resourceGroups to filter by + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + resourceGroupFilter?: unknown[]; + + /** + * array of resources to filter by + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + resourceFilter?: unknown[]; + + /** + * array of meters to filter by + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + meterFilter?: unknown[]; + + /** + * tags to filter by + */ + tagFilter?: Record; + + /** + * notification threshold percentage as a decimal which activated this alert + */ + threshold?: decimal; + + /** + * operator used to compare currentSpend with amount + */ + operator?: AlertOperator; + + /** + * budget threshold amount + */ + amount?: decimal; + + /** + * unit of currency being used + */ + unit?: string; + + /** + * current spend + */ + currentSpend?: decimal; + + /** + * list of emails to contact + */ + contactEmails?: string[]; + + /** + * list of action groups to broadcast to + */ + contactGroups?: string[]; + + /** + * list of contact roles + */ + contactRoles?: string[]; + + /** + * overriding alert + */ + overridingAlert?: string; + + /** + * department name + */ + departmentName?: string; + + /** + * company name + */ + companyName?: string; + + /** + * enrollment number + */ + enrollmentNumber?: string; + + /** + * datetime of enrollmentStartDate + */ + enrollmentStartDate?: string; + + /** + * datetime of enrollmentEndDate + */ + enrollmentEndDate?: string; + + /** + * invoicing threshold + */ + invoicingThreshold?: decimal; +} + +/** + * The request payload to update an alert + */ +model DismissAlertPayload { + /** + * Alert properties. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: AlertProperties; +} + +/** + * The definition of a forecast. + */ +model ForecastDefinition { + /** + * The type of the forecast. + */ + type: ForecastType; + + /** + * The time frame for pulling data for the forecast. If custom, then a specific time period must be provided. + */ + timeframe: ForecastTimeframe; + + /** + * Has time period for pulling data for the forecast. + */ + timePeriod?: ForecastTimePeriod; + + /** + * Has definition for data in this forecast. + */ + dataset: ForecastDataset; + + /** + * A boolean determining if actualCost will be included. + */ + includeActualCost?: boolean; + + /** + * A boolean determining if FreshPartialCost will be included. + */ + includeFreshPartialCost?: boolean; +} + +/** + * Has time period for pulling data for the forecast. + */ +model ForecastTimePeriod { + /** + * The start date to pull data from. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + from: utcDateTime; + + /** + * The end date to pull data to. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + to: utcDateTime; +} + +/** + * The definition of data present in the forecast. + */ +model ForecastDataset { + /** + * The granularity of rows in the forecast. + */ + granularity?: GranularityType; + + /** + * Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided. + */ + configuration?: ForecastDatasetConfiguration; + + /** + * Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the aggregated column. forecast can have up to 2 aggregation clauses. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + aggregation: Record; + + /** + * Has filter expression to use in the forecast. + */ + filter?: ForecastFilter; +} + +/** + * The configuration of dataset in the forecast. + */ +model ForecastDatasetConfiguration { + /** + * Array of column names to be included in the forecast. Any valid forecast column name is allowed. If not provided, then forecast includes all columns. + */ + columns?: string[]; +} + +/** + * The aggregation expression to be used in the forecast. + */ +model ForecastAggregation { + /** + * The name of the column to aggregate. + */ + name: FunctionName; + + /** + * The name of the aggregation function to use. + */ + function: FunctionType; +} + +/** + * The filter expression to be used in the export. + */ +model ForecastFilter { + /** + * The logical "AND" expression. Must have at least 2 items. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + and?: ForecastFilter[]; + + /** + * The logical "OR" expression. Must have at least 2 items. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + or?: ForecastFilter[]; + + /** + * Has comparison expression for a dimension + */ + dimensions?: ForecastComparisonExpression; + + /** + * Has comparison expression for a tag + */ + tags?: ForecastComparisonExpression; +} + +/** + * The comparison expression to be used in the forecast. + */ +model ForecastComparisonExpression { + /** + * The name of the column to use in comparison. + */ + name: string; + + /** + * The operator to use for comparison. + */ + operator: ForecastOperatorType; + + /** + * Array of values to use for comparison + */ + values: string[]; +} + +/** + * Result of forecast. It contains all columns listed under groupings and aggregation. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model ForecastResult extends CostManagementResource { + /** + * Forecast properties + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: ForecastProperties; +} + +/** + * Forecast properties + */ +model ForecastProperties { + /** + * The link (url) to the next page of results. + */ + nextLink?: string; + + /** + * Array of columns + */ + @OpenAPI.extension("x-ms-identifiers", #["name"]) + columns?: ForecastColumn[]; + + /** + * Array of rows + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + rows?: unknown[][]; +} + +/** + * Forecast column properties + */ +model ForecastColumn { + /** + * The name of column. + */ + name?: string; + + /** + * The type of column. + */ + type?: string; +} + +/** + * The Resource model definition. + */ +model CostManagementResource { + /** + * Resource Id. + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * Resource name. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * Resource type. + */ + @visibility(Lifecycle.Read) + type?: string; + + /** + * Location of the resource. + */ + @visibility(Lifecycle.Read) + location?: string; + + /** + * SKU of the resource. + */ + @visibility(Lifecycle.Read) + sku?: string; + + /** + * ETag of the resource. + */ + @visibility(Lifecycle.Read) + eTag?: string; + + /** + * Resource tags. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + @visibility(Lifecycle.Read) + tags?: Record; +} + +/** + * Result of listing dimensions. It contains a list of available dimensions. + */ +@pagedResult +model DimensionsListResult { + /** + * The list of dimensions. + */ + @visibility(Lifecycle.Read) + @items + value?: Dimension[]; +} + +/** + * List of Dimension. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model Dimension extends CostManagementResource { + /** + * Dimension properties. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: DimensionProperties; +} + +/** + * Dimension properties. + */ +model DimensionProperties { + /** + * Dimension description. + */ + @visibility(Lifecycle.Read) + description?: string; + + /** + * Filter enabled. + */ + @visibility(Lifecycle.Read) + filterEnabled?: boolean; + + /** + * Grouping enabled. + */ + @visibility(Lifecycle.Read) + groupingEnabled?: boolean; + + /** + * Dimension data. + */ + data?: string[]; + + /** + * Total number of data for the dimension. + */ + @visibility(Lifecycle.Read) + total?: int32; + + /** + * Dimension category. + */ + @visibility(Lifecycle.Read) + category?: string; + + /** + * Usage start. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + usageStart?: utcDateTime; + + /** + * Usage end. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + usageEnd?: utcDateTime; + + /** + * The link (url) to the next page of results. + */ + @visibility(Lifecycle.Read) + nextLink?: string; +} + +/** + * The definition of a query. + */ +model QueryDefinition { + /** + * The type of the query. + */ + type: ExportType; + + /** + * The time frame for pulling data for the query. If custom, then a specific time period must be provided. + */ + timeframe: TimeframeType; + + /** + * Has time period for pulling data for the query. + */ + timePeriod?: QueryTimePeriod; + + /** + * Has definition for data in this query. + */ + dataset: QueryDataset; +} + +/** + * The start and end date for pulling data for the query. + */ +model QueryTimePeriod { + /** + * The start date to pull data from. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + from: utcDateTime; + + /** + * The end date to pull data to. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + to: utcDateTime; +} + +/** + * The definition of data present in the query. + */ +model QueryDataset { + /** + * The granularity of rows in the query. + */ + granularity?: GranularityType; + + /** + * Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided. + */ + configuration?: QueryDatasetConfiguration; + + /** + * Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + aggregation?: Record; + + /** + * Array of group by expression to use in the query. Query can have up to 2 group by clauses. + */ + @OpenAPI.extension("x-ms-identifiers", #["name", "type"]) + grouping?: QueryGrouping[]; + + /** + * The filter expression to use in the query. Please reference our Query API REST documentation for how to properly format the filter. + */ + filter?: QueryFilter; +} + +/** + * The configuration of dataset in the query. + */ +model QueryDatasetConfiguration { + /** + * Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns. + */ + columns?: string[]; +} + +/** + * The aggregation expression to be used in the query. + */ +model QueryAggregation { + /** + * The name of the column to aggregate. + */ + name: string; + + /** + * The name of the aggregation function to use. + */ + function: FunctionType; +} + +/** + * The group by expression to be used in the query. + */ +model QueryGrouping { + /** + * Has type of the column to group. + */ + type: QueryColumnType; + + /** + * The name of the column to group. + */ + name: string; +} + +/** + * The filter expression to be used in the export. + */ +model QueryFilter { + /** + * The logical "AND" expression. Must have at least 2 items. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + and?: QueryFilter[]; + + /** + * The logical "OR" expression. Must have at least 2 items. + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + or?: QueryFilter[]; + + /** + * Has comparison expression for a dimension + */ + dimensions?: QueryComparisonExpression; + + /** + * Has comparison expression for a tag + */ + tags?: QueryComparisonExpression; +} + +/** + * The comparison expression to be used in the query. + */ +model QueryComparisonExpression { + /** + * The name of the column to use in comparison. + */ + name: string; + + /** + * The operator to use for comparison. + */ + operator: QueryOperatorType; + + /** + * Array of values to use for comparison + */ + values: string[]; +} + +/** + * Result of query. It contains all columns listed under groupings and aggregation. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model QueryResult extends CostManagementResource { + /** + * Query properties + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: QueryProperties; +} + +/** + * Query properties + */ +model QueryProperties { + /** + * The link (url) to the next page of results. + */ + nextLink?: string; + + /** + * Array of columns + */ + @OpenAPI.extension("x-ms-identifiers", #["name"]) + columns?: QueryColumn[]; + + /** + * Array of rows + */ + @OpenAPI.extension("x-ms-identifiers", #[]) + rows?: unknown[][]; +} + +/** + * QueryColumn properties + */ +model QueryColumn { + /** + * The name of column. + */ + name?: string; + + /** + * The type of column. + */ + type?: string; +} + +/** + * The status of the long running operation. + */ +model OperationStatus { + /** + * The status of the long running operation. + */ + status?: OperationStatusType; + + /** + * The properties of the resource generated. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: ReportURL; +} + +/** + * The URL to download the generated report. + */ +model ReportURL { + /** + * The CSV file from the reportUrl blob link consists of reservation usage data with the following schema at daily granularity + */ + reportUrl?: ReservationReportSchema; + + /** + * The time at which report URL becomes invalid. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + validUntil?: utcDateTime; +} + +/** + * The URL to download the generated report. + */ +model PricesheetDownloadProperties { + /** + * The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + expiryTime?: utcDateTime; + + /** + * The URL to download the generated report. + */ + downloadUrl?: string; + + /** + * The properties in downloaded file + */ + downloadFileProperties?: MCAPriceSheetProperties; +} + +/** + * The properties of the price sheet. + */ +model MCAPriceSheetProperties { + /** + * Unique identifier for the billing account. + */ + @visibility(Lifecycle.Read) + billingAccountID?: string; + + /** + * Name of the billing profile that is set up to receive invoices. The prices in the price sheet are associated with this billing profile. + */ + @visibility(Lifecycle.Read) + billingAccountName?: string; + + /** + * Unique identifier for the billing profile. + */ + @visibility(Lifecycle.Read) + billingProfileId?: string; + + /** + * Name of the billing profile that is set up to receive invoices. The prices in the price sheet are associated with this billing profile. + */ + @visibility(Lifecycle.Read) + billingProfileName?: string; + + /** + * Name of the purchased product plan. Indicates if this pricing is standard Azure Plan pricing, Dev/Test pricing etc. + * + * Currently unavailable for Azure 3rd party and ReservedInstance meters. + */ + @visibility(Lifecycle.Read) + productOrderName?: string; + + /** + * Type of Azure service. For example, Compute, Analytics, and Security. + */ + @visibility(Lifecycle.Read) + serviceFamily?: float32; + + /** + * Name of the product accruing the charges. + */ + @visibility(Lifecycle.Read) + product?: string; + + /** + * Unique identifier for the product whose meter is consumed. + */ + @visibility(Lifecycle.Read) + productId?: string; + + /** + * Unique identifier of the SKU + */ + @visibility(Lifecycle.Read) + skuId?: string; + + /** + * How usage is measured for the service + */ + @visibility(Lifecycle.Read) + unitOfMeasure?: string; + + /** + * Unique identifier of the meter + */ + @visibility(Lifecycle.Read) + meterId?: string; + + /** + * Name of the meter. The meter represents the deployable resource of an Azure service. + */ + @visibility(Lifecycle.Read) + meterName?: string; + + /** + * Name of the meter type + */ + @visibility(Lifecycle.Read) + meterType?: string; + + /** + * Name of the classification category for the meter. For example, Cloud services, Networking, etc. + */ + @visibility(Lifecycle.Read) + meterCategory?: string; + + /** + * Name of the meter subclassification category. + */ + @visibility(Lifecycle.Read) + meterSubCategory?: string; + + /** + * Name of the Azure region where the meter for the service is available. + */ + @visibility(Lifecycle.Read) + meterRegion?: string; + + /** + * Defines the lower bound of the tier range for which prices are defined. For example, if the range is 0 to 100, tierMinimumUnits would be 0. + */ + @visibility(Lifecycle.Read) + tierMinimumUnits?: string; + + /** + * Effective start date of the Price Sheet billing period + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + effectiveStartDate?: utcDateTime; + + /** + * Effective end date of the Price Sheet billing period + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + effectiveEndDate?: utcDateTime; + + /** + * The per-unit price at the time of billing for a given product or service, inclusive of any negotiated discounts on top of the market price. + * + * For PriceType ReservedInstance, unit price reflects the total cost of the 1 or 3-year commitment including discounts. + * + * Note: The unit price isn't the same as the effective price in usage details downloads when services have differential prices across tiers. + * + * If services have multi-tiered pricing, the effective price is a blended rate across the tiers and doesn't show a tier-specific unit price. The blended price or effective price is the net price for the consumed quantity spanning across the multiple tiers (where each tier has a specific unit price). + */ + @visibility(Lifecycle.Read) + unitPrice?: string; + + /** + * The unit price at the time the customer signs on or the unit price at the time of service meter GA launch if it is after sign-on. + * + * This is applicable for Enterprise Agreement users + */ + @visibility(Lifecycle.Read) + basePrice?: string; + + /** + * The current list price for a given product or service. This price is without any negotiations and is based on your Microsoft Agreement type. + * + * For PriceType Consumption, market price is reflected as the pay-as-you-go price. + * + * For PriceType Savings Plan, market price reflects the Savings plan benefit on top of pay-as-you-go price for the corresponding commitment term. + * + * For PriceType ReservedInstance, market price reflects the total price of the 1 or 3-year commitment. + */ + @visibility(Lifecycle.Read) + marketPrice?: string; + + /** + * Currency in which all the prices are reflected. + */ + @visibility(Lifecycle.Read) + currency?: string; + + /** + * Currency in which charges are posted. + */ + @visibility(Lifecycle.Read) + billingCurrency?: string; + + /** + * Term length for Azure Savings Plan or Reservation term – one year or three years (P1Y or P3Y) + */ + @visibility(Lifecycle.Read) + term?: string; + + /** + * Price type for a product. For example, an Azure resource with a pay-as-you-go rate with priceType as Consumption. Other price types include ReservedInstance and Savings Plan. + */ + @visibility(Lifecycle.Read) + priceType?: string; +} + +/** + * The status of the long running operation. + */ +model PriceSheetOperationStatus { + /** + * The status of the long running operation. + */ + status?: OperationStatusType; + + /** + * The properties of the resource generated. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: EAPricesheetDownloadProperties; +} + +/** + * The properties of the price sheet download. + */ +model EAPricesheetDownloadProperties { + /** + * The link (url) to download the pricesheet. + */ + @visibility(Lifecycle.Read) + downloadUrl?: string; + + /** + * Download link validity. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + validTill?: utcDateTime; + + /** + * The properties in downloaded file + */ + downloadFileProperties?: EAPriceSheetProperties; +} + +/** + * The properties of the EA price sheet. Properties supported with version 2025-03-01 are as below + */ +model EAPriceSheetProperties { + /** + * Unique identifier for the EA billing account. + */ + @visibility(Lifecycle.Read) + enrollmentNumber?: string; + + /** + * Type of Azure service. For example, Compute, Analytics, and Security. + */ + @visibility(Lifecycle.Read) + serviceFamily?: float32; + + /** + * Name of the product accruing the charges. + */ + @visibility(Lifecycle.Read) + product?: string; + + /** + * Unique identifier for the product whose meter is consumed. + */ + @visibility(Lifecycle.Read) + productId?: string; + + /** + * Unique identifier of the SKU + */ + @visibility(Lifecycle.Read) + skuId?: string; + + /** + * How usage is measured for the service. Note: The field “Unit” has been removed with version 2023-11-01 as a duplicate of “UnitofMeasure”, please use the field “UnitOfMeasure”. + */ + @visibility(Lifecycle.Read) + unitOfMeasure?: string; + + /** + * Unique identifier of the meter + */ + @visibility(Lifecycle.Read) + meterId?: string; + + /** + * Name of the meter. The meter represents the deployable resource of an Azure service. + */ + @visibility(Lifecycle.Read) + meterName?: string; + + /** + * Name of the meter type + */ + @visibility(Lifecycle.Read) + meterType?: string; + + /** + * Determines the Azure offer associated with this meter. [Learn more about Azure offers] (https://azure.microsoft.com/en-us/support/legal/offer-details/) + */ + @visibility(Lifecycle.Read) + offerId?: string; + + /** + * Name of the classification category for the meter. For example, Cloud services, Networking, etc. + */ + @visibility(Lifecycle.Read) + meterCategory?: string; + + /** + * Name of the meter subclassification category. + */ + @visibility(Lifecycle.Read) + meterSubCategory?: string; + + /** + * Name of the Azure region where the meter for the service is available. + */ + @visibility(Lifecycle.Read) + meterRegion?: string; + + /** + * Effective start date of the Price Sheet billing period + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + effectiveStartDate?: utcDateTime; + + /** + * Effective end date of the Price Sheet billing period + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + effectiveEndDate?: utcDateTime; + + /** + * The per-unit price at the time of billing for a given product or service, inclusive of any negotiated discounts on top of the market price. + * + * For PriceType ReservedInstance, unit price reflects the total cost of the 1 or 3-year commitment including discounts. + * + * Note: The unit price isn't the same as the effective price in usage details downloads when services have differential prices across tiers. + * + * If services have multi-tiered pricing, the effective price is a blended rate across the tiers and doesn't show a tier-specific unit price. The blended price or effective price is the net price for the consumed quantity spanning across the multiple tiers (where each tier has a specific unit price). + */ + @visibility(Lifecycle.Read) + unitPrice?: string; + + /** + * The unit price at the time the customer signs on or the unit price at the time of service meter GA launch if it is after sign-on. + * + * This is applicable for Enterprise Agreement users + */ + @visibility(Lifecycle.Read) + basePrice?: string; + + /** + * The current list price for a given product or service. This price is without any negotiations and is based on your Microsoft Agreement type. + * + * For PriceType Consumption, market price is reflected as the pay-as-you-go price. + * + * For PriceType Savings Plan, market price reflects the Savings plan benefit on top of pay-as-you-go price for the corresponding commitment term. + * + * For PriceType ReservedInstance, market price reflects the total price of the 1 or 3-year commitment. + * + * Note: For EA customers with no negotiations, market price may appear rounded to a different decimal precision than unit price. + */ + @visibility(Lifecycle.Read) + marketPrice?: string; + + /** + * Quantities of a specific service to which an EA customer is entitled to consume without incremental charges. + */ + @visibility(Lifecycle.Read) + includedQuantity?: string; + + /** + * Currency in which the Enterprise Agreement was signed + */ + @visibility(Lifecycle.Read) + currencyCode?: string; + + /** + * Term length for Azure Savings Plan or Reservation term – one year or three years (P1Y or P3Y) + */ + @visibility(Lifecycle.Read) + term?: string; + + /** + * Price type for a product. For example, an Azure resource with a pay-as-you-go rate with priceType as Consumption. Other price types include ReservedInstance and Savings Plan. + */ + @visibility(Lifecycle.Read) + priceType?: string; + + /** + * Part number associated with the meter + */ + @visibility(Lifecycle.Read) + partNumber?: string; +} + +/** + * The properties of the scheduled action. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model ScheduledActionProperties { + /** + * Scheduled action name. + */ + displayName: string; + + /** + * Destination format of the view data. This is optional. + */ + fileDestination?: FileDestination; + + /** + * Notification properties based on scheduled action kind. + */ + notification: NotificationProperties; + + /** + * Email address of the point of contact that should get the unsubscribe requests and notification emails. + */ + notificationEmail?: string; + + /** + * Schedule of the scheduled action. + */ + schedule: ScheduleProperties; + + /** + * For private scheduled action(Create or Update), scope will be empty.
For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope. + */ + scope?: string; + + /** + * Status of the scheduled action. + */ + status: ScheduledActionStatus; + + /** + * Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample' + */ + viewId: string; +} + +/** + * Destination of the view data. This is optional. Currently only CSV format is supported. + */ +model FileDestination { + /** + * Destination of the view data. Currently only CSV format is supported. + */ + fileFormats?: FileFormat[]; +} + +/** + * The properties of the scheduled action notification. + */ +model NotificationProperties { + /** + * Array of email addresses. + */ + to: string[]; + + /** + * Locale of the email. + */ + language?: string; + + /** + * Optional message to be added in the email. Length is limited to 250 characters. + */ + message?: string; + + /** + * Regional format used for formatting date/time and currency values in the email. + */ + regionalFormat?: string; + + /** + * Subject of the email. Length is limited to 70 characters. + */ + subject: string; +} + +/** + * The properties of the schedule. + */ +model ScheduleProperties { + /** + * Frequency of the schedule. + */ + frequency: ScheduleFrequency; + + /** + * UTC time at which cost analysis data will be emailed. + */ + hourOfDay?: int32; + + /** + * Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly. + */ + daysOfWeek?: DaysOfWeek[]; + + /** + * Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek. + */ + weeksOfMonth?: WeeksOfMonth[]; + + /** + * UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek. + */ + dayOfMonth?: int32; + + /** + * The start date and time of the scheduled action (UTC). + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startDate: utcDateTime; + + /** + * The end date and time of the scheduled action (UTC). + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endDate: utcDateTime; +} + +/** + * The Resource model definition. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model ScheduledActionProxyResource + extends Azure.ResourceManager.CommonTypes.ProxyResource { + /** + * Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required. + */ + @visibility(Lifecycle.Read) + eTag?: string; + + /** + * Kind of the scheduled action. + */ + kind?: ScheduledActionKind; + + /** + * Kind of the scheduled action. + */ + @visibility(Lifecycle.Read) + systemData?: SystemData; +} + +/** + * Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. + * + * Some Error responses: + * + * * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" header. + * + * * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" header. + */ +@error +model ErrorResponseWithNestedDetails { + /** + * The details of the error. + */ + error?: ErrorDetailsWithNestedDetails; +} + +/** + * The details of the error. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model ErrorDetailsWithNestedDetails extends ErrorDetails { + /** + * The additional details of the error. + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #[]) + details?: ErrorDetailsWithNestedDetails[]; +} + +/** + * Setting list result. It contains a list of settings. + */ +model SettingsListResult { + /** + * The list of settings. + */ + @visibility(Lifecycle.Read) + @OpenAPI.extension("x-ms-identifiers", #["id"]) + value?: Setting[]; +} + +/** + * The properties of the benefit recommendations when scope is 'Single'. + */ +model SingleScopeBenefitRecommendationProperties + extends BenefitRecommendationProperties { + /** + * The subscription ID that this single scope recommendation is for. Applicable only if recommendation is for 'Single' scope. + */ + @visibility(Lifecycle.Read) + subscriptionId?: string; + + /** + * The resource group that this single scope recommendation is for. Applicable only if recommendation is for 'Single' scope and 'ResourceGroup' request scope. + */ + @visibility(Lifecycle.Read) + resourceGroup?: string; + + /** + * Benefit scope. For example, Single or Shared. + */ + scope: "Single"; +} + +/** + * The properties of the benefit recommendation when scope is 'Shared'. + */ +model SharedScopeBenefitRecommendationProperties + extends BenefitRecommendationProperties { + /** + * Benefit scope. For example, Single or Shared. + */ + scope: "Shared"; +} + +/** + * The properties of a benefit utilization summary. + */ +model BenefitUtilizationSummaryProperties { + /** + * ARM SKU name. For example, 'Compute_Savings_Plan' for savings plan. + */ + @visibility(Lifecycle.Read) + armSkuName?: string; + + /** + * The benefit ID is the identifier of the benefit. + */ + @visibility(Lifecycle.Read) + benefitId?: string; + + /** + * The benefit order ID is the identifier for a benefit purchase. + */ + @visibility(Lifecycle.Read) + benefitOrderId?: string; + + /** + * The benefit type. Supported values: 'SavingsPlan'. + */ + benefitType?: BenefitKind; + + /** + * Date corresponding to the utilization summary record. If the grain of data is monthly, value for this field will be first day of the month. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + usageDate?: utcDateTime; +} + +/** + * Included Quantity utilization summary resource. + */ +model IncludedQuantityUtilizationSummary extends BenefitUtilizationSummary { + /** + * Included Quantity utilization summary properties. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: IncludedQuantityUtilizationSummaryProperties; + + /** + * Supported values: 'SavingsPlan'. + */ + kind: "IncludedQuantity"; +} + +/** + * Included Quantity utilization summary properties. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model IncludedQuantityUtilizationSummaryProperties + extends BenefitUtilizationSummaryProperties { + /** + * This is the utilized percentage for the benefit ID. + */ + @visibility(Lifecycle.Read) + utilizationPercentage?: decimal; +} + +/** + * Savings plan utilization summary resource. + */ +model SavingsPlanUtilizationSummary extends BenefitUtilizationSummary { + /** + * Savings plan utilization summary properties. + */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: SavingsPlanUtilizationSummaryProperties; + + /** + * Supported values: 'SavingsPlan'. + */ + kind: "SavingsPlan"; +} + +/** + * Savings plan utilization summary properties. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model SavingsPlanUtilizationSummaryProperties + extends BenefitUtilizationSummaryProperties { + /** + * This is the average hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the avgUtilizationPercentage value will be equal to the average of the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day. + */ + @visibility(Lifecycle.Read) + avgUtilizationPercentage?: decimal; + + /** + * This is the minimum hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the minUtilizationPercentage value will be equal to the smallest in the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day. If on the day 2022-10-18, the lowest utilization percentage was 10% at hour 4, then the value for the minUtilizationPercentage in the response will be 10%. + */ + @visibility(Lifecycle.Read) + minUtilizationPercentage?: decimal; + + /** + * This is the maximum hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the maxUtilizationPercentage value will be equal to the largest in the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day. If on the day 2022-10-18, the largest utilization percentage was 90% at hour 5, then the value for the maxUtilizationPercentage in the response will be 90%. + */ + @visibility(Lifecycle.Read) + maxUtilizationPercentage?: decimal; +} + +/** + * Tag Inheritance Setting definition. + */ +model TagInheritanceSetting extends Setting { + /** + * The properties of the tag inheritance setting. + */ + properties?: TagInheritanceProperties; + + /** + * Specifies the kind of settings. + */ + kind: "taginheritance"; +} + +/** + * The properties of the tag inheritance setting. + */ +model TagInheritanceProperties { + /** + * This property defines the behavior when an inherited tag being applied matches a lower scope tag (Eg. Subscription tag matches the resource tag). If set to true - when tags match, the highest scope tags will be applied. Billing profile is the highest scope, followed by invoice sections, subscriptions and resource groups (allows overriding of lower scope tag values). If set to false - when tags match, the lowest scope tags will be applied. So, if a resource has the same tag as a subscription tag, the resource tag will be applied (does not allow overriding of lower scope tag values). + */ + preferContainerTags: boolean; +} diff --git a/specification/cost-management/CostManagement.Management/routes.tsp b/specification/cost-management/CostManagement.Management/routes.tsp new file mode 100644 index 000000000000..bedd61ea66d0 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/routes.tsp @@ -0,0 +1,872 @@ +// FIXME: Operations in this file are not detected as a resource operation, please confirm the conversion result manually + +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using TypeSpec.OpenAPI; + +namespace Microsoft.CostManagement; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface CostAllocationRulesOperationGroup { + /** + * Checks availability and correctness of a name for a cost allocation rule + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("CostAllocationRules_CheckNameAvailability") + @autoRoute + @action("costAllocationRules/checkNameAvailability") + checkNameAvailability is ArmProviderActionSync< + Request = CostAllocationRuleCheckNameAvailabilityRequest, + Response = CostAllocationRuleCheckNameAvailabilityResponse, + Parameters = { + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + billingAccountId: string; + } + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface BenefitRecommendationsOperationGroup { + /** + * List of recommendations for purchasing savings plan. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("BenefitRecommendations_List") + @route("/{billingScope}/providers/Microsoft.CostManagement/benefitRecommendations") + @get + list( + ...ApiVersionParameter, + + /** + * Can be used to filter benefitRecommendations by: properties/scope with allowed values ['Single', 'Shared'] and default value 'Shared'; and properties/lookBackPeriod with allowed values ['Last7Days', 'Last30Days', 'Last60Days'] and default value 'Last60Days'; properties/term with allowed values ['P1Y', 'P3Y'] and default value 'P3Y'; properties/subscriptionId; properties/resourceGroup + */ + @query("$filter") + $filter?: string, + + /** + * May be used to order the recommendations by: properties/armSkuName. For the savings plan, the results are in order by default. There is no need to use this clause. + */ + @query("$orderby") + $orderby?: string, + + /** + * May be used to expand the properties by: properties/usage, properties/allRecommendationDetails + */ + @query("$expand") + $expand?: string, + + /** + * The scope associated with benefit recommendation operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope, /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope + */ + @path + billingScope: string, + ): ArmResponse> | ErrorResponse; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface BenefitUtilizationSummariesOperationGroup { + /** + * Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain values: 'Daily' and 'Monthly'. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("BenefitUtilizationSummaries_ListByBillingAccountId") + @autoRoute + @get + @action("benefitUtilizationSummaries") + listByBillingAccountId is ArmProviderActionSync< + Response = ResourceListResult, + Parameters = { + /** + * Billing account ID + */ + @path + @segment("billingAccounts") + billingAccountId: string; + + /** + * Grain. + */ + @query("grainParameter") + grainParameter?: GrainParameter; + + /** + * Supports filtering by properties/benefitId, properties/benefitOrderId and properties/usageDate. + */ + @query("filter") + filter?: string; + } + >; + /** + * Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and 'Monthly'. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("BenefitUtilizationSummaries_ListByBillingProfileId") + @autoRoute + @get + @action("benefitUtilizationSummaries") + listByBillingProfileId is ArmProviderActionSync< + Response = ResourceListResult, + Parameters = { + /** + * Billing account ID + */ + @path + @segment("billingAccounts") + billingAccountId: string; + + /** + * Billing profile ID. + */ + @path + @segment("billingProfiles") + billingProfileId: string; + + /** + * Grain. + */ + @query("grainParameter") + grainParameter?: GrainParameter; + + /** + * Supports filtering by properties/benefitId, properties/benefitOrderId and properties/usageDate. + */ + @query("filter") + filter?: string; + } + >; + /** + * Lists the savings plan utilization summaries for daily or monthly grain. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("BenefitUtilizationSummaries_ListBySavingsPlanOrder") + @autoRoute + @get + @action("benefitUtilizationSummaries") + listBySavingsPlanOrder is ArmProviderActionSync< + Response = ResourceListResult, + Parameters = { + /** + * Supports filtering by properties/usageDate. + */ + @query("$filter") + $filter?: string; + + /** + * Grain. + */ + @query("grainParameter") + grainParameter?: GrainParameter; + + /** + * Savings plan order ID. + */ + @path + @segment("savingsPlanOrders") + savingsPlanOrderId: string; + } + >; + /** + * Lists the savings plan utilization summaries for daily or monthly grain. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("BenefitUtilizationSummaries_ListBySavingsPlanId") + @autoRoute + @get + @action("benefitUtilizationSummaries") + listBySavingsPlanId is ArmProviderActionSync< + Response = ResourceListResult, + Parameters = { + /** + * Supports filtering by properties/usageDate. + */ + @query("$filter") + $filter?: string; + + /** + * Grain. + */ + @query("grainParameter") + grainParameter?: GrainParameter; + + /** + * Savings plan order ID. + */ + @path + @segment("savingsPlanOrders") + savingsPlanOrderId: string; + + /** + * Savings plan ID. + */ + @path + @segment("savingsPlans") + savingsPlanId: string; + } + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface GenerateBenefitUtilizationSummariesReportOperationGroup { + /** + * Triggers generation of a benefit utilization summaries report for the provided billing account. This API supports only enrollment accounts. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GenerateBenefitUtilizationSummariesReport_GenerateByBillingAccount") + @autoRoute + @action("generateBenefitUtilizationSummariesReport") + generateByBillingAccount is ArmProviderActionAsync< + Request = BenefitUtilizationSummariesRequest, + Response = BenefitUtilizationSummariesOperationStatus, + Parameters = { + /** + * Billing account ID + */ + @path + @segment("billingAccounts") + billingAccountId: string; + } + >; + /** + * Triggers generation of a benefit utilization summaries report for the provided billing account and billing profile. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GenerateBenefitUtilizationSummariesReport_GenerateByBillingProfile") + @autoRoute + @action("generateBenefitUtilizationSummariesReport") + generateByBillingProfile is ArmProviderActionAsync< + Request = BenefitUtilizationSummariesRequest, + Response = BenefitUtilizationSummariesOperationStatus, + Parameters = { + /** + * Billing account ID + */ + @path + @segment("billingAccounts") + billingAccountId: string; + + /** + * Billing profile ID. + */ + @path + @segment("billingProfiles") + billingProfileId: string; + } + >; + /** + * Triggers generation of a benefit utilization summaries report for the provided reservation order. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GenerateBenefitUtilizationSummariesReport_GenerateByReservationOrderId") + @autoRoute + @action("generateBenefitUtilizationSummariesReport") + generateByReservationOrderId is ArmProviderActionAsync< + Request = BenefitUtilizationSummariesRequest, + Response = BenefitUtilizationSummariesOperationStatus, + Parameters = { + /** + * Reservation Order ID + */ + @path + @segment("reservationorders") + reservationOrderId: string; + } + >; + /** + * Triggers generation of a benefit utilization summaries report for the provided reservation. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GenerateBenefitUtilizationSummariesReport_GenerateByReservationId") + @autoRoute + @action("generateBenefitUtilizationSummariesReport") + generateByReservationId is ArmProviderActionAsync< + Request = BenefitUtilizationSummariesRequest, + Response = BenefitUtilizationSummariesOperationStatus, + Parameters = { + /** + * Reservation Order ID + */ + @path + @segment("reservationorders") + reservationOrderId: string; + + /** + * Reservation ID + */ + @path + @segment("reservations") + reservationId: string; + } + >; + /** + * Triggers generation of a benefit utilization summaries report for the provided savings plan order. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanOrderId") + @autoRoute + @action("generateBenefitUtilizationSummariesReport") + generateBySavingsPlanOrderId is ArmProviderActionAsync< + Request = BenefitUtilizationSummariesRequest, + Response = BenefitUtilizationSummariesOperationStatus, + Parameters = { + /** + * Savings plan order ID. + */ + @path + @segment("savingsPlanOrders") + savingsPlanOrderId: string; + } + >; + /** + * Triggers generation of a benefit utilization summaries report for the provided savings plan. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanId") + @autoRoute + @action("generateBenefitUtilizationSummariesReport") + generateBySavingsPlanId is ArmProviderActionAsync< + Request = BenefitUtilizationSummariesRequest, + Response = BenefitUtilizationSummariesOperationStatus, + Parameters = { + /** + * Savings plan order ID. + */ + @path + @segment("savingsPlanOrders") + savingsPlanOrderId: string; + + /** + * Savings plan ID. + */ + @path + @segment("savingsPlans") + savingsPlanId: string; + } + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface GenerateCostDetailsReportOperationGroup { + /** + * This API is the replacement for all previously release Usage Details APIs. Request to generate a cost details report for the provided date range, billing period (Only enterprise customers) or Invoice Id asynchronously at a certain scope. The initial call to request a report will return a 202 with a 'Location' and 'Retry-After' header. The 'Location' header will provide the endpoint to poll to get the result of the report generation. The 'Retry-After' provides the duration to wait before polling for the generated report. A call to poll the report operation will provide a 202 response with a 'Location' header if the operation is still in progress. Once the report generation operation completes, the polling endpoint will provide a 200 response along with details on the report blob(s) that are available for download. The details on the file(s) available for download will be available in the polling response body. To Understand cost details (formerly known as usage details) fields found in files ,see https://learn.microsoft.com/en-us/azure/cost-management-billing/automate/understand-usage-details-fields + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GenerateCostDetailsReport_CreateOperation") + @route("/{scope}/providers/Microsoft.CostManagement/generateCostDetailsReport") + @post + createOperation( + ...ApiVersionParameter, + + /** + * The ARM Resource ID for subscription, billing account, or other billing scopes.Currently Resource Group and Management Group are not supported. For details, see https://aka.ms/costmgmt/scopes. + */ + @path + scope: string, + + /** + * Parameters supplied to the Create cost details operation. + */ + @bodyRoot + parameters: GenerateCostDetailsReportRequestDefinition, + ): ArmResponse | ArmAcceptedResponse | ErrorResponse; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface GenerateDetailedCostReportOperationGroup { + /** + * Generates the detailed cost report for provided date range, billing period(only enterprise customers) or Invoice ID asynchronously at a certain scope. Call returns a 202 with header Azure-Consumption-AsyncOperation providing a link to the operation created. A call on the operation will provide the status and if the operation is completed the blob file where generated detailed cost report is being stored. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GenerateDetailedCostReport_CreateOperation") + @route("/{scope}/providers/Microsoft.CostManagement/generateDetailedCostReport") + @post + createOperation( + ...ApiVersionParameter, + + /** + * The ARM Resource ID for subscription, resource group, billing account, or other billing scopes. For details, see https://aka.ms/costmgmt/scopes. + */ + @path + scope: string, + + /** + * Parameters supplied to the Create detailed cost report operation. + */ + @bodyRoot + parameters: GenerateDetailedCostReportDefinition, + ): ArmResponse | ArmAcceptedResponse | ErrorResponse; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface AlertsOperationGroup { + /** + * Lists the Alerts for external cloud provider type defined. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Alerts_ListExternal") + @autoRoute + @get + @action("alerts") + listExternal is ArmProviderActionSync< + Response = AlertsResult, + Parameters = { + /** + * The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + */ + @path + @segment("Microsoft.CostManagement") + externalCloudProviderType: ExternalCloudProviderType; + + /** + * This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + */ + @path + @segment("{externalCloudProviderType}") + externalCloudProviderId: string; + } + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface ForecastOperationGroup { + /** + * Lists the forecast charges for scope defined. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Forecast_Usage") + @route("/{scope}/providers/Microsoft.CostManagement/forecast") + @post + usage( + ...ApiVersionParameter, + + /** + * May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. + */ + @query("$filter") + $filter?: string, + + /** + * The scope associated with forecast operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + */ + @path + scope: string, + + /** + * Parameters supplied to the CreateOrUpdate Forecast Config operation. + */ + @bodyRoot + parameters: ForecastDefinition, + ): ArmResponse | ErrorResponse; + + /** + * Lists the forecast charges for external cloud provider type defined. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Forecast_ExternalCloudProviderUsage") + @autoRoute + @action("forecast") + externalCloudProviderUsage is ArmProviderActionSync< + Request = ForecastDefinition, + Response = ForecastResult, + Parameters = { + /** + * May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. + */ + @query("$filter") + $filter?: string; + + /** + * The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + */ + @path + @segment("Microsoft.CostManagement") + externalCloudProviderType: ExternalCloudProviderType; + + /** + * This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + */ + @path + @segment("{externalCloudProviderType}") + externalCloudProviderId: string; + } + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface DimensionsOperationGroup { + /** + * Lists the dimensions by the defined scope. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Dimensions_List") + @route("/{scope}/providers/Microsoft.CostManagement/dimensions") + @get + list( + ...ApiVersionParameter, + + /** + * The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + */ + @path + scope: string, + + /** + * May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. + */ + @query("$filter") + $filter?: string, + + /** + * May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions. + */ + @query("$expand") + $expand?: string, + + /** + * Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. + */ + @query("$skiptoken") + $skiptoken?: string, + + /** + * May be used to limit the number of results to the most recent N dimension data. + */ + @maxValue(1000) + @minValue(1) + @query("$top") + $top?: int32, + ): ArmResponse | ErrorResponse; + + /** + * Lists the dimensions by the external cloud provider type. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Dimensions_ByExternalCloudProviderType") + @autoRoute + @get + @action("dimensions") + byExternalCloudProviderType is ArmProviderActionSync< + Response = DimensionsListResult, + Parameters = { + /** + * The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + */ + @path + @segment("Microsoft.CostManagement") + externalCloudProviderType: ExternalCloudProviderType; + + /** + * This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + */ + @path + @segment("{externalCloudProviderType}") + externalCloudProviderId: string; + + /** + * May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. + */ + @query("$filter") + $filter?: string; + + /** + * May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions. + */ + @query("$expand") + $expand?: string; + + /** + * Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. + */ + @query("$skiptoken") + $skiptoken?: string; + + /** + * May be used to limit the number of results to the most recent N dimension data. + */ + @maxValue(1000) + @minValue(1) + @query("$top") + $top?: int32; + } + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface QueryOperationGroup { + /** + * Query the usage data for scope defined. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Query_Usage") + @route("/{scope}/providers/Microsoft.CostManagement/query") + @post + usage( + ...ApiVersionParameter, + + /** + * The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + */ + @path + scope: string, + + /** + * Parameters supplied to the CreateOrUpdate Query Config operation. + */ + @bodyRoot + parameters: QueryDefinition, + ): ArmResponse | ErrorResponse; + + /** + * Query the usage data for external cloud provider type defined. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Query_UsageByExternalCloudProviderType") + @autoRoute + @action("query") + usageByExternalCloudProviderType is ArmProviderActionSync< + Request = QueryDefinition, + Response = QueryResult, + Parameters = { + /** + * The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + */ + @path + @segment("Microsoft.CostManagement") + externalCloudProviderType: ExternalCloudProviderType; + + /** + * This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + */ + @path + @segment("{externalCloudProviderType}") + externalCloudProviderId: string; + } + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface GenerateReservationDetailsReportOperationGroup { + /** + * Generates the reservations details report for provided date range asynchronously based on enrollment id. The Reservation usage details can be viewed only by certain enterprise roles. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/understand-ea-roles#usage-and-costs-access-by-role + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GenerateReservationDetailsReport_ByBillingAccountId") + @autoRoute + @action("generateReservationDetailsReport") + byBillingAccountId is ArmProviderActionAsync< + Response = OperationStatus, + Parameters = { + /** + * Enrollment ID (Legacy BillingAccount ID) + */ + @path + @segment("billingAccounts") + billingAccountId: string; + + /** + * Start Date + */ + @query("startDate") + startDate: string; + + /** + * End Date + */ + @query("endDate") + endDate: string; + } + >; + /** + * Generates the reservations details report for provided date range asynchronously by billing profile. The Reservation usage details can be viewed by only certain enterprise roles by default. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/reservations/reservation-utilization#view-utilization-in-the-azure-portal-with-azure-rbac-access + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("GenerateReservationDetailsReport_ByBillingProfileId") + @autoRoute + @action("generateReservationDetailsReport") + byBillingProfileId is ArmProviderActionAsync< + Response = OperationStatus, + Parameters = { + /** + * Billing account ID + */ + @path + @segment("billingAccounts") + billingAccountId: string; + + /** + * Billing profile ID. + */ + @path + @segment("billingProfiles") + billingProfileId: string; + + /** + * Start Date + */ + @query("startDate") + startDate: string; + + /** + * End Date + */ + @query("endDate") + endDate: string; + } + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface PriceSheetOperationGroup { + /** + * Gets a URL to download the pricesheet for an invoice. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("PriceSheet_DownloadByInvoice") + @autoRoute + @action("pricesheets/default/download") + downloadByInvoice is ArmProviderActionAsync< + Response = DownloadURL, + Parameters = { + /** + * The ID that uniquely identifies a billing account. + */ + @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+):([A-Za-z0-9]+(-[A-Za-z0-9]+)+)_[0-9]{4}-[0-9]{2}-[0-9]{2}") + @path + @segment("billingAccounts") + billingAccountName: string; + + /** + * The ID that uniquely identifies a billing profile. + */ + @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+)") + @path + @segment("billingProfiles") + billingProfileName: string; + + /** + * The ID that uniquely identifies an invoice. + */ + @pattern("[A-Za-z0-9]+") + @path + @segment("invoices") + invoiceName: string; + } + >; + /** + * Gets a URL to download the current month's pricesheet for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. + * + * You can use the new 2023-09-01 API version for billing periods January 2023 onwards. Azure Reserved Instance (RI) pricing is only available through the new version of the API. + * + * Due to Azure product growth, the Azure price sheet download experience in this preview version will be updated from a single csv/json file to a Zip file containing multiple csv/json files, each with max size of 75MB. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("PriceSheet_DownloadByBillingProfile") + @autoRoute + @action("pricesheets/default/download") + downloadByBillingProfile is ArmProviderActionAsync< + Response = PricesheetDownloadProperties, + Parameters = { + /** + * The ID that uniquely identifies a billing account. + */ + @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+):([A-Za-z0-9]+(-[A-Za-z0-9]+)+)_[0-9]{4}-[0-9]{2}-[0-9]{2}") + @path + @segment("billingAccounts") + billingAccountName: string; + + /** + * The ID that uniquely identifies a billing profile. + */ + @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+)") + @path + @segment("billingProfiles") + billingProfileName: string; + } + >; + /** + * Generates the pricesheet for the provided billing period asynchronously based on the Enrollment ID. This is for Enterprise Agreement customers. + * + * **Migrate to version 2025-03-01** + * + * You can use the 2025-03-01 API version with the new URI: + * + * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingPeriods/{billingPeriodName}/providers/Microsoft.CostManagement/pricesheets/default/download' + * + * With a new schema detailed below, the new version of the price sheet provides additional information and includes prices for Azure Reserved Instances (RI) for the current billing period. We recommend downloading an Azure Price Sheet for when entering a new billing period if you would maintain an ongoing record of past Azure Reserved Instance (RI) pricing. + * + * The EA Azure price sheet is available for billing periods in the past 13 months. To request a price sheet for a billing period older than 13 months, please contact support. + * + * The Azure price sheet download experience has been updated from a single .csv file to a zip file containing multiple .csv files, each with max size of 75MB. The 2023-11-01 version has been upgraded to use http POST method; details can be found below. + * + * All versions of the Microsoft.Consumption Azure Price Sheet - Download by Billing Account (including 2022-06-01, 2021-10-01, 2020-01-01-preview, 2019-10-01, 2019-05-01) are scheduled to be retired on 01 June 2026 and will no longer be supported after this date. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("PriceSheet_DownloadByBillingAccount") + @autoRoute + @action("pricesheets/default/download") + downloadByBillingAccount is ArmProviderActionAsync< + Response = PriceSheetOperationStatus, + Parameters = { + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + billingAccountId: string; + + /** + * Billing Period Name. + */ + @pattern("^[0-9]*$") + @path + @segment("billingPeriods") + billingPeriodName: string; + } + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface ScheduledActionsOperationGroup { + /** + * Checks availability and correctness of the name for a scheduled action. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("ScheduledActions_CheckNameAvailability") + @autoRoute + checkNameAvailability is ArmProviderActionSync< + Request = Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest, + Response = Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse + >; + /** + * Checks availability and correctness of the name for a scheduled action within the given scope. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("ScheduledActions_CheckNameAvailabilityByScope") + @route("/{scope}/providers/Microsoft.CostManagement/checkNameAvailability") + @post + checkNameAvailabilityByScope( + ...ApiVersionParameter, + + /** + * The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope. + */ + @path + scope: string, + + /** + * Scheduled action to be created or updated. + */ + @bodyRoot + checkNameAvailabilityRequest: CheckNameAvailabilityRequest, + ): ArmResponse | ErrorResponse; +} diff --git a/specification/cost-management/CostManagement.Management/tspconfig.yaml b/specification/cost-management/CostManagement.Management/tspconfig.yaml new file mode 100644 index 000000000000..d30835435e4f --- /dev/null +++ b/specification/cost-management/CostManagement.Management/tspconfig.yaml @@ -0,0 +1,14 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + omit-unreachable-types: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json" + emit-lro-options: "all" + examples-dir: "{project-root}/examples" + arm-resource-flattening: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" From 178e8e740126740725dc9231d503bfc7e38c801b Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 12 Sep 2025 12:30:49 +0800 Subject: [PATCH 02/45] Fix errors and diff --- .../CostManagement.Management/Alert.tsp | 22 +- .../CostManagement.Management/Budget.tsp | 33 +- .../CostAllocationRuleDefinition.tsp | 63 +- .../CostDetailsOperationResults.tsp | 16 +- .../CostManagement.Management/Export.tsp | 43 +- ...erateDetailedCostReportOperationResult.tsp | 4 +- ...ateDetailedCostReportOperationStatuses.tsp | 12 +- .../ScheduledAction.tsp | 99 +- .../CostManagement.Management/Setting.tsp | 55 +- .../CostManagement.Management/View.tsp | 59 +- .../back-compatible.tsp | 129 +- ...enefitRecommendationsByBillingAccount.json | 2 +- ...zationSummariesReportByBillingAccount.json | 2 +- ...zationSummariesReportByBillingProfile.json | 2 +- ...ilizationSummariesReportByReservation.json | 2 +- ...tionSummariesReportByReservationOrder.json | 2 +- ...ilizationSummariesReportBySavingsPlan.json | 2 +- ...tionSummariesReportBySavingsPlanOrder.json | 2 +- .../SavingsPlan-BillingAccount.json | 2 +- .../SavingsPlan-BillingProfile.json | 2 +- .../SavingsPlan-SavingsPlanId-Monthly.json | 2 +- .../SavingsPlan-SavingsPlanOrderId-Daily.json | 2 +- .../2025-03-01/BillingAccountAlerts.json | 2 +- .../BillingAccountDimensionsList.json | 2 +- ...lingAccountDimensionsListExpandAndTop.json | 2 +- ...illingAccountDimensionsListWithFilter.json | 2 +- .../2025-03-01/BillingAccountForecast.json | 2 +- .../2025-03-01/BillingAccountQuery.json | 2 +- .../BillingAccountQueryGrouping.json | 2 +- .../2025-03-01/BillingProfileAlerts.json | 2 +- .../2025-03-01/BillingProfileForecast.json | 2 +- ...eateOrUpdate-Cost-Subscription-Budget.json | 2 +- ...countEA-AlertRule-ReservationIdFilter.json | 2 +- ...-AlertRule-ReservedResourceTypeFilter.json | 2 +- .../EA/BillingAccountEA-AlertRule.json | 2 +- ...Profile-AlertRule-ReservationIdFilter.json | 2 +- ...-AlertRule-ReservedResourceTypeFilter.json | 2 +- .../MCA/BillingProfile-AlertRule.json | 2 +- ...ustomer-AlertRule-ReservationIdFilter.json | 2 +- ...-AlertRule-ReservedResourceTypeFilter.json | 2 +- .../MCA/Customer-AlertRule.json | 2 +- .../Budgets/Delete/DeleteBudget.json | 2 +- .../Budgets/Get/Cost/Get-Cost-Budget.json | 2 +- .../Get-ReservationUtilization-AlertRule.json | 2 +- ...ountBudgetsList-EA-CategoryTypeFilter.json | 2 +- .../List/EA/BillingAccountBudgetsList-EA.json | 2 +- .../List/EA/DepartmentBudgetsList.json | 2 +- .../List/EA/EnrollmentAccountBudgetsList.json | 2 +- ...untBudgetsList-MCA-CategoryTypeFilter.json | 2 +- .../MCA/BillingAccountBudgetsList-MCA.json | 2 +- ...ProfileBudgetsList-CategoryTypeFilter.json | 2 +- .../List/MCA/BillingProfileBudgetsList.json | 2 +- ...ustomerBudgetsList-CategoryTypeFilter.json | 2 +- .../Budgets/List/MCA/CustomerBudgetsList.json | 2 +- .../List/MCA/InvoiceSectionBudgetsList.json | 2 +- .../List/RBAC/ManagementGroupBudgetsList.json | 2 +- .../List/RBAC/ResourceGroupBudgetsList.json | 2 +- .../List/RBAC/SubscriptionBudgetsList.json | 2 +- ...stAllocationRuleCheckNameAvailability.json | 2 +- .../2025-03-01/CostAllocationRuleCreate.json | 2 +- .../CostAllocationRuleCreateTag.json | 2 +- .../2025-03-01/CostAllocationRuleDelete.json | 2 +- .../2025-03-01/CostAllocationRuleGet.json | 2 +- .../2025-03-01/CostAllocationRulesList.json | 2 +- ...lsOperationResultsBySubscriptionScope.json | 2 +- .../examples/2025-03-01/DepartmentAlerts.json | 2 +- .../2025-03-01/DepartmentDimensionsList.json | 2 +- .../DepartmentDimensionsListExpandAndTop.json | 2 +- .../DepartmentDimensionsListWithFilter.json | 2 +- .../2025-03-01/DepartmentForecast.json | 2 +- .../examples/2025-03-01/DepartmentQuery.json | 2 +- .../2025-03-01/DepartmentQueryGrouping.json | 2 +- .../DismissResourceGroupAlerts.json | 2 +- .../2025-03-01/DismissSubscriptionAlerts.json | 2 +- .../EAPriceSheetForBillingPeriod.json | 2 +- .../2025-03-01/EnrollmentAccountAlerts.json | 2 +- .../EnrollmentAccountDimensionsList.json | 2 +- ...mentAccountDimensionsListExpandAndTop.json | 2 +- ...llmentAccountDimensionsListWithFilter.json | 2 +- .../2025-03-01/EnrollmentAccountForecast.json | 2 +- .../2025-03-01/EnrollmentAccountQuery.json | 2 +- .../EnrollmentAccountQueryGrouping.json | 2 +- .../ExportCreateOrUpdateByBillingAccount.json | 2 +- ...tCreateOrUpdateByBillingAccountCustom.json | 2 +- ...CreateOrUpdateByBillingAccountMonthly.json | 2 +- ...ateOrUpdateByBillingAccountPricesheet.json | 2 +- ...ateByBillingAccountReservationDetails.json | 2 +- ...llingAccountReservationRecommendation.json | 2 +- ...BillingAccountReservationTransactions.json | 2 +- .../ExportCreateOrUpdateByDepartment.json | 2 +- ...portCreateOrUpdateByEnrollmentAccount.json | 2 +- ...ExportCreateOrUpdateByManagementGroup.json | 2 +- .../ExportCreateOrUpdateByResourceGroup.json | 2 +- .../ExportCreateOrUpdateBySubscription.json | 2 +- .../ExportDeleteByBillingAccount.json | 2 +- .../2025-03-01/ExportDeleteByDepartment.json | 2 +- .../ExportDeleteByEnrollmentAccount.json | 2 +- .../ExportDeleteByManagementGroup.json | 2 +- .../ExportDeleteByResourceGroup.json | 2 +- .../ExportDeleteBySubscription.json | 2 +- .../2025-03-01/ExportGetByBillingAccount.json | 2 +- .../2025-03-01/ExportGetByDepartment.json | 2 +- .../ExportGetByEnrollmentAccount.json | 2 +- .../ExportGetByManagementGroup.json | 2 +- .../2025-03-01/ExportGetByResourceGroup.json | 2 +- .../2025-03-01/ExportGetBySubscription.json | 2 +- .../2025-03-01/ExportRunByBillingAccount.json | 2 +- ...BillingAccountWithOptionalRequestBody.json | 2 +- .../2025-03-01/ExportRunByDepartment.json | 2 +- .../ExportRunByEnrollmentAccount.json | 2 +- .../ExportRunByManagementGroup.json | 2 +- .../2025-03-01/ExportRunByResourceGroup.json | 2 +- .../2025-03-01/ExportRunBySubscription.json | 2 +- .../ExportRunHistoryGetByBillingAccount.json | 2 +- .../ExportRunHistoryGetByDepartment.json | 2 +- ...xportRunHistoryGetByEnrollmentAccount.json | 2 +- .../ExportRunHistoryGetByManagementGroup.json | 2 +- .../ExportRunHistoryGetByResourceGroup.json | 2 +- .../ExportRunHistoryGetBySubscription.json | 2 +- .../ExportsGetByBillingAccount.json | 2 +- .../2025-03-01/ExportsGetByDepartment.json | 2 +- .../ExportsGetByEnrollmentAccount.json | 2 +- .../ExportsGetByManagementGroup.json | 2 +- .../2025-03-01/ExportsGetByResourceGroup.json | 2 +- .../2025-03-01/ExportsGetBySubscription.json | 2 +- .../ExternalBillingAccountAlerts.json | 2 +- .../ExternalBillingAccountForecast.json | 2 +- .../ExternalBillingAccountsDimensions.json | 2 +- .../ExternalBillingAccountsQuery.json | 2 +- .../ExternalSubscriptionAlerts.json | 2 +- .../ExternalSubscriptionForecast.json | 2 +- .../ExternalSubscriptionsDimensions.json | 2 +- .../ExternalSubscriptionsQuery.json | 2 +- ...riseAgreementCustomerAndBillingPeriod.json | 2 +- ...ilsReportByBillingProfileAndInvoiceId.json | 2 +- ...llingProfileAndInvoiceIdAndCustomerId.json | 2 +- ...tDetailsReportByCustomerAndTimePeriod.json | 2 +- ...tailsReportByDepartmentsAndTimePeriod.json | 2 +- ...portByEnrollmentAccountsAndTimePeriod.json | 2 +- ...ailsReportBySubscriptionAndTimePeriod.json | 2 +- ...yBillingAccountLegacyAndBillingPeriod.json | 2 +- ...ostReportByBillingProfileAndInvoiceId.json | 2 +- ...llingProfileAndInvoiceIdAndCustomerId.json | 2 +- ...iledCostReportByCustomerAndTimePeriod.json | 2 +- ...CostReportBySubscriptionAndTimePeriod.json | 2 +- ...rtOperationResultsBySubscriptionScope.json | 2 +- ...ortOperationStatusBySubscriptionScope.json | 2 +- ...ervationDetailsReportByBillingAccount.json | 2 +- ...ervationDetailsReportByBillingProfile.json | 2 +- .../2025-03-01/InvoiceSectionAlerts.json | 2 +- .../2025-03-01/InvoiceSectionForecast.json | 2 +- .../MCABillingAccountDimensionsList.json | 2 +- ...lingAccountDimensionsListExpandAndTop.json | 2 +- ...illingAccountDimensionsListWithFilter.json | 2 +- .../2025-03-01/MCABillingAccountQuery.json | 2 +- .../MCABillingAccountQueryGrouping.json | 2 +- .../MCABillingProfileDimensionsList.json | 2 +- ...lingProfileDimensionsListExpandAndTop.json | 2 +- ...illingProfileDimensionsListWithFilter.json | 2 +- .../2025-03-01/MCABillingProfileQuery.json | 2 +- .../MCABillingProfileQueryGrouping.json | 2 +- .../2025-03-01/MCACustomerDimensionsList.json | 2 +- ...MCACustomerDimensionsListExpandAndTop.json | 2 +- .../MCACustomerDimensionsListWithFilter.json | 2 +- .../examples/2025-03-01/MCACustomerQuery.json | 2 +- .../2025-03-01/MCACustomerQueryGrouping.json | 2 +- .../MCAInvoiceSectionDimensionsList.json | 2 +- ...oiceSectionDimensionsListExpandAndTop.json | 2 +- ...nvoiceSectionDimensionsListWithFilter.json | 2 +- .../2025-03-01/MCAInvoiceSectionQuery.json | 2 +- .../MCAInvoiceSectionQueryGrouping.json | 2 +- .../ManagementGroupDimensionsList.json | 2 +- ...gementGroupDimensionsListExpandAndTop.json | 2 +- ...nagementGroupDimensionsListWithFilter.json | 2 +- .../2025-03-01/ManagementGroupQuery.json | 2 +- .../ManagementGroupQueryGrouping.json | 2 +- .../examples/2025-03-01/OperationList.json | 2 +- .../2025-03-01/PricesheetDownload.json | 2 +- .../PricesheetDownloadByBillingProfile.json | 2 +- .../examples/2025-03-01/PrivateView.json | 2 +- .../2025-03-01/PrivateViewCreateOrUpdate.json | 2 +- .../2025-03-01/PrivateViewDelete.json | 2 +- .../examples/2025-03-01/PrivateViewList.json | 2 +- .../2025-03-01/ResourceGroupAlerts.json | 2 +- .../ResourceGroupDimensionsList.json | 2 +- .../2025-03-01/ResourceGroupForecast.json | 2 +- .../2025-03-01/ResourceGroupQuery.json | 2 +- .../ResourceGroupQueryGrouping.json | 2 +- .../2025-03-01/SingleResourceGroupAlert.json | 2 +- .../2025-03-01/SingleSubscriptionAlert.json | 2 +- .../2025-03-01/SubscriptionAlerts.json | 2 +- .../SubscriptionDimensionsList.json | 2 +- .../2025-03-01/SubscriptionForecast.json | 2 +- .../2025-03-01/SubscriptionQuery.json | 2 +- .../2025-03-01/SubscriptionQueryGrouping.json | 2 +- .../2025-03-01/ViewByResourceGroup.json | 2 +- .../ViewCreateOrUpdateByResourceGroup.json | 2 +- .../2025-03-01/ViewDeleteByResourceGroup.json | 2 +- .../2025-03-01/ViewListByResourceGroup.json | 134 + ...eAvailability-private-scheduledAction.json | 2 +- ...meAvailability-shared-scheduledAction.json | 2 +- ...cheduledAction-createOrUpdate-private.json | 2 +- ...scheduledAction-createOrUpdate-shared.json | 2 +- .../scheduledAction-delete-private.json | 2 +- .../scheduledAction-delete-shared.json | 2 +- .../scheduledAction-get-private.json | 2 +- .../scheduledAction-get-shared.json | 2 +- ...on-insightAlert-createOrUpdate-shared.json | 2 +- .../scheduledAction-sendNow-private.json | 2 +- .../scheduledAction-sendNow-shared.json | 2 +- .../scheduledActions-list-private.json | 2 +- .../scheduledActions-list-shared.json | 92 + ...heduledActions-listWithFilter-private.json | 2 +- ...cheduledActions-listWithFilter-shared.json | 93 + .../examples/2025-03-01/setting-delete.json | 2 +- .../examples/2025-03-01/setting-get.json | 2 +- .../2025-03-01/settings-createOrUpdate.json | 2 +- .../examples/2025-03-01/settingsList.json | 2 +- .../CostManagement.Management/main.tsp | 6 +- .../CostManagement.Management/models.tsp | 745 +- .../CostManagement.Management/routes.tsp | 1020 +- .../CostManagement.Management/tspconfig.yaml | 1 - ...enefitRecommendationsByBillingAccount.json | 170 +- ...zationSummariesReportByBillingAccount.json | 34 +- ...zationSummariesReportByBillingProfile.json | 36 +- ...ilizationSummariesReportByReservation.json | 36 +- ...tionSummariesReportByReservationOrder.json | 32 +- ...ilizationSummariesReportBySavingsPlan.json | 36 +- ...tionSummariesReportBySavingsPlanOrder.json | 32 +- .../SavingsPlan-BillingAccount.json | 16 +- .../SavingsPlan-BillingProfile.json | 10 +- .../SavingsPlan-SavingsPlanId-Monthly.json | 22 +- .../SavingsPlan-SavingsPlanOrderId-Daily.json | 14 +- .../examples/BillingAccountAlerts.json | 100 +- .../BillingAccountDimensionsList.json | 28 +- ...lingAccountDimensionsListExpandAndTop.json | 32 +- ...illingAccountDimensionsListWithFilter.json | 24 +- .../examples/BillingAccountForecast.json | 28 +- .../examples/BillingAccountQuery.json | 22 +- .../examples/BillingAccountQueryGrouping.json | 24 +- .../examples/BillingProfileAlerts.json | 200 +- .../examples/BillingProfileForecast.json | 28 +- ...eateOrUpdate-Cost-Subscription-Budget.json | 110 +- ...countEA-AlertRule-ReservationIdFilter.json | 82 +- ...-AlertRule-ReservedResourceTypeFilter.json | 82 +- .../EA/BillingAccountEA-AlertRule.json | 82 +- ...Profile-AlertRule-ReservationIdFilter.json | 82 +- ...-AlertRule-ReservedResourceTypeFilter.json | 82 +- .../MCA/BillingProfile-AlertRule.json | 82 +- ...ustomer-AlertRule-ReservationIdFilter.json | 84 +- ...-AlertRule-ReservedResourceTypeFilter.json | 84 +- .../MCA/Customer-AlertRule.json | 84 +- .../examples/Budgets/Delete/DeleteBudget.json | 10 +- .../Budgets/Get/Cost/Get-Cost-Budget.json | 42 +- .../Get-ReservationUtilization-AlertRule.json | 28 +- ...ountBudgetsList-EA-CategoryTypeFilter.json | 32 +- .../List/EA/BillingAccountBudgetsList-EA.json | 72 +- .../List/EA/DepartmentBudgetsList.json | 48 +- .../List/EA/EnrollmentAccountBudgetsList.json | 48 +- ...untBudgetsList-MCA-CategoryTypeFilter.json | 32 +- .../MCA/BillingAccountBudgetsList-MCA.json | 72 +- ...ProfileBudgetsList-CategoryTypeFilter.json | 56 +- .../List/MCA/BillingProfileBudgetsList.json | 96 +- ...ustomerBudgetsList-CategoryTypeFilter.json | 56 +- .../Budgets/List/MCA/CustomerBudgetsList.json | 96 +- .../List/MCA/InvoiceSectionBudgetsList.json | 48 +- .../List/RBAC/ManagementGroupBudgetsList.json | 138 +- .../List/RBAC/ResourceGroupBudgetsList.json | 88 +- .../List/RBAC/SubscriptionBudgetsList.json | 116 +- ...stAllocationRuleCheckNameAvailability.json | 8 +- .../examples/CostAllocationRuleCreate.json | 34 +- .../examples/CostAllocationRuleCreateTag.json | 34 +- .../examples/CostAllocationRuleDelete.json | 4 +- .../examples/CostAllocationRuleGet.json | 14 +- .../examples/CostAllocationRulesList.json | 38 +- ...lsOperationResultsBySubscriptionScope.json | 36 +- .../2025-03-01/examples/DepartmentAlerts.json | 100 +- .../examples/DepartmentDimensionsList.json | 28 +- .../DepartmentDimensionsListExpandAndTop.json | 32 +- .../DepartmentDimensionsListWithFilter.json | 24 +- .../examples/DepartmentForecast.json | 28 +- .../2025-03-01/examples/DepartmentQuery.json | 22 +- .../examples/DepartmentQueryGrouping.json | 24 +- .../examples/DismissResourceGroupAlerts.json | 60 +- .../examples/DismissSubscriptionAlerts.json | 58 +- .../EAPriceSheetForBillingPeriod.json | 20 +- .../examples/EnrollmentAccountAlerts.json | 100 +- .../EnrollmentAccountDimensionsList.json | 28 +- ...mentAccountDimensionsListExpandAndTop.json | 32 +- ...llmentAccountDimensionsListWithFilter.json | 24 +- .../examples/EnrollmentAccountForecast.json | 28 +- .../examples/EnrollmentAccountQuery.json | 22 +- .../EnrollmentAccountQueryGrouping.json | 24 +- .../ExportCreateOrUpdateByBillingAccount.json | 148 +- ...tCreateOrUpdateByBillingAccountCustom.json | 282 +- ...CreateOrUpdateByBillingAccountMonthly.json | 288 +- ...ateOrUpdateByBillingAccountPricesheet.json | 148 +- ...ateByBillingAccountReservationDetails.json | 138 +- ...llingAccountReservationRecommendation.json | 138 +- ...BillingAccountReservationTransactions.json | 138 +- .../ExportCreateOrUpdateByDepartment.json | 148 +- ...portCreateOrUpdateByEnrollmentAccount.json | 148 +- ...ExportCreateOrUpdateByManagementGroup.json | 150 +- .../ExportCreateOrUpdateByResourceGroup.json | 152 +- .../ExportCreateOrUpdateBySubscription.json | 150 +- .../ExportDeleteByBillingAccount.json | 8 +- .../examples/ExportDeleteByDepartment.json | 8 +- .../ExportDeleteByEnrollmentAccount.json | 8 +- .../ExportDeleteByManagementGroup.json | 8 +- .../examples/ExportDeleteByResourceGroup.json | 8 +- .../examples/ExportDeleteBySubscription.json | 8 +- .../examples/ExportGetByBillingAccount.json | 44 +- .../examples/ExportGetByDepartment.json | 44 +- .../ExportGetByEnrollmentAccount.json | 44 +- .../examples/ExportGetByManagementGroup.json | 44 +- .../examples/ExportGetByResourceGroup.json | 44 +- .../examples/ExportGetBySubscription.json | 44 +- .../examples/ExportRunByBillingAccount.json | 8 +- ...BillingAccountWithOptionalRequestBody.json | 8 +- .../examples/ExportRunByDepartment.json | 8 +- .../ExportRunByEnrollmentAccount.json | 8 +- .../examples/ExportRunByManagementGroup.json | 8 +- .../examples/ExportRunByResourceGroup.json | 8 +- .../examples/ExportRunBySubscription.json | 8 +- .../ExportRunHistoryGetByBillingAccount.json | 112 +- .../ExportRunHistoryGetByDepartment.json | 112 +- ...xportRunHistoryGetByEnrollmentAccount.json | 112 +- .../ExportRunHistoryGetByManagementGroup.json | 112 +- .../ExportRunHistoryGetByResourceGroup.json | 112 +- .../ExportRunHistoryGetBySubscription.json | 112 +- .../examples/ExportsGetByBillingAccount.json | 84 +- .../examples/ExportsGetByDepartment.json | 86 +- .../ExportsGetByEnrollmentAccount.json | 86 +- .../examples/ExportsGetByManagementGroup.json | 86 +- .../examples/ExportsGetByResourceGroup.json | 90 +- .../examples/ExportsGetBySubscription.json | 90 +- .../ExternalBillingAccountAlerts.json | 100 +- .../ExternalBillingAccountForecast.json | 30 +- .../ExternalBillingAccountsDimensions.json | 28 +- .../ExternalBillingAccountsQuery.json | 22 +- .../examples/ExternalSubscriptionAlerts.json | 100 +- .../ExternalSubscriptionForecast.json | 24 +- .../ExternalSubscriptionsDimensions.json | 28 +- .../examples/ExternalSubscriptionsQuery.json | 16 +- ...riseAgreementCustomerAndBillingPeriod.json | 40 +- ...ilsReportByBillingProfileAndInvoiceId.json | 40 +- ...llingProfileAndInvoiceIdAndCustomerId.json | 40 +- ...tDetailsReportByCustomerAndTimePeriod.json | 42 +- ...tailsReportByDepartmentsAndTimePeriod.json | 42 +- ...portByEnrollmentAccountsAndTimePeriod.json | 42 +- ...ailsReportBySubscriptionAndTimePeriod.json | 42 +- ...yBillingAccountLegacyAndBillingPeriod.json | 16 +- ...ostReportByBillingProfileAndInvoiceId.json | 16 +- ...llingProfileAndInvoiceIdAndCustomerId.json | 16 +- ...iledCostReportByCustomerAndTimePeriod.json | 16 +- ...CostReportBySubscriptionAndTimePeriod.json | 16 +- ...rtOperationResultsBySubscriptionScope.json | 10 +- ...ortOperationStatusBySubscriptionScope.json | 18 +- ...ervationDetailsReportByBillingAccount.json | 24 +- ...ervationDetailsReportByBillingProfile.json | 24 +- .../examples/InvoiceSectionAlerts.json | 100 +- .../examples/InvoiceSectionForecast.json | 28 +- .../MCABillingAccountDimensionsList.json | 28 +- ...lingAccountDimensionsListExpandAndTop.json | 32 +- ...illingAccountDimensionsListWithFilter.json | 24 +- .../examples/MCABillingAccountQuery.json | 22 +- .../MCABillingAccountQueryGrouping.json | 24 +- .../MCABillingProfileDimensionsList.json | 28 +- ...lingProfileDimensionsListExpandAndTop.json | 32 +- ...illingProfileDimensionsListWithFilter.json | 24 +- .../examples/MCABillingProfileQuery.json | 22 +- .../MCABillingProfileQueryGrouping.json | 24 +- .../examples/MCACustomerDimensionsList.json | 28 +- ...MCACustomerDimensionsListExpandAndTop.json | 32 +- .../MCACustomerDimensionsListWithFilter.json | 24 +- .../2025-03-01/examples/MCACustomerQuery.json | 22 +- .../examples/MCACustomerQueryGrouping.json | 24 +- .../MCAInvoiceSectionDimensionsList.json | 28 +- ...oiceSectionDimensionsListExpandAndTop.json | 32 +- ...nvoiceSectionDimensionsListWithFilter.json | 24 +- .../examples/MCAInvoiceSectionQuery.json | 22 +- .../MCAInvoiceSectionQueryGrouping.json | 24 +- .../ManagementGroupDimensionsList.json | 28 +- ...gementGroupDimensionsListExpandAndTop.json | 32 +- ...nagementGroupDimensionsListWithFilter.json | 24 +- .../examples/ManagementGroupQuery.json | 22 +- .../ManagementGroupQueryGrouping.json | 24 +- .../2025-03-01/examples/OperationList.json | 104 +- .../examples/PricesheetDownload.json | 18 +- .../PricesheetDownloadByBillingProfile.json | 18 +- .../2025-03-01/examples/PrivateView.json | 76 +- .../examples/PrivateViewCreateOrUpdate.json | 210 +- .../examples/PrivateViewDelete.json | 4 +- .../2025-03-01/examples/PrivateViewList.json | 132 +- .../examples/ResourceGroupAlerts.json | 104 +- .../examples/ResourceGroupDimensionsList.json | 36 +- .../examples/ResourceGroupForecast.json | 32 +- .../examples/ResourceGroupQuery.json | 24 +- .../examples/ResourceGroupQueryGrouping.json | 26 +- .../examples/SingleResourceGroupAlert.json | 54 +- .../examples/SingleSubscriptionAlert.json | 54 +- .../examples/SubscriptionAlerts.json | 104 +- .../examples/SubscriptionDimensionsList.json | 36 +- .../examples/SubscriptionForecast.json | 30 +- .../examples/SubscriptionQuery.json | 22 +- .../examples/SubscriptionQueryGrouping.json | 24 +- .../examples/ViewByResourceGroup.json | 80 +- .../ViewCreateOrUpdateByResourceGroup.json | 212 +- .../examples/ViewDeleteByResourceGroup.json | 4 +- .../examples/ViewListByResourceGroup.json | 4 +- ...eAvailability-private-scheduledAction.json | 8 +- ...meAvailability-shared-scheduledAction.json | 8 +- ...cheduledAction-createOrUpdate-private.json | 102 +- ...scheduledAction-createOrUpdate-shared.json | 114 +- .../scheduledAction-delete-private.json | 8 +- .../scheduledAction-delete-shared.json | 8 +- .../scheduledAction-get-private.json | 60 +- .../scheduledAction-get-shared.json | 60 +- ...on-insightAlert-createOrUpdate-shared.json | 80 +- .../scheduledAction-sendNow-private.json | 8 +- .../scheduledAction-sendNow-shared.json | 8 +- .../scheduledActions-list-private.json | 104 +- .../scheduledActions-list-shared.json | 4 +- ...heduledActions-listWithFilter-private.json | 108 +- ...cheduledActions-listWithFilter-shared.json | 4 +- .../2025-03-01/examples/setting-delete.json | 8 +- .../2025-03-01/examples/setting-get.json | 10 +- .../examples/settings-createOrUpdate.json | 14 +- .../2025-03-01/examples/settingsList.json | 6 +- .../stable/2025-03-01/openapi.json | 10547 ++++++++++++++++ .../resource-manager/readme.md | 12 +- 431 files changed, 18236 insertions(+), 6325 deletions(-) create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json create mode 100644 specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json diff --git a/specification/cost-management/CostManagement.Management/Alert.tsp b/specification/cost-management/CostManagement.Management/Alert.tsp index 2047a9619d74..69708900f8b4 100644 --- a/specification/cost-management/CostManagement.Management/Alert.tsp +++ b/specification/cost-management/CostManagement.Management/Alert.tsp @@ -13,7 +13,6 @@ namespace Microsoft.CostManagement; /** * An individual alert. */ -@extensionResource model Alert is Azure.ResourceManager.ExtensionResource { ...ResourceNameParameter< Resource = Alert, @@ -21,6 +20,12 @@ model Alert is Azure.ResourceManager.ExtensionResource { SegmentName = "alerts", NamePattern = "" >; + + /** + * eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + eTag?: Azure.Core.eTag; } @armResourceOperations @@ -28,25 +33,33 @@ interface Alerts { /** * Gets the alert for the scope by alert ID. */ - get is Extension.Read; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") + get is Extension.Read; /** * Dismisses the specified alert */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @patch(#{ implicitOptionality: false }) + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") dismiss is Extension.CustomPatchSync< Extension.ScopeParameter, Alert, - PatchModel = DismissAlertPayload + PatchModel = DismissAlertPayload, + Error = ErrorResponse >; /** * Lists the alerts for scope defined. */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") list is Extension.ListByTarget< Extension.ScopeParameter, Alert, - Response = ArmResponse + Response = ArmResponse, + Error = ErrorResponse >; } @@ -55,3 +68,4 @@ interface Alerts { @@doc(Alerts.dismiss::parameters.properties, "Parameters supplied to the Dismiss Alert operation." ); +@@path(Alert.name, #{ allowReserved: true }); diff --git a/specification/cost-management/CostManagement.Management/Budget.tsp b/specification/cost-management/CostManagement.Management/Budget.tsp index 302902c10577..58e86db7644a 100644 --- a/specification/cost-management/CostManagement.Management/Budget.tsp +++ b/specification/cost-management/CostManagement.Management/Budget.tsp @@ -13,7 +13,6 @@ namespace Microsoft.CostManagement; /** * A budget resource. */ -@extensionResource model Budget is Azure.ResourceManager.ExtensionResource { ...ResourceNameParameter< Resource = Budget, @@ -21,6 +20,12 @@ model Budget is Azure.ResourceManager.ExtensionResource { SegmentName = "budgets", NamePattern = "^[a-zA-Z0-9_-]+$" >; + + /** + * eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + eTag?: Azure.Core.eTag; } @armResourceOperations @@ -28,29 +33,43 @@ interface Budgets { /** * Gets the budget for the scope by budget name. */ - get is Extension.Read; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/CostManagement/") + get is Extension.Read< + Extension.ScopeParameter, + Budget, + Error = ErrorResponse + >; /** * The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation. */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/CostManagement/") createOrUpdate is Extension.CreateOrReplaceSync< Extension.ScopeParameter, - Budget + Budget, + Error = ErrorResponse >; /** * The operation to delete a budget. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/CostManagement/") delete is Extension.DeleteSync< Extension.ScopeParameter, Budget, - Response = ArmDeletedResponse + Response = ArmDeletedResponse, + Error = ErrorResponse >; /** * Lists all budgets for the defined scope. */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/CostManagement/") list is Extension.ListByTarget< Extension.ScopeParameter, Budget, @@ -60,7 +79,9 @@ interface Budgets { */ @query("$filter") $filter?: string; - } + }, + Response = ArmResponse, + Error = ErrorResponse >; } diff --git a/specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp b/specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp index d4e4068344c7..542355c3c0a5 100644 --- a/specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp +++ b/specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp @@ -24,10 +24,37 @@ model CostAllocationRuleDefinition >; } -alias billingAccountExternalResource = Extension.ExternalResource< - "Microsoft.Billing", - "billingAccounts", - "{billingAccountId}" +alias CostAllocationRuleDefinitionsOps = Azure.ResourceManager.Legacy.ExtensionOperations< + { + ...ApiVersionParameter; + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Billing"; + + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + billingAccountId: string; + }, + { + ...Azure.ResourceManager.Legacy.Provider; + }, + { + ...Azure.ResourceManager.Legacy.Provider; + + /** + * Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters. + */ + @path + @segment("costAllocationRules") + @pattern("[A-Za-z0-9\\-_]+") + ruleName: string; + } >; @armResourceOperations @@ -35,32 +62,42 @@ interface CostAllocationRuleDefinitions { /** * Get a cost allocation rule by rule name and billing account or enterprise enrollment. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("CostAllocationRules_Get") - get is ArmResourceRead; + get is CostAllocationRuleDefinitionsOps.Read< + CostAllocationRuleDefinition, + ErrorType = ErrorResponse + >; /** * Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("CostAllocationRules_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceSync; + createOrUpdate is CostAllocationRuleDefinitionsOps.CreateOrUpdateSync< + CostAllocationRuleDefinition, + ErrorType = ErrorResponse + >; /** * Delete cost allocation rule for billing account or enterprise enrollment. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("CostAllocationRules_Delete") - delete is ArmResourceDeleteSync; + delete is CostAllocationRuleDefinitionsOps.DeleteSync< + CostAllocationRuleDefinition, + ErrorType = ErrorResponse + >; /** * Get the list of all cost allocation rules for a billing account or enterprise enrollment. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("CostAllocationRules_List") - list is ArmResourceListByParent< + list is CostAllocationRuleDefinitionsOps.List< CostAllocationRuleDefinition, - Response = ArmResponse + Response = ArmResponse, + ErrorType = ErrorResponse >; } diff --git a/specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp b/specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp index 6a1ef9ec6a47..d1bb25f8599b 100644 --- a/specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp +++ b/specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp @@ -14,9 +14,8 @@ namespace Microsoft.CostManagement; /** * The result of the long running operation for cost details Api. */ -@extensionResource model CostDetailsOperationResults - is Azure.ResourceManager.ExtensionResource<{}> { + is Azure.ResourceManager.ExtensionResource { ...ResourceNameParameter< Resource = CostDetailsOperationResults, KeyName = "operationId", @@ -27,28 +26,26 @@ model CostDetailsOperationResults /** * The status of the cost details operation */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" status?: CostDetailsStatusType; /** * The manifest of the report generated by the operation. */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" manifest?: ReportManifest; /** * The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z. */ // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" validTill?: utcDateTime; /** * The details of the error. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" error?: ErrorDetails; } @@ -60,7 +57,8 @@ interface GenerateCostDetailsReport { getOperationResults is Extension.Read< Extension.ScopeParameter, CostDetailsOperationResults, - Response = ArmResponse | AcceptedResponse + Response = ArmResponse | ArmAcceptedLroResponse>, + Error = ErrorResponse >; } diff --git a/specification/cost-management/CostManagement.Management/Export.tsp b/specification/cost-management/CostManagement.Management/Export.tsp index 6c87b19a91a0..d676103b095d 100644 --- a/specification/cost-management/CostManagement.Management/Export.tsp +++ b/specification/cost-management/CostManagement.Management/Export.tsp @@ -13,7 +13,6 @@ namespace Microsoft.CostManagement; /** * An export resource. */ -@extensionResource model Export is Azure.ResourceManager.ExtensionResource { ...ResourceNameParameter< Resource = Export, @@ -25,15 +24,21 @@ model Export is Azure.ResourceManager.ExtensionResource { /** * The managed identity associated with Export */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" identity?: Azure.ResourceManager.CommonTypes.SystemAssignedServiceIdentity; /** * The location of the Export's managed identity. Only required when utilizing managed identity. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read, Lifecycle.Create) location?: string; + + /** + * eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + eTag?: Azure.Core.eTag; } @armResourceOperations @@ -41,6 +46,8 @@ interface Exports { /** * The operation to get the export for the defined scope by export name. */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") get is Extension.Read< Extension.ScopeParameter, Export, @@ -50,30 +57,39 @@ interface Exports { */ @query("$expand") $expand?: string; - } + }, + Error = ErrorResponse >; /** * The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") createOrUpdate is Extension.CreateOrReplaceSync< Extension.ScopeParameter, - Export + Export, + Error = ErrorResponse >; /** * The operation to delete a export. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") delete is Extension.DeleteSync< Extension.ScopeParameter, Export, - Response = ArmDeletedResponse + Response = ArmDeletedResponse, + Error = ErrorResponse >; /** * The operation to list all exports at the given scope. */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") list is Extension.ListByTarget< Extension.ScopeParameter, Export, @@ -84,31 +100,38 @@ interface Exports { @query("$expand") $expand?: string; }, - Response = ArmResponse + Response = ArmResponse, + Error = ErrorResponse >; /** * The operation to run an export. */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @action("run") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") execute is Extension.ActionSync< Extension.ScopeParameter, Export, ExportRunRequest, OkResponse, - OptionalRequestBody = true + OptionalRequestBody = true, + Error = ErrorResponse >; /** * The operation to get the run history of an export for the defined scope and export name. */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @get @action("runHistory") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") getExecutionHistory is Extension.ActionSync< Extension.ScopeParameter, Export, void, - ArmResponse + ArmResponse, + Error = ErrorResponse >; } diff --git a/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp b/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp index 56074ec755d1..be8260be4df9 100644 --- a/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp +++ b/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp @@ -13,7 +13,6 @@ namespace Microsoft.CostManagement; /** * The result of the long running operation for cost detailed report. */ -@extensionResource model GenerateDetailedCostReportOperationResult is Azure.ResourceManager.ExtensionResource { ...ResourceNameParameter< @@ -32,7 +31,8 @@ interface GenerateDetailedCostReportOperationResults { get is Extension.Read< Extension.ScopeParameter, GenerateDetailedCostReportOperationResult, - Response = ArmResponse | AcceptedResponse + Response = ArmResponse | ArmAcceptedLroResponse>, + Error = ErrorResponse >; } diff --git a/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationStatuses.tsp b/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationStatuses.tsp index 57b4aaa95630..a686aaf5edd0 100644 --- a/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationStatuses.tsp +++ b/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationStatuses.tsp @@ -13,7 +13,6 @@ namespace Microsoft.CostManagement; /** * The status of the long running operation for cost detailed report. */ -@extensionResource model GenerateDetailedCostReportOperationStatuses is Azure.ResourceManager.ExtensionResource { ...ResourceNameParameter< @@ -26,25 +25,25 @@ model GenerateDetailedCostReportOperationStatuses /** * The status of the long running operation. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" status?: Status; /** * The startTime of the operation. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" startTime?: string; /** * The endTime of the operation. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" endTime?: string; /** * The details of the error. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" error?: ErrorDetails; } @@ -55,7 +54,8 @@ interface GenerateDetailedCostReportOperationStatus { */ get is Extension.Read< Extension.ScopeParameter, - GenerateDetailedCostReportOperationStatuses + GenerateDetailedCostReportOperationStatuses, + Error = ErrorResponse >; } diff --git a/specification/cost-management/CostManagement.Management/ScheduledAction.tsp b/specification/cost-management/CostManagement.Management/ScheduledAction.tsp index 187efb0b293f..fc646e09a682 100644 --- a/specification/cost-management/CostManagement.Management/ScheduledAction.tsp +++ b/specification/cost-management/CostManagement.Management/ScheduledAction.tsp @@ -22,6 +22,18 @@ model ScheduledAction SegmentName = "scheduledActions", NamePattern = "" >; + + /** + * Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + eTag?: Azure.Core.eTag; + + /** + * Kind of the scheduled action. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + kind?: ScheduledActionKind; } @armResourceOperations @@ -51,7 +63,12 @@ interface ScheduledActions { /** * Get the private scheduled action by name. */ - get is ScheduledActionOps.Read; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") + get is ScheduledActionOps.Read< + ScheduledAction, + ErrorType = ErrorResponseWithNestedDetails + >; /** * Create or update a private scheduled action. @@ -62,22 +79,50 @@ interface ScheduledActions { /** * ETag of the Entity. Not required when creating an entity. Optional when updating an entity and can be specified to achieve optimistic concurrency. */ - @header + #suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @header("If-Match") `If-Match`?: string; - } + }, + ErrorType = ErrorResponseWithNestedDetails >; /** * Delete a private scheduled action. */ - delete is ScheduledActionOps.DeleteSync; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") + delete is ScheduledActionOps.DeleteSync< + ScheduledAction, + ErrorType = ErrorResponseWithNestedDetails + >; + + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") + list is ScheduledActionOps.List< + ScheduledAction, + Parameters = { + /** + * May be used to filter scheduled actions by properties/viewId. Supported operator is 'eq'. + */ + @query("$filter") + $filter?: string; + }, + Response = ScheduledActionListResult, + ErrorType = ErrorResponseWithNestedDetails + >; /** * Processes a private scheduled action. */ @action("execute") - run is ScheduledActionOps.ActionSync; + run is ScheduledActionOps.ActionSync< + ScheduledAction, + void, + OkResponse, + ErrorType = ErrorResponseWithNestedDetails + >; } + @armResourceOperations interface ScheduledActionOperationGroupOps extends Azure.ResourceManager.Legacy.ExtensionOperations< @@ -111,47 +156,53 @@ interface ScheduledActionOperationGroup { /** * Get the shared scheduled action from the given scope by name. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("ScheduledActions_GetByScope") + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") getByScope is ScheduledActionOperationGroupOps.Read< - Extension.ScopeParameter, - ScheduledAction + ScheduledAction, + ErrorType = ErrorResponseWithNestedDetails >; /** * Create or update a shared scheduled action within the given scope. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("ScheduledActions_CreateOrUpdateByScope") createOrUpdateByScope is ScheduledActionOperationGroupOps.CreateOrUpdateSync< - Extension.ScopeParameter, ScheduledAction, Parameters = { /** * ETag of the Entity. Not required when creating an entity. Optional when updating an entity and can be specified to achieve optimistic concurrency. */ - @header + #suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @header("If-Match") `If-Match`?: string; - } + }, + ErrorType = ErrorResponseWithNestedDetails >; /** * Delete a scheduled action within the given scope. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("ScheduledActions_DeleteByScope") + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") deleteByScope is ScheduledActionOperationGroupOps.DeleteSync< - Extension.ScopeParameter, - ScheduledAction + ScheduledAction, + ErrorType = ErrorResponseWithNestedDetails >; /** * List all private scheduled actions. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("ScheduledActions_List") - list is ScheduledActionOperationGroupOps.List< - Extension.ScopeParameter, + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @operationId("ScheduledActions_ListByScope") + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") + listByScope is ScheduledActionOperationGroupOps.List< ScheduledAction, Parameters = { /** @@ -159,20 +210,22 @@ interface ScheduledActionOperationGroup { */ @query("$filter") $filter?: string; - } + }, + Response = ScheduledActionListResult, + ErrorType = ErrorResponseWithNestedDetails >; /** * Runs a shared scheduled action within the given scope. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("ScheduledActions_RunByScope") @action("execute") runByScope is ScheduledActionOperationGroupOps.ActionSync< - Extension.ScopeParameter, ScheduledAction, void, - OkResponse + OkResponse, + ErrorType = ErrorResponseWithNestedDetails >; } diff --git a/specification/cost-management/CostManagement.Management/Setting.tsp b/specification/cost-management/CostManagement.Management/Setting.tsp index a74e15fb3339..9bc92128cdea 100644 --- a/specification/cost-management/CostManagement.Management/Setting.tsp +++ b/specification/cost-management/CostManagement.Management/Setting.tsp @@ -14,7 +14,7 @@ namespace Microsoft.CostManagement; /** * Setting definition. */ -@extensionResource +@discriminator("kind") model Setting is Azure.ResourceManager.ExtensionResource<{}> { ...ResourceNameParameter< Resource = Setting, @@ -27,37 +27,72 @@ model Setting is Azure.ResourceManager.ExtensionResource<{}> { /** * Specifies the kind of settings. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" kind: SettingsKind; } +@armResourceOperations +interface SettingsOps + extends Azure.ResourceManager.Legacy.ExtensionOperations< + { + ...ApiVersionParameter, + + /** undefined */ + @path + @key + scope: string, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "Microsoft.CostManagement", + }, + {}, + { + /** + * Setting type. + */ + @path + @key + @segment("settings") + type: SettingType, + } + > {} + @armResourceOperations interface Settings { /** * Get the setting from the given scope by name. */ - getByScope is Extension.Read; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") + getByScope is SettingsOps.Read; /** * Create or update a setting within the given scope. */ - createOrUpdateByScope is Extension.CreateOrReplaceSync< - Extension.ScopeParameter, - Setting + createOrUpdateByScope is SettingsOps.CreateOrUpdateSync< + Setting, + ErrorType = ErrorResponse >; /** * Delete a setting within the given scope. */ - deleteByScope is Extension.DeleteSync; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") + deleteByScope is SettingsOps.DeleteSync; /** * List all cost management settings in the requested scope. */ - list is Extension.ListByTarget< - Extension.ScopeParameter, + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") + list is SettingsOps.List< Setting, - Response = ArmResponse + Response = ArmResponse, + ErrorType = ErrorResponse >; } diff --git a/specification/cost-management/CostManagement.Management/View.tsp b/specification/cost-management/CostManagement.Management/View.tsp index 8312d2c58c6c..8184cd78864a 100644 --- a/specification/cost-management/CostManagement.Management/View.tsp +++ b/specification/cost-management/CostManagement.Management/View.tsp @@ -21,6 +21,12 @@ model View is Azure.ResourceManager.ProxyResource { SegmentName = "views", NamePattern = "" >; + + /** + * eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + eTag?: Azure.Core.eTag; } @armResourceOperations @@ -50,17 +56,34 @@ interface Views { /** * Gets the view by view name. */ - get is ViewOps.Read; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") + get is ViewOps.Read; /** * The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. */ - createOrUpdate is ViewOps.CreateOrUpdateSync; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") + createOrUpdate is ViewOps.CreateOrUpdateSync; /** * The operation to delete a view. */ - delete is ViewOps.DeleteSync; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") + delete is ViewOps.DeleteSync; + + /** + * Lists all views by tenant and object. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") + list is ViewOps.List< + View, + Response = ViewListResult, + ErrorType = ErrorResponse + >; } @armResourceOperations interface ViewOperationGroupOps @@ -95,36 +118,44 @@ interface ViewOperationGroup { /** * Gets the view for the defined scope by view name. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Views_GetByScope") - getByScope is ViewOperationGroupOps.Read; + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") + getByScope is ViewOperationGroupOps.Read; /** * The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Views_CreateOrUpdateByScope") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") createOrUpdateByScope is ViewOperationGroupOps.CreateOrUpdateSync< - Extension.ScopeParameter, - View + View, + ErrorType = ErrorResponse >; /** * The operation to delete a view. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Views_DeleteByScope") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") deleteByScope is ViewOperationGroupOps.DeleteSync< - Extension.ScopeParameter, - View + View, + ErrorType = ErrorResponse >; /** * Lists all views by tenant and object. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @operationId("Views_List") - list is ViewOperationGroupOps.List; + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @operationId("Views_ListByScope") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") + listByScope is ViewOperationGroupOps.List< + View, + Response = ViewListResult, + ErrorType = ErrorResponse + >; } @@doc(View.name, "View name"); diff --git a/specification/cost-management/CostManagement.Management/back-compatible.tsp b/specification/cost-management/CostManagement.Management/back-compatible.tsp index e14ddbba1767..a730f63ef8e1 100644 --- a/specification/cost-management/CostManagement.Management/back-compatible.tsp +++ b/specification/cost-management/CostManagement.Management/back-compatible.tsp @@ -3,38 +3,39 @@ import "@azure-tools/typespec-client-generator-core"; using Azure.ClientGenerator.Core; using Microsoft.CostManagement; -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(ExportRun.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ExportRun.properties); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(ReportManifest.requestContext); - -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(ViewProperties.query); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ReportManifest.requestContext +); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(DismissAlertPayload.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ViewProperties.query); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(ForecastResult.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(DismissAlertPayload.properties +); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(Dimension.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ForecastResult.properties); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(QueryResult.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Dimension.properties); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(OperationStatus.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(QueryResult.properties); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(PriceSheetOperationStatus.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(OperationStatus.properties); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(IncludedQuantityUtilizationSummary.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(IncludedQuantityUtilizationSummary.properties +); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(SavingsPlanUtilizationSummary.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(SavingsPlanUtilizationSummary.properties +); @@clientLocation(CostAllocationRuleDefinitions.get, "CostAllocationRules"); @@clientLocation(CostAllocationRuleDefinitions.createOrUpdate, @@ -47,22 +48,25 @@ using Microsoft.CostManagement; @@clientLocation(CostAllocationRuleDefinitions.list, "CostAllocationRules"); @@clientName(Budgets.createOrUpdate::parameters.resource, "parameters"); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(Budget.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Budget.properties); @@clientName(Exports.createOrUpdate::parameters.resource, "parameters"); @@clientName(Exports.execute::parameters.body, "parameters"); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(Export.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Export.properties); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(CostDetailsOperationResults.manifest); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CostDetailsOperationResults.manifest +); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(GenerateDetailedCostReportOperationResult.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(GenerateDetailedCostReportOperationResult.properties +); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(GenerateDetailedCostReportOperationStatuses.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(GenerateDetailedCostReportOperationStatuses.properties +); @@clientName(Views.createOrUpdate::parameters.resource, "parameters"); @@clientLocation(ViewOperationGroup.getByScope, Views); @@ -71,13 +75,13 @@ using Microsoft.CostManagement; "parameters" ); @@clientLocation(ViewOperationGroup.deleteByScope, Views); -@@clientLocation(ViewOperationGroup.list, Views); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(View.properties); +@@clientLocation(ViewOperationGroup.listByScope, Views); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(View.properties); @@clientName(Alerts.dismiss::parameters.properties, "parameters"); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(Alert.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Alert.properties); @@clientName(ScheduledActions.createOrUpdate::parameters.resource, "scheduledAction" @@ -90,10 +94,10 @@ using Microsoft.CostManagement; "scheduledAction" ); @@clientLocation(ScheduledActionOperationGroup.deleteByScope, ScheduledActions); -@@clientLocation(ScheduledActionOperationGroup.list, ScheduledActions); +@@clientLocation(ScheduledActionOperationGroup.listByScope, ScheduledActions); @@clientLocation(ScheduledActionOperationGroup.runByScope, ScheduledActions); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(ScheduledAction.properties); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ScheduledAction.properties); @@clientName(Settings.createOrUpdateByScope::parameters.resource, "setting"); @@ -179,3 +183,46 @@ using Microsoft.CostManagement; @@clientLocation(ScheduledActionsOperationGroup.checkNameAvailabilityByScope, ScheduledActions ); +@@clientName(BenefitRecommendationModel, "benefitRecommendationModel"); +@@clientName(GenerateBenefitUtilizationSummariesReportOperationGroup.generateByBillingProfile::parameters.body, + "benefitUtilizationSummariesRequest" +); +@@clientName(CostAllocationRulesOperationGroup.checkNameAvailability::parameters.body, + "costAllocationRuleCheckNameAvailabilityRequest" +); +@@clientName(GenerateBenefitUtilizationSummariesReportOperationGroup.generateByBillingAccount::parameters.body, + "benefitUtilizationSummariesRequest" +); +@@clientName(GenerateBenefitUtilizationSummariesReportOperationGroup.generateBySavingsPlanOrderId::parameters.body, + "benefitUtilizationSummariesRequest" +); +@@clientName(GenerateBenefitUtilizationSummariesReportOperationGroup.generateBySavingsPlanId::parameters.body, + "benefitUtilizationSummariesRequest" +); +@@clientName(GenerateBenefitUtilizationSummariesReportOperationGroup.generateByReservationOrderId::parameters.body, + "benefitUtilizationSummariesRequest" +); +@@clientName(GenerateBenefitUtilizationSummariesReportOperationGroup.generateByReservationId::parameters.body, + "benefitUtilizationSummariesRequest" +); +@@clientName(ForecastOperationGroup.externalCloudProviderUsage::parameters.body, + "parameters" +); +@@clientName(QueryOperationGroup.usageByExternalCloudProviderType::parameters.body, + "parameters" +); +@@clientName(ScheduledActionsOperationGroup.checkNameAvailability::parameters.body, + "checkNameAvailabilityRequest" +); +@@clientName(BenefitRecommendationProperties, + "benefitRecommendationProperties" +); +@@clientName(RecommendationUsageDetails, "recommendationUsageDetails"); +@@clientName(AllSavingsBenefitDetails, "allSavingsBenefitDetails"); +@@clientName(AllSavingsList, "allSavingsList"); +@@clientName(SharedScopeBenefitRecommendationProperties, + "sharedScopeBenefitRecommendationProperties" +); +@@clientName(SingleScopeBenefitRecommendationProperties, + "singleScopeBenefitRecommendationProperties" +); diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitRecommendationsByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitRecommendationsByBillingAccount.json index 36ae06ccc866..54a381910860 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitRecommendationsByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitRecommendationsByBillingAccount.json @@ -121,4 +121,4 @@ }, "operationId": "BenefitRecommendations_List", "title": "BenefitRecommendationsBillingAccountList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json index e299c994a2d2..d10904aa1d15 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json @@ -36,4 +36,4 @@ }, "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByBillingAccount", "title": "GenerateUtilizationSummariesReportByBillingAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json index 68dcae4416b2..ca2bf5230bc2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json @@ -38,4 +38,4 @@ }, "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByBillingProfile", "title": "GenerateUtilizationSummariesReportByBillingProfile" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json index 97847d3e9d7a..5e1cd9bee47a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json @@ -37,4 +37,4 @@ }, "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByReservationId", "title": "GenerateUtilizationSummariesReportByReservation" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json index f3f040696c3d..78d8796421a1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json @@ -35,4 +35,4 @@ }, "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByReservationOrderId", "title": "GenerateUtilizationSummariesReportByReservationOrder" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json index a8cab0f35052..953ebb99fc03 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json @@ -37,4 +37,4 @@ }, "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanId", "title": "GenerateUtilizationSummariesReportBySavingsPlan" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json index 5a92ed254033..7458dfd3ce23 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json @@ -35,4 +35,4 @@ }, "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanOrderId", "title": "GenerateUtilizationSummariesReportBySavingsPlanOrder" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json index 82acd538a50c..4ed3bcdcb7bc 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json @@ -47,4 +47,4 @@ }, "operationId": "BenefitUtilizationSummaries_ListByBillingAccountId", "title": "SavingsPlanUtilizationSummaries-BillingAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json index 9c774a7f7c3c..99f01b89571a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json @@ -32,4 +32,4 @@ }, "operationId": "BenefitUtilizationSummaries_ListByBillingProfileId", "title": "SavingsPlanUtilizationSummaries-BillingProfile" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json index a28d29c3772f..92b69a173255 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json @@ -48,4 +48,4 @@ }, "operationId": "BenefitUtilizationSummaries_ListBySavingsPlanId", "title": "SavingsPlanUtilizationSummariesMonthlyWithSavingsPlanId" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json index 0aa04ebc2383..ad1268c24451 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json @@ -31,4 +31,4 @@ }, "operationId": "BenefitUtilizationSummaries_ListBySavingsPlanOrder", "title": "SavingsPlanUtilizationSummariesDaily" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json index 69cf13af6a9b..fe57eea9a207 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json @@ -97,4 +97,4 @@ }, "operationId": "Alerts_List", "title": "BillingAccountAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json index 353a7b279b22..2b549c85858a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json @@ -57,4 +57,4 @@ }, "operationId": "Dimensions_List", "title": "BillingAccountDimensionsList-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json index 671eeec475e6..30f3f086e9f3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json @@ -59,4 +59,4 @@ }, "operationId": "Dimensions_List", "title": "BillingAccountDimensionsListExpandAndTop-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json index b9ebee186e4e..b849974ddcfd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json @@ -40,4 +40,4 @@ }, "operationId": "Dimensions_List", "title": "BillingAccountDimensionsListWithFilter-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json index 1a51eda8a589..054069935218 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json @@ -119,4 +119,4 @@ }, "operationId": "Forecast_Usage", "title": "BillingAccountForecast" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json index d598625538fe..1dbfbafa04c5 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json @@ -107,4 +107,4 @@ }, "operationId": "Query_Usage", "title": "BillingAccountQuery-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json index 25870ba0567b..cec7ec3fbf9e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json @@ -69,4 +69,4 @@ }, "operationId": "Query_Usage", "title": "BillingAccountQueryGrouping-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json index 00a48668f039..7c5ec360c702 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json @@ -98,4 +98,4 @@ }, "operationId": "Alerts_List", "title": "BillingProfileAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json index 70295730121e..d8ef0e532274 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json @@ -120,4 +120,4 @@ }, "operationId": "Forecast_Usage", "title": "BillingProfileForecast" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json index aabdda2fd2a2..a2b0ba86455a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json @@ -226,4 +226,4 @@ }, "operationId": "Budgets_CreateOrUpdate", "title": "CreateOrUpdate-Cost-Subscription-Budget" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json index 4d13039ced2c..1dcd0d28b74e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json @@ -124,4 +124,4 @@ }, "operationId": "Budgets_CreateOrUpdate", "title": "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservationIdFilter" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json index 9a9e9415879a..329da7703436 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json @@ -124,4 +124,4 @@ }, "operationId": "Budgets_CreateOrUpdate", "title": "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservedResourceTypeFilter" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json index 1a4df8767a60..808131e96590 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json @@ -94,4 +94,4 @@ }, "operationId": "Budgets_CreateOrUpdate", "title": "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json index ab87bca5490d..fecb98c8caff 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json @@ -125,4 +125,4 @@ }, "operationId": "Budgets_CreateOrUpdate", "title": "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule-ReservationIdFilter" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json index 1c5e81cf52ce..888c6806fbce 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json @@ -125,4 +125,4 @@ }, "operationId": "Budgets_CreateOrUpdate", "title": "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule-ReservedResourceTypeFilter" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json index 1c298d4996db..69bff72937bf 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json @@ -95,4 +95,4 @@ }, "operationId": "Budgets_CreateOrUpdate", "title": "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule.json" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json index 2275c8dcab45..255cdd53bd79 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json @@ -125,4 +125,4 @@ }, "operationId": "Budgets_CreateOrUpdate", "title": "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule-ReservationIdFilter" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json index 7ed77e566e3f..80c2496bdcfe 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json @@ -125,4 +125,4 @@ }, "operationId": "Budgets_CreateOrUpdate", "title": "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule-ReservedResourceTypeFilter" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json index d663e4208d22..e5575f475461 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json @@ -95,4 +95,4 @@ }, "operationId": "Budgets_CreateOrUpdate", "title": "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule.json" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json index 3cd6a5dc4b62..1b47afe55ec4 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json @@ -11,4 +11,4 @@ }, "operationId": "Budgets_Delete", "title": "DeleteBudget" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json index ceaec0f044fa..02ddeeceda67 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json @@ -84,4 +84,4 @@ }, "operationId": "Budgets_Get", "title": "Get-Cost-Budget" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json index faed115cf11b..19c909857ed1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json @@ -50,4 +50,4 @@ }, "operationId": "Budgets_Get", "title": "Get-ReservationUtilization-AlertRule" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json index 26c7c35eb090..3da75cf04bea 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json @@ -43,4 +43,4 @@ }, "operationId": "Budgets_List", "title": "BillingAccountBudgetsList-EA-CategoryTypeFilter" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json index 858b14f704fb..5b5bf0cbfee2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json @@ -104,4 +104,4 @@ }, "operationId": "Budgets_List", "title": "BillingAccountBudgetsList-EA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json index bb4734065488..23f69dcb1c44 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json @@ -77,4 +77,4 @@ }, "operationId": "Budgets_List", "title": "DepartmentBudgetsList-EA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json index ae3d8ec82d61..a3978b470b9f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json @@ -77,4 +77,4 @@ }, "operationId": "Budgets_List", "title": "EnrollmentAccountBudgetsList-EA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json index 721dda95d0c8..68622e82aad6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json @@ -43,4 +43,4 @@ }, "operationId": "Budgets_List", "title": "BillingAccountBudgetsList-MCA-CategoryTypeFilter" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json index e629ae438918..52b91916f8d9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json @@ -104,4 +104,4 @@ }, "operationId": "Budgets_List", "title": "BillingAccountBudgetsList-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json index d26c136ab55f..521a768625bb 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json @@ -82,4 +82,4 @@ }, "operationId": "Budgets_List", "title": "BillingProfileBudgetsList-MCA-CategoryTypeFilter" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json index 5c3127309fa8..bd55d57fa3e5 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json @@ -143,4 +143,4 @@ }, "operationId": "Budgets_List", "title": "BillingProfileBudgetsList-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json index b4654b0772e2..b238b35dca25 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json @@ -82,4 +82,4 @@ }, "operationId": "Budgets_List", "title": "CustomerBudgetsList-MCA-CSP-CategoryTypeFilter" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json index 076f3baf4d2f..181f6618f527 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json @@ -143,4 +143,4 @@ }, "operationId": "Budgets_List", "title": "CustomerBudgetsList-MCA-CSP" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json index 74ae447ce9d8..af8362c1e33d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json @@ -78,4 +78,4 @@ }, "operationId": "Budgets_List", "title": "InvoiceSectionBudgetsList-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json index 1ea89857e66d..5a4c1dd21f69 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json @@ -221,4 +221,4 @@ }, "operationId": "Budgets_List", "title": "ManagementGroupBudgetsList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json index c9608286e759..0e12dc5387d2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json @@ -152,4 +152,4 @@ }, "operationId": "Budgets_List", "title": "ResourceGroupBudgetsList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json index 8a8ddb75eea5..2fee9e28a062 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json @@ -190,4 +190,4 @@ }, "operationId": "Budgets_List", "title": "SubscriptionBudgetsList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCheckNameAvailability.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCheckNameAvailability.json index 11ea79d2241f..72cf6baa94e1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCheckNameAvailability.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCheckNameAvailability.json @@ -18,4 +18,4 @@ }, "operationId": "CostAllocationRules_CheckNameAvailability", "title": "CostAllocationRuleCheckNameAvailability" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json index 640fe677f50f..b36a1756b289 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json @@ -125,4 +125,4 @@ }, "operationId": "CostAllocationRules_CreateOrUpdate", "title": "CostAllocationRulesCreateResourceGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json index d278ed95881c..cf6229584866 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json @@ -128,4 +128,4 @@ }, "operationId": "CostAllocationRules_CreateOrUpdate", "title": "CostAllocationRulesCreateTag" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleDelete.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleDelete.json index 7444ad8bb1b6..cf56e0154c3e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleDelete.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleDelete.json @@ -10,4 +10,4 @@ }, "operationId": "CostAllocationRules_Delete", "title": "DeleteCostAllocationRule" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json index b0d8785b10e7..8355f0894b61 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json @@ -49,4 +49,4 @@ }, "operationId": "CostAllocationRules_Get", "title": "CostAllocationRules" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json index 6f7be949d310..a3a46d928cec 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json @@ -127,4 +127,4 @@ }, "operationId": "CostAllocationRules_List", "title": "CostAllocationRulesList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json index ff0b52648777..45a983204b5c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json @@ -45,4 +45,4 @@ }, "operationId": "GenerateCostDetailsReport_GetOperationResults", "title": "Get details of the operation result" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json index 2ae497baff02..9e8e94635068 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json @@ -98,4 +98,4 @@ }, "operationId": "Alerts_List", "title": "DepartmentAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json index c5b563d476ab..965ad40bb5cf 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json @@ -58,4 +58,4 @@ }, "operationId": "Dimensions_List", "title": "DepartmentDimensionsList-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json index 82127b31cd66..4b55ce08b7cf 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json @@ -60,4 +60,4 @@ }, "operationId": "Dimensions_List", "title": "DepartmentDimensionsListExpandAndTop-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json index e6819b87fac4..ac3504f3344c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json @@ -41,4 +41,4 @@ }, "operationId": "Dimensions_List", "title": "DepartmentDimensionsListWithFilter-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json index e5c1945fffc6..af812fdb3499 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json @@ -120,4 +120,4 @@ }, "operationId": "Forecast_Usage", "title": "DepartmentForecast" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json index 9aec79d1253b..89aa11f60d60 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json @@ -108,4 +108,4 @@ }, "operationId": "Query_Usage", "title": "DepartmentQuery-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json index 3eccf551c7ba..521ae4475ec8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json @@ -70,4 +70,4 @@ }, "operationId": "Query_Usage", "title": "DepartmentQueryGrouping-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json index 5c9ba463bcbb..9ec81ed7cb93 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json @@ -58,4 +58,4 @@ }, "operationId": "Alerts_Dismiss", "title": "PatchResourceGroupAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json index 3530f6aa87f2..99b6dc15b820 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json @@ -57,4 +57,4 @@ }, "operationId": "Alerts_Dismiss", "title": "PatchSubscriptionAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json index a7e2104c4e8a..67ba742f4fd5 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json @@ -23,4 +23,4 @@ }, "operationId": "PriceSheet_DownloadByBillingAccount", "title": "EAPriceSheetForBillingPeriod" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json index e2914c357163..8f22e590bde7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json @@ -98,4 +98,4 @@ }, "operationId": "Alerts_List", "title": "EnrollmentAccountAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json index 266d0340b5b6..5d7a9a1127f7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json @@ -46,4 +46,4 @@ }, "operationId": "Dimensions_List", "title": "EnrollmentAccountDimensionsList-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json index d5296fd9d0bc..1ed8d2e9fe46 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json @@ -60,4 +60,4 @@ }, "operationId": "Dimensions_List", "title": "EnrollmentAccountDimensionsListExpandAndTop-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json index 42570afd32d4..45779413fa7f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json @@ -41,4 +41,4 @@ }, "operationId": "Dimensions_List", "title": "EnrollmentAccountDimensionsListWithFilter-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json index 37f553bafdf4..1883eea1b5f3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json @@ -120,4 +120,4 @@ }, "operationId": "Forecast_Usage", "title": "EnrollmentAccountForecast" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json index 51cb82ac5313..024e9d3d8136 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json @@ -108,4 +108,4 @@ }, "operationId": "Query_Usage", "title": "EnrollmentAccountQuery-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json index 637d6f2cafa5..f91c4cb53f86 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json @@ -77,4 +77,4 @@ }, "operationId": "Query_Usage", "title": "EnrollmentAccountQueryGrouping-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json index ccdd04919ac8..09b2860061ef 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json @@ -142,4 +142,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByBillingAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json index 8ba0e787d841..4e79fde2c3db 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json @@ -139,4 +139,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByBillingAccountCustom" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json index b63d7dfcc893..58cb0fd2824f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json @@ -142,4 +142,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByBillingAccountMonthly" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json index 3679eb5cfa56..ea39a164e8a4 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json @@ -142,4 +142,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByBillingAccountPricesheet" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json index 0b867a831c89..6f4b5a9a9232 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json @@ -146,4 +146,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByBillingAccountReservationDetails" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json index ccc8ffb6e080..8c2b0a4539a6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json @@ -185,4 +185,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByBillingAccountReservationRecommendation" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json index e02bd086ea1e..a7cd5b3a9b0e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json @@ -145,4 +145,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateExportCreateOrUpdateByBillingAccountReservationTransactionsByBillingAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json index 1dc0b252617c..7f90a2632e2a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json @@ -143,4 +143,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByDepartment" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json index b61b65fdd93c..f2fd51fffc2e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json @@ -143,4 +143,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByEnrollmentAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json index 73afc0c69842..3bb1bd82066c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json @@ -142,4 +142,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByManagementGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json index 19f285a7d2c9..c005fb8b2af1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json @@ -143,4 +143,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json index 86cc3007e166..8915e221e5ae 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json @@ -142,4 +142,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateBySubscription" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json index f5c307267fc9..68620fd7e88d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json @@ -10,4 +10,4 @@ }, "operationId": "Exports_Delete", "title": "ExportDeleteByBillingAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json index d0c1b42cfe6b..37ed28910456 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json @@ -11,4 +11,4 @@ }, "operationId": "Exports_Delete", "title": "ExportDeleteByDepartment" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json index f5691cd9456f..661c01691200 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json @@ -11,4 +11,4 @@ }, "operationId": "Exports_Delete", "title": "ExportDeleteByEnrollmentAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json index 075fe9475b26..804ba311eed7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json @@ -10,4 +10,4 @@ }, "operationId": "Exports_Delete", "title": "ExportDeleteByManagementGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json index 9fa12702e272..6a825e1a6b9d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json @@ -11,4 +11,4 @@ }, "operationId": "Exports_Delete", "title": "ExportDeleteByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json index 700c834acc51..2eac873a6ee6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json @@ -10,4 +10,4 @@ }, "operationId": "Exports_Delete", "title": "ExportDeleteBySubscription" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json index eba2387b5b90..d6bc5f8c3ffe 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json @@ -51,4 +51,4 @@ }, "operationId": "Exports_Get", "title": "ExportGetByBillingAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json index 2c332471b6df..204beaef0892 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json @@ -52,4 +52,4 @@ }, "operationId": "Exports_Get", "title": "ExportGetByDepartment" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json index b26a3a26ce12..2a564c396f73 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json @@ -52,4 +52,4 @@ }, "operationId": "Exports_Get", "title": "ExportGetByEnrollmentAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json index 6f0a1b4d1e95..c56d77053358 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json @@ -51,4 +51,4 @@ }, "operationId": "Exports_Get", "title": "ExportGetByManagementGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json index 52704ee651d4..6a00d66c4722 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json @@ -52,4 +52,4 @@ }, "operationId": "Exports_Get", "title": "ExportGetByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json index 9c14283a7942..43fe01268ce2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json @@ -51,4 +51,4 @@ }, "operationId": "Exports_Get", "title": "ExportGetBySubscription" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json index 5deb42bc5723..12ddb952cc91 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json @@ -10,4 +10,4 @@ }, "operationId": "Exports_Execute", "title": "ExportRunByBillingAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json index 8737f587b161..7a0f00b0baea 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json @@ -16,4 +16,4 @@ }, "operationId": "Exports_Execute", "title": "ExportRunByBillingAccountWithOptionalRequestBody" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json index fbefe693c05e..157a354bbb41 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json @@ -11,4 +11,4 @@ }, "operationId": "Exports_Execute", "title": "ExportRunByDepartment" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json index bdc568be8b48..6594094184c2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json @@ -11,4 +11,4 @@ }, "operationId": "Exports_Execute", "title": "ExportRunByEnrollmentAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json index 15dad37b0545..0759e67eb5d9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json @@ -10,4 +10,4 @@ }, "operationId": "Exports_Execute", "title": "ExportRunByManagementGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json index 2587197c786c..325bd21eef83 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json @@ -11,4 +11,4 @@ }, "operationId": "Exports_Execute", "title": "ExportRunByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json index 3fde65142397..e0e5a286f772 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json @@ -10,4 +10,4 @@ }, "operationId": "Exports_Execute", "title": "ExportRunBySubscription" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json index 7b91815e76fb..063cab663112 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json @@ -101,4 +101,4 @@ }, "operationId": "Exports_GetExecutionHistory", "title": "ExportRunHistoryGetByBillingAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json index a83ce931e8e4..b49e57c7bee1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json @@ -102,4 +102,4 @@ }, "operationId": "Exports_GetExecutionHistory", "title": "ExportRunHistoryGetByDepartment" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json index 4c040958a340..d938fe3f38dd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json @@ -102,4 +102,4 @@ }, "operationId": "Exports_GetExecutionHistory", "title": "ExportRunHistoryGetByEnrollmentAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json index 5f51564771f8..e5535b643304 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json @@ -101,4 +101,4 @@ }, "operationId": "Exports_GetExecutionHistory", "title": "ExportRunHistoryGetByManagementGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json index 21834ac56272..caebb29d013d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json @@ -102,4 +102,4 @@ }, "operationId": "Exports_GetExecutionHistory", "title": "ExportRunHistoryGetByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json index f583414076ef..ff7326b3caa3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json @@ -101,4 +101,4 @@ }, "operationId": "Exports_GetExecutionHistory", "title": "ExportRunHistoryGetBySubscription" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json index 1f2524484fd6..899e074da06d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json @@ -96,4 +96,4 @@ }, "operationId": "Exports_List", "title": "ExportsGetByBillingAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json index 12708e7d0f03..a357ea5446df 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json @@ -101,4 +101,4 @@ }, "operationId": "Exports_List", "title": "ExportsGetByDepartment" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json index c8d070d24482..bb3e3b8ccf97 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json @@ -101,4 +101,4 @@ }, "operationId": "Exports_List", "title": "ExportsGetByEnrollmentAccount" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json index 5995fba57176..e9484aee24ee 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json @@ -100,4 +100,4 @@ }, "operationId": "Exports_List", "title": "ExportsGetByManagementGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json index 30f6c0ac9954..0cec6c74d7eb 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json @@ -101,4 +101,4 @@ }, "operationId": "Exports_List", "title": "ExportsGetByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json index 6bec2ec2b0ef..0d7f9859c6e5 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json @@ -100,4 +100,4 @@ }, "operationId": "Exports_List", "title": "ExportsGetBySubscription" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json index d6819f7d1245..8a0f673d2bbc 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json @@ -97,4 +97,4 @@ }, "operationId": "Alerts_ListExternal", "title": "ExternalBillingAccountAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json index 831a576dbb41..0ba95411f479 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json @@ -108,4 +108,4 @@ }, "operationId": "Forecast_ExternalCloudProviderUsage", "title": "ExternalBillingAccountForecast" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json index fd74a5cdc8b7..949e1e27b675 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json @@ -56,4 +56,4 @@ }, "operationId": "Dimensions_ByExternalCloudProviderType", "title": "ExternalBillingAccountDimensionList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json index d3fd6d65c45c..db02af315b0a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json @@ -98,4 +98,4 @@ }, "operationId": "Query_UsageByExternalCloudProviderType", "title": "ExternalBillingAccountQueryList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json index 56e974cbc9df..4a75ec6e43c5 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json @@ -97,4 +97,4 @@ }, "operationId": "Alerts_ListExternal", "title": "ExternalSubscriptionAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json index d641baedc985..5d4dbb6aae55 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json @@ -91,4 +91,4 @@ }, "operationId": "Forecast_ExternalCloudProviderUsage", "title": "ExternalSubscriptionForecast" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json index 028a67d2edf5..5a7395245113 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json @@ -56,4 +56,4 @@ }, "operationId": "Dimensions_ByExternalCloudProviderType", "title": "ExternalSubscriptionDimensionList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json index 883679605a15..7f674e9e8ea1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json @@ -77,4 +77,4 @@ }, "operationId": "Query_UsageByExternalCloudProviderType", "title": "ExternalSubscriptionsQuery" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json index a01a65646944..93b5eae41a30 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json @@ -46,4 +46,4 @@ }, "operationId": "GenerateCostDetailsReport_CreateOperation", "title": "GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json index 4d621be8f753..7769b36bbb5f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json @@ -46,4 +46,4 @@ }, "operationId": "GenerateCostDetailsReport_CreateOperation", "title": "GenerateCostDetailsReportByBillingProfileAndInvoiceId" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json index 50e8393d170c..cb228d9492f7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -46,4 +46,4 @@ }, "operationId": "GenerateCostDetailsReport_CreateOperation", "title": "GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json index 59a908306b97..79148dcf89e3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json @@ -52,4 +52,4 @@ }, "operationId": "GenerateCostDetailsReport_CreateOperation", "title": "GenerateCostDetailsReportByCustomerAndTimePeriod" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json index 432b808d57d2..0f0e17e635bd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json @@ -52,4 +52,4 @@ }, "operationId": "GenerateCostDetailsReport_CreateOperation", "title": "GenerateCostDetailsReportByDepartmentsAndTimePeriod" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json index c17a4763b4e5..73f4b7424fb3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json @@ -52,4 +52,4 @@ }, "operationId": "GenerateCostDetailsReport_CreateOperation", "title": "GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json index 09d8cd8d0ba2..1589105ace6a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json @@ -52,4 +52,4 @@ }, "operationId": "GenerateCostDetailsReport_CreateOperation", "title": "GenerateCostDetailsReportBySubscriptionAndTimePeriod" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json index 71686b857a41..b30e7c80bbb1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json @@ -29,4 +29,4 @@ }, "operationId": "GenerateDetailedCostReport_CreateOperation", "title": "GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json index 5bef30aa8911..c150c1d7c471 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json @@ -29,4 +29,4 @@ }, "operationId": "GenerateDetailedCostReport_CreateOperation", "title": "GenerateDetailedCostReportByBillingProfileAndInvoiceId" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json index b6e21bd1a4f5..6580c6ba45c4 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -30,4 +30,4 @@ }, "operationId": "GenerateDetailedCostReport_CreateOperation", "title": "GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json index 12e26c9a454a..85d6e1b247ae 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json @@ -32,4 +32,4 @@ }, "operationId": "GenerateDetailedCostReport_CreateOperation", "title": "GenerateDetailedCostReportByCustomerAndTimePeriod" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json index bff64d73d0c5..beeb7cf381c3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json @@ -32,4 +32,4 @@ }, "operationId": "GenerateDetailedCostReport_CreateOperation", "title": "GenerateDetailedCostReportBySubscriptionAndTimePeriod" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json index 48b55796bec6..ef53caae82c2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json @@ -26,4 +26,4 @@ }, "operationId": "GenerateDetailedCostReportOperationResults_Get", "title": "Get details of the operation result" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json index 075f4171db77..757357feceb1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json @@ -24,4 +24,4 @@ }, "operationId": "GenerateDetailedCostReportOperationStatus_Get", "title": "Get details of the operation status" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingAccount.json index 7d0bc738bb9e..b6a60849c2b9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingAccount.json @@ -24,4 +24,4 @@ }, "operationId": "GenerateReservationDetailsReport_ByBillingAccountId", "title": "ReservationDetails" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingProfile.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingProfile.json index d368c5c671aa..e79a1c7066ec 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingProfile.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateReservationDetailsReportByBillingProfile.json @@ -25,4 +25,4 @@ }, "operationId": "GenerateReservationDetailsReport_ByBillingProfileId", "title": "ReservationDetails" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json index 6278f2d96245..396cb327c1fb 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json @@ -99,4 +99,4 @@ }, "operationId": "Alerts_List", "title": "InvoiceSectionAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json index 0aac79662c2c..2e9d3bd3c4d0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json @@ -121,4 +121,4 @@ }, "operationId": "Forecast_Usage", "title": "InvoiceSectionForecast" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json index acf3bf89e84e..2594908a7256 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json @@ -45,4 +45,4 @@ }, "operationId": "Dimensions_List", "title": "BillingAccountDimensionsList-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json index 847e63e7b976..ffa0a0df57f7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json @@ -59,4 +59,4 @@ }, "operationId": "Dimensions_List", "title": "BillingAccountDimensionsListExpandAndTop-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json index 7dac1e9b611d..efe05863f972 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json @@ -40,4 +40,4 @@ }, "operationId": "Dimensions_List", "title": "BillingAccountDimensionsListWithFilter-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json index 87cce97882c2..cf995b961f6a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json @@ -107,4 +107,4 @@ }, "operationId": "Query_Usage", "title": "BillingAccountQuery-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json index ad4e0890474a..90914657d5cb 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json @@ -69,4 +69,4 @@ }, "operationId": "Query_Usage", "title": "BillingAccountQueryGrouping-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json index 536dd9c27224..ff98c2c44a80 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json @@ -46,4 +46,4 @@ }, "operationId": "Dimensions_List", "title": "BillingProfileDimensionsList-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json index d6974668f39b..91973f2b9d6e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json @@ -60,4 +60,4 @@ }, "operationId": "Dimensions_List", "title": "BillingProfileDimensionsListExpandAndTop-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json index c6fe8fa480b2..33d4a17485f0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json @@ -41,4 +41,4 @@ }, "operationId": "Dimensions_List", "title": "BillingProfileDimensionsListWithFilter-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json index f0acc9e7503f..f0a1e7492c03 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json @@ -108,4 +108,4 @@ }, "operationId": "Query_Usage", "title": "BillingProfileQuery-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json index 68c0e8ba1687..a3ed14f20b29 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json @@ -70,4 +70,4 @@ }, "operationId": "Query_Usage", "title": "BillingProfileQueryGrouping-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json index cdf5e179a07f..22b5086dee93 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json @@ -46,4 +46,4 @@ }, "operationId": "Dimensions_List", "title": "CustomerDimensionsList-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json index 26f6fbbab8e7..a0edd01d1349 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json @@ -60,4 +60,4 @@ }, "operationId": "Dimensions_List", "title": "CustomerDimensionsListExpandAndTop-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json index 8c9e7210186a..7e8dffd701ba 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json @@ -41,4 +41,4 @@ }, "operationId": "Dimensions_List", "title": "CustomerDimensionsListWithFilter-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json index 75a6c1301c9e..d9890eb15cef 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json @@ -108,4 +108,4 @@ }, "operationId": "Query_Usage", "title": "CustomerQuery-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json index 32c855602280..9ce382adc688 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json @@ -70,4 +70,4 @@ }, "operationId": "Query_Usage", "title": "CustomerQueryGrouping-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json index a6ae09b91257..db8df077557f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json @@ -47,4 +47,4 @@ }, "operationId": "Dimensions_List", "title": "InvoiceSectionDimensionsList-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json index ef7bc046ede5..eb3421e991ca 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json @@ -61,4 +61,4 @@ }, "operationId": "Dimensions_List", "title": "InvoiceSectionDimensionsListExpandAndTop-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json index d6ec7aed3b33..cd9ecd081e0b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json @@ -42,4 +42,4 @@ }, "operationId": "Dimensions_List", "title": "InvoiceSectionDimensionsListWithFilter-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json index d89de3b5b653..fa285a7b63d4 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json @@ -109,4 +109,4 @@ }, "operationId": "Query_Usage", "title": "InvoiceSectionQuery-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json index a341db3431f1..265e4fe22ea7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json @@ -71,4 +71,4 @@ }, "operationId": "Query_Usage", "title": "InvoiceSectionQueryGrouping-MCA" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json index 4a1a95fdf96f..dfb289df3041 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json @@ -45,4 +45,4 @@ }, "operationId": "Dimensions_List", "title": "ManagementGroupDimensionsList-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json index 3f5aea32a9ad..1e189e461bb7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json @@ -59,4 +59,4 @@ }, "operationId": "Dimensions_List", "title": "ManagementGroupDimensionsListExpandAndTop-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json index 84fb6b1f6a0f..fb4f26d7bee4 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json @@ -40,4 +40,4 @@ }, "operationId": "Dimensions_List", "title": "ManagementGroupDimensionsListWithFilter-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json index 0377dcbb8d24..43ac3c0b14ba 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json @@ -107,4 +107,4 @@ }, "operationId": "Query_Usage", "title": "ManagementGroupQuery-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json index c1b3322ee2ce..e8c771aef5e0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json @@ -76,4 +76,4 @@ }, "operationId": "Query_Usage", "title": "ManagementGroupQueryGrouping-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/OperationList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/OperationList.json index c5e41bf4472b..9f1222c1074a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/OperationList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/OperationList.json @@ -112,4 +112,4 @@ }, "operationId": "Operations_List", "title": "OperationList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownload.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownload.json index 910e37e4da3b..f5aee427e5b6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownload.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownload.json @@ -22,4 +22,4 @@ }, "operationId": "PriceSheet_DownloadByInvoice", "title": "PricesheetDownload" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownloadByBillingProfile.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownloadByBillingProfile.json index a32faf07cc38..0a5fdc8420ea 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownloadByBillingProfile.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PricesheetDownloadByBillingProfile.json @@ -21,4 +21,4 @@ }, "operationId": "PriceSheet_DownloadByBillingProfile", "title": "PricesheetDownloadByBillingProfile" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateView.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateView.json index ee699534dcab..d22e14fc41f0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateView.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateView.json @@ -68,4 +68,4 @@ }, "operationId": "Views_Get", "title": "PrivateView" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewCreateOrUpdate.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewCreateOrUpdate.json index 11a7d6968592..4ceda637895e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewCreateOrUpdate.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewCreateOrUpdate.json @@ -184,4 +184,4 @@ }, "operationId": "Views_CreateOrUpdate", "title": "CreateOrUpdatePrivateView" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewDelete.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewDelete.json index 803e96bbae41..81ad15abaab5 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewDelete.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewDelete.json @@ -9,4 +9,4 @@ }, "operationId": "Views_Delete", "title": "DeletePrivateView" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewList.json index 293d11d908fe..adce1dda4c87 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/PrivateViewList.json @@ -130,4 +130,4 @@ }, "operationId": "Views_List", "title": "PrivateViewList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json index 4be576dc3b08..2235ad7eabe7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json @@ -98,4 +98,4 @@ }, "operationId": "Alerts_List", "title": "ResourceGroupAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json index c9e9488458e1..478318e187b7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json @@ -56,4 +56,4 @@ }, "operationId": "Dimensions_List", "title": "ResourceGroupDimensionsList-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json index 4866a10c6f11..df9adee7d1c0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json @@ -102,4 +102,4 @@ }, "operationId": "Forecast_Usage", "title": "ResourceGroupForecast" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json index 1c14235bfd1e..d33c9f453ebd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json @@ -96,4 +96,4 @@ }, "operationId": "Query_Usage", "title": "ResourceGroupQuery-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json index 0e65fea1de1d..47e5927372d1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json @@ -71,4 +71,4 @@ }, "operationId": "Query_Usage", "title": "ResourceGroupQueryGrouping-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json index bbc210560e64..4892faf53b80 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json @@ -53,4 +53,4 @@ }, "operationId": "Alerts_Get", "title": "SingleResourceGroupAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json index 3a9165dbe112..2c6595bc2f8c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json @@ -52,4 +52,4 @@ }, "operationId": "Alerts_Get", "title": "SingleSubscriptionAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json index b06bf6362604..7612ded878e8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json @@ -97,4 +97,4 @@ }, "operationId": "Alerts_List", "title": "SubscriptionAlerts" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json index 575e2645edc5..cf4d5ecba580 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json @@ -58,4 +58,4 @@ }, "operationId": "Dimensions_List", "title": "SubscriptionDimensionsList-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json index 1daab3032782..fd2af044f319 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json @@ -119,4 +119,4 @@ }, "operationId": "Forecast_Usage", "title": "SubscriptionForecast" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json index 25af6f98b58e..5d6cda84ef49 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json @@ -107,4 +107,4 @@ }, "operationId": "Query_Usage", "title": "SubscriptionQuery-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json index 53bb60046ac9..f0775487364d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json @@ -74,4 +74,4 @@ }, "operationId": "Query_Usage", "title": "SubscriptionQueryGrouping-Legacy" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json index d748273acf9f..52b9474147fd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json @@ -69,4 +69,4 @@ }, "operationId": "Views_GetByScope", "title": "ResourceGroupView" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json index ea6ea3f2b1ea..bceff92723f8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json @@ -185,4 +185,4 @@ }, "operationId": "Views_CreateOrUpdateByScope", "title": "ResourceGroupCreateOrUpdateView" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json index 78d35fa86276..d42216abe104 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json @@ -10,4 +10,4 @@ }, "operationId": "Views_DeleteByScope", "title": "ResourceGroupDeleteView" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json new file mode 100644 index 000000000000..953b8129449d --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json @@ -0,0 +1,134 @@ +{ + "parameters": { + "api-version": "2025-03-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" +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-private-scheduledAction.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-private-scheduledAction.json index 99377e428e1e..595efbdd6fc3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-private-scheduledAction.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-private-scheduledAction.json @@ -17,4 +17,4 @@ }, "operationId": "ScheduledActions_CheckNameAvailability", "title": "ScheduledActionCheckNameAvailability" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json index e7ac9402132d..0142bce2aa83 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json @@ -16,4 +16,4 @@ }, "operationId": "ScheduledActions_CheckNameAvailabilityByScope", "title": "ScheduledActionCheckNameAvailabilityByScope" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json index 8114c5f633f3..b055a942de6c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json @@ -126,4 +126,4 @@ }, "operationId": "ScheduledActions_CreateOrUpdate", "title": "CreateOrUpdatePrivateScheduledAction" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json index cc530086a430..5f52b090cead 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json @@ -133,4 +133,4 @@ }, "operationId": "ScheduledActions_CreateOrUpdateByScope", "title": "CreateOrUpdateScheduledActionByScope" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-private.json index ae27f156a672..8acaef929837 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-private.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-private.json @@ -9,4 +9,4 @@ }, "operationId": "ScheduledActions_Delete", "title": "PrivateScheduledActionDelete" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json index cfc21bab05cc..b58965e6b22f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json @@ -10,4 +10,4 @@ }, "operationId": "ScheduledActions_DeleteByScope", "title": "ScheduledActionDeleteByScope" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json index a9771c8a4d0f..6df6b6a8d7e8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json @@ -50,4 +50,4 @@ }, "operationId": "ScheduledActions_Get", "title": "PrivateScheduledAction" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json index 98cc0703eec2..49d56e2b7005 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json @@ -51,4 +51,4 @@ }, "operationId": "ScheduledActions_GetByScope", "title": "ScheduledActionByScope" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json index 14ae1518d298..b124605d71f3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json @@ -105,4 +105,4 @@ }, "operationId": "ScheduledActions_CreateOrUpdateByScope", "title": "CreateOrUpdateInsightAlertScheduledActionByScope" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-private.json index 54c6427997a8..a323a9f881d8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-private.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-private.json @@ -8,4 +8,4 @@ }, "operationId": "ScheduledActions_Run", "title": "ScheduledActionSendNow" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json index ed404c53931f..0bf9ac7dd58b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json @@ -9,4 +9,4 @@ }, "operationId": "ScheduledActions_RunByScope", "title": "ScheduledActionRunByScope" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json index 64ae26035c66..0d4f55f3f65f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json @@ -88,4 +88,4 @@ }, "operationId": "ScheduledActions_List", "title": "PrivateScheduledActionsList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json new file mode 100644 index 000000000000..5536274a9844 --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "name": "monthlyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "kind": "Email", + "eTag": "\"1d4ff9fe66f1d10\"", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" + }, + "properties": { + "displayName": "Monthly Cost By Resource", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", + "schedule": { + "frequency": "Monthly", + "weeksOfMonth": [ + "First", + "Third" + ], + "daysOfWeek": [ + "Monday" + ], + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "endDate": "2021-06-19T22:21:51.1287144Z" + }, + "notification": { + "to": [ + "user@gmail.com", + "team@gmail.com" + ], + "subject": "Cost by resource this month" + } + } + }, + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "name": "dailyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "kind": "Email", + "eTag": "\"1d4ff9fe66f1d15\"", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" + }, + "properties": { + "displayName": "Daily Cost By Resource", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Disabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", + "schedule": { + "frequency": "Daily", + "hourOfDay": 12, + "startDate": "2020-06-19T22:21:51.1287144Z", + "endDate": "2021-06-19T22:21:51.1287144Z" + }, + "notification": { + "to": [ + "user@gmail.com", + "team@gmail.com" + ], + "subject": "Daily Cost By Resource" + } + } + } + ], + "nextLink": null + } + } + }, + "operationId": "ScheduledActions_ListByScope", + "title": "ScheduledActionsListByScope" +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json index 5b99975a733f..08222beb3930 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json @@ -89,4 +89,4 @@ }, "operationId": "ScheduledActions_List", "title": "PrivateScheduledActionsListFilterByViewId" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json new file mode 100644 index 000000000000..e594fd6d23dd --- /dev/null +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "$filter": "properties/viewId eq '/providers/Microsoft.CostManagement/views/swaggerExample'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "name": "monthlyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "kind": "Email", + "eTag": "\"1d4ff9fe66f1d10\"", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" + }, + "properties": { + "displayName": "Monthly Cost By Resource", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", + "schedule": { + "frequency": "Monthly", + "weeksOfMonth": [ + "First", + "Third" + ], + "daysOfWeek": [ + "Monday" + ], + "hourOfDay": 10, + "startDate": "2020-06-19T22:21:51.1287144Z", + "endDate": "2021-06-19T22:21:51.1287144Z" + }, + "notification": { + "to": [ + "user@gmail.com", + "team@gmail.com" + ], + "subject": "Cost by resource this month" + } + } + }, + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "name": "dailyCostByResource", + "type": "Microsoft.CostManagement/ScheduledActions", + "kind": "Email", + "eTag": "\"1d4ff9fe66f1d15\"", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" + }, + "properties": { + "displayName": "Daily Cost By Resource", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Disabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", + "schedule": { + "frequency": "Daily", + "hourOfDay": 12, + "startDate": "2020-06-19T22:21:51.1287144Z", + "endDate": "2021-06-19T22:21:51.1287144Z" + }, + "notification": { + "to": [ + "user@gmail.com", + "team@gmail.com" + ], + "subject": "Daily Cost By Resource" + } + } + } + ], + "nextLink": null + } + } + }, + "operationId": "ScheduledActions_ListByScope", + "title": "ScheduledActionsListByScopeFilterByViewId" +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json index 35ac097f04e6..58ed1b269af9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json @@ -10,4 +10,4 @@ }, "operationId": "Settings_DeleteByScope", "title": "SettingDeleteByScope" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json index b087ab4a8793..e4cea79dd5fe 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json @@ -19,4 +19,4 @@ }, "operationId": "Settings_GetByScope", "title": "SettingByScope" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json index ee023536cb01..e2ed25e1f11b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json @@ -36,4 +36,4 @@ }, "operationId": "Settings_CreateOrUpdateByScope", "title": "CreateOrUpdateSettingByScope" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json index 980ca551b215..f59ce3fd2377 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json @@ -22,4 +22,4 @@ }, "operationId": "Settings_List", "title": "SettingsList" -} \ No newline at end of file +} diff --git a/specification/cost-management/CostManagement.Management/main.tsp b/specification/cost-management/CostManagement.Management/main.tsp index c619b4e436f7..c0e5b8cb796a 100644 --- a/specification/cost-management/CostManagement.Management/main.tsp +++ b/specification/cost-management/CostManagement.Management/main.tsp @@ -52,4 +52,8 @@ enum Versions { v2025_03_01: "2025-03-01", } -interface Operations extends Azure.ResourceManager.Operations {} +interface Operations + extends Azure.ResourceManager.Legacy.Operations< + ArmResponse, + ErrorResponse + > {} diff --git a/specification/cost-management/CostManagement.Management/models.tsp b/specification/cost-management/CostManagement.Management/models.tsp index 012e8c53b6e8..0b72817c4917 100644 --- a/specification/cost-management/CostManagement.Management/models.tsp +++ b/specification/cost-management/CostManagement.Management/models.tsp @@ -16,11 +16,11 @@ namespace Microsoft.CostManagement; */ union Origin { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" user: "user", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" system: "system", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `user,system`: "user,system", } @@ -29,7 +29,7 @@ union Origin { */ union ActionType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Internal: "Internal", } @@ -55,7 +55,7 @@ union CostAllocationResourceType { */ union CostAllocationPolicyType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" FixedProportion: "FixedProportion", } @@ -86,11 +86,11 @@ union RuleStatus { */ union Reason { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Invalid: "Invalid", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" AlreadyExists: "AlreadyExists", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Valid: "Valid", } @@ -194,7 +194,7 @@ union BenefitKind { SavingsPlan: "SavingsPlan", } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" union GrainParameter { string, @@ -219,14 +219,12 @@ union GrainParameter { */ union OperationStatusType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Running: "Running", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Complete: "Complete", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Failed: "Failed", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" - Completed: "Completed", } /** @@ -234,23 +232,23 @@ union OperationStatusType { */ union BenefitUtilizationSummaryReportSchema { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Kind: "Kind", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" AvgUtilizationPercentage: "AvgUtilizationPercentage", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" BenefitOrderId: "BenefitOrderId", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" BenefitId: "BenefitId", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" BenefitType: "BenefitType", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" MaxUtilizationPercentage: "MaxUtilizationPercentage", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" MinUtilizationPercentage: "MinUtilizationPercentage", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" UsageDate: "UsageDate", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" UtilizedPercentage: "UtilizedPercentage", } @@ -360,7 +358,7 @@ union TimeGrainType { */ union BudgetOperatorType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" In: "In", } @@ -458,47 +456,47 @@ union ThresholdType { */ union CultureCode { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `en-us`: "en-us", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `ja-jp`: "ja-jp", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `zh-cn`: "zh-cn", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `de-de`: "de-de", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `es-es`: "es-es", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `fr-fr`: "fr-fr", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `it-it`: "it-it", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `ko-kr`: "ko-kr", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `pt-br`: "pt-br", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `ru-ru`: "ru-ru", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `zh-tw`: "zh-tw", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `cs-cz`: "cs-cz", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `pl-pl`: "pl-pl", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `tr-tr`: "tr-tr", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `da-dk`: "da-dk", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `en-gb`: "en-gb", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `hu-hu`: "hu-hu", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `nb-no`: "nb-no", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `nl-nl`: "nl-nl", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `pt-pt`: "pt-pt", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `sv-se`: "sv-se", } @@ -507,9 +505,9 @@ union CultureCode { */ union StatusType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Active: "Active", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Inactive: "Inactive", } @@ -518,13 +516,13 @@ union StatusType { */ union RecurrenceType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Daily: "Daily", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Weekly: "Weekly", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Monthly: "Monthly", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Annually: "Annually", } @@ -533,9 +531,9 @@ union RecurrenceType { */ union FormatType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Csv: "Csv", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Parquet: "Parquet", } @@ -544,7 +542,7 @@ union FormatType { */ union DestinationType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" AzureBlob: "AzureBlob", } @@ -553,21 +551,21 @@ union DestinationType { */ union ExportType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Usage: "Usage", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ActualCost: "ActualCost", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" AmortizedCost: "AmortizedCost", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" FocusCost: "FocusCost", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" PriceSheet: "PriceSheet", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ReservationTransactions: "ReservationTransactions", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ReservationRecommendations: "ReservationRecommendations", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ReservationDetails: "ReservationDetails", } @@ -576,19 +574,19 @@ union ExportType { */ union TimeframeType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" MonthToDate: "MonthToDate", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" BillingMonthToDate: "BillingMonthToDate", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" TheLastMonth: "TheLastMonth", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" TheLastBillingMonth: "TheLastBillingMonth", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" WeekToDate: "WeekToDate", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Custom: "Custom", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" TheCurrentMonth: "TheCurrentMonth", } @@ -597,9 +595,9 @@ union TimeframeType { */ union GranularityType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Daily: "Daily", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Monthly: "Monthly", } @@ -608,11 +606,11 @@ union GranularityType { */ union FilterItemNames { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ReservationScope: "ReservationScope", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ResourceType: "ResourceType", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" LookBackPeriod: "LookBackPeriod", } @@ -621,9 +619,9 @@ union FilterItemNames { */ union ExecutionType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" OnDemand: "OnDemand", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Scheduled: "Scheduled", } @@ -632,19 +630,19 @@ union ExecutionType { */ union ExecutionStatus { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Queued: "Queued", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" InProgress: "InProgress", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Completed: "Completed", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Failed: "Failed", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Timeout: "Timeout", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" NewDataNotAvailable: "NewDataNotAvailable", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" DataNotAvailable: "DataNotAvailable", } @@ -653,9 +651,9 @@ union ExecutionStatus { */ union DataOverwriteBehaviorType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" OverwritePreviousReport: "OverwritePreviousReport", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" CreateNewReport: "CreateNewReport", } @@ -664,11 +662,11 @@ union DataOverwriteBehaviorType { */ union CompressionModeType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" gzip: "gzip", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" snappy: "snappy", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" none: "none", } @@ -728,9 +726,9 @@ union CostDetailsDataFormat { */ union GenerateDetailedCostReportMetricType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ActualCost: "ActualCost", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" AmortizedCost: "AmortizedCost", } @@ -739,19 +737,19 @@ union GenerateDetailedCostReportMetricType { */ union ReportOperationStatusType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" InProgress: "InProgress", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Completed: "Completed", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Failed: "Failed", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Queued: "Queued", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" NoDataFound: "NoDataFound", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ReadyToDownload: "ReadyToDownload", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" TimedOut: "TimedOut", } @@ -760,7 +758,7 @@ union ReportOperationStatusType { */ union ReportType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Usage: "Usage", } @@ -769,13 +767,13 @@ union ReportType { */ union ReportTimeframeType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" WeekToDate: "WeekToDate", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" MonthToDate: "MonthToDate", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" YearToDate: "YearToDate", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Custom: "Custom", } @@ -784,9 +782,9 @@ union ReportTimeframeType { */ union ReportGranularityType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Daily: "Daily", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Monthly: "Monthly", } @@ -795,7 +793,7 @@ union ReportGranularityType { */ union FunctionType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Sum: "Sum", } @@ -821,9 +819,9 @@ union QueryColumnType { */ union ReportConfigSortingType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Ascending: "Ascending", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Descending: "Descending", } @@ -832,9 +830,9 @@ union ReportConfigSortingType { */ union OperatorType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" In: "In", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Contains: "Contains", } @@ -843,15 +841,15 @@ union OperatorType { */ union ChartType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Area: "Area", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Line: "Line", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" StackedColumn: "StackedColumn", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" GroupedColumn: "GroupedColumn", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Table: "Table", } @@ -860,9 +858,9 @@ union ChartType { */ union AccumulatedType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `true`: "true", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" `false`: "false", } @@ -871,11 +869,11 @@ union AccumulatedType { */ union MetricType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ActualCost: "ActualCost", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" AmortizedCost: "AmortizedCost", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" AHUB: "AHUB", } @@ -884,9 +882,9 @@ union MetricType { */ union KpiTypeType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Forecast: "Forecast", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Budget: "Budget", } @@ -895,9 +893,9 @@ union KpiTypeType { */ union PivotTypeType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Dimension: "Dimension", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" TagKey: "TagKey", } @@ -906,19 +904,19 @@ union PivotTypeType { */ union AlertType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Budget: "Budget", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Invoice: "Invoice", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Credit: "Credit", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Quota: "Quota", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" General: "General", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" xCloud: "xCloud", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" BudgetForecast: "BudgetForecast", } @@ -927,13 +925,13 @@ union AlertType { */ union AlertCategory { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Cost: "Cost", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Usage: "Usage", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Billing: "Billing", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" System: "System", } @@ -942,33 +940,33 @@ union AlertCategory { */ union AlertCriteria { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" CostThresholdExceeded: "CostThresholdExceeded", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" UsageThresholdExceeded: "UsageThresholdExceeded", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" CreditThresholdApproaching: "CreditThresholdApproaching", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" CreditThresholdReached: "CreditThresholdReached", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" QuotaThresholdApproaching: "QuotaThresholdApproaching", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" QuotaThresholdReached: "QuotaThresholdReached", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" MultiCurrency: "MultiCurrency", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ForecastCostThresholdExceeded: "ForecastCostThresholdExceeded", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ForecastUsageThresholdExceeded: "ForecastUsageThresholdExceeded", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" InvoiceDueDateApproaching: "InvoiceDueDateApproaching", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" InvoiceDueDateReached: "InvoiceDueDateReached", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" CrossCloudNewDataAvailable: "CrossCloudNewDataAvailable", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" CrossCloudCollectionError: "CrossCloudCollectionError", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" GeneralThresholdError: "GeneralThresholdError", } @@ -977,9 +975,9 @@ union AlertCriteria { */ union AlertSource { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Preset: "Preset", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" User: "User", } @@ -988,19 +986,19 @@ union AlertSource { */ union AlertTimeGrainType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" None: "None", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Monthly: "Monthly", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Quarterly: "Quarterly", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Annually: "Annually", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" BillingMonth: "BillingMonth", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" BillingQuarter: "BillingQuarter", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" BillingAnnual: "BillingAnnual", } @@ -1009,17 +1007,17 @@ union AlertTimeGrainType { */ union AlertOperator { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" None: "None", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" EqualTo: "EqualTo", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" GreaterThan: "GreaterThan", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" GreaterThanOrEqualTo: "GreaterThanOrEqualTo", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" LessThan: "LessThan", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" LessThanOrEqualTo: "LessThanOrEqualTo", } @@ -1028,24 +1026,24 @@ union AlertOperator { */ union AlertStatus { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" None: "None", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Active: "Active", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Overridden: "Overridden", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Resolved: "Resolved", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Dismissed: "Dismissed", } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" union ExternalCloudProviderType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" externalSubscriptions: "externalSubscriptions", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" externalBillingAccounts: "externalBillingAccounts", } @@ -1054,11 +1052,11 @@ union ExternalCloudProviderType { */ union ForecastType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Usage: "Usage", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ActualCost: "ActualCost", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" AmortizedCost: "AmortizedCost", } @@ -1067,7 +1065,7 @@ union ForecastType { */ union ForecastTimeframe { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Custom: "Custom", } @@ -1076,13 +1074,13 @@ union ForecastTimeframe { */ union FunctionName { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" PreTaxCostUSD: "PreTaxCostUSD", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Cost: "Cost", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" CostUSD: "CostUSD", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" PreTaxCost: "PreTaxCost", } @@ -1091,7 +1089,7 @@ union FunctionName { */ union ForecastOperatorType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" In: "In", } @@ -1100,7 +1098,7 @@ union ForecastOperatorType { */ union QueryOperatorType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" In: "In", } @@ -1109,27 +1107,27 @@ union QueryOperatorType { */ union ReservationReportSchema { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" InstanceFlexibilityGroup: "InstanceFlexibilityGroup", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" InstanceFlexibilityRatio: "InstanceFlexibilityRatio", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" InstanceId: "InstanceId", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Kind: "Kind", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ReservationId: "ReservationId", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ReservationOrderId: "ReservationOrderId", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ReservedHours: "ReservedHours", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" SkuName: "SkuName", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" TotalReservedQuantity: "TotalReservedQuantity", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" UsageDate: "UsageDate", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" UsedHours: "UsedHours", } @@ -1138,7 +1136,7 @@ union ReservationReportSchema { */ union FileFormat { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Csv: "Csv", } @@ -1169,19 +1167,19 @@ union ScheduleFrequency { */ union DaysOfWeek { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Monday: "Monday", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Tuesday: "Tuesday", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Wednesday: "Wednesday", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Thursday: "Thursday", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Friday: "Friday", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Saturday: "Saturday", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Sunday: "Sunday", } @@ -1190,15 +1188,15 @@ union DaysOfWeek { */ union WeeksOfMonth { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" First: "First", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Second: "Second", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Third: "Third", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Fourth: "Fourth", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Last: "Last", } @@ -1208,11 +1206,6 @@ union WeeksOfMonth { union ScheduledActionStatus { string, - /** - * Scheduled action is saved but will not be run. - */ - Disabled: "Disabled", - /** * Scheduled action is saved and will be run. */ @@ -1222,6 +1215,11 @@ union ScheduledActionStatus { * Scheduled action is expired. */ Expired: "Expired", + + /** + * Scheduled action is saved but will not be run. + */ + Disabled: "Disabled", } /** @@ -1246,13 +1244,13 @@ union ScheduledActionKind { */ union CreatedByType { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" User: "User", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Application: "Application", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" ManagedIdentity: "ManagedIdentity", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Key: "Key", } @@ -1261,9 +1259,9 @@ union CreatedByType { */ union CheckNameAvailabilityReason { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Invalid: "Invalid", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" AlreadyExists: "AlreadyExists", } @@ -1272,11 +1270,11 @@ union CheckNameAvailabilityReason { */ union SettingsKind { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" taginheritance: "taginheritance", } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" union SettingType { string, @@ -1289,7 +1287,7 @@ union SettingType { /** * A Cost management REST API operation. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model CostManagementOperation extends Azure.ResourceManager.CommonTypes.Operation { /** @@ -1300,43 +1298,27 @@ model CostManagementOperation } /** - * Localized display information for this particular operation. + * Result of listing cost allocation rules. It contains a list of available rules in the billing account or enterprise enrollment provided. */ -model OperationDisplay { - /** - * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". - */ - @visibility(Lifecycle.Read) - provider?: string; - +model CostAllocationRuleList { /** - * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * The list of cost allocation rules. */ - @visibility(Lifecycle.Read) - resource?: string; - - /** - * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". - */ - @visibility(Lifecycle.Read) - operation?: string; + @pageItems + @OpenAPI.extension("x-ms-identifiers", #["id"]) + value?: CostAllocationRuleDefinition[]; /** - * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + * URL to get the next set of rule list results if there are any. */ - @visibility(Lifecycle.Read) - description?: string; + @nextLink + nextLink?: string; } -/** - * Result of listing cost allocation rules. It contains a list of available rules in the billing account or enterprise enrollment provided. - */ -model CostAllocationRuleList is Azure.Core.Page; - /** * The properties of a cost allocation rule */ -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model CostAllocationRuleProperties { /** * Description of a cost allocation rule. @@ -1388,7 +1370,7 @@ model CostAllocationRuleDetails { /** * Source resources for cost allocation */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model SourceCostAllocationResource extends CostAllocationResource { /** * Source Resources for cost allocation. This list cannot contain more than 25 values. @@ -1415,7 +1397,7 @@ model CostAllocationResource { /** * Target resources for cost allocation. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model TargetCostAllocationResource extends CostAllocationResource { /** * Target resources for cost allocation. This list cannot contain more than 25 values. @@ -1482,7 +1464,7 @@ model CostAllocationRuleCheckNameAvailabilityResponse { /** * benefit plan recommendation details. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model BenefitRecommendationModel extends BenefitResource { /** * The properties of the benefit recommendations. @@ -1550,6 +1532,7 @@ model BenefitRecommendationProperties { /** * The current cost without benefit, corresponds to 'totalHours' in the look-back period. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) costWithoutBenefit?: decimal; @@ -1593,54 +1576,63 @@ model AllSavingsBenefitDetails { /** * The difference between total cost and benefit cost for the 'totalHours' in the look-back period. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) overageCost?: decimal; /** * The estimated cost with benefit for the 'totalHours' in the look-back period. It's equal to (commitmentAmount * totalHours) */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) benefitCost?: decimal; /** * Total cost, which is sum of benefit cost and overage cost. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) totalCost?: decimal; /** * The amount saved for the 'totalHours' in the look-back period, by purchasing the recommended quantity of the benefit. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) savingsAmount?: decimal; /** * The savings in percentage for the 'totalHours' in the look-back period, by purchasing the recommended quantity of benefit. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) savingsPercentage?: decimal; /** * Estimated benefit coverage percentage for the 'totalHours' in the look-back period, with this commitment. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) coveragePercentage?: decimal; /** * The commitment amount at the commitmentGranularity. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) commitmentAmount?: decimal; /** * Estimated average utilization percentage for the 'totalHours' in the look-back period, with this commitment. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) averageUtilizationPercentage?: decimal; /** * Estimated unused portion of the 'benefitCost'. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) wastageCost?: decimal; } @@ -1666,7 +1658,7 @@ model AllSavingsList { /** * The benefit resource model definition. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model BenefitResource extends Azure.ResourceManager.CommonTypes.Resource { /** * Reservation or SavingsPlan. @@ -1677,7 +1669,7 @@ model BenefitResource extends Azure.ResourceManager.CommonTypes.Resource { /** * Benefit utilization summary resource. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @discriminator("kind") model BenefitUtilizationSummary extends Azure.ResourceManager.CommonTypes.Resource { @@ -1761,11 +1753,13 @@ model AsyncOperationStatusProperties { /** * Sas url to the async benefit utilization summaries report. Will be empty if the report is in Running or Failed state. */ + @secret reportUrl?: BenefitUtilizationSummaryReportSchema; /** * Sas url to async benefit utilization summaries report in secondary storage in case of primary outage. Will be empty if the report is in Running or Failed state. */ + @secret secondaryReportUrl?: BenefitUtilizationSummaryReportSchema; /** @@ -1778,7 +1772,7 @@ model AsyncOperationStatusProperties { /** * The properties of the budget. */ -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model BudgetProperties { /** * The category of the budget. @@ -1852,7 +1846,7 @@ model BudgetProperties { * - Constraints for **CategoryType: Cost** - Budget can have up to 5 notifications with thresholdType: Actual and 5 notifications with thresholdType: Forecasted. * - Constraints for **CategoryType: ReservationUtilization** - Only one notification allowed. thresholdType is not applicable. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" notifications?: Record; /** @@ -1905,6 +1899,7 @@ model BudgetFilter { * Supported for CategoryType(s): Cost. */ @OpenAPI.extension("x-ms-identifiers", #[]) + @minItems(0) and?: BudgetFilterProperties[]; /** @@ -1968,6 +1963,7 @@ model BudgetComparisonExpression { /** * Array of values to use for comparison */ + @minItems(0) values: string[]; } @@ -2040,6 +2036,8 @@ model Notification { * * Supported for CategoryType(s): Cost, ReservationUtilization. */ + @minItems(0) + @maxItems(50) contactEmails: string[]; /** @@ -2054,6 +2052,8 @@ model Notification { * * Supported for CategoryType(s): Cost. */ + @minItems(0) + @maxItems(50) contactGroups?: string[]; /** @@ -2125,6 +2125,7 @@ model ExportListResult { /** * The list of exports. */ + @pageItems @visibility(Lifecycle.Read) value?: Export[]; } @@ -2132,8 +2133,8 @@ model ExportListResult { /** * The properties of the export. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model ExportProperties extends CommonExportProperties { /** * Has schedule information for the export. @@ -2273,6 +2274,7 @@ model ExportDeliveryDestination { /** * A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified. */ + @secret sasToken?: string; /** @@ -2388,13 +2390,11 @@ model ExportExecutionListResult { /** * An export run. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model ExportRun extends CostManagementProxyResource { /** * The properties of the export run. */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten properties?: ExportRunProperties; } @@ -2588,8 +2588,6 @@ model ReportManifest { /** * The context of the Cost Details request. */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten requestContext?: RequestContext; /** @@ -2702,7 +2700,8 @@ model GenerateDetailedCostReportTimePeriod { /** * The URL to download the generated report. */ -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model DownloadURL { /** * The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z. @@ -2720,6 +2719,7 @@ model DownloadURL { /** * The URL to download the generated report. */ + #suppress "@azure-tools/typespec-client-generator-core/property-name-conflict" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" downloadUrl?: string; } @@ -2749,13 +2749,14 @@ model Status { /** * The status of the long running operation. */ + #suppress "@azure-tools/typespec-client-generator-core/property-name-conflict" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" status?: ReportOperationStatusType; } /** * The properties of the view. */ -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model ViewProperties { /** * User input name of the view. Required. @@ -2794,8 +2795,6 @@ model ViewProperties { /** * Query body configuration. Required. */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten query?: ReportConfigDefinition; /** @@ -2889,7 +2888,7 @@ model ReportConfigDataset { /** * Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @OpenAPI.extension("x-ms-identifiers", #["name"]) aggregation?: Record; @@ -2897,6 +2896,7 @@ model ReportConfigDataset { * Array of group by expression to use in the report. Report can have up to 2 group by clauses. */ @OpenAPI.extension("x-ms-identifiers", #["name", "type"]) + @maxItems(2) grouping?: ReportConfigGrouping[]; /** @@ -2974,12 +2974,14 @@ model ReportConfigFilter { * The logical "AND" expression. Must have at least 2 items. */ @OpenAPI.extension("x-ms-identifiers", #[]) + @minItems(2) and?: ReportConfigFilter[]; /** * The logical "OR" expression. Must have at least 2 items. */ @OpenAPI.extension("x-ms-identifiers", #[]) + @minItems(2) or?: ReportConfigFilter[]; /** @@ -3010,6 +3012,7 @@ model ReportConfigComparisonExpression { /** * Array of values to use for comparison */ + @minItems(1) values: string[]; } @@ -3056,6 +3059,7 @@ model AlertsResult { * List of alerts. */ @visibility(Lifecycle.Read) + @pageItems value?: Alert[]; /** @@ -3068,7 +3072,7 @@ model AlertsResult { /** * Alert properties. */ -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model AlertProperties { /** * defines the type of alert @@ -3186,11 +3190,14 @@ model AlertPropertiesDetails { /** * tags to filter by */ + #suppress "@azure-tools/typespec-client-generator-core/property-name-conflict" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" tagFilter?: Record; /** * notification threshold percentage as a decimal which activated this alert */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" threshold?: decimal; /** @@ -3201,6 +3208,7 @@ model AlertPropertiesDetails { /** * budget threshold amount */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" amount?: decimal; /** @@ -3211,6 +3219,7 @@ model AlertPropertiesDetails { /** * current spend */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" currentSpend?: decimal; /** @@ -3261,6 +3270,7 @@ model AlertPropertiesDetails { /** * invoicing threshold */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" invoicingThreshold?: decimal; } @@ -3271,8 +3281,6 @@ model DismissAlertPayload { /** * Alert properties. */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten properties?: AlertProperties; } @@ -3345,7 +3353,7 @@ model ForecastDataset { /** * Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the aggregated column. forecast can have up to 2 aggregation clauses. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" aggregation: Record; /** @@ -3387,12 +3395,14 @@ model ForecastFilter { * The logical "AND" expression. Must have at least 2 items. */ @OpenAPI.extension("x-ms-identifiers", #[]) + @minItems(2) and?: ForecastFilter[]; /** * The logical "OR" expression. Must have at least 2 items. */ @OpenAPI.extension("x-ms-identifiers", #[]) + @minItems(2) or?: ForecastFilter[]; /** @@ -3423,19 +3433,18 @@ model ForecastComparisonExpression { /** * Array of values to use for comparison */ + @minItems(1) values: string[]; } /** * Result of forecast. It contains all columns listed under groupings and aggregation. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model ForecastResult extends CostManagementResource { /** * Forecast properties */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten properties?: ForecastProperties; } @@ -3519,7 +3528,7 @@ model CostManagementResource { /** * Resource tags. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) tags?: Record; } @@ -3527,26 +3536,29 @@ model CostManagementResource { /** * Result of listing dimensions. It contains a list of available dimensions. */ -@pagedResult model DimensionsListResult { /** * The list of dimensions. */ @visibility(Lifecycle.Read) - @items + @pageItems value?: Dimension[]; + + /** + * The link (url) to the next page of results. + */ + @nextLink + nextLink?: string; } /** * List of Dimension. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model Dimension extends CostManagementResource { /** * Dimension properties. */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten properties?: DimensionProperties; } @@ -3669,13 +3681,14 @@ model QueryDataset { /** * Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" aggregation?: Record; /** * Array of group by expression to use in the query. Query can have up to 2 group by clauses. */ @OpenAPI.extension("x-ms-identifiers", #["name", "type"]) + @maxItems(2) grouping?: QueryGrouping[]; /** @@ -3732,12 +3745,14 @@ model QueryFilter { * The logical "AND" expression. Must have at least 2 items. */ @OpenAPI.extension("x-ms-identifiers", #[]) + @minItems(2) and?: QueryFilter[]; /** * The logical "OR" expression. Must have at least 2 items. */ @OpenAPI.extension("x-ms-identifiers", #[]) + @minItems(2) or?: QueryFilter[]; /** @@ -3768,19 +3783,18 @@ model QueryComparisonExpression { /** * Array of values to use for comparison */ + @minItems(1) values: string[]; } /** * Result of query. It contains all columns listed under groupings and aggregation. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model QueryResult extends CostManagementResource { /** * Query properties */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten properties?: QueryProperties; } @@ -3833,18 +3847,18 @@ model OperationStatus { /** * The properties of the resource generated. */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten properties?: ReportURL; } /** * The URL to download the generated report. */ +#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model ReportURL { /** * The CSV file from the reportUrl blob link consists of reservation usage data with the following schema at daily granularity */ + #suppress "@azure-tools/typespec-client-generator-core/property-name-conflict" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" reportUrl?: ReservationReportSchema; /** @@ -3879,10 +3893,12 @@ model PricesheetDownloadProperties { /** * The properties of the price sheet. */ +#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model MCAPriceSheetProperties { /** * Unique identifier for the billing account. */ + #suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) billingAccountID?: string; @@ -4055,26 +4071,10 @@ model MCAPriceSheetProperties { priceType?: string; } -/** - * The status of the long running operation. - */ -model PriceSheetOperationStatus { - /** - * The status of the long running operation. - */ - status?: OperationStatusType; - - /** - * The properties of the resource generated. - */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten - properties?: EAPricesheetDownloadProperties; -} - /** * The properties of the price sheet download. */ +#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model EAPricesheetDownloadProperties { /** * The link (url) to download the pricesheet. @@ -4098,6 +4098,7 @@ model EAPricesheetDownloadProperties { /** * The properties of the EA price sheet. Properties supported with version 2025-03-01 are as below */ +#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model EAPriceSheetProperties { /** * Unique identifier for the EA billing account. @@ -4259,7 +4260,7 @@ model EAPriceSheetProperties { /** * The properties of the scheduled action. */ -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model ScheduledActionProperties { /** * Scheduled action name. @@ -4319,6 +4320,8 @@ model NotificationProperties { /** * Array of email addresses. */ + @minItems(1) + @maxItems(20) to: string[]; /** @@ -4387,7 +4390,7 @@ model ScheduleProperties { /** * The Resource model definition. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model ScheduledActionProxyResource extends Azure.ResourceManager.CommonTypes.ProxyResource { /** @@ -4404,7 +4407,6 @@ model ScheduledActionProxyResource /** * Kind of the scheduled action. */ - @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -4428,7 +4430,7 @@ model ErrorResponseWithNestedDetails { /** * The details of the error. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model ErrorDetailsWithNestedDetails extends ErrorDetails { /** * The additional details of the error. @@ -4447,6 +4449,7 @@ model SettingsListResult { */ @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", #["id"]) + @pageItems value?: Setting[]; } @@ -4526,8 +4529,6 @@ model IncludedQuantityUtilizationSummary extends BenefitUtilizationSummary { /** * Included Quantity utilization summary properties. */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten properties?: IncludedQuantityUtilizationSummaryProperties; /** @@ -4539,12 +4540,13 @@ model IncludedQuantityUtilizationSummary extends BenefitUtilizationSummary { /** * Included Quantity utilization summary properties. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model IncludedQuantityUtilizationSummaryProperties extends BenefitUtilizationSummaryProperties { /** * This is the utilized percentage for the benefit ID. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) utilizationPercentage?: decimal; } @@ -4556,8 +4558,6 @@ model SavingsPlanUtilizationSummary extends BenefitUtilizationSummary { /** * Savings plan utilization summary properties. */ - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "For backward compatibility" - @Azure.ResourceManager.Private.conditionalClientFlatten properties?: SavingsPlanUtilizationSummaryProperties; /** @@ -4569,24 +4569,27 @@ model SavingsPlanUtilizationSummary extends BenefitUtilizationSummary { /** * Savings plan utilization summary properties. */ -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model SavingsPlanUtilizationSummaryProperties extends BenefitUtilizationSummaryProperties { /** * This is the average hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the avgUtilizationPercentage value will be equal to the average of the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) avgUtilizationPercentage?: decimal; /** * This is the minimum hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the minUtilizationPercentage value will be equal to the smallest in the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day. If on the day 2022-10-18, the lowest utilization percentage was 10% at hour 4, then the value for the minUtilizationPercentage in the response will be 10%. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) minUtilizationPercentage?: decimal; /** * This is the maximum hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the maxUtilizationPercentage value will be equal to the largest in the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day. If on the day 2022-10-18, the largest utilization percentage was 90% at hour 5, then the value for the maxUtilizationPercentage in the response will be 90%. */ + #suppress "@azure-tools/typespec-azure-core/no-generic-numeric" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) maxUtilizationPercentage?: decimal; } @@ -4615,3 +4618,125 @@ model TagInheritanceProperties { */ preferContainerTags: boolean; } + +/** + * Result of listing benefit recommendations. + */ +#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model benefitRecommendationsListResult { + /** + * The list of benefit recommendations. + */ + @visibility(Lifecycle.Read) + @pageItems + value?: BenefitRecommendationModel[]; + + /** + * The link (url) to the next page of results. + */ + @nextLink + nextLink?: string; +} + +/** + * Result of listing budgets. It contains a list of available budgets in the scope provided. + */ +#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model BudgetsListResult { + /** + * The list of budgets. + */ + @visibility(Lifecycle.Read) + @pageItems + value?: Budget[]; + + /** + * The link (url) to the next page of results.\r\nIt's null for now, added for future use. + */ + @nextLink + nextLink?: string; +} + +/** + * List of benefit utilization summaries. + */ +model BenefitUtilizationSummariesListResult { + /** + * The list of benefit utilization summaries. + */ + @visibility(Lifecycle.Read) + @pageItems + value?: BenefitUtilizationSummary[]; + + /** + * The link (URL) to the next page of results. + */ + @nextLink + nextLink?: string; +} + +/** + * Scheduled actions list result. It contains a list of scheduled actions. + */ +model ScheduledActionListResult { + /** + * The list of scheduled actions. + */ + @visibility(Lifecycle.Read) + @pageItems + value?: ScheduledAction[]; + + /** + * The link (url) to the next page of results. + */ + @nextLink + nextLink?: string; +} + +/** + * Result of listing views. It contains a list of available views. + */ +model ViewListResult { + /** + * The list of views. + */ + @visibility(Lifecycle.Read) + @pageItems + value?: View[]; + + /** + * The link (url) to the next page of results. + */ + @nextLink + nextLink?: string; +} + +/** + * Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header. + */ +@error +model ErrorResponse { + /** + * The details of the error. + */ + error?: ErrorDetails; +} + +/** + * Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results. + */ +model OperationListResult { + /** + * List of cost management operations supported by the Microsoft.CostManagement resource provider. + */ + @visibility(Lifecycle.Read) + @pageItems + value?: CostManagementOperation[]; + + /** + * URL to get the next set of operation list results if there are any. + */ + @nextLink + @visibility(Lifecycle.Read) + nextLink?: string; +} diff --git a/specification/cost-management/CostManagement.Management/routes.tsp b/specification/cost-management/CostManagement.Management/routes.tsp index bedd61ea66d0..5ea2306280a9 100644 --- a/specification/cost-management/CostManagement.Management/routes.tsp +++ b/specification/cost-management/CostManagement.Management/routes.tsp @@ -13,38 +13,56 @@ using TypeSpec.OpenAPI; namespace Microsoft.CostManagement; -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface CostAllocationRulesOperationGroup { /** * Checks availability and correctness of a name for a cost allocation rule */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("CostAllocationRules_CheckNameAvailability") @autoRoute + @post @action("costAllocationRules/checkNameAvailability") - checkNameAvailability is ArmProviderActionSync< - Request = CostAllocationRuleCheckNameAvailabilityRequest, - Response = CostAllocationRuleCheckNameAvailabilityResponse, - Parameters = { - /** - * BillingAccount ID - */ - @path - @segment("billingAccounts") - billingAccountId: string; - } - >; + @armResourceCollectionAction + checkNameAvailability( + ...ApiVersionParameter, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Billing", + + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + billingAccountId: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Cost allocation rule to be created or updated + */ + @bodyRoot + body: CostAllocationRuleCheckNameAvailabilityRequest, + ): ArmResponse | ErrorResponse; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface BenefitRecommendationsOperationGroup { /** * List of recommendations for purchasing savings plan. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("BenefitRecommendations_List") - @route("/{billingScope}/providers/Microsoft.CostManagement/benefitRecommendations") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/CostManagement/") @get + @list + @action("benefitRecommendations") + @autoRoute list( ...ApiVersionParameter, @@ -69,351 +87,513 @@ interface BenefitRecommendationsOperationGroup { /** * The scope associated with benefit recommendation operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope, /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope */ - @path + @path(#{ allowReserved: true }) billingScope: string, - ): ArmResponse> | ErrorResponse; + + ...Azure.ResourceManager.Legacy.Provider, + ): ArmResponse | ErrorResponse; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface BenefitUtilizationSummariesOperationGroup { /** * Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain values: 'Daily' and 'Monthly'. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("BenefitUtilizationSummaries_ListByBillingAccountId") @autoRoute @get @action("benefitUtilizationSummaries") - listByBillingAccountId is ArmProviderActionSync< - Response = ResourceListResult, - Parameters = { - /** - * Billing account ID - */ - @path - @segment("billingAccounts") - billingAccountId: string; + @list + @externalDocs("https://docs.microsoft.com/en-us/rest/api/cost-management/") + listByBillingAccountId( + ...ApiVersionParameter, - /** - * Grain. - */ - @query("grainParameter") - grainParameter?: GrainParameter; + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Billing", + + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + billingAccountId: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Grain. + */ + @query("grainParameter") + grainParameter?: GrainParameter, + + /** + * Supports filtering by properties/benefitId, properties/benefitOrderId and properties/usageDate. + */ + @query("filter") + filter?: string, + ): ArmResponse | ErrorResponse; - /** - * Supports filtering by properties/benefitId, properties/benefitOrderId and properties/usageDate. - */ - @query("filter") - filter?: string; - } - >; /** * Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and 'Monthly'. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("BenefitUtilizationSummaries_ListByBillingProfileId") @autoRoute @get @action("benefitUtilizationSummaries") - listByBillingProfileId is ArmProviderActionSync< - Response = ResourceListResult, - Parameters = { - /** - * Billing account ID - */ - @path - @segment("billingAccounts") - billingAccountId: string; + @externalDocs("https://docs.microsoft.com/en-us/rest/api/cost-management/") + @list + listByBillingProfileId( + ...ApiVersionParameter, - /** - * Billing profile ID. - */ - @path - @segment("billingProfiles") - billingProfileId: string; + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Billing", - /** - * Grain. - */ - @query("grainParameter") - grainParameter?: GrainParameter; + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + billingAccountId: string, + + /** + * Billing Profile ID. + */ + @path + @segment("billingProfiles") + billingProfileId: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Grain. + */ + @query("grainParameter") + grainParameter?: GrainParameter, + + /** + * Supports filtering by properties/benefitId, properties/benefitOrderId and properties/usageDate. + */ + @query("filter") + filter?: string, + ): ArmResponse | ErrorResponse; - /** - * Supports filtering by properties/benefitId, properties/benefitOrderId and properties/usageDate. - */ - @query("filter") - filter?: string; - } - >; /** * Lists the savings plan utilization summaries for daily or monthly grain. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("BenefitUtilizationSummaries_ListBySavingsPlanOrder") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/cost-management/") @autoRoute @get @action("benefitUtilizationSummaries") - listBySavingsPlanOrder is ArmProviderActionSync< - Response = ResourceListResult, - Parameters = { - /** - * Supports filtering by properties/usageDate. - */ - @query("$filter") - $filter?: string; + @list + listBySavingsPlanOrder( + ...ApiVersionParameter, - /** - * Grain. - */ - @query("grainParameter") - grainParameter?: GrainParameter; + /** + * Supports filtering by properties/usageDate. + */ + @query("$filter") + $filter?: string, - /** - * Savings plan order ID. - */ - @path - @segment("savingsPlanOrders") - savingsPlanOrderId: string; - } - >; + /** + * Grain. + */ + @query("grainParameter") + grainParameter?: GrainParameter, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.BillingBenefits", + + /** + * Savings plan order ID. + */ + @path + @segment("savingsPlanOrders") + savingsPlanOrderId: string, + + ...Azure.ResourceManager.Legacy.Provider, + ): BenefitUtilizationSummariesListResult | ErrorResponse; /** * Lists the savings plan utilization summaries for daily or monthly grain. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("BenefitUtilizationSummaries_ListBySavingsPlanId") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/cost-management/") @autoRoute @get @action("benefitUtilizationSummaries") - listBySavingsPlanId is ArmProviderActionSync< - Response = ResourceListResult, - Parameters = { - /** - * Supports filtering by properties/usageDate. - */ - @query("$filter") - $filter?: string; + @list + listBySavingsPlanId( + ...ApiVersionParameter, - /** - * Grain. - */ - @query("grainParameter") - grainParameter?: GrainParameter; + /** + * Supports filtering by properties/usageDate. + */ + @query("$filter") + $filter?: string, - /** - * Savings plan order ID. - */ - @path - @segment("savingsPlanOrders") - savingsPlanOrderId: string; + /** + * Grain. + */ + @query("grainParameter") + grainParameter?: GrainParameter, - /** - * Savings plan ID. - */ - @path - @segment("savingsPlans") - savingsPlanId: string; - } - >; + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.BillingBenefits", + + /** + * Savings plan order ID. + */ + @path + @segment("savingsPlanOrders") + savingsPlanOrderId: string, + + /** + * Savings plan ID. + */ + @path + @segment("savingsPlans") + savingsPlanId: string, + + ...Azure.ResourceManager.Legacy.Provider, + ): BenefitUtilizationSummariesListResult | ErrorResponse; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface GenerateBenefitUtilizationSummariesReportOperationGroup { /** * Triggers generation of a benefit utilization summaries report for the provided billing account. This API supports only enrollment accounts. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("GenerateBenefitUtilizationSummariesReport_GenerateByBillingAccount") + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") @autoRoute @action("generateBenefitUtilizationSummariesReport") - generateByBillingAccount is ArmProviderActionAsync< - Request = BenefitUtilizationSummariesRequest, - Response = BenefitUtilizationSummariesOperationStatus, - Parameters = { - /** - * Billing account ID - */ - @path - @segment("billingAccounts") - billingAccountId: string; - } - >; + @post + @armResourceCollectionAction + generateByBillingAccount( + ...ApiVersionParameter, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Billing", + + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + billingAccountId: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Async Benefit Utilization Summary report to be created. + */ + @body + body: BenefitUtilizationSummariesRequest, + ): ArmResponse | ArmAcceptedLroResponse> | CommonTypes.ErrorResponse; + /** * Triggers generation of a benefit utilization summaries report for the provided billing account and billing profile. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("GenerateBenefitUtilizationSummariesReport_GenerateByBillingProfile") @autoRoute @action("generateBenefitUtilizationSummariesReport") - generateByBillingProfile is ArmProviderActionAsync< - Request = BenefitUtilizationSummariesRequest, - Response = BenefitUtilizationSummariesOperationStatus, - Parameters = { - /** - * Billing account ID - */ - @path - @segment("billingAccounts") - billingAccountId: string; + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") + @post + @armResourceCollectionAction + generateByBillingProfile( + ...ApiVersionParameter, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Billing", + + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + billingAccountId: string, + + /** + * Billing Profile ID. + */ + @path + @segment("billingProfiles") + billingProfileId: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Async Benefit Utilization Summary report to be created. + */ + @body + body: BenefitUtilizationSummariesRequest, + ): ArmResponse | ArmAcceptedLroResponse> | CommonTypes.ErrorResponse; - /** - * Billing profile ID. - */ - @path - @segment("billingProfiles") - billingProfileId: string; - } - >; /** * Triggers generation of a benefit utilization summaries report for the provided reservation order. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("GenerateBenefitUtilizationSummariesReport_GenerateByReservationOrderId") + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") @autoRoute @action("generateBenefitUtilizationSummariesReport") - generateByReservationOrderId is ArmProviderActionAsync< - Request = BenefitUtilizationSummariesRequest, - Response = BenefitUtilizationSummariesOperationStatus, - Parameters = { - /** - * Reservation Order ID - */ - @path - @segment("reservationorders") - reservationOrderId: string; - } - >; + @post + @armResourceCollectionAction + generateByReservationOrderId( + ...ApiVersionParameter, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Capacity", + + /** + * Reservation Order ID + */ + @path + @segment("reservationorders") + reservationOrderId: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Async Benefit Utilization Summary report to be created. + */ + @body + body: BenefitUtilizationSummariesRequest, + ): BenefitUtilizationSummariesOperationStatus | ArmAcceptedLroResponse> | CommonTypes.ErrorResponse; + /** * Triggers generation of a benefit utilization summaries report for the provided reservation. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("GenerateBenefitUtilizationSummariesReport_GenerateByReservationId") + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") @autoRoute @action("generateBenefitUtilizationSummariesReport") - generateByReservationId is ArmProviderActionAsync< - Request = BenefitUtilizationSummariesRequest, - Response = BenefitUtilizationSummariesOperationStatus, - Parameters = { - /** - * Reservation Order ID - */ - @path - @segment("reservationorders") - reservationOrderId: string; + @post + @armResourceCollectionAction + generateByReservationId( + ...ApiVersionParameter, - /** - * Reservation ID - */ - @path - @segment("reservations") - reservationId: string; - } - >; + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Capacity", + + /** + * Reservation Order ID + */ + @path + @segment("reservationorders") + reservationOrderId: string, + + /** + * Reservation ID + */ + @path + @segment("reservations") + reservationId: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Async Benefit Utilization Summary report to be created. + */ + @body + body: BenefitUtilizationSummariesRequest, + ): BenefitUtilizationSummariesOperationStatus | ArmAcceptedLroResponse> | CommonTypes.ErrorResponse; /** * Triggers generation of a benefit utilization summaries report for the provided savings plan order. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanOrderId") + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") @autoRoute @action("generateBenefitUtilizationSummariesReport") - generateBySavingsPlanOrderId is ArmProviderActionAsync< - Request = BenefitUtilizationSummariesRequest, - Response = BenefitUtilizationSummariesOperationStatus, - Parameters = { - /** - * Savings plan order ID. - */ - @path - @segment("savingsPlanOrders") - savingsPlanOrderId: string; - } - >; + @post + @armResourceCollectionAction + generateBySavingsPlanOrderId( + ...ApiVersionParameter, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.BillingBenefits", + + /** + * Savings plan order ID. + */ + @path + @segment("savingsPlanOrders") + savingsPlanOrderId: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Async Benefit Utilization Summary report to be created. + */ + @body + body: BenefitUtilizationSummariesRequest, + ): BenefitUtilizationSummariesOperationStatus | ArmAcceptedLroResponse> | CommonTypes.ErrorResponse; /** * Triggers generation of a benefit utilization summaries report for the provided savings plan. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanId") + @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") @autoRoute @action("generateBenefitUtilizationSummariesReport") - generateBySavingsPlanId is ArmProviderActionAsync< - Request = BenefitUtilizationSummariesRequest, - Response = BenefitUtilizationSummariesOperationStatus, - Parameters = { - /** - * Savings plan order ID. - */ - @path - @segment("savingsPlanOrders") - savingsPlanOrderId: string; + @post + @armResourceCollectionAction + generateBySavingsPlanId( + ...ApiVersionParameter, - /** - * Savings plan ID. - */ - @path - @segment("savingsPlans") - savingsPlanId: string; - } - >; + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.BillingBenefits", + + /** + * Savings plan order ID. + */ + @path + @segment("savingsPlanOrders") + savingsPlanOrderId: string, + + /** + * Savings plan ID. + */ + @path + @segment("savingsPlans") + savingsPlanId: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Async Benefit Utilization Summary report to be created. + */ + @body + body: BenefitUtilizationSummariesRequest, + ): BenefitUtilizationSummariesOperationStatus | ArmAcceptedLroResponse> | CommonTypes.ErrorResponse; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface GenerateCostDetailsReportOperationGroup { /** * This API is the replacement for all previously release Usage Details APIs. Request to generate a cost details report for the provided date range, billing period (Only enterprise customers) or Invoice Id asynchronously at a certain scope. The initial call to request a report will return a 202 with a 'Location' and 'Retry-After' header. The 'Location' header will provide the endpoint to poll to get the result of the report generation. The 'Retry-After' provides the duration to wait before polling for the generated report. A call to poll the report operation will provide a 202 response with a 'Location' header if the operation is still in progress. Once the report generation operation completes, the polling endpoint will provide a 200 response along with details on the report blob(s) that are available for download. The details on the file(s) available for download will be available in the polling response body. To Understand cost details (formerly known as usage details) fields found in files ,see https://learn.microsoft.com/en-us/azure/cost-management-billing/automate/understand-usage-details-fields */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("GenerateCostDetailsReport_CreateOperation") - @route("/{scope}/providers/Microsoft.CostManagement/generateCostDetailsReport") @post + @autoRoute + @action("generateCostDetailsReport") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") createOperation( ...ApiVersionParameter, /** * The ARM Resource ID for subscription, billing account, or other billing scopes.Currently Resource Group and Management Group are not supported. For details, see https://aka.ms/costmgmt/scopes. */ - @path + @path(#{ allowReserved: true }) scope: string, + ...Azure.ResourceManager.Legacy.Provider, + /** * Parameters supplied to the Create cost details operation. */ @bodyRoot parameters: GenerateCostDetailsReportRequestDefinition, - ): ArmResponse | ArmAcceptedResponse | ErrorResponse; + ): + | ArmResponse + | ArmAcceptedLroResponse> + | NoContentResponse + | GenerateCostDetailsReportErrorResponse; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface GenerateDetailedCostReportOperationGroup { /** * Generates the detailed cost report for provided date range, billing period(only enterprise customers) or Invoice ID asynchronously at a certain scope. Call returns a 202 with header Azure-Consumption-AsyncOperation providing a link to the operation created. A call on the operation will provide the status and if the operation is completed the blob file where generated detailed cost report is being stored. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("GenerateDetailedCostReport_CreateOperation") - @route("/{scope}/providers/Microsoft.CostManagement/generateDetailedCostReport") @post + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") + @autoRoute + @action("generateDetailedCostReport") createOperation( ...ApiVersionParameter, /** * The ARM Resource ID for subscription, resource group, billing account, or other billing scopes. For details, see https://aka.ms/costmgmt/scopes. */ - @path + @path(#{ allowReserved: true }) scope: string, + ...Azure.ResourceManager.Legacy.Provider, + /** * Parameters supplied to the Create detailed cost report operation. */ @bodyRoot parameters: GenerateDetailedCostReportDefinition, - ): ArmResponse | ArmAcceptedResponse | ErrorResponse; + ): ArmResponse | (ArmAcceptedLroResponse> & { + /** + * The URL to check the status of the asynchronous operation. + */ + @header("Azure-Consumption-AsyncOperation") + azureConsumptionAsyncOperation: string; + }) | GenerateDetailedCostReportErrorResponse; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface AlertsOperationGroup { /** * Lists the Alerts for external cloud provider type defined. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Alerts_ListExternal") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") @autoRoute @get @action("alerts") @@ -424,28 +604,29 @@ interface AlertsOperationGroup { * The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. */ @path - @segment("Microsoft.CostManagement") externalCloudProviderType: ExternalCloudProviderType; /** * This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. */ @path - @segment("{externalCloudProviderType}") externalCloudProviderId: string; - } + }, + Error = ErrorResponse >; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface ForecastOperationGroup { /** * Lists the forecast charges for scope defined. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Forecast_Usage") - @route("/{scope}/providers/Microsoft.CostManagement/forecast") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") @post + @action("forecast") + @autoRoute usage( ...ApiVersionParameter, @@ -458,21 +639,24 @@ interface ForecastOperationGroup { /** * The scope associated with forecast operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. */ - @path + @path(#{ allowReserved: true }) scope: string, + ...Azure.ResourceManager.Legacy.Provider, + /** * Parameters supplied to the CreateOrUpdate Forecast Config operation. */ @bodyRoot parameters: ForecastDefinition, - ): ArmResponse | ErrorResponse; + ): ArmResponse | NoContentResponse | ErrorResponse; /** * Lists the forecast charges for external cloud provider type defined. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Forecast_ExternalCloudProviderUsage") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") @autoRoute @action("forecast") externalCloudProviderUsage is ArmProviderActionSync< @@ -489,37 +673,41 @@ interface ForecastOperationGroup { * The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. */ @path - @segment("Microsoft.CostManagement") externalCloudProviderType: ExternalCloudProviderType; /** * This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. */ @path - @segment("{externalCloudProviderType}") externalCloudProviderId: string; - } + }, + Error = ErrorResponse >; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface DimensionsOperationGroup { /** * Lists the dimensions by the defined scope. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Dimensions_List") - @route("/{scope}/providers/Microsoft.CostManagement/dimensions") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") @get + @action("dimensions") + @autoRoute + @list list( ...ApiVersionParameter, /** * The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. */ - @path + @path(#{ allowReserved: true }) scope: string, + ...Azure.ResourceManager.Legacy.Provider, + /** * May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'. */ @@ -545,16 +733,18 @@ interface DimensionsOperationGroup { @minValue(1) @query("$top") $top?: int32, - ): ArmResponse | ErrorResponse; + ): ArmResponse | NoContentResponse | ErrorResponse; /** * Lists the dimensions by the external cloud provider type. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Dimensions_ByExternalCloudProviderType") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") @autoRoute @get @action("dimensions") + @list byExternalCloudProviderType is ArmProviderActionSync< Response = DimensionsListResult, Parameters = { @@ -562,14 +752,12 @@ interface DimensionsOperationGroup { * The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. */ @path - @segment("Microsoft.CostManagement") externalCloudProviderType: ExternalCloudProviderType; /** * This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. */ @path - @segment("{externalCloudProviderType}") externalCloudProviderId: string; /** @@ -597,40 +785,46 @@ interface DimensionsOperationGroup { @minValue(1) @query("$top") $top?: int32; - } + }, + Error = ErrorResponse >; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface QueryOperationGroup { /** * Query the usage data for scope defined. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Query_Usage") - @route("/{scope}/providers/Microsoft.CostManagement/query") @post + @action("query") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") + @autoRoute usage( ...ApiVersionParameter, /** * The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. */ - @path + @path(#{ allowReserved: true }) scope: string, + ...Azure.ResourceManager.Legacy.Provider, + /** * Parameters supplied to the CreateOrUpdate Query Config operation. */ @bodyRoot parameters: QueryDefinition, - ): ArmResponse | ErrorResponse; + ): ArmResponse | NoContentResponse | ErrorResponse; /** * Query the usage data for external cloud provider type defined. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Query_UsageByExternalCloudProviderType") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") @autoRoute @action("query") usageByExternalCloudProviderType is ArmProviderActionSync< @@ -641,127 +835,161 @@ interface QueryOperationGroup { * The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. */ @path - @segment("Microsoft.CostManagement") externalCloudProviderType: ExternalCloudProviderType; /** * This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. */ @path - @segment("{externalCloudProviderType}") externalCloudProviderId: string; - } + }, + Error = ErrorResponse >; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface GenerateReservationDetailsReportOperationGroup { /** * Generates the reservations details report for provided date range asynchronously based on enrollment id. The Reservation usage details can be viewed only by certain enterprise roles. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/understand-ea-roles#usage-and-costs-access-by-role */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("GenerateReservationDetailsReport_ByBillingAccountId") + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") @autoRoute @action("generateReservationDetailsReport") - byBillingAccountId is ArmProviderActionAsync< - Response = OperationStatus, - Parameters = { - /** - * Enrollment ID (Legacy BillingAccount ID) - */ - @path - @segment("billingAccounts") - billingAccountId: string; + @post + @armResourceCollectionAction + byBillingAccountId( + ...ApiVersionParameter, - /** - * Start Date - */ - @query("startDate") - startDate: string; + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Billing", - /** - * End Date - */ - @query("endDate") - endDate: string; - } - >; + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + billingAccountId: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Start Date + */ + @query("startDate") + startDate: string, + + /** + * End Date + */ + @query("endDate") + endDate: string, + ): ArmResponse | ArmAcceptedLroResponse> | ErrorResponse; /** * Generates the reservations details report for provided date range asynchronously by billing profile. The Reservation usage details can be viewed by only certain enterprise roles by default. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/reservations/reservation-utilization#view-utilization-in-the-azure-portal-with-azure-rbac-access */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("GenerateReservationDetailsReport_ByBillingProfileId") @autoRoute @action("generateReservationDetailsReport") - byBillingProfileId is ArmProviderActionAsync< - Response = OperationStatus, - Parameters = { - /** - * Billing account ID - */ - @path - @segment("billingAccounts") - billingAccountId: string; + @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") + @post + @armResourceCollectionAction + byBillingProfileId( + ...ApiVersionParameter, - /** - * Billing profile ID. - */ - @path - @segment("billingProfiles") - billingProfileId: string; + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Billing", - /** - * Start Date - */ - @query("startDate") - startDate: string; + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + billingAccountId: string, - /** - * End Date - */ - @query("endDate") - endDate: string; - } - >; + /** + * Billing Profile ID. + */ + @path + @segment("billingProfiles") + billingProfileId: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Start Date + */ + @query("startDate") + startDate: string, + + /** + * End Date + */ + @query("endDate") + endDate: string, + ): ArmResponse | ArmAcceptedLroResponse> | ErrorResponse; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface PriceSheetOperationGroup { /** * Gets a URL to download the pricesheet for an invoice. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("PriceSheet_DownloadByInvoice") @autoRoute @action("pricesheets/default/download") - downloadByInvoice is ArmProviderActionAsync< - Response = DownloadURL, - Parameters = { - /** - * The ID that uniquely identifies a billing account. - */ - @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+):([A-Za-z0-9]+(-[A-Za-z0-9]+)+)_[0-9]{4}-[0-9]{2}-[0-9]{2}") - @path - @segment("billingAccounts") - billingAccountName: string; + @post + @armResourceCollectionAction + downloadByInvoice( + ...ApiVersionParameter, - /** - * The ID that uniquely identifies a billing profile. - */ - @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+)") - @path - @segment("billingProfiles") - billingProfileName: string; + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Billing", - /** - * The ID that uniquely identifies an invoice. - */ - @pattern("[A-Za-z0-9]+") - @path - @segment("invoices") - invoiceName: string; - } - >; + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+):([A-Za-z0-9]+(-[A-Za-z0-9]+)+)_[0-9]{4}-[0-9]{2}-[0-9]{2}") + billingAccountName: string, + + /** + * Billing Profile Name. + */ + @path + @segment("billingProfiles") + @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+)") + billingProfileName: string, + + /** + * The ID that uniquely identifies an invoice. + */ + @pattern("[A-Za-z0-9]+") + @path + @segment("invoices") + invoiceName: string, + + ...Azure.ResourceManager.Legacy.Provider, + ): DownloadURL | (ArmAcceptedLroResponse> & { + /** + * The operation entity Id GUID. + */ + @header("OData-EntityId") + odataEntityId: string; + }) | ErrorResponse; /** * Gets a URL to download the current month's pricesheet for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. * @@ -769,30 +997,46 @@ interface PriceSheetOperationGroup { * * Due to Azure product growth, the Azure price sheet download experience in this preview version will be updated from a single csv/json file to a Zip file containing multiple csv/json files, each with max size of 75MB. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("PriceSheet_DownloadByBillingProfile") @autoRoute @action("pricesheets/default/download") - downloadByBillingProfile is ArmProviderActionAsync< - Response = PricesheetDownloadProperties, - Parameters = { - /** - * The ID that uniquely identifies a billing account. - */ - @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+):([A-Za-z0-9]+(-[A-Za-z0-9]+)+)_[0-9]{4}-[0-9]{2}-[0-9]{2}") - @path - @segment("billingAccounts") - billingAccountName: string; + @post + @armResourceCollectionAction + downloadByBillingProfile( + ...ApiVersionParameter, + + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Billing", + + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+):([A-Za-z0-9]+(-[A-Za-z0-9]+)+)_[0-9]{4}-[0-9]{2}-[0-9]{2}") + billingAccountName: string, + + /** + * Billing Profile Name. + */ + @path + @segment("billingProfiles") + @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+)") + billingProfileName: string, + + ...Azure.ResourceManager.Legacy.Provider, + ): PricesheetDownloadProperties | (ArmAcceptedLroResponse> & { + /** + * The operation entity Id GUID. + */ + @header("OData-EntityId") + odataEntityId: string; + }) | ErrorResponse; - /** - * The ID that uniquely identifies a billing profile. - */ - @pattern("([A-Za-z0-9]+(-[A-Za-z0-9]+)+)") - @path - @segment("billingProfiles") - billingProfileName: string; - } - >; /** * Generates the pricesheet for the provided billing period asynchronously based on the Enrollment ID. This is for Enterprise Agreement customers. * @@ -810,47 +1054,57 @@ interface PriceSheetOperationGroup { * * All versions of the Microsoft.Consumption Azure Price Sheet - Download by Billing Account (including 2022-06-01, 2021-10-01, 2020-01-01-preview, 2019-10-01, 2019-05-01) are scheduled to be retired on 01 June 2026 and will no longer be supported after this date. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("PriceSheet_DownloadByBillingAccount") @autoRoute + @post @action("pricesheets/default/download") - downloadByBillingAccount is ArmProviderActionAsync< - Response = PriceSheetOperationStatus, - Parameters = { - /** - * BillingAccount ID - */ - @path - @segment("billingAccounts") - billingAccountId: string; + @armResourceCollectionAction + downloadByBillingAccount( + ...ApiVersionParameter, - /** - * Billing Period Name. - */ - @pattern("^[0-9]*$") - @path - @segment("billingPeriods") - billingPeriodName: string; - } - >; + /** the provider namespace */ + @path + @segment("providers") + @key + providerNamespace: "microsoft.Billing", + + /** + * BillingAccount ID + */ + @path + @segment("billingAccounts") + billingAccountId: string, + + /** + * Billing Period Name. + */ + @pattern("^[0-9]*$") + @path + @segment("billingPeriods") + billingPeriodName: string, + + ...Azure.ResourceManager.Legacy.Provider, + ): OperationStatus | ArmAcceptedLroResponse> | CommonTypes.ErrorResponse; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface ScheduledActionsOperationGroup { /** * Checks availability and correctness of the name for a scheduled action. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("ScheduledActions_CheckNameAvailability") @autoRoute checkNameAvailability is ArmProviderActionSync< Request = Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest, - Response = Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse + Response = Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse, + Error = ErrorResponseWithNestedDetails >; /** * Checks availability and correctness of the name for a scheduled action within the given scope. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("ScheduledActions_CheckNameAvailabilityByScope") @route("/{scope}/providers/Microsoft.CostManagement/checkNameAvailability") @post @@ -867,6 +1121,6 @@ interface ScheduledActionsOperationGroup { * Scheduled action to be created or updated. */ @bodyRoot - checkNameAvailabilityRequest: CheckNameAvailabilityRequest, - ): ArmResponse | ErrorResponse; + checkNameAvailabilityRequest: Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest, + ): ArmResponse | ErrorResponseWithNestedDetails; } diff --git a/specification/cost-management/CostManagement.Management/tspconfig.yaml b/specification/cost-management/CostManagement.Management/tspconfig.yaml index d30835435e4f..cee2515f3f8a 100644 --- a/specification/cost-management/CostManagement.Management/tspconfig.yaml +++ b/specification/cost-management/CostManagement.Management/tspconfig.yaml @@ -2,7 +2,6 @@ emit: - "@azure-tools/typespec-autorest" options: "@azure-tools/typespec-autorest": - omit-unreachable-types: true emitter-output-dir: "{project-root}/.." azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitRecommendationsByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitRecommendationsByBillingAccount.json index 2b4daa7e7345..54a381910860 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitRecommendationsByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitRecommendationsByBillingAccount.json @@ -1,100 +1,28 @@ { "parameters": { - "api-version": "2025-03-01", - "billingScope": "providers/Microsoft.Billing/billingAccounts/123456", "$expand": "properties/usage,properties/allRecommendationDetails", - "$filter": "properties/lookBackPeriod eq 'Last7Days' AND properties/term eq 'P1Y'" + "$filter": "properties/lookBackPeriod eq 'Last7Days' AND properties/term eq 'P1Y'", + "api-version": "2025-03-01", + "billingScope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { "body": { "value": [ { - "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/benefitRecommendations/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/benefitRecommendations", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/benefitRecommendations/00000000-0000-0000-0000-000000000000", "kind": "SavingsPlan", "properties": { - "firstConsumptionDate": "2022-10-18T00:00:00Z", - "lastConsumptionDate": "2022-10-25T00:00:00Z", - "lookBackPeriod": "Last7Days", - "totalHours": 168, - "usage": { - "usageGrain": "Hourly", - "charges": [ - 1.0, - 1.0, - 0.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 2.0, - 2.0, - 2.0, - 2.0 - ] - }, - "armSkuName": "Compute_Savings_Plan", - "term": "P1Y", - "commitmentGranularity": "Hourly", - "currencyCode": "USD", - "costWithoutBenefit": 218.267, - "scope": "Shared", - "recommendationDetails": { - "averageUtilizationPercentage": 99.330, - "coveragePercentage": 54.609, - "commitmentAmount": 0.164, - "overageCost": 144.841, - "benefitCost": 52.002, - "savingsAmount": 21.424, - "savingsPercentage": 9.815, - "totalCost": 196.843, - "wastageCost": 0.035 - }, "allRecommendationDetails": { "value": [ { - "averageUtilizationPercentage": 99.330, - "coveragePercentage": 54.609, + "averageUtilizationPercentage": 99.33, + "benefitCost": 52.002, "commitmentAmount": 0.164, + "coveragePercentage": 54.609, "overageCost": 144.841, - "benefitCost": 52.002, "savingsAmount": 21.424, "savingsPercentage": 9.815, "totalCost": 196.843, @@ -102,21 +30,95 @@ }, { "averageUtilizationPercentage": 81.474, - "coveragePercentage": 56.748, + "benefitCost": 83.754, "commitmentAmount": 0.161, + "coveragePercentage": 56.748, "overageCost": 120.389, - "benefitCost": 83.754, "savingsAmount": 14.124, - "savingsPercentage": 6.470, + "savingsPercentage": 6.47, "totalCost": 204.143, - "wastageCost": 0.100 + "wastageCost": 0.1 } ] + }, + "armSkuName": "Compute_Savings_Plan", + "commitmentGranularity": "Hourly", + "costWithoutBenefit": 218.267, + "currencyCode": "USD", + "firstConsumptionDate": "2022-10-18T00:00:00Z", + "lastConsumptionDate": "2022-10-25T00:00:00Z", + "lookBackPeriod": "Last7Days", + "recommendationDetails": { + "averageUtilizationPercentage": 99.33, + "benefitCost": 52.002, + "commitmentAmount": 0.164, + "coveragePercentage": 54.609, + "overageCost": 144.841, + "savingsAmount": 21.424, + "savingsPercentage": 9.815, + "totalCost": 196.843, + "wastageCost": 0.035 + }, + "scope": "Shared", + "term": "P1Y", + "totalHours": 168, + "usage": { + "charges": [ + 1, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2 + ], + "usageGrain": "Hourly" } } } ] } } - } + }, + "operationId": "BenefitRecommendations_List", + "title": "BenefitRecommendationsBillingAccountList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json index 04aa60897759..d10904aa1d15 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json @@ -1,37 +1,39 @@ { "parameters": { "api-version": "2025-03-01", - "billingAccountId": "8099099", "benefitUtilizationSummariesRequest": { - "kind": "Reservation", "endDate": "2022-08-31T00:00:00Z", - "startDate": "2022-06-01T00:00:00Z", - "grain": "Daily" - } + "grain": "Daily", + "kind": "Reservation", + "startDate": "2022-06-01T00:00:00Z" + }, + "billingAccountId": "8099099" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/8099099/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", - "Retry-After": "60" - } - }, "200": { "body": { "input": { - "grain": "Daily", "billingAccountId": "8099099", - "kind": "Reservation", "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "Reservation", "startDate": "2022-06-01T00:00:00Z" }, - "status": "Complete", "properties": { "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "validUntil": "2022-06-12T02:56:55.5021869Z" - } + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/8099099/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" } } - } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByBillingAccount", + "title": "GenerateUtilizationSummariesReportByBillingAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json index 512d55aa694b..ca2bf5230bc2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json @@ -1,39 +1,41 @@ { "parameters": { "api-version": "2025-03-01", - "billingAccountId": "00000000-0000-0000-0000-000000000000", - "billingProfileId": "CZSFR-SDFXC-DSDF", "benefitUtilizationSummariesRequest": { - "kind": "Reservation", "endDate": "2022-08-31T00:00:00Z", - "startDate": "2022-06-01T00:00:00Z", - "grain": "Daily" - } + "grain": "Daily", + "kind": "Reservation", + "startDate": "2022-06-01T00:00:00Z" + }, + "billingAccountId": "00000000-0000-0000-0000-000000000000", + "billingProfileId": "CZSFR-SDFXC-DSDF" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000/billingProfiles/CZSFR-SDFXC-DSDF/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", - "Retry-After": "60" - } - }, "200": { "body": { "input": { - "grain": "Daily", "billingAccountId": "00000000-0000-0000-0000-000000000000", "billingProfileId": "CZSFR-SDFXC-DSDF", - "kind": "Reservation", "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "Reservation", "startDate": "2022-06-01T00:00:00Z" }, - "status": "Complete", "properties": { "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "validUntil": "2022-06-12T02:56:55.5021869Z" - } + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000/billingProfiles/CZSFR-SDFXC-DSDF/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" } } - } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByBillingProfile", + "title": "GenerateUtilizationSummariesReportByBillingProfile" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json index c1673de57147..5e1cd9bee47a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json @@ -1,38 +1,40 @@ { "parameters": { "api-version": "2025-03-01", - "reservationOrderId": "00000000-0000-0000-0000-000000000000", - "reservationId": "00000000-0000-0000-0000-000000000000", "benefitUtilizationSummariesRequest": { "endDate": "2022-08-31T00:00:00Z", - "startDate": "2022-06-01T00:00:00Z", - "grain": "Daily" - } + "grain": "Daily", + "startDate": "2022-06-01T00:00:00Z" + }, + "reservationId": "00000000-0000-0000-0000-000000000000", + "reservationOrderId": "00000000-0000-0000-0000-000000000000" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Capacity/reservationorders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", - "Retry-After": "60" - } - }, "200": { "body": { "input": { - "grain": "Daily", - "benefitOrderId": "00000000-0000-0000-0000-000000000000", "benefitId": "00000000-0000-0000-0000-000000000000", - "kind": "Reservation", + "benefitOrderId": "00000000-0000-0000-0000-000000000000", "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "Reservation", "startDate": "2022-06-01T00:00:00Z" }, - "status": "Complete", "properties": { "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "validUntil": "2022-06-12T02:56:55.5021869Z" - } + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Capacity/reservationorders/00000000-0000-0000-0000-000000000000/reservations/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" } } - } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByReservationId", + "title": "GenerateUtilizationSummariesReportByReservation" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json index 10624cde008f..78d8796421a1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json @@ -1,36 +1,38 @@ { "parameters": { "api-version": "2025-03-01", - "reservationOrderId": "00000000-0000-0000-0000-000000000000", "benefitUtilizationSummariesRequest": { "endDate": "2022-08-31T00:00:00Z", - "startDate": "2022-06-01T00:00:00Z", - "grain": "Daily" - } + "grain": "Daily", + "startDate": "2022-06-01T00:00:00Z" + }, + "reservationOrderId": "00000000-0000-0000-0000-000000000000" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Capacity/reservationorders/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", - "Retry-After": "60" - } - }, "200": { "body": { "input": { - "grain": "Daily", "benefitOrderId": "00000000-0000-0000-0000-000000000000", - "kind": "Reservation", "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "Reservation", "startDate": "2022-06-01T00:00:00Z" }, - "status": "Complete", "properties": { "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "validUntil": "2022-06-12T02:56:55.5021869Z" - } + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Capacity/reservationorders/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" } } - } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByReservationOrderId", + "title": "GenerateUtilizationSummariesReportByReservationOrder" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json index 67547b129387..953ebb99fc03 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json @@ -1,38 +1,40 @@ { "parameters": { "api-version": "2025-03-01", - "savingsPlanOrderId": "00000000-0000-0000-0000-000000000000", - "savingsPlanId": "00000000-0000-0000-0000-000000000000", "benefitUtilizationSummariesRequest": { "endDate": "2022-08-31T00:00:00Z", - "startDate": "2022-06-01T00:00:00Z", - "grain": "Daily" - } + "grain": "Daily", + "startDate": "2022-06-01T00:00:00Z" + }, + "savingsPlanId": "00000000-0000-0000-0000-000000000000", + "savingsPlanOrderId": "00000000-0000-0000-0000-000000000000" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Capacity/savingsPlanOrders/00000000-0000-0000-0000-000000000000/savingsPlans/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", - "Retry-After": "60" - } - }, "200": { "body": { "input": { - "grain": "Daily", - "benefitOrderId": "00000000-0000-0000-0000-000000000000", "benefitId": "00000000-0000-0000-0000-000000000000", - "kind": "SavingsPlan", + "benefitOrderId": "00000000-0000-0000-0000-000000000000", "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "SavingsPlan", "startDate": "2022-06-01T00:00:00Z" }, - "status": "Complete", "properties": { "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "validUntil": "2022-06-12T02:56:55.5021869Z" - } + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Capacity/savingsPlanOrders/00000000-0000-0000-0000-000000000000/savingsPlans/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" } } - } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanId", + "title": "GenerateUtilizationSummariesReportBySavingsPlan" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json index 1ef77265edc0..7458dfd3ce23 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json @@ -1,36 +1,38 @@ { "parameters": { "api-version": "2025-03-01", - "savingsPlanOrderId": "00000000-0000-0000-0000-000000000000", "benefitUtilizationSummariesRequest": { "endDate": "2022-08-31T00:00:00Z", - "startDate": "2022-06-01T00:00:00Z", - "grain": "Daily" - } + "grain": "Daily", + "startDate": "2022-06-01T00:00:00Z" + }, + "savingsPlanOrderId": "00000000-0000-0000-0000-000000000000" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrders/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", - "Retry-After": "60" - } - }, "200": { "body": { "input": { - "grain": "Daily", "benefitOrderId": "00000000-0000-0000-0000-000000000000", - "kind": "SavingsPlan", "endDate": "2022-08-31T00:00:00Z", + "grain": "Daily", + "kind": "SavingsPlan", "startDate": "2022-06-01T00:00:00Z" }, - "status": "Complete", "properties": { "reportUrl": "https://storage.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "secondaryReportUrl": "https://storage-secondary.blob.core.windows.net/details/20220611/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "validUntil": "2022-06-12T02:56:55.5021869Z" - } + }, + "status": "Complete" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.BillingBenefits/savingsPlanOrders/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/benefitUtilizationSummariesOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2025-03-01", + "Retry-After": "60" } } - } + }, + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanOrderId", + "title": "GenerateUtilizationSummariesReportBySavingsPlanOrder" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json index 78576122447a..4ed3bcdcb7bc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json @@ -10,15 +10,15 @@ "body": { "value": [ { - "id": "/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", - "kind": "SavingsPlan", "name": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", + "kind": "SavingsPlan", "properties": { "armSkuName": "Compute_Savings_Plan", "avgUtilizationPercentage": 90, - "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", "benefitType": "SavingsPlan", "maxUtilizationPercentage": 100, "minUtilizationPercentage": 80, @@ -26,15 +26,15 @@ } }, { - "id": "/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/benefitUtilizationSummaries/88cccc88-8ccc-8c88-888c-88cc8c8c88c8_444d44dd-d4d4-4dd4-444d-4dd4444ddddd_20211117", - "kind": "SavingsPlan", "name": "88cccc88-8ccc-8c88-888c-88cc8c8c88c8_444d44dd-d4d4-4dd4-444d-4dd4444ddddd_20211117", "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/benefitUtilizationSummaries/88cccc88-8ccc-8c88-888c-88cc8c8c88c8_444d44dd-d4d4-4dd4-444d-4dd4444ddddd_20211117", + "kind": "SavingsPlan", "properties": { "armSkuName": "Compute_Savings_Plan", "avgUtilizationPercentage": 60, - "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/88cccc88-8ccc-8c88-888c-88cc8c8c88c8", "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/88cccc88-8ccc-8c88-888c-88cc8c8c88c8/savingsPlans/444d44dd-d4d4-4dd4-444d-4dd4444ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/88cccc88-8ccc-8c88-888c-88cc8c8c88c8", "benefitType": "SavingsPlan", "maxUtilizationPercentage": 70, "minUtilizationPercentage": 50, @@ -44,5 +44,7 @@ ] } } - } + }, + "operationId": "BenefitUtilizationSummaries_ListByBillingAccountId", + "title": "SavingsPlanUtilizationSummaries-BillingAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json index 260c59c36b10..99f01b89571a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json @@ -11,15 +11,15 @@ "body": { "value": [ { - "id": "/providers/Microsoft.Billing/billingAccounts/c0a00000-0e04-5ee3-000e-f0c6e00000ec:c0a00000-0e04-5ee3-000e-f0c6e00000ec/billingProfiles/200e5e90-000e-4960-8dcd-8d00a02db000/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", - "kind": "SavingsPlan", "name": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.Billing/billingAccounts/c0a00000-0e04-5ee3-000e-f0c6e00000ec:c0a00000-0e04-5ee3-000e-f0c6e00000ec/billingProfiles/200e5e90-000e-4960-8dcd-8d00a02db000/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", + "kind": "SavingsPlan", "properties": { "armSkuName": "Compute_Savings_Plan", "avgUtilizationPercentage": 90, - "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", "benefitType": "SavingsPlan", "maxUtilizationPercentage": 100, "minUtilizationPercentage": 80, @@ -29,5 +29,7 @@ ] } } - } + }, + "operationId": "BenefitUtilizationSummaries_ListByBillingProfileId", + "title": "SavingsPlanUtilizationSummaries-BillingProfile" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json index 7ea7a4699e3c..92b69a173255 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json @@ -1,25 +1,25 @@ { "parameters": { "api-version": "2025-03-01", - "savingsPlanOrderId": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6", - "savingsPlanId": "222d22dd-d2d2-2dd2-222d-2dd2222ddddd", "filter": "properties/usageDate ge 2022-10-15 and properties/usageDate le 2022-10-18", - "grain": "Monthly" + "grain": "Monthly", + "savingsPlanId": "222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "savingsPlanOrderId": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6" }, "responses": { "200": { "body": { "value": [ { - "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_202111", - "kind": "SavingsPlan", "name": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_202111", "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_202111", + "kind": "SavingsPlan", "properties": { "armSkuName": "Compute_Savings_Plan", "avgUtilizationPercentage": 90, - "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", "benefitType": "SavingsPlan", "maxUtilizationPercentage": 100, "minUtilizationPercentage": 80, @@ -27,15 +27,15 @@ } }, { - "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_202112", - "kind": "SavingsPlan", "name": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_202112", "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_202112", + "kind": "SavingsPlan", "properties": { "armSkuName": "Compute_Savings_Plan", "avgUtilizationPercentage": 80, - "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", "benefitType": "SavingsPlan", "maxUtilizationPercentage": 90, "minUtilizationPercentage": 70, @@ -45,5 +45,7 @@ ] } } - } + }, + "operationId": "BenefitUtilizationSummaries_ListBySavingsPlanId", + "title": "SavingsPlanUtilizationSummariesMonthlyWithSavingsPlanId" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json index 06244face573..ad1268c24451 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json @@ -1,24 +1,24 @@ { "parameters": { "api-version": "2025-03-01", - "savingsPlanOrderId": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6", "filter": "properties/usageDate ge 2022-10-15 and properties/usageDate le 2022-10-18", - "grain": "Daily" + "grain": "Daily", + "savingsPlanOrderId": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6" }, "responses": { "200": { "body": { "value": [ { - "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", - "kind": "SavingsPlan", "name": "66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", "type": "Microsoft.CostManagement/benefitUtilizationSummaries", + "id": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/providers/Microsoft.CostManagement/benefitUtilizationSummaries/66cccc66-6ccc-6c66-666c-66cc6c6c66c6_222d22dd-d2d2-2dd2-222d-2dd2222ddddd_20211116", + "kind": "SavingsPlan", "properties": { "armSkuName": "Compute_Savings_Plan", "avgUtilizationPercentage": 90, - "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", "benefitId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6/savingsPlans/222d22dd-d2d2-2dd2-222d-2dd2222ddddd", + "benefitOrderId": "/providers/Microsoft.BillingBenefits/savingsPlanOrders/66cccc66-6ccc-6c66-666c-66cc6c6c66c6", "benefitType": "SavingsPlan", "maxUtilizationPercentage": 100, "minUtilizationPercentage": 80, @@ -28,5 +28,7 @@ ] } } - } + }, + "operationId": "BenefitUtilizationSummaries_ListBySavingsPlanOrder", + "title": "SavingsPlanUtilizationSummariesDaily" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json index 99d38ffeb52a..fe57eea9a207 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json @@ -7,92 +7,94 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2019-08-31T17:51:55.1808807Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "11111111-1111-1111-111111111111_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 171000.32, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2019-06-24T05:51:52.8713179Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2019-08-31T17:51:55.1808807Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "Alerts_List", + "title": "BillingAccountAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json index ca5236d7afd9..2b549c85858a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json @@ -9,10 +9,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -20,20 +22,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -41,18 +43,18 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsList-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json index 62040ab0f7a0..30f3f086e9f3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json @@ -1,9 +1,9 @@ { "parameters": { - "api-version": "2025-03-01", - "billingAccountId": "100", "$expand": "properties/data", "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "100", "scope": "providers/Microsoft.Billing/billingAccounts/100" }, "responses": { @@ -11,10 +11,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -22,20 +24,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "microsoft.automation/automationaccounts", "microsoft.databricks/workspaces", @@ -43,18 +45,18 @@ "microsoft.containerregistry/registries", "microsoft.search/searchservices" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsListExpandAndTop-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json index 473a4ad9e68e..b849974ddcfd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json @@ -1,10 +1,10 @@ { "parameters": { - "api-version": "2025-03-01", - "billingAccountId": "100", "$expand": "properties/data", - "$top": 5, "$filter": "properties/category eq 'resourceId'", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "100", "scope": "providers/Microsoft.Billing/billingAccounts/100" }, "responses": { @@ -12,10 +12,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource Id", + "category": "ResourceId", "data": [ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", @@ -23,19 +25,19 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource Id", "filterEnabled": true, "groupingEnabled": true, - "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsListWithFilter-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json index ee701ea0b29b..054069935218 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json @@ -2,16 +2,9 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789", "parameters": { "type": "Usage", - "timeframe": "Custom", - "timePeriod": { - "from": "2022-08-01T00:00:00+00:00", - "to": "2022-08-31T23:59:59+00:00" - }, "dataset": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "Cost", @@ -54,20 +47,26 @@ } } ] - } + }, + "granularity": "Daily" }, "includeActualCost": false, - "includeFreshPartialCost": false - } + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Forecast?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -86,6 +85,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Forecast?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 2.10333307059661, @@ -116,5 +116,7 @@ } }, "204": {} - } + }, + "operationId": "Forecast_Usage", + "title": "BillingAccountForecast" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json index aae8477b8c4d..1dbfbafa04c5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json @@ -2,12 +2,9 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "70664866", - "scope": "providers/Microsoft.Billing/billingAccounts/70664866", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -44,18 +41,20 @@ } } ] - } - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/70664866" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "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": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -74,6 +73,7 @@ "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, @@ -88,7 +88,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", 20180331, "USD" @@ -104,5 +104,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "BillingAccountQuery-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json index 3fae1d3fa203..cec7ec3fbf9e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json @@ -2,35 +2,34 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "70664866", - "scope": "providers/Microsoft.Billing/billingAccounts/70664866", "parameters": { "type": "Usage", - "timeframe": "TheLastMonth", "dataset": { - "granularity": "None", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "None", "grouping": [ { - "type": "Dimension", - "name": "ResourceGroup" + "name": "ResourceGroup", + "type": "Dimension" } ] - } - } + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/70664866" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "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": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -45,6 +44,7 @@ "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, @@ -57,7 +57,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", "USD" ] @@ -66,5 +66,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "BillingAccountQueryGrouping-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json index d7291b7951ff..7c5ec360c702 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json @@ -1,99 +1,101 @@ -{ - "parameters": { - "api-version": "2025-03-01", - "billingAccountId": "12345:6789", - "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "type": "Microsoft.CostManagement/alerts", - "properties": { - "definition": { - "type": "Budget", - "category": "Cost", - "criteria": "CostThresholdExceeded" - }, - "description": "", - "source": "Preset", - "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, - "contactEmails": [ - "1234@contoso.com" - ], - "contactGroups": [], - "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" - } - }, - { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", - "name": "11111111-1111-1111-111111111111", - "type": "Microsoft.CostManagement/alerts", - "properties": { - "definition": { - "type": "Budget", - "category": "Cost", - "criteria": "CostThresholdExceeded" - }, - "description": "", - "source": "Preset", - "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "11111111-1111-1111-111111111111_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 171000.32, - "contactEmails": [ - "1234@contoso.com" - ], - "contactGroups": [], - "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2019-06-24T05:51:52.8713179Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2019-08-31T17:51:55.1808807Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" - } - } - ], - "nextLink": null - } - } - } -} +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", + "billingProfileId": "13579", + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2020-04-28T11:06:02.8999373Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } + } + }, + { + "name": "11111111-1111-1111-111111111111", + "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "modificationTime": "2019-08-31T17:51:55.1808807Z", + "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, + "details": { + "amount": 200000, + "contactEmails": [ + "1234@contoso.com" + ], + "contactGroups": [], + "contactRoles": [], + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } + } + } + ] + } + } + }, + "operationId": "Alerts_List", + "title": "BillingProfileAlerts" +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json index d97b40c6d0cd..d8ef0e532274 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json @@ -3,16 +3,9 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579", "parameters": { "type": "Usage", - "timeframe": "Custom", - "timePeriod": { - "from": "2022-08-01T00:00:00+00:00", - "to": "2022-08-31T23:59:59+00:00" - }, "dataset": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "Cost", @@ -55,20 +48,26 @@ } } ] - } + }, + "granularity": "Daily" }, "includeActualCost": false, - "includeFreshPartialCost": false - } + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -87,6 +86,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 2.10333307059661, @@ -117,5 +117,7 @@ } }, "204": {} - } + }, + "operationId": "Forecast_Usage", + "title": "BillingProfileForecast" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json index 699a3b23d9a9..a2b0ba86455a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json @@ -1,20 +1,12 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", "budgetName": "TestBudget", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "parameters": { "eTag": "\"1d34d016a593709\"", "properties": { - "category": "Cost", "amount": 100.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, + "category": "Cost", "filter": { "and": [ { @@ -51,41 +43,48 @@ }, "notifications": { "Actual_GreaterThan_80_Percent": { - "enabled": true, - "operator": "GreaterThan", - "threshold": 80, - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], + "enabled": true, + "locale": "en-us", + "operator": "GreaterThan", + "threshold": 80, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } - } + }, + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { - "201": { + "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { - "category": "Cost", "amount": 100.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" }, "filter": { "and": [ @@ -121,46 +120,46 @@ } ] }, - "currentSpend": { - "amount": 80.89, - "unit": "USD" - }, "notifications": { "Actual_GreaterThan_80_Percent": { - "enabled": true, - "operator": "GreaterThan", - "threshold": 80, - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], + "enabled": true, + "locale": "en-us", + "operator": "GreaterThan", + "threshold": 80, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } }, - "200": { + "201": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { - "category": "Cost", "amount": 100.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" }, "filter": { "and": [ @@ -196,32 +195,35 @@ } ] }, - "currentSpend": { - "amount": 80.89, - "unit": "USD" - }, "notifications": { "Actual_GreaterThan_80_Percent": { - "enabled": true, - "operator": "GreaterThan", - "threshold": 80, - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], + "enabled": true, + "locale": "en-us", + "operator": "GreaterThan", + "threshold": 80, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-Cost-Subscription-Budget" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json index 2fb468d52954..1dcd0d28b74e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json @@ -3,16 +3,10 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "budgetName": "TestAlertRule", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", "parameters": { "eTag": "\"1d34d016a593709\"", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -26,34 +20,35 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Weekly", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -67,33 +62,33 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Weekly", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -107,19 +102,26 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Weekly", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservationIdFilter" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json index 52a8b210f5fb..329da7703436 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json @@ -3,16 +3,10 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "budgetName": "TestAlertRule", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", "parameters": { "eTag": "\"1d34d016a593709\"", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservedResourceType", @@ -26,34 +20,35 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Weekly", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservedResourceType", @@ -67,33 +62,33 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Weekly", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservedResourceType", @@ -107,19 +102,26 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Weekly", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservedResourceTypeFilter" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json index 8648a80a294f..808131e96590 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json @@ -3,93 +3,95 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "budgetName": "TestAlertRule", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", "parameters": { "eTag": "\"1d34d016a593709\"", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Weekly", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Weekly", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Weekly", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json index 6f272a3143c6..fecb98c8caff 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json @@ -4,16 +4,10 @@ "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "KKKK-LLLL-MMM-NNN", "budgetName": "TestAlertRule", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN", "parameters": { "eTag": "\"1d34d016a593709\"", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -27,34 +21,35 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -68,33 +63,33 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -108,19 +103,26 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule-ReservationIdFilter" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json index 820eb44c998b..888c6806fbce 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json @@ -4,16 +4,10 @@ "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "KKKK-LLLL-MMM-NNN", "budgetName": "TestAlertRule", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN", "parameters": { "eTag": "\"1d34d016a593709\"", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservedResourceType", @@ -27,34 +21,35 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservedResourceType", @@ -68,33 +63,33 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservedResourceType", @@ -108,19 +103,26 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule-ReservedResourceTypeFilter" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json index 42edf217bdba..69bff72937bf 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json @@ -4,93 +4,95 @@ "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "KKKK-LLLL-MMM-NNN", "budgetName": "TestAlertRule", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN", "parameters": { "eTag": "\"1d34d016a593709\"", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule.json" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json index 044af539b29a..255cdd53bd79 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json @@ -2,18 +2,12 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "customerId": "000000-1111-2222-3333-444444444444", "budgetName": "TestAlertRule", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444", + "customerId": "000000-1111-2222-3333-444444444444", "parameters": { "eTag": "\"1d34d016a593709\"", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -27,34 +21,35 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -68,33 +63,33 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -108,19 +103,26 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule-ReservationIdFilter" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json index 51e08af283ff..80c2496bdcfe 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json @@ -2,18 +2,12 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "customerId": "000000-1111-2222-3333-444444444444", "budgetName": "TestAlertRule", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444", + "customerId": "000000-1111-2222-3333-444444444444", "parameters": { "eTag": "\"1d34d016a593709\"", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservedResourceType", @@ -27,34 +21,35 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservedResourceType", @@ -68,33 +63,33 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservedResourceType", @@ -108,19 +103,26 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule-ReservedResourceTypeFilter" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json index 2c8bc90512f6..e5575f475461 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json @@ -2,95 +2,97 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "customerId": "000000-1111-2222-3333-444444444444", "budgetName": "TestAlertRule", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444", + "customerId": "000000-1111-2222-3333-444444444444", "parameters": { "eTag": "\"1d34d016a593709\"", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_CreateOrUpdate", + "title": "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule.json" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json index 5b36a0eae29e..1b47afe55ec4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json @@ -1,12 +1,14 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", "budgetName": "TestBudget", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {} - } + }, + "operationId": "Budgets_Delete", + "title": "DeleteBudget" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json index e0e41f7a8cbf..02ddeeceda67 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json @@ -1,25 +1,24 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", "budgetName": "TestBudget", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { - "category": "Cost", "amount": 100.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" }, "filter": { "and": [ @@ -55,31 +54,34 @@ } ] }, - "currentSpend": { - "amount": 80.89, - "unit": "USD" - }, "notifications": { "Actual_GreaterThan_80_Percent": { - "enabled": true, - "operator": "GreaterThan", - "threshold": 80, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_Get", + "title": "Get-Cost-Budget" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json index 5d722ce501e1..19c909857ed1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json @@ -9,17 +9,12 @@ "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservedResourceType", @@ -33,19 +28,26 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } } - } + }, + "operationId": "Budgets_Get", + "title": "Get-ReservationUtilization-AlertRule" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json index ed350e3ada1e..3da75cf04bea 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json @@ -1,44 +1,46 @@ { "parameters": { + "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", - "$filter": "properties/category eq 'ReservationUtilization'" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Weekly", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "BillingAccountBudgetsList-EA-CategoryTypeFilter" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json index a78920052f5b..5b5bf0cbfee2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json @@ -9,97 +9,99 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget1", "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { + "amount": 10000, "category": "Cost", - "amount": 10000.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 8000.00, + "amount": 8000, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_80_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 80, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 80, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget2", "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { + "amount": 15000, "category": "Cost", - "amount": 15000.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 12000.00, + "amount": 12000, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_70_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 70, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 70, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Weekly", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Weekly", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "BillingAccountBudgetsList-EA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json index 624d3284357a..23f69dcb1c44 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json @@ -10,69 +10,71 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget1", "name": "DepartmentBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157e\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget1", "properties": { + "amount": 5000, "category": "Cost", - "amount": 5000.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 3000.00, + "amount": 3000, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_60_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 60, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget2", "name": "DepartmentBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget2", "properties": { + "amount": 8000, "category": "Cost", - "amount": 8000.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 6000.00, + "amount": 6000, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_75_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 75, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 75, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "DepartmentBudgetsList-EA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json index 0a67bf80812b..a3978b470b9f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json @@ -10,69 +10,71 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget1", "name": "EnrollmentAccountBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157e\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget1", "properties": { + "amount": 5000, "category": "Cost", - "amount": 5000.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 3000.00, + "amount": 3000, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_60_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 60, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget2", "name": "EnrollmentAccountBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget2", "properties": { + "amount": 8000, "category": "Cost", - "amount": 8000.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 6000.00, + "amount": 6000, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_75_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 75, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 75, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "EnrollmentAccountBudgetsList-EA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json index d1d7a289bef0..68622e82aad6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json @@ -1,44 +1,46 @@ { "parameters": { + "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "$filter": "properties/category eq 'ReservationUtilization'" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "BillingAccountBudgetsList-MCA-CategoryTypeFilter" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json index e9b3bd4f84c7..52b91916f8d9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json @@ -9,97 +9,99 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget1", "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { + "amount": 10000, "category": "Cost", - "amount": 10000.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 8000.00, + "amount": 8000, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_80_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 80, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 80, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget2", "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { + "amount": 15000, "category": "Cost", - "amount": 15000.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 12000.00, + "amount": 12000, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_70_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 70, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 70, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "BillingAccountBudgetsList-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json index 773f996eadcb..521a768625bb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json @@ -1,55 +1,50 @@ { "parameters": { + "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP", - "$filter": "properties/category eq 'ReservationUtilization'" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -63,21 +58,28 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 80, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 80 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "BillingProfileBudgetsList-MCA-CategoryTypeFilter" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json index ec0e7ab1aa5b..bd55d57fa3e5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json @@ -10,107 +10,102 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget1", "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { + "amount": 200, "category": "Cost", - "amount": 200.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 30.00, + "amount": 30, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_80_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 80, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 80, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget2", "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { + "amount": 600, "category": "Cost", - "amount": 600.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 20.00, + "amount": 20, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_70_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 70, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 70, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -124,21 +119,28 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 80, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 80 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "BillingProfileBudgetsList-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json index a433ca6d829d..b238b35dca25 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json @@ -1,55 +1,50 @@ { "parameters": { + "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "customerId": "000000-1111-2222-3333-444444444444", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444", - "$filter": "properties/category eq 'ReservationUtilization'" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -63,21 +58,28 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 80, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 80 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "CustomerBudgetsList-MCA-CSP-CategoryTypeFilter" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json index 1c6a38ab7064..181f6618f527 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json @@ -10,107 +10,102 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444", "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444", "properties": { + "amount": 200, "category": "Cost", - "amount": 200.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 30.00, + "amount": 30, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_80_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 80, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 80, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestBudget2", "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { + "amount": 600, "category": "Cost", - "amount": 600.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 20.00, + "amount": 20, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_70_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 70, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 70, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last30Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": {}, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 99, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 99 } + }, + "timeGrain": "Last30Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", - "timeGrain": "Last7Days", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2025-04-01T00:00:00Z" - }, "filter": { "dimensions": { "name": "ReservationId", @@ -124,21 +119,28 @@ }, "notifications": { "Actual_LessThan_99_Percent": { - "enabled": true, - "operator": "LessThan", - "threshold": 80, - "frequency": "Daily", - "locale": "en-us", "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" - ] + ], + "enabled": true, + "frequency": "Daily", + "locale": "en-us", + "operator": "LessThan", + "threshold": 80 } + }, + "timeGrain": "Last7Days", + "timePeriod": { + "endDate": "2025-04-01T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "CustomerBudgetsList-MCA-CSP" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json index e27af5631949..af8362c1e33d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json @@ -11,69 +11,71 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget1", "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { + "amount": 20, "category": "Cost", - "amount": 20.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 5.00, + "amount": 5, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_80_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 80, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 80, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget2", "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", + "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { + "amount": 60, "category": "Cost", - "amount": 60.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, "currentSpend": { - "amount": 20.00, + "amount": 20, "unit": "USD" }, "notifications": { "Actual_GreaterThanOrEqualTo_70_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 70, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 70, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "InvoiceSectionBudgetsList-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json index 149554deb3c3..5a4c1dd21f69 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json @@ -1,95 +1,94 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "MYDEVTESTMG", - "scope": "Microsoft.Management/managementGroups/MYDEVTESTMG" + "scope": "Microsoft.Management/managementGroups/MYDEVTESTMG", + "subscriptionId": "MYDEVTESTMG" }, "responses": { "200": { "body": { "value": [ { - "id": "Microsoft.Management/managementGroups/MYDEVTESTMG/Microsoft.CostManagement/budgets/TestBudget", "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "Microsoft.Management/managementGroups/MYDEVTESTMG/Microsoft.CostManagement/budgets/TestBudget", "properties": { + "amount": 10000, "category": "Cost", - "amount": 10000.00, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, - "filter": {}, "currentSpend": { "amount": 8000.89, "unit": "USD" }, + "filter": {}, "notifications": { "Actual_GreaterThanOrEqualTo_80_Percent": { - "enabled": true, - "operator": "GreaterThan", - "threshold": 80, "contactEmails": [ "managers@contoso.com" ], + "enabled": true, + "operator": "GreaterThan", + "threshold": 80, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { - "category": "Cost", "amount": 600.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, - "filter": {}, + "category": "Cost", "currentSpend": { "amount": 120.89, "unit": "USD" }, + "filter": {}, "notifications": { "Actual_GreaterThanOrEqualTo_60_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 60, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { - "category": "Cost", "amount": 100.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" }, "filter": { "and": [ @@ -125,28 +124,25 @@ } ] }, - "currentSpend": { - "amount": 80.89, - "unit": "USD" - }, "notifications": { - "Actual_GreaterThan_80_Percent": { - "enabled": true, - "operator": "GreaterThan", - "threshold": 80, + "Actual_GreaterThanOrEqualTo_90_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" - ] - }, - "Actual_GreaterThanOrEqualTo_90_Percent": { + ], "enabled": true, "operator": "GreaterThanOrEqualTo", "threshold": 90, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_80_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" @@ -155,50 +151,50 @@ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], - "thresholdType": "Actual" + "enabled": true, + "operator": "GreaterThan", + "threshold": 80 } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { - "category": "Cost", "amount": 200.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, - "filter": {}, + "category": "Cost", "currentSpend": { "amount": 120.89, "unit": "USD" }, + "filter": {}, "notifications": { - "Actual_GreaterThan_40_Percent": { - "enabled": true, - "operator": "GreaterThan", - "threshold": 40, + "Actual_GreaterThanOrEqualTo_60_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" - ] - }, - "Actual_GreaterThanOrEqualTo_60_Percent": { + ], "enabled": true, "operator": "GreaterThanOrEqualTo", "threshold": 60, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_40_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" @@ -207,16 +203,22 @@ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], - "thresholdType": "Actual" + "enabled": true, + "operator": "GreaterThan", + "threshold": 40 } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "ManagementGroupBudgetsList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json index 43113a42edc8..0e12dc5387d2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json @@ -1,26 +1,25 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", - "resourceGroupName": "MYDEVTESTRG" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget0", "name": "TestBudget0", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget0", "properties": { - "category": "Cost", "amount": 100.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" }, "filter": { "and": [ @@ -56,28 +55,25 @@ } ] }, - "currentSpend": { - "amount": 80.89, - "unit": "USD" - }, "notifications": { - "Actual_GreaterThan_80_Percent": { - "enabled": true, - "operator": "GreaterThan", - "threshold": 80, + "Actual_GreaterThanOrEqualTo_90_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" - ] - }, - "Actual_GreaterThanOrEqualTo_90_Percent": { + ], "enabled": true, "operator": "GreaterThanOrEqualTo", "threshold": 90, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_80_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" @@ -86,50 +82,50 @@ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], - "thresholdType": "Actual" + "enabled": true, + "operator": "GreaterThan", + "threshold": 80 } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { - "category": "Cost", "amount": 200.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, - "filter": {}, + "category": "Cost", "currentSpend": { "amount": 120.89, "unit": "USD" }, + "filter": {}, "notifications": { - "Actual_GreaterThan_40_Percent": { - "enabled": true, - "operator": "GreaterThan", - "threshold": 40, + "Actual_GreaterThanOrEqualTo_60_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" - ] - }, - "Actual_GreaterThanOrEqualTo_60_Percent": { + ], "enabled": true, "operator": "GreaterThanOrEqualTo", "threshold": 60, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_40_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" @@ -138,16 +134,22 @@ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], - "thresholdType": "Actual" + "enabled": true, + "operator": "GreaterThan", + "threshold": 40 } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "ResourceGroupBudgetsList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json index d217386cb34a..2fee9e28a062 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json @@ -1,64 +1,63 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { - "category": "Cost", "amount": 600.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, - "filter": {}, + "category": "Cost", "currentSpend": { "amount": 120.89, "unit": "USD" }, + "filter": {}, "notifications": { "Actual_GreaterThanOrEqualTo_60_Percent": { - "enabled": true, - "operator": "GreaterThanOrEqualTo", - "threshold": 60, "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], + "enabled": true, + "operator": "GreaterThanOrEqualTo", + "threshold": 60, "thresholdType": "Actual" } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { - "category": "Cost", "amount": 100.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" + "category": "Cost", + "currentSpend": { + "amount": 80.89, + "unit": "USD" }, "filter": { "and": [ @@ -94,28 +93,25 @@ } ] }, - "currentSpend": { - "amount": 80.89, - "unit": "USD" - }, "notifications": { - "Actual_GreaterThan_80_Percent": { - "enabled": true, - "operator": "GreaterThan", - "threshold": 80, + "Actual_GreaterThanOrEqualTo_90_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" - ] - }, - "Actual_GreaterThanOrEqualTo_90_Percent": { + ], "enabled": true, "operator": "GreaterThanOrEqualTo", "threshold": 90, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_80_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" @@ -124,50 +120,50 @@ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], - "thresholdType": "Actual" + "enabled": true, + "operator": "GreaterThan", + "threshold": 80 } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { - "category": "Cost", "amount": 200.65, - "timeGrain": "Monthly", - "timePeriod": { - "startDate": "2023-04-01T00:00:00Z", - "endDate": "2024-10-31T00:00:00Z" - }, - "filter": {}, + "category": "Cost", "currentSpend": { "amount": 120.89, "unit": "USD" }, + "filter": {}, "notifications": { - "Actual_GreaterThan_40_Percent": { - "enabled": true, - "operator": "GreaterThan", - "threshold": 40, + "Actual_GreaterThanOrEqualTo_60_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" ], + "contactGroups": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" + ], "contactRoles": [ "Contributor", "Reader" - ] - }, - "Actual_GreaterThanOrEqualTo_60_Percent": { + ], "enabled": true, "operator": "GreaterThanOrEqualTo", "threshold": 60, + "thresholdType": "Actual" + }, + "Actual_GreaterThan_40_Percent": { "contactEmails": [ "johndoe@contoso.com", "janesmith@contoso.com" @@ -176,16 +172,22 @@ "Contributor", "Reader" ], - "contactGroups": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" - ], - "thresholdType": "Actual" + "enabled": true, + "operator": "GreaterThan", + "threshold": 40 } + }, + "timeGrain": "Monthly", + "timePeriod": { + "endDate": "2024-10-31T00:00:00Z", + "startDate": "2023-04-01T00:00:00Z" } } } ] } } - } + }, + "operationId": "Budgets_List", + "title": "SubscriptionBudgetsList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCheckNameAvailability.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCheckNameAvailability.json index 2638ab84ab0c..72cf6baa94e1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCheckNameAvailability.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCheckNameAvailability.json @@ -10,10 +10,12 @@ "responses": { "200": { "body": { + "message": "A cost allocation rule with name testRule is already present for the billing account 100. Please specify a differnt name.", "nameAvailable": false, - "reason": "AlreadyExists", - "message": "A cost allocation rule with name testRule is already present for the billing account 100. Please specify a differnt name." + "reason": "AlreadyExists" } } - } + }, + "operationId": "CostAllocationRules_CheckNameAvailability", + "title": "CostAllocationRuleCheckNameAvailability" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreate.json index a89c1b24e0ae..b36a1756b289 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreate.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreate.json @@ -2,7 +2,6 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "100", - "ruleName": "testRule", "costAllocationRule": { "properties": { "description": "This is a testRule", @@ -10,8 +9,8 @@ "details": { "sourceResources": [ { - "resourceType": "Dimension", "name": "ResourceGroupName", + "resourceType": "Dimension", "values": [ "sampleRG", "secondRG" @@ -20,9 +19,9 @@ ], "targetResources": [ { - "resourceType": "Dimension", - "policyType": "FixedProportion", "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", "values": [ { "name": "destinationRG", @@ -37,24 +36,25 @@ ] } } - } + }, + "ruleName": "testRule" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", - "updatedDate": "2020-06-18T22:21:51.1287144Z", "status": "Creating", + "updatedDate": "2020-06-18T22:21:51.1287144Z", "details": { "sourceResources": [ { - "resourceType": "Dimension", "name": "ResourceGroupName", + "resourceType": "Dimension", "values": [ "sampleRG" ] @@ -62,9 +62,9 @@ ], "targetResources": [ { - "resourceType": "Dimension", - "policyType": "FixedProportion", "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", "values": [ { "name": "destinationRG", @@ -83,19 +83,19 @@ }, "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", - "updatedDate": "2020-06-18T22:21:51.1287144Z", "status": "Creating", + "updatedDate": "2020-06-18T22:21:51.1287144Z", "details": { "sourceResources": [ { - "resourceType": "Dimension", "name": "ResourceGroupName", + "resourceType": "Dimension", "values": [ "sampleRG" ] @@ -103,9 +103,9 @@ ], "targetResources": [ { - "resourceType": "Dimension", - "policyType": "FixedProportion", "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", "values": [ { "name": "destinationRG", @@ -122,5 +122,7 @@ } } } - } + }, + "operationId": "CostAllocationRules_CreateOrUpdate", + "title": "CostAllocationRulesCreateResourceGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreateTag.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreateTag.json index 28f6e1d04ca4..cf6229584866 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreateTag.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreateTag.json @@ -2,7 +2,6 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "100", - "ruleName": "testRule", "costAllocationRule": { "properties": { "description": "This is a testRule", @@ -10,8 +9,8 @@ "details": { "sourceResources": [ { - "resourceType": "Tag", "name": "category", + "resourceType": "Tag", "values": [ "devops" ] @@ -19,9 +18,9 @@ ], "targetResources": [ { - "resourceType": "Dimension", - "policyType": "FixedProportion", "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", "values": [ { "name": "destinationRG", @@ -40,24 +39,25 @@ ] } } - } + }, + "ruleName": "testRule" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", - "updatedDate": "2020-06-18T22:21:51.1287144Z", "status": "Creating", + "updatedDate": "2020-06-18T22:21:51.1287144Z", "details": { "sourceResources": [ { - "resourceType": "Dimension", "name": "ResourceGroupName", + "resourceType": "Dimension", "values": [ "sampleRG" ] @@ -65,9 +65,9 @@ ], "targetResources": [ { - "resourceType": "Dimension", - "policyType": "FixedProportion", "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", "values": [ { "name": "destinationRG", @@ -86,19 +86,19 @@ }, "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", - "updatedDate": "2020-06-18T22:21:51.1287144Z", "status": "Creating", + "updatedDate": "2020-06-18T22:21:51.1287144Z", "details": { "sourceResources": [ { - "resourceType": "Dimension", "name": "ResourceGroupName", + "resourceType": "Dimension", "values": [ "sampleRG" ] @@ -106,9 +106,9 @@ ], "targetResources": [ { - "resourceType": "Dimension", - "policyType": "FixedProportion", "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", "values": [ { "name": "destinationRG", @@ -125,5 +125,7 @@ } } } - } + }, + "operationId": "CostAllocationRules_CreateOrUpdate", + "title": "CostAllocationRulesCreateTag" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleDelete.json index 37d842305c2d..cf56e0154c3e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleDelete.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleDelete.json @@ -7,5 +7,7 @@ "responses": { "200": {}, "204": {} - } + }, + "operationId": "CostAllocationRules_Delete", + "title": "DeleteCostAllocationRule" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleGet.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleGet.json index d5a3dca8a92f..8355f0894b61 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleGet.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleGet.json @@ -7,19 +7,19 @@ "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", - "updatedDate": "2020-06-18T22:21:51.1287144Z", "status": "NotActive", + "updatedDate": "2020-06-18T22:21:51.1287144Z", "details": { "sourceResources": [ { - "resourceType": "Dimension", "name": "ResourceGroupName", + "resourceType": "Dimension", "values": [ "sampleRG" ] @@ -27,9 +27,9 @@ ], "targetResources": [ { - "resourceType": "Dimension", - "policyType": "FixedProportion", "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", "values": [ { "name": "destinationRG", @@ -46,5 +46,7 @@ } } } - } + }, + "operationId": "CostAllocationRules_Get", + "title": "CostAllocationRules" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRulesList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRulesList.json index 01585c18df71..a3a46d928cec 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRulesList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRulesList.json @@ -6,21 +6,22 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", - "updatedDate": "2020-06-18T22:21:51.1287144Z", "status": "NotActive", + "updatedDate": "2020-06-18T22:21:51.1287144Z", "details": { "sourceResources": [ { - "resourceType": "Dimension", "name": "ResourceGroupName", + "resourceType": "Dimension", "values": [ "sampleRG" ] @@ -28,9 +29,9 @@ ], "targetResources": [ { - "resourceType": "Dimension", - "policyType": "FixedProportion", "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", "values": [ { "name": "destinationRG", @@ -47,19 +48,19 @@ } }, { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule2", "name": "testRule2", "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule2", "properties": { "description": "This is a second test Rule", "createdDate": "2020-06-18T22:21:51.1287144Z", - "updatedDate": "2020-06-18T22:21:51.1287144Z", "status": "Active", + "updatedDate": "2020-06-18T22:21:51.1287144Z", "details": { "sourceResources": [ { - "resourceType": "Dimension", "name": "SubscriptionId", + "resourceType": "Dimension", "values": [ "2A002F2D-536F-4D7C-90DA-3D0BAE879B0E" ] @@ -67,9 +68,9 @@ ], "targetResources": [ { - "resourceType": "Tag", - "policyType": "FixedProportion", "name": "category", + "policyType": "FixedProportion", + "resourceType": "Tag", "values": [ { "name": "devops", @@ -82,19 +83,19 @@ } }, { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule3", "name": "testRule3", "type": "Microsoft.CostManagement/costAllocationRules", + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule3", "properties": { "description": "This is a third test Rule", "createdDate": "2020-06-18T22:21:51.1287144Z", - "updatedDate": "2020-06-18T22:21:51.1287144Z", "status": "Active", + "updatedDate": "2020-06-18T22:21:51.1287144Z", "details": { "sourceResources": [ { - "resourceType": "Tag", "name": "category", + "resourceType": "Tag", "values": [ "devops" ] @@ -102,9 +103,9 @@ ], "targetResources": [ { - "resourceType": "Dimension", - "policyType": "FixedProportion", "name": "ResourceGroupName", + "policyType": "FixedProportion", + "resourceType": "Dimension", "values": [ { "name": "ResourceGroup", @@ -120,9 +121,10 @@ } } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "CostAllocationRules_List", + "title": "CostAllocationRulesList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json index eeb05d188332..45a983204b5c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json @@ -1,38 +1,38 @@ { "parameters": { - "api-version": "2025-03-01", "operationId": "00000000-0000-0000-0000-000000000000", + "api-version": "2025-03-01", "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "status": "Completed", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { - "manifestVersion": "2025-03-01", - "dataFormat": "Csv", "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], "byteCount": 32741, "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", "requestContext": { - "requestScope": "subscriptions/00000000-0000-0000-0000-000000000000", "requestBody": { "metric": "ActualCost", "timePeriod": { - "start": "2020-03-01", - "end": "2020-03-15" + "end": "2020-03-15", + "start": "2020-03-01" } - } - }, - "blobs": [ - { - "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", - "byteCount": 32741 - } - ] + }, + "requestScope": "subscriptions/00000000-0000-0000-0000-000000000000" + } }, + "status": "Completed", "validTill": "2022-05-10T08:08:46.1973252Z" } }, @@ -42,5 +42,7 @@ "Retry-After": "60" } } - } + }, + "operationId": "GenerateCostDetailsReport_GetOperationResults", + "title": "Get details of the operation result" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json index a17c90b53b85..9e8e94635068 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json @@ -8,92 +8,94 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2019-08-31T17:51:55.1808807Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "11111111-1111-1111-111111111111_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 171000.32, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2019-06-24T05:51:52.8713179Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2019-08-31T17:51:55.1808807Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "Alerts_List", + "title": "DepartmentAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json index fcbda3fc55be..965ad40bb5cf 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json @@ -10,10 +10,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -21,20 +23,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -42,18 +44,18 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "DepartmentDimensionsList-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json index a2cf29ce6e81..4b55ce08b7cf 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json @@ -1,10 +1,10 @@ { "parameters": { + "$expand": "properties/data", + "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "$expand": "properties/data", - "$top": 5, "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { @@ -12,10 +12,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -23,20 +25,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "microsoft.automation/automationaccounts", "microsoft.databricks/workspaces", @@ -44,18 +46,18 @@ "microsoft.containerregistry/registries", "microsoft.search/searchservices" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "DepartmentDimensionsListExpandAndTop-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json index f33199b9cf80..ac3504f3344c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json @@ -1,11 +1,11 @@ { "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "$expand": "properties/data", - "$top": 5, - "$filter": "properties/category eq 'resourceId'", "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { @@ -13,10 +13,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource Id", + "category": "ResourceId", "data": [ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", @@ -24,19 +26,19 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource Id", "filterEnabled": true, "groupingEnabled": true, - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "DepartmentDimensionsListWithFilter-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json index 794f5f61c9ff..af812fdb3499 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json @@ -3,16 +3,9 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "departmentId": "123", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123", "parameters": { "type": "Usage", - "timeframe": "Custom", - "timePeriod": { - "from": "2022-08-01T00:00:00+00:00", - "to": "2022-08-31T23:59:59+00:00" - }, "dataset": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "Cost", @@ -55,20 +48,26 @@ } } ] - } + }, + "granularity": "Daily" }, "includeActualCost": false, - "includeFreshPartialCost": false - } + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/Forecast?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -87,6 +86,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/Forecast?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 2.10333307059661, @@ -117,5 +117,7 @@ } }, "204": {} - } + }, + "operationId": "Forecast_Usage", + "title": "DepartmentForecast" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json index 0d9c9eaa994d..89aa11f60d60 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json @@ -3,12 +3,9 @@ "api-version": "2025-03-01", "billingAccountId": "70664866", "departmentId": "123", - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -45,18 +42,20 @@ } } ] - } - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -75,6 +74,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -89,7 +89,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", 20180331, "USD" @@ -105,5 +105,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "DepartmentQuery-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json index 0baa345a1a30..521ae4475ec8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json @@ -3,35 +3,34 @@ "api-version": "2025-03-01", "billingAccountId": "70664866", "departmentId": "123", - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123", "parameters": { "type": "Usage", - "timeframe": "TheLastMonth", "dataset": { - "granularity": "None", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "None", "grouping": [ { - "type": "Dimension", - "name": "ResourceGroup" + "name": "ResourceGroup", + "type": "Dimension" } ] - } - } + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -46,6 +45,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -58,7 +58,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", "USD" ] @@ -67,5 +67,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "DepartmentQueryGrouping-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json index 77d10023d026..9ec81ed7cb93 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json @@ -1,59 +1,61 @@ { "parameters": { - "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "alertId": "22222222-2222-2222-2222-222222222222", + "api-version": "2025-03-01", "parameters": { "properties": { "status": "Dismissed" } - } + }, + "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Dismissed", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Dismissed", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", + "unit": "USD" + } } } } - } + }, + "operationId": "Alerts_Dismiss", + "title": "PatchResourceGroupAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json index 800b50259b93..99b6dc15b820 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json @@ -1,58 +1,60 @@ { "parameters": { - "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "alertId": "22222222-2222-2222-2222-222222222222", + "api-version": "2025-03-01", "parameters": { "properties": { "status": "Dismissed" } - } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Dismissed", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Dismissed", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", + "unit": "USD" + } } } } - } + }, + "operationId": "Alerts_Dismiss", + "title": "PatchSubscriptionAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EAPriceSheetForBillingPeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EAPriceSheetForBillingPeriod.json index 9695ceaa9384..67ba742f4fd5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EAPriceSheetForBillingPeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EAPriceSheetForBillingPeriod.json @@ -5,20 +5,22 @@ "billingPeriodName": "202311" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/0000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01", - "Retry-After": "60" - } - }, "200": { "body": { - "status": "Completed", "properties": { "downloadUrl": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", "validTill": "2023-09-30T17:32:28Z" - } + }, + "status": "Completed" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/0000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000?api-version=2023-09-01", + "Retry-After": "60" } } - } + }, + "operationId": "PriceSheet_DownloadByBillingAccount", + "title": "EAPriceSheetForBillingPeriod" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json index f92ee454a0cc..8f22e590bde7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json @@ -8,92 +8,94 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2019-08-31T17:51:55.1808807Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "11111111-1111-1111-111111111111_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 171000.32, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2019-06-24T05:51:52.8713179Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2019-08-31T17:51:55.1808807Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "Alerts_List", + "title": "EnrollmentAccountAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json index 8aad52f6437a..5d7a9a1127f7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json @@ -10,38 +10,40 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "EnrollmentAccountDimensionsList-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json index 72befc83deff..1ed8d2e9fe46 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json @@ -1,10 +1,10 @@ { "parameters": { + "$expand": "properties/data", + "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "$expand": "properties/data", - "$top": 5, "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { @@ -12,10 +12,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -23,20 +25,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "microsoft.automation/automationaccounts", "microsoft.databricks/workspaces", @@ -44,18 +46,18 @@ "microsoft.containerregistry/registries", "microsoft.search/searchservices" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "EnrollmentAccountDimensionsListExpandAndTop-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json index 2eb64c8cc8f8..45779413fa7f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json @@ -1,11 +1,11 @@ { "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "$expand": "properties/data", - "$top": 5, - "$filter": "properties/category eq 'resourceId'", "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { @@ -13,10 +13,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource Id", + "category": "ResourceId", "data": [ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", @@ -24,19 +26,19 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource Id", "filterEnabled": true, "groupingEnabled": true, - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "EnrollmentAccountDimensionsListWithFilter-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json index afc877610b82..1883eea1b5f3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json @@ -3,16 +3,9 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456", "parameters": { "type": "Usage", - "timeframe": "Custom", - "timePeriod": { - "from": "2022-08-01T00:00:00+00:00", - "to": "2022-08-31T23:59:59+00:00" - }, "dataset": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "Cost", @@ -55,20 +48,26 @@ } } ] - } + }, + "granularity": "Daily" }, "includeActualCost": false, - "includeFreshPartialCost": false - } + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/Forecast?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -87,6 +86,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/Forecast?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 2.10333307059661, @@ -117,5 +117,7 @@ } }, "204": {} - } + }, + "operationId": "Forecast_Usage", + "title": "EnrollmentAccountForecast" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json index 90be923c0b0f..024e9d3d8136 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json @@ -3,12 +3,9 @@ "api-version": "2025-03-01", "billingAccountId": "70664866", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -45,18 +42,20 @@ } } ] - } - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -75,6 +74,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -89,7 +89,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", 20180331, "USD" @@ -105,5 +105,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "EnrollmentAccountQuery-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json index f209d4b1097a..f91c4cb53f86 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json @@ -3,35 +3,34 @@ "api-version": "2025-03-01", "billingAccountId": "70664866", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", "parameters": { "type": "Usage", - "timeframe": "TheLastMonth", "dataset": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "Daily", "grouping": [ { - "type": "Dimension", - "name": "ResourceGroup" + "name": "ResourceGroup", + "type": "Dimension" } ] - } - } + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -50,6 +49,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -64,7 +64,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", 20180331, "USD" @@ -74,5 +74,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "EnrollmentAccountQueryGrouping-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json index 475f7348c95c..09b2860061ef 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json @@ -2,7 +2,6 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", "exportName": "TestExport", "parameters": { "identity": { @@ -10,47 +9,48 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -58,46 +58,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -105,39 +105,41 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } } - } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json index 81a12e2bd78f..4e79fde2c3db 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json @@ -1,140 +1,142 @@ -{ - "parameters": { - "api-version": "2025-03-01", - "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", - "exportName": "TestExport", - "parameters": { - "identity": { - "type": "SystemAssigned" - }, - "location": "centralus", - "properties": { - "schedule": { - "status": "Inactive" - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "Custom", - "timePeriod": { - "from": "2025-04-03T00:00:00.000Z", - "to": "2025-04-03T00:00:00.000Z" - }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - }, - "responses": { - "201": { - "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "identity": { - "type": "SystemAssigned", - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "location": "centralus", - "properties": { - "schedule": { - "status": "Inactive", - "recurrence": "None" - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "Custom", - "timePeriod": { - "from": "2025-04-03T00:00:00Z", - "to": "2025-04-03T00:00:00Z" - }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - }, - "200": { - "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "identity": { - "type": "SystemAssigned", - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "location": "centralus", - "properties": { - "schedule": { - "status": "Inactive", - "recurrence": "None" - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "Custom", - "timePeriod": { - "from": "2025-04-03T00:00:00Z", - "to": "2025-04-03T00:00:00Z" - }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - } - } -} +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2025-04-03T00:00:00.000Z", + "to": "2025-04-03T00:00:00.000Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "status": "Inactive" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2025-04-03T00:00:00Z", + "to": "2025-04-03T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "None", + "status": "Inactive" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2025-04-03T00:00:00Z", + "to": "2025-04-03T00:00:00Z" + }, + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "None", + "status": "Inactive" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccountCustom" +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json index e90029854639..58cb0fd2824f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json @@ -1,143 +1,145 @@ -{ - "parameters": { - "api-version": "2025-03-01", - "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", - "exportName": "TestExport", - "parameters": { - "identity": { - "type": "SystemAssigned" - }, - "location": "centralus", - "properties": { - "schedule": { - "status": "Active", - "recurrence": "Monthly", - "recurrencePeriod": { - "from": "2020-06-05T00:00:00Z", - "to": "2030-06-30T00:00:00Z" - } - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "TheLastMonth", - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - }, - "responses": { - "201": { - "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "identity": { - "type": "SystemAssigned", - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "location": "centralus", - "properties": { - "schedule": { - "status": "Active", - "recurrence": "Monthly", - "recurrencePeriod": { - "from": "2020-06-05T00:00:00Z", - "to": "2030-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-05T23:00:00Z", - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "TheLastMonth", - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - }, - "200": { - "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "identity": { - "type": "SystemAssigned", - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "location": "centralus", - "properties": { - "schedule": { - "status": "Active", - "recurrence": "Monthly", - "recurrencePeriod": { - "from": "2020-06-05T00:00:00Z", - "to": "2030-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-05T23:00:00Z", - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "TheLastMonth", - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - } - } -} +{ + "parameters": { + "api-version": "2025-03-01", + "billingAccountId": "123456", + "exportName": "TestExport", + "parameters": { + "identity": { + "type": "SystemAssigned" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "TheLastMonth" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Monthly", + "recurrencePeriod": { + "from": "2020-06-05T00:00:00Z", + "to": "2030-06-30T00:00:00Z" + }, + "status": "Active" + } + } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" + }, + "responses": { + "200": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "TheLastMonth" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-05T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Monthly", + "recurrencePeriod": { + "from": "2020-06-05T00:00:00Z", + "to": "2030-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + }, + "201": { + "body": { + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "identity": { + "type": "SystemAssigned", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000" + }, + "location": "centralus", + "properties": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timeframe": "TheLastMonth" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } + }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-05T23:00:00Z", + "partitionData": true, + "schedule": { + "recurrence": "Monthly", + "recurrencePeriod": { + "from": "2020-06-05T00:00:00Z", + "to": "2030-06-30T00:00:00Z" + }, + "status": "Active" + } + } + } + } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccountMonthly" +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json index 0e45f3d8ed63..ea39a164e8a4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json @@ -2,7 +2,6 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", "exportName": "TestExport", "parameters": { "identity": { @@ -10,47 +9,48 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "PriceSheet", - "timeframe": "TheCurrentMonth", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "TheCurrentMonth" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -58,46 +58,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "PriceSheet", - "timeframe": "TheCurrentMonth", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "TheCurrentMonth" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -105,39 +105,41 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "PriceSheet", - "timeframe": "TheCurrentMonth", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "TheCurrentMonth" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } } } - } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccountPricesheet" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json index 390db44fda39..6f4b5a9a9232 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json @@ -2,7 +2,6 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", "exportName": "TestExport", "parameters": { "identity": { @@ -10,47 +9,48 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { + "type": "ReservationDetails", "dataSet": { "configuration": { "dataVersion": "2023-03-01" }, "granularity": "Daily" }, - "timeframe": "MonthToDate", - "type": "ReservationDetails" + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } }, + "exportDescription": "This is a test export.", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -58,26 +58,11 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ReservationDetails", - "timeframe": "MonthToDate", "dataSet": { "configuration": { "columns": [], @@ -85,21 +70,36 @@ "filters": [] }, "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -107,26 +107,11 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ReservationDetails", - "timeframe": "MonthToDate", "dataSet": { "configuration": { "columns": [], @@ -134,14 +119,31 @@ "filters": [] }, "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } } } - } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccountReservationDetails" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json index 4fc700fc835d..8c2b0a4539a6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json @@ -2,7 +2,6 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", "exportName": "TestExport", "parameters": { "identity": { @@ -10,24 +9,11 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { + "type": "ReservationRecommendations", "dataSet": { "configuration": { "dataVersion": "2023-05-01", @@ -47,23 +33,37 @@ ] } }, - "timeframe": "MonthToDate", - "type": "ReservationRecommendations" + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } }, + "exportDescription": "This is a test export.", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -71,26 +71,11 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ReservationRecommendations", - "timeframe": "MonthToDate", "dataSet": { "configuration": { "columns": [], @@ -111,21 +96,36 @@ ] }, "granularity": null + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -133,26 +133,11 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ReservationRecommendations", - "timeframe": "MonthToDate", "dataSet": { "configuration": { "columns": [], @@ -173,14 +158,31 @@ ] }, "granularity": null + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } } } - } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByBillingAccountReservationRecommendation" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json index 918d429cc803..a7cd5b3a9b0e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json @@ -2,7 +2,6 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", "exportName": "TestExport", "parameters": { "identity": { @@ -10,46 +9,47 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { + "type": "ReservationTransactions", "dataSet": { "configuration": { "dataVersion": "2023-05-01" } }, - "timeframe": "MonthToDate", - "type": "ReservationTransactions" + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" + } }, + "exportDescription": "This is a test export.", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -57,26 +57,11 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ReservationTransactions", - "timeframe": "MonthToDate", "dataSet": { "configuration": { "columns": [], @@ -84,21 +69,36 @@ "filters": [] }, "granularity": null + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -106,26 +106,11 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2023-06-01T00:00:00Z", - "to": "2023-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ReservationTransactions", - "timeframe": "MonthToDate", "dataSet": { "configuration": { "columns": [], @@ -133,14 +118,31 @@ "filters": [] }, "granularity": null + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2023-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2023-06-01T00:00:00Z", + "to": "2023-06-30T00:00:00Z" + }, + "status": "Active" + } } } } - } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateExportCreateOrUpdateByBillingAccountReservationTransactionsByBillingAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json index 529bdb66990f..7f90a2632e2a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json @@ -3,7 +3,6 @@ "api-version": "2025-03-01", "billingAccountId": "12", "departmentId": "1234", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234", "exportName": "TestExport", "parameters": { "identity": { @@ -11,47 +10,48 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, "format": "Parquet", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "snappy", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "snappy", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -59,46 +59,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Parquet", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "snappy", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "snappy", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -106,39 +106,41 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Parquet", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "snappy", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "snappy", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } } - } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByDepartment" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json index 035780829ee4..f2fd51fffc2e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json @@ -3,7 +3,6 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", "exportName": "TestExport", "parameters": { "identity": { @@ -11,47 +10,48 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -59,46 +59,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -106,39 +106,41 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } } - } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByEnrollmentAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json index b88dea6c01bc..3bb1bd82066c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json @@ -1,56 +1,56 @@ { "parameters": { "api-version": "2025-03-01", - "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG", "exportName": "TestExport", + "managementGroupId": "TestMG", "parameters": { "identity": { "type": "SystemAssigned" }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } - } + }, + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -58,46 +58,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -105,39 +105,41 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } } - } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByManagementGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json index 09661cd4a9ab..c005fb8b2af1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json @@ -1,9 +1,6 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "exportName": "TestExport", "parameters": { "identity": { @@ -11,47 +8,50 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } - } + }, + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { - "201": { + "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -59,46 +59,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } }, - "200": { + "201": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -106,39 +106,41 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } } - } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateByResourceGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json index c1aae0356b94..8915e221e5ae 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json @@ -1,8 +1,6 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "exportName": "TestExport", "parameters": { "identity": { @@ -10,47 +8,49 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "type": "AzureBlob", + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } - } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { - "201": { + "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -58,46 +58,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } }, - "200": { + "201": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -105,39 +105,41 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Daily", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", + "nextRunTimeEstimate": "2020-06-01T23:00:00Z", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Daily", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } } - } + }, + "operationId": "Exports_CreateOrUpdate", + "title": "ExportCreateOrUpdateBySubscription" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json index cc022b12dab8..68620fd7e88d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json @@ -2,10 +2,12 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteByBillingAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json index 966970db65be..37ed28910456 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json @@ -3,10 +3,12 @@ "api-version": "2025-03-01", "billingAccountId": "12", "departmentId": "1234", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteByDepartment" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json index 8fa70fb5f43c..661c01691200 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json @@ -3,10 +3,12 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteByEnrollmentAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json index c6ba37485039..804ba311eed7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json @@ -1,11 +1,13 @@ { "parameters": { "api-version": "2025-03-01", + "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG", - "exportName": "TestExport" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteByManagementGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json index ff66c6474dab..6a825e1a6b9d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json @@ -1,12 +1,14 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", - "exportName": "TestExport" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteByResourceGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json index 797ed0601577..2eac873a6ee6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json @@ -1,11 +1,13 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "exportName": "TestExport", "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "exportName": "TestExport" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Delete", + "title": "ExportDeleteBySubscription" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json index cf792680fca2..d6bc5f8c3ffe 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json @@ -2,16 +2,16 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -20,33 +20,35 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-05-01T00:00:00Z", "to": "2020-05-31T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } } } - } + }, + "operationId": "Exports_Get", + "title": "ExportGetByBillingAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json index 2381d5bf9713..204beaef0892 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json @@ -3,16 +3,16 @@ "api-version": "2025-03-01", "billingAccountId": "12", "departmentId": "1234", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -21,33 +21,35 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } } } - } + }, + "operationId": "Exports_Get", + "title": "ExportGetByDepartment" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json index 16544dbff7b3..2a564c396f73 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json @@ -3,16 +3,16 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -21,33 +21,35 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2019-09-01T00:00:00Z", "to": "2019-09-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } } } - } + }, + "operationId": "Exports_Get", + "title": "ExportGetByEnrollmentAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json index a34e42c5c416..c56d77053358 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json @@ -1,17 +1,17 @@ { "parameters": { "api-version": "2025-03-01", + "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG", - "exportName": "TestExport" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -20,33 +20,35 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2019-09-01T00:00:00Z", "to": "2020-09-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } } } - } + }, + "operationId": "Exports_Get", + "title": "ExportGetByManagementGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json index 144c70caeacc..6a00d66c4722 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json @@ -1,18 +1,18 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", - "exportName": "TestExport" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -21,33 +21,35 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } } } - } + }, + "operationId": "Exports_Get", + "title": "ExportGetByResourceGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json index 7acfb1f41226..43fe01268ce2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json @@ -1,17 +1,17 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "exportName": "TestExport", "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "exportName": "TestExport" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -20,33 +20,35 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2019-06-01T00:00:00Z", "to": "2019-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } } } - } + }, + "operationId": "Exports_Get", + "title": "ExportGetBySubscription" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json index cc022b12dab8..12ddb952cc91 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json @@ -2,10 +2,12 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Execute", + "title": "ExportRunByBillingAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json index f40f054c8b0d..7a0f00b0baea 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json @@ -2,16 +2,18 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", "exportName": "TestExport", "exportRunRequest": { "timePeriod": { "from": "2023-12-01T00:00:00.000Z", "to": "2023-12-31T00:00:00.000Z" } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Execute", + "title": "ExportRunByBillingAccountWithOptionalRequestBody" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json index 966970db65be..157a354bbb41 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json @@ -3,10 +3,12 @@ "api-version": "2025-03-01", "billingAccountId": "12", "departmentId": "1234", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Execute", + "title": "ExportRunByDepartment" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json index 8fa70fb5f43c..6594094184c2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json @@ -3,10 +3,12 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Execute", + "title": "ExportRunByEnrollmentAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json index c6ba37485039..0759e67eb5d9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json @@ -1,11 +1,13 @@ { "parameters": { "api-version": "2025-03-01", + "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG", - "exportName": "TestExport" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Execute", + "title": "ExportRunByManagementGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json index ff66c6474dab..325bd21eef83 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json @@ -1,12 +1,14 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", - "exportName": "TestExport" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Execute", + "title": "ExportRunByResourceGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json index 797ed0601577..e0e5a286f772 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json @@ -1,11 +1,13 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "exportName": "TestExport", "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "exportName": "TestExport" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {} - } + }, + "operationId": "Exports_Execute", + "title": "ExportRunBySubscription" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json index 071522026811..063cab663112 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json @@ -2,8 +2,8 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -12,91 +12,93 @@ { "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { - "executionType": "OnDemand", - "status": "Completed", - "submittedBy": "john.doe@gmail.com", - "submittedTime": "2018-08-03T07:52:15.6016681Z", - "processingStartTime": "2018-08-03T07:52:16.9123797Z", - "processingEndTime": "2018-08-03T07:52:28.0373318Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "OnDemand", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" } }, { "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { - "executionType": "Scheduled", - "status": "Completed", - "submittedBy": "System", - "submittedTime": "2018-08-03T09:03:58.5710244Z", - "processingStartTime": "2018-08-03T09:03:58.5710244Z", - "processingEndTime": "2018-08-03T09:04:19.7223808Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "Scheduled", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" } } ] } } - } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetByBillingAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json index 68bd4245371e..b49e57c7bee1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json @@ -3,8 +3,8 @@ "api-version": "2025-03-01", "billingAccountId": "12", "departmentId": "1234", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { @@ -13,91 +13,93 @@ { "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { - "executionType": "OnDemand", - "status": "Completed", - "submittedBy": "john.doe@gmail.com", - "submittedTime": "2018-08-03T07:52:15.6016681Z", - "processingStartTime": "2018-08-03T07:52:16.9123797Z", - "processingEndTime": "2018-08-03T07:52:28.0373318Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "OnDemand", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" } }, { "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { - "executionType": "Scheduled", - "status": "Completed", - "submittedBy": "System", - "submittedTime": "2018-08-03T09:03:58.5710244Z", - "processingStartTime": "2018-08-03T09:03:58.5710244Z", - "processingEndTime": "2018-08-03T09:04:19.7223808Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "Scheduled", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" } } ] } } - } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetByDepartment" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json index 7151472dfe4c..d938fe3f38dd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json @@ -3,8 +3,8 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -13,91 +13,93 @@ { "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { - "executionType": "OnDemand", - "status": "Completed", - "submittedBy": "john.doe@gmail.com", - "submittedTime": "2018-08-03T07:52:15.6016681Z", - "processingStartTime": "2018-08-03T07:52:16.9123797Z", - "processingEndTime": "2018-08-03T07:52:28.0373318Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "OnDemand", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" } }, { "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { - "executionType": "Scheduled", - "status": "Completed", - "submittedBy": "System", - "submittedTime": "2018-08-03T09:03:58.5710244Z", - "processingStartTime": "2018-08-03T09:03:58.5710244Z", - "processingEndTime": "2018-08-03T09:04:19.7223808Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "Scheduled", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" } } ] } } - } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetByEnrollmentAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json index b1c1babe6d96..e5535b643304 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2025-03-01", + "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG", - "exportName": "TestExport" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { @@ -12,91 +12,93 @@ { "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { - "executionType": "OnDemand", - "status": "Completed", - "submittedBy": "john.doe@gmail.com", - "submittedTime": "2018-08-03T07:52:15.6016681Z", - "processingStartTime": "2018-08-03T07:52:16.9123797Z", - "processingEndTime": "2018-08-03T07:52:28.0373318Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "OnDemand", "fileName": "ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" } }, { "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { - "executionType": "Scheduled", - "status": "Completed", - "submittedBy": "System", - "submittedTime": "2018-08-03T09:03:58.5710244Z", - "processingStartTime": "2018-08-03T09:03:58.5710244Z", - "processingEndTime": "2018-08-03T09:04:19.7223808Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "Scheduled", "fileName": "ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" } } ] } } - } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetByManagementGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json index 88ff1569a653..caebb29d013d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", - "exportName": "TestExport" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -13,91 +13,93 @@ { "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { - "executionType": "OnDemand", - "status": "Completed", - "submittedBy": "john.doe@gmail.com", - "submittedTime": "2018-08-03T07:52:15.6016681Z", - "processingStartTime": "2018-08-03T07:52:16.9123797Z", - "processingEndTime": "2018-08-03T07:52:28.0373318Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "OnDemand", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" } }, { "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { - "executionType": "Scheduled", - "status": "Completed", - "submittedBy": "System", - "submittedTime": "2018-08-03T09:03:58.5710244Z", - "processingStartTime": "2018-08-03T09:03:58.5710244Z", - "processingEndTime": "2018-08-03T09:04:19.7223808Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "Scheduled", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" } } ] } } - } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetByResourceGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json index a4b90a0981a9..ff7326b3caa3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "exportName": "TestExport", "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "exportName": "TestExport" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -12,91 +12,93 @@ { "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { - "executionType": "OnDemand", - "status": "Completed", - "submittedBy": "john.doe@gmail.com", - "submittedTime": "2018-08-03T07:52:15.6016681Z", - "processingStartTime": "2018-08-03T07:52:16.9123797Z", - "processingEndTime": "2018-08-03T07:52:28.0373318Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "OnDemand", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z" } }, { "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { - "executionType": "Scheduled", - "status": "Completed", - "submittedBy": "System", - "submittedTime": "2018-08-03T09:03:58.5710244Z", - "processingStartTime": "2018-08-03T09:03:58.5710244Z", - "processingEndTime": "2018-08-03T09:04:19.7223808Z", - "startDate": "2020-06-01T00:00:00Z", "endDate": "2020-06-30T00:00:00Z", - "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "executionType": "Scheduled", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "manifestFile": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/manifestfile", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", "runSettings": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ScheduledTestsForJohnDoe" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } + "exportDescription": "This is a test export.", + "partitionData": true + }, + "startDate": "2020-06-01T00:00:00Z", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z" } } ] } } - } + }, + "operationId": "Exports_GetExecutionHistory", + "title": "ExportRunHistoryGetBySubscription" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json index da6c1a501a15..899e074da06d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport1", "name": "TestExport1", "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -20,37 +20,37 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } }, { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport2", "name": "TestExport2", "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -58,40 +58,42 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Weekly", - "recurrencePeriod": { - "from": "2020-06-01T00:00:00Z", - "to": "2020-06-30T00:00:00Z" - } - }, "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "WeekToDate", "dataSet": { - "granularity": "Daily", "configuration": { "dataVersion": "2023-05-01" - } + }, + "granularity": "Daily" + }, + "timeframe": "WeekToDate" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, + "exportDescription": "This is a test export.", "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { + "from": "2020-06-01T00:00:00Z", + "to": "2020-06-30T00:00:00Z" + }, + "status": "Active" + } } } ] } } - } + }, + "operationId": "Exports_List", + "title": "ExportsGetByBillingAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json index 2f378772dbc4..a357ea5446df 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json @@ -10,9 +10,9 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport1", "name": "TestExport1", "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -21,37 +21,37 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport2", "name": "TestExport2", "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -59,44 +59,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Weekly", - "recurrencePeriod": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" - } + }, + "timeframe": "Custom" }, - "format": "Csv", "deliveryInfo": { "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", "rootFolderPath": "ad-hoc" } }, - "definition": { - "type": "ActualCost", - "timeframe": "Custom", - "timePeriod": { + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "status": "Active" + } } } ] } } - } + }, + "operationId": "Exports_List", + "title": "ExportsGetByDepartment" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json index d0e95888bfae..bb3e3b8ccf97 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json @@ -10,9 +10,9 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport1", "name": "TestExport1", "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -21,37 +21,37 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } }, { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport2", "name": "TestExport2", "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -59,44 +59,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Weekly", - "recurrencePeriod": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" - } + }, + "timeframe": "Custom" }, - "format": "Csv", "deliveryInfo": { "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", "rootFolderPath": "ad-hoc" } }, - "definition": { - "type": "ActualCost", - "timeframe": "Custom", - "timePeriod": { + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "status": "Active" + } } } ] } } - } + }, + "operationId": "Exports_List", + "title": "ExportsGetByEnrollmentAccount" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json index 0d670b13be5a..e9484aee24ee 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json @@ -9,9 +9,9 @@ "body": { "value": [ { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport1", "name": "TestExport1", "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -20,37 +20,37 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } }, { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport2", "name": "TestExport2", "type": "Microsoft.CostManagement/exports", + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -58,44 +58,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Weekly", - "recurrencePeriod": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" - } + }, + "timeframe": "Custom" }, - "format": "Csv", "deliveryInfo": { "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", "rootFolderPath": "ad-hoc" } }, - "definition": { - "type": "ActualCost", - "timeframe": "Custom", - "timePeriod": { + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "status": "Active" + } } } ] } } - } + }, + "operationId": "Exports_List", + "title": "ExportsGetByManagementGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json index f68f3dfe5e16..0cec6c74d7eb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json @@ -1,18 +1,18 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport1", "name": "TestExport1", "type": "Microsoft.CostManagement/exports", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -21,37 +21,37 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport2", "name": "TestExport2", "type": "Microsoft.CostManagement/exports", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -59,44 +59,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Weekly", - "recurrencePeriod": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" - } + }, + "timeframe": "Custom" }, - "format": "Csv", "deliveryInfo": { "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", "rootFolderPath": "ad-hoc" } }, - "definition": { - "type": "ActualCost", - "timeframe": "Custom", - "timePeriod": { + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "status": "Active" + } } } ] } } - } + }, + "operationId": "Exports_List", + "title": "ExportsGetByResourceGroup" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json index c6e36b70679a..0d7f9859c6e5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json @@ -1,17 +1,17 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport1", "name": "TestExport1", "type": "Microsoft.CostManagement/exports", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -20,37 +20,37 @@ "location": "centralus", "properties": { "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", "definition": { "type": "ActualCost", - "timeframe": "Custom", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } + "timeframe": "Custom" + }, + "deliveryInfo": { + "destination": { + "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "rootFolderPath": "ad-hoc" } }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "exportDescription": "This is a test export.", + "partitionData": true } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport2", "name": "TestExport2", "type": "Microsoft.CostManagement/exports", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -58,44 +58,46 @@ }, "location": "centralus", "properties": { - "schedule": { - "status": "Active", - "recurrence": "Weekly", - "recurrencePeriod": { + "format": "Csv", + "compressionMode": "gzip", + "dataOverwriteBehavior": "OverwritePreviousReport", + "definition": { + "type": "ActualCost", + "dataSet": { + "configuration": { + "dataVersion": "2023-05-01" + }, + "granularity": "Daily" + }, + "timePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" - } + }, + "timeframe": "Custom" }, - "format": "Csv", "deliveryInfo": { "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", "container": "exports", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", "rootFolderPath": "ad-hoc" } }, - "definition": { - "type": "ActualCost", - "timeframe": "Custom", - "timePeriod": { + "exportDescription": "This is a test export.", + "partitionData": true, + "schedule": { + "recurrence": "Weekly", + "recurrencePeriod": { "from": "2020-06-01T00:00:00Z", "to": "2020-06-30T00:00:00Z" }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." + "status": "Active" + } } } ] } } - } + }, + "operationId": "Exports_List", + "title": "ExportsGetBySubscription" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountAlerts.json index f5280d4099d2..8a0f673d2bbc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountAlerts.json @@ -7,92 +7,94 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } } }, { - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2019-08-31T17:51:55.1808807Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "11111111-1111-1111-111111111111_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 171000.32, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2019-06-24T05:51:52.8713179Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2019-08-31T17:51:55.1808807Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "Alerts_ListExternal", + "title": "ExternalBillingAccountAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountForecast.json index 0de36d4ba2b5..0ba95411f479 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountForecast.json @@ -5,13 +5,7 @@ "externalCloudProviderType": "externalBillingAccounts", "parameters": { "type": "Usage", - "timeframe": "Custom", - "timePeriod": { - "from": "2022-08-01T00:00:00+00:00", - "to": "2022-08-31T23:59:59+00:00" - }, "dataset": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "Cost", @@ -54,18 +48,23 @@ } } ] - } - } + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" } }, "responses": { "200": { "body": { - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "name": "6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "properties": { - "nextLink": null, "columns": [ { "name": "PreTaxCost", @@ -80,9 +79,10 @@ "type": "String" } ], + "nextLink": null, "rows": [ [ - 0.0, + 0, "Forecast", "USD" ], @@ -92,12 +92,12 @@ "USD" ], [ - 0.076757602000000022, + 0.07675760200000002, "Forecast", "USD" ], [ - 50.430964190400012, + 50.43096419040001, "Forecast", "USD" ] @@ -105,5 +105,7 @@ } } } - } + }, + "operationId": "Forecast_ExternalCloudProviderUsage", + "title": "ExternalBillingAccountForecast" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsDimensions.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsDimensions.json index 39a45007dbd0..949e1e27b675 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsDimensions.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsDimensions.json @@ -9,10 +9,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceType_2019-12-01_2019-12-31", "name": "dimensions_ResourceType_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", + "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceType_2019-12-01_2019-12-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -20,20 +22,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 0, - "category": "ResourceType", - "description": "Resource type", - "usageStart": "2019-12-01T00:00:00Z", "usageEnd": "2019-12-31T00:00:00Z", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-12-01T00:00:00Z" } }, { - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceId_2019-12-01_2019-12-31", "name": "dimensions_ResourceId_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", + "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceId_2019-12-01_2019-12-31", "properties": { + "description": "Resource ID", + "category": "ResourceId", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -41,17 +43,17 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 0, - "category": "ResourceId", - "description": "Resource ID", - "usageStart": "2019-12-01T00:00:00Z", "usageEnd": "2019-12-31T00:00:00Z", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-12-01T00:00:00Z" } } ] } } - } + }, + "operationId": "Dimensions_ByExternalCloudProviderType", + "title": "ExternalBillingAccountDimensionList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsQuery.json index 29bb7123c074..db02af315b0a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsQuery.json @@ -5,9 +5,7 @@ "externalCloudProviderType": "externalBillingAccounts", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -44,18 +42,19 @@ } } ] - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" } }, "responses": { "200": { "body": { - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "name": "6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "properties": { - "nextLink": null, "columns": [ { "name": "PreTaxCost", @@ -70,9 +69,10 @@ "type": "String" } ], + "nextLink": null, "rows": [ [ - 0.0, + 0, "abc db", "USD" ], @@ -82,12 +82,12 @@ "USD" ], [ - 0.076757602000000022, + 0.07675760200000002, "abc file system", "USD" ], [ - 50.430964190400012, + 50.43096419040001, "abc elasticache", "USD" ] @@ -95,5 +95,7 @@ } } } - } + }, + "operationId": "Query_UsageByExternalCloudProviderType", + "title": "ExternalBillingAccountQueryList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionAlerts.json index 01467a0f5000..4a75ec6e43c5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionAlerts.json @@ -7,92 +7,94 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } } }, { - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2019-08-31T17:51:55.1808807Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "11111111-1111-1111-111111111111_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 171000.32, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2019-06-24T05:51:52.8713179Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2019-08-31T17:51:55.1808807Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "Alerts_ListExternal", + "title": "ExternalSubscriptionAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionForecast.json index 9bc2b222fe2a..5d4dbb6aae55 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionForecast.json @@ -5,13 +5,7 @@ "externalCloudProviderType": "externalSubscriptions", "parameters": { "type": "Usage", - "timeframe": "Custom", - "timePeriod": { - "from": "2022-08-01T00:00:00+00:00", - "to": "2022-08-31T23:59:59+00:00" - }, "dataset": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "Cost", @@ -54,18 +48,23 @@ } } ] - } - } + }, + "granularity": "Daily" + }, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" } }, "responses": { "200": { "body": { - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", "name": "d99477af-7510-40ee-aca2-e59bdca0d10d", "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", "properties": { - "nextLink": null, "columns": [ { "name": "PreTaxCost", @@ -84,9 +83,12 @@ "type": "String" } ], + "nextLink": null, "rows": [] } } } - } + }, + "operationId": "Forecast_ExternalCloudProviderUsage", + "title": "ExternalSubscriptionForecast" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsDimensions.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsDimensions.json index ac39e060828e..5a7395245113 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsDimensions.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsDimensions.json @@ -9,10 +9,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceType_2019-12-01_2019-12-31", "name": "dimensions_ResourceType_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceType_2019-12-01_2019-12-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -20,20 +22,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 0, - "category": "ResourceType", - "description": "Resource type", - "usageStart": "2019-12-01T00:00:00Z", "usageEnd": "2019-12-31T00:00:00Z", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-12-01T00:00:00Z" } }, { - "id": "providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceId_2019-12-01_2019-12-31", "name": "dimensions_ResourceId_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceId_2019-12-01_2019-12-31", "properties": { + "description": "Resource ID", + "category": "ResourceId", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -41,17 +43,17 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 0, - "category": "ResourceId", - "description": "Resource ID", - "usageStart": "2019-12-01T00:00:00Z", "usageEnd": "2019-12-31T00:00:00Z", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-12-01T00:00:00Z" } } ] } } - } + }, + "operationId": "Dimensions_ByExternalCloudProviderType", + "title": "ExternalSubscriptionDimensionList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsQuery.json index 3720a19a91d6..7f674e9e8ea1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsQuery.json @@ -5,9 +5,7 @@ "externalCloudProviderType": "externalSubscriptions", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -44,18 +42,19 @@ } } ] - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" } }, "responses": { "200": { "body": { - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", "name": "d99477af-7510-40ee-aca2-e59bdca0d10d", "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", "properties": { - "nextLink": null, "columns": [ { "name": "PreTaxCost", @@ -70,9 +69,12 @@ "type": "String" } ], + "nextLink": null, "rows": [] } } } - } + }, + "operationId": "Query_UsageByExternalCloudProviderType", + "title": "ExternalSubscriptionsQuery" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json index d0f23d18cf17..93b5eae41a30 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json @@ -1,38 +1,38 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "providers/Microsoft.Billing/billingAccounts/12345", "parameters": { - "metric": "ActualCost", - "billingPeriod": "202205" - } + "billingPeriod": "202205", + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "status": "Completed", + "id": "providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { - "manifestVersion": "2025-03-01", - "dataFormat": "Csv", "blobCount": 1, - "byteCount": 32741, - "compressData": false, - "requestContext": { - "requestScope": "providers/Microsoft.Billing/billingAccounts/12345", - "requestBody": { - "metric": "ActualCost", - "billingPeriod": "202205" - } - }, "blobs": [ { "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "byteCount": 32741 } - ] + ], + "byteCount": 32741, + "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", + "requestContext": { + "requestBody": { + "billingPeriod": "202205", + "metric": "ActualCost" + }, + "requestScope": "providers/Microsoft.Billing/billingAccounts/12345" + } }, + "status": "Completed", "validTill": "2022-05-10T08:08:46.1973252Z" } }, @@ -43,5 +43,7 @@ } }, "204": {} - } + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json index 296fe5ddf706..7769b36bbb5f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json @@ -1,38 +1,38 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579", "parameters": { - "metric": "ActualCost", - "invoiceId": "M1234567" - } + "invoiceId": "M1234567", + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "status": "Completed", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { - "manifestVersion": "2025-03-01", - "dataFormat": "Csv", "blobCount": 1, - "byteCount": 32741, - "compressData": false, - "requestContext": { - "requestScope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579", - "requestBody": { - "metric": "ActualCost", - "billingPeriod": "202205" - } - }, "blobs": [ { "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "byteCount": 32741 } - ] + ], + "byteCount": 32741, + "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", + "requestContext": { + "requestBody": { + "billingPeriod": "202205", + "metric": "ActualCost" + }, + "requestScope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + } }, + "status": "Completed", "validTill": "2022-05-10T08:08:46.1973252Z" } }, @@ -43,5 +43,7 @@ } }, "204": {} - } + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByBillingProfileAndInvoiceId" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json index a262bd612b79..cb228d9492f7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -1,38 +1,38 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579", "parameters": { - "metric": "ActualCost", - "invoiceId": "M1234567" - } + "invoiceId": "M1234567", + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "status": "Completed", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { - "manifestVersion": "2025-03-01", - "dataFormat": "Csv", "blobCount": 1, - "byteCount": 32741, - "compressData": false, - "requestContext": { - "requestScope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579", - "requestBody": { - "metric": "ActualCost", - "billingPeriod": "202205" - } - }, "blobs": [ { "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "byteCount": 32741 } - ] + ], + "byteCount": 32741, + "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", + "requestContext": { + "requestBody": { + "billingPeriod": "202205", + "metric": "ActualCost" + }, + "requestScope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + } }, + "status": "Completed", "validTill": "2022-05-10T08:08:46.1973252Z" } }, @@ -43,5 +43,7 @@ } }, "204": {} - } + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json index ff81657742ed..79148dcf89e3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json @@ -1,44 +1,44 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579", "parameters": { "metric": "ActualCost", "timePeriod": { - "start": "2020-03-01", - "end": "2020-03-15" + "end": "2020-03-15", + "start": "2020-03-01" } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "status": "Completed", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { - "manifestVersion": "2025-03-01", - "dataFormat": "Csv", "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], "byteCount": 32741, "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", "requestContext": { - "requestScope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579", "requestBody": { "metric": "ActualCost", "timePeriod": { - "start": "2020-03-01", - "end": "2020-03-15" + "end": "2020-03-15", + "start": "2020-03-01" } - } - }, - "blobs": [ - { - "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", - "byteCount": 32741 - } - ] + }, + "requestScope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + } }, + "status": "Completed", "validTill": "2022-05-10T08:08:46.1973252Z" } }, @@ -49,5 +49,7 @@ } }, "204": {} - } + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByCustomerAndTimePeriod" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json index 61a496dc76b6..0f0e17e635bd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json @@ -1,44 +1,44 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "providers/Microsoft.Billing/departments/12345", "parameters": { "metric": "ActualCost", "timePeriod": { - "start": "2020-03-01", - "end": "2020-03-15" + "end": "2020-03-15", + "start": "2020-03-01" } - } + }, + "scope": "providers/Microsoft.Billing/departments/12345" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/departments/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "status": "Completed", + "id": "providers/Microsoft.Billing/departments/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { - "manifestVersion": "2025-03-01", - "dataFormat": "Csv", "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], "byteCount": 32741, "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", "requestContext": { - "requestScope": "providers/Microsoft.Billing/departments/12345", "requestBody": { "metric": "ActualCost", "timePeriod": { - "start": "2020-03-01", - "end": "2020-03-15" + "end": "2020-03-15", + "start": "2020-03-01" } - } - }, - "blobs": [ - { - "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", - "byteCount": 32741 - } - ] + }, + "requestScope": "providers/Microsoft.Billing/departments/12345" + } }, + "status": "Completed", "validTill": "2022-05-10T08:08:46.1973252Z" } }, @@ -49,5 +49,7 @@ } }, "204": {} - } + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByDepartmentsAndTimePeriod" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json index 7b829692aa20..73f4b7424fb3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json @@ -1,44 +1,44 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "providers/Microsoft.Billing/enrollmentAccounts/1234", "parameters": { "metric": "ActualCost", "timePeriod": { - "start": "2020-03-01", - "end": "2020-03-15" + "end": "2020-03-15", + "start": "2020-03-01" } - } + }, + "scope": "providers/Microsoft.Billing/enrollmentAccounts/1234" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/enrollmentAccounts/1234/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "status": "Completed", + "id": "providers/Microsoft.Billing/enrollmentAccounts/1234/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { - "manifestVersion": "2025-03-01", - "dataFormat": "Csv", "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], "byteCount": 32741, "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", "requestContext": { - "requestScope": "providers/Microsoft.Billing/enrollmentAccounts/1234", "requestBody": { "metric": "ActualCost", "timePeriod": { - "start": "2020-03-01", - "end": "2020-03-15" + "end": "2020-03-15", + "start": "2020-03-01" } - } - }, - "blobs": [ - { - "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", - "byteCount": 32741 - } - ] + }, + "requestScope": "providers/Microsoft.Billing/enrollmentAccounts/1234" + } }, + "status": "Completed", "validTill": "2022-05-10T08:08:46.1973252Z" } }, @@ -49,5 +49,7 @@ } }, "204": {} - } + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json index 34a65e42bc99..1589105ace6a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json @@ -1,44 +1,44 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "parameters": { "metric": "ActualCost", "timePeriod": { - "start": "2020-03-01", - "end": "2020-03-15" + "end": "2020-03-15", + "start": "2020-03-01" } - } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "status": "Completed", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { - "manifestVersion": "2025-03-01", - "dataFormat": "Csv", "blobCount": 1, + "blobs": [ + { + "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", + "byteCount": 32741 + } + ], "byteCount": 32741, "compressData": false, + "dataFormat": "Csv", + "manifestVersion": "2025-03-01", "requestContext": { - "requestScope": "subscriptions/00000000-0000-0000-0000-000000000000", "requestBody": { "metric": "ActualCost", "timePeriod": { - "start": "2020-03-01", - "end": "2020-03-15" + "end": "2020-03-15", + "start": "2020-03-01" } - } - }, - "blobs": [ - { - "blobLink": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/00000/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", - "byteCount": 32741 - } - ] + }, + "requestScope": "subscriptions/00000000-0000-0000-0000-000000000000" + } }, + "status": "Completed", "validTill": "2022-05-10T08:08:46.1973252Z" } }, @@ -49,5 +49,7 @@ } }, "204": {} - } + }, + "operationId": "GenerateCostDetailsReport_CreateOperation", + "title": "GenerateCostDetailsReportBySubscriptionAndTimePeriod" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json index 6c1938b05f71..b30e7c80bbb1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json @@ -1,18 +1,18 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "providers/Microsoft.Billing/billingAccounts/12345", "parameters": { - "metric": "ActualCost", - "billingPeriod": "202008" - } + "billingPeriod": "202008", + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" @@ -21,10 +21,12 @@ }, "202": { "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", "Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", "Retry-After": "60" } } - } + }, + "operationId": "GenerateDetailedCostReport_CreateOperation", + "title": "GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json index dc6b6b42dffa..c150c1d7c471 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json @@ -1,18 +1,18 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579", "parameters": { - "metric": "ActualCost", - "invoiceId": "M1234567" - } + "invoiceId": "M1234567", + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" @@ -21,10 +21,12 @@ }, "202": { "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", "Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", "Retry-After": "60" } } - } + }, + "operationId": "GenerateDetailedCostReport_CreateOperation", + "title": "GenerateDetailedCostReportByBillingProfileAndInvoiceId" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json index e314b788f6cd..6580c6ba45c4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -1,19 +1,19 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579", "parameters": { - "metric": "ActualCost", + "customerId": "456789", "invoiceId": "M1234567", - "customerId": "456789" - } + "metric": "ActualCost" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" @@ -22,10 +22,12 @@ }, "202": { "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", "Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", "Retry-After": "60" } } - } + }, + "operationId": "GenerateDetailedCostReport_CreateOperation", + "title": "GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json index fb7f5f99aab1..85d6e1b247ae 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json @@ -1,21 +1,21 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579", "parameters": { "metric": "ActualCost", "timePeriod": { - "start": "2020-03-01", - "end": "2020-03-15" + "end": "2020-03-15", + "start": "2020-03-01" } - } + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" @@ -24,10 +24,12 @@ }, "202": { "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", "Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", "Retry-After": "60" } } - } + }, + "operationId": "GenerateDetailedCostReport_CreateOperation", + "title": "GenerateDetailedCostReportByCustomerAndTimePeriod" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json index 6be5bc7d1313..beeb7cf381c3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json @@ -1,21 +1,21 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "parameters": { "metric": "ActualCost", "timePeriod": { - "start": "2020-03-01", - "end": "2020-03-15" + "end": "2020-03-15", + "start": "2020-03-01" } - } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" @@ -24,10 +24,12 @@ }, "202": { "headers": { - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000?api-version=2021-10-01", "Azure-Consumption-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2021-10-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000?api-version=2021-10-01", "Retry-After": "60" } } - } + }, + "operationId": "GenerateDetailedCostReport_CreateOperation", + "title": "GenerateDetailedCostReportBySubscriptionAndTimePeriod" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json index 366d54db62c9..ef53caae82c2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json @@ -1,15 +1,15 @@ { "parameters": { - "api-version": "2025-03-01", "operationId": "00000000-0000-0000-0000-000000000000", + "api-version": "2025-03-01", "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" @@ -18,10 +18,12 @@ }, "202": { "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", "Azure-Consumption-AsyncOperation": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationStatus/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/operationResults/ad0d632f-1186-41fe-89f9-ae29e198d223?api-version=2021-10-01", "Retry-After": "60" } } - } + }, + "operationId": "GenerateDetailedCostReportOperationResults_Get", + "title": "Get details of the operation result" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json index c7113081b5ae..757357feceb1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json @@ -1,25 +1,27 @@ { "parameters": { - "api-version": "2025-03-01", "operationId": "00000000-0000-0000-0000-000000000000", + "api-version": "2025-03-01", "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationStatus/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "status": "Completed", "type": "Microsoft.Consumption/operationStatus", + "error": { + "code": "0", + "message": null + }, + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationStatus/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" }, - "error": { - "code": "0", - "message": null - } + "status": "Completed" } } - } + }, + "operationId": "GenerateDetailedCostReportOperationStatus_Get", + "title": "Get details of the operation status" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateReservationDetailsReportByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateReservationDetailsReportByBillingAccount.json index 310252950714..b6a60849c2b9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateReservationDetailsReportByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateReservationDetailsReportByBillingAccount.json @@ -1,25 +1,27 @@ { "parameters": { + "api-version": "2025-03-01", "billingAccountId": "9845612", - "startDate": "2020-01-01", "endDate": "2020-01-30", - "api-version": "2025-03-01" + "startDate": "2020-01-01" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/9845612/providers/Microsoft.CostManagement/reservationDetailsOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2019-11-01", - "Retry-After": "60" - } - }, "200": { "body": { - "status": "Completed", "properties": { "reportUrl": "https://storage.blob.core.windows.net/details/20200911/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "validUntil": "2020-09-12T02:56:55.5021869Z" - } + }, + "status": "Completed" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/9845612/providers/Microsoft.CostManagement/reservationDetailsOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2019-11-01", + "Retry-After": "60" } } - } + }, + "operationId": "GenerateReservationDetailsReport_ByBillingAccountId", + "title": "ReservationDetails" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateReservationDetailsReportByBillingProfile.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateReservationDetailsReportByBillingProfile.json index 29ad90da3372..e79a1c7066ec 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateReservationDetailsReportByBillingProfile.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateReservationDetailsReportByBillingProfile.json @@ -1,26 +1,28 @@ { "parameters": { + "api-version": "2025-03-01", "billingAccountId": "00000000-0000-0000-0000-000000000000", "billingProfileId": "CZSFR-SDFXC-DSDF", - "startDate": "2020-01-01", "endDate": "2020-01-30", - "api-version": "2025-03-01" + "startDate": "2020-01-01" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000/billingProfiles/CZSFR-SDFXC-DSDF/providers/Microsoft.CostManagement/reservationDetailsOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2019-11-01", - "Retry-After": "60" - } - }, "200": { "body": { - "status": "Completed", "properties": { "reportUrl": "https://storage.blob.core.windows.net/details/20200911/00000000-0000-0000-0000-000000000000?sv=2016-05-31&sr=b&sig=jep8HT2aphfUkyERRZa5LRfd9RPzjXbzB%2F9TNiQ", "validUntil": "2020-09-12T02:56:55.5021869Z" - } + }, + "status": "Completed" + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000/billingProfiles/CZSFR-SDFXC-DSDF/providers/Microsoft.CostManagement/reservationDetailsOperationResults/cf9f95c9-af6b-41dd-a622-e6f4fc60c3ee?api-version=2019-11-01", + "Retry-After": "60" } } - } + }, + "operationId": "GenerateReservationDetailsReport_ByBillingProfileId", + "title": "ReservationDetails" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json index 2dd2ae450609..396cb327c1fb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json @@ -9,92 +9,94 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2019-08-31T17:51:55.1808807Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "11111111-1111-1111-111111111111_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 171000.32, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2019-06-24T05:51:52.8713179Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2019-08-31T17:51:55.1808807Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "Alerts_List", + "title": "InvoiceSectionAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json index 9f175a32899f..2e9d3bd3c4d0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json @@ -4,16 +4,9 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876", "parameters": { "type": "Usage", - "timeframe": "Custom", - "timePeriod": { - "from": "2022-08-01T00:00:00+00:00", - "to": "2022-08-31T23:59:59+00:00" - }, "dataset": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "Cost", @@ -56,20 +49,26 @@ } } ] - } + }, + "granularity": "Daily" }, "includeActualCost": false, - "includeFreshPartialCost": false - } + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -88,6 +87,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 2.10333307059661, @@ -118,5 +118,7 @@ } }, "204": {} - } + }, + "operationId": "Forecast_Usage", + "title": "InvoiceSectionForecast" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json index 7492033b4c66..2594908a7256 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json @@ -9,38 +9,40 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsList-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json index 839de24169ea..ffa0a0df57f7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json @@ -1,9 +1,9 @@ { "parameters": { - "api-version": "2025-03-01", - "billingAccountId": "12345:6789", "$expand": "properties/data", "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { @@ -11,10 +11,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -22,20 +24,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "microsoft.automation/automationaccounts", "microsoft.databricks/workspaces", @@ -43,18 +45,18 @@ "microsoft.containerregistry/registries", "microsoft.search/searchservices" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsListExpandAndTop-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json index 666c0db188a9..efe05863f972 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json @@ -1,10 +1,10 @@ { "parameters": { - "api-version": "2025-03-01", - "billingAccountId": "12345:6789", "$expand": "properties/data", - "$top": 5, "$filter": "properties/category eq 'resourceId'", + "$top": 5, + "api-version": "2025-03-01", + "billingAccountId": "12345:6789", "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { @@ -12,10 +12,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { + "description": "Resource Id", + "category": "ResourceId", "data": [ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", @@ -23,19 +25,19 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2019-10-01T00:00:00-07:00", - "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource Id", "filterEnabled": true, "groupingEnabled": true, - "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "BillingAccountDimensionsListWithFilter-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json index a1ae3fcd9c95..cf995b961f6a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json @@ -2,12 +2,9 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -44,18 +41,20 @@ } } ] - } - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -74,6 +73,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -88,7 +88,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", 20180331, "USD" @@ -104,5 +104,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "BillingAccountQuery-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json index 14660c0cd836..90914657d5cb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json @@ -2,35 +2,34 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789", "parameters": { "type": "Usage", - "timeframe": "TheLastMonth", "dataset": { - "granularity": "None", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "None", "grouping": [ { - "type": "Dimension", - "name": "ResourceGroup" + "name": "ResourceGroup", + "type": "Dimension" } ] - } - } + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -45,6 +44,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -57,7 +57,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", "USD" ] @@ -66,5 +66,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "BillingAccountQueryGrouping-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json index f6c2d0ecea34..ff98c2c44a80 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json @@ -10,38 +10,40 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "BillingProfileDimensionsList-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json index b062f246294f..91973f2b9d6e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json @@ -1,10 +1,10 @@ { "parameters": { + "$expand": "properties/data", + "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "$expand": "properties/data", - "$top": 5, "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { @@ -12,10 +12,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -23,20 +25,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "microsoft.automation/automationaccounts", "microsoft.databricks/workspaces", @@ -44,18 +46,18 @@ "microsoft.containerregistry/registries", "microsoft.search/searchservices" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "BillingProfileDimensionsListExpandAndTop-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json index 44f2fef4863c..33d4a17485f0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json @@ -1,11 +1,11 @@ { "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "$expand": "properties/data", - "$top": 5, - "$filter": "properties/category eq 'resourceId'", "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { @@ -13,10 +13,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { + "description": "Resource Id", + "category": "ResourceId", "data": [ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", @@ -24,19 +26,19 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2019-10-01T00:00:00-07:00", - "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource Id", "filterEnabled": true, "groupingEnabled": true, - "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "BillingProfileDimensionsListWithFilter-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json index 030772bd2692..f0a1e7492c03 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json @@ -3,12 +3,9 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -45,18 +42,20 @@ } } ] - } - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -75,6 +74,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -89,7 +89,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", 20180331, "USD" @@ -105,5 +105,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "BillingProfileQuery-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json index 7c74add30631..a3ed14f20b29 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json @@ -3,35 +3,34 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579", "parameters": { "type": "Usage", - "timeframe": "TheLastMonth", "dataset": { - "granularity": "None", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "None", "grouping": [ { - "type": "Dimension", - "name": "ResourceGroup" + "name": "ResourceGroup", + "type": "Dimension" } ] - } - } + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -46,6 +45,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -58,7 +58,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", "USD" ] @@ -67,5 +67,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "BillingProfileQueryGrouping-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json index 57edbba22469..22b5086dee93 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json @@ -10,38 +10,40 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "CustomerDimensionsList-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json index 1471c11dc46f..a0edd01d1349 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json @@ -1,10 +1,10 @@ { "parameters": { + "$expand": "properties/data", + "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "5678", - "$expand": "properties/data", - "$top": 5, "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { @@ -12,10 +12,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -23,20 +25,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "microsoft.automation/automationaccounts", "microsoft.databricks/workspaces", @@ -44,18 +46,18 @@ "microsoft.containerregistry/registries", "microsoft.search/searchservices" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "CustomerDimensionsListExpandAndTop-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json index 3065b2884207..7e8dffd701ba 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json @@ -1,11 +1,11 @@ { "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "13579", - "$expand": "properties/data", - "$top": 5, - "$filter": "properties/category eq 'resourceId'", "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { @@ -13,10 +13,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { + "description": "Resource Id", + "category": "ResourceId", "data": [ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", @@ -24,19 +26,19 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2019-10-01T00:00:00-07:00", - "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource Id", "filterEnabled": true, "groupingEnabled": true, - "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "CustomerDimensionsListWithFilter-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json index b020c95793dd..d9890eb15cef 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json @@ -3,12 +3,9 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "5678", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -45,18 +42,20 @@ } } ] - } - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -75,6 +74,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -89,7 +89,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", 20180331, "USD" @@ -105,5 +105,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "CustomerQuery-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json index e59d6e53fbdd..9ce382adc688 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json @@ -3,35 +3,34 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "5678", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678", "parameters": { "type": "Usage", - "timeframe": "TheLastMonth", "dataset": { - "granularity": "None", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "None", "grouping": [ { - "type": "Dimension", - "name": "ResourceGroup" + "name": "ResourceGroup", + "type": "Dimension" } ] - } - } + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -46,6 +45,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -58,7 +58,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", "USD" ] @@ -67,5 +67,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "CustomerQueryGrouping-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json index 8f745b30de2e..db8df077557f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json @@ -11,38 +11,40 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "InvoiceSectionDimensionsList-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json index 84825852994e..eb3421e991ca 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json @@ -1,11 +1,11 @@ { "parameters": { + "$expand": "properties/data", + "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "$expand": "properties/data", - "$top": 5, "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { @@ -13,10 +13,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -24,20 +26,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "microsoft.automation/automationaccounts", "microsoft.databricks/workspaces", @@ -45,18 +47,18 @@ "microsoft.containerregistry/registries", "microsoft.search/searchservices" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2019-10-01T00:00:00-07:00", "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "InvoiceSectionDimensionsListExpandAndTop-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json index 0aca7e4ad9a8..cd9ecd081e0b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json @@ -1,12 +1,12 @@ { "parameters": { + "$expand": "properties/data", + "$filter": "properties/category eq 'resourceId'", + "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "$expand": "properties/data", - "$top": 5, - "$filter": "properties/category eq 'resourceId'", "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { @@ -14,10 +14,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { + "description": "Resource Id", + "category": "ResourceId", "data": [ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", @@ -25,19 +27,19 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2019-10-01T00:00:00-07:00", - "usageEnd": "2019-10-31T00:00:00-07:00", - "description": "Resource Id", "filterEnabled": true, "groupingEnabled": true, - "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "nextLink": "http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2019-10-31T00:00:00-07:00", + "usageStart": "2019-10-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "InvoiceSectionDimensionsListWithFilter-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json index 230b9ef8377d..fa285a7b63d4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json @@ -4,12 +4,9 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -46,18 +43,20 @@ } } ] - } - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -76,6 +75,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -90,7 +90,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", 20180331, "USD" @@ -106,5 +106,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "InvoiceSectionQuery-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json index 781cdbed3776..265e4fe22ea7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json @@ -4,35 +4,34 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876", "parameters": { "type": "Usage", - "timeframe": "TheLastMonth", "dataset": { - "granularity": "None", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "None", "grouping": [ { - "type": "Dimension", - "name": "ResourceGroup" + "name": "ResourceGroup", + "type": "Dimension" } ] - } - } + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -47,6 +46,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -59,7 +59,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", "USD" ] @@ -68,5 +68,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "InvoiceSectionQueryGrouping-MCA" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json index 066673a8d2c1..dfb289df3041 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json @@ -9,38 +9,40 @@ "body": { "value": [ { - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "ManagementGroupDimensionsList-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json index bc70b329eccb..1e189e461bb7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json @@ -1,9 +1,9 @@ { "parameters": { - "api-version": "2025-03-01", - "managementGroupId": "MyMgId", "$expand": "properties/data", "$top": 5, + "api-version": "2025-03-01", + "managementGroupId": "MyMgId", "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { @@ -11,10 +11,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [ "thoroetrg01", "default-notificationhubs-westus", @@ -22,20 +24,20 @@ "contosocodeflow8d4a", "noobaa" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 377, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } }, { - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "microsoft.automation/automationaccounts", "microsoft.databricks/workspaces", @@ -43,18 +45,18 @@ "microsoft.containerregistry/registries", "microsoft.search/searchservices" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 37, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "ManagementGroupDimensionsListExpandAndTop-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json index dd94d5e325be..fb4f26d7bee4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json @@ -1,10 +1,10 @@ { "parameters": { - "api-version": "2025-03-01", - "managementGroupId": "MyMgId", "$expand": "properties/data", - "$top": 5, "$filter": "properties/category eq 'resourceId'", + "$top": 5, + "api-version": "2025-03-01", + "managementGroupId": "MyMgId", "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { @@ -12,10 +12,12 @@ "body": { "value": [ { - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource Id", + "category": "ResourceId", "data": [ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", @@ -23,19 +25,19 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource Id", "filterEnabled": true, "groupingEnabled": true, - "nextLink": "http://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "nextLink": "http://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D", + "total": 1409, + "usageEnd": "2018-05-31T00:00:00-07:00", + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "ManagementGroupDimensionsListWithFilter-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json index e27e4187b7b1..43ac3c0b14ba 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json @@ -2,12 +2,9 @@ "parameters": { "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "providers/Microsoft.Management/managementGroups/MyMgId", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -44,18 +41,20 @@ } } ] - } - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -74,6 +73,7 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ 19.545363672276512, @@ -88,7 +88,7 @@ "USD" ], [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", 20180331, "USD" @@ -104,5 +104,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "ManagementGroupQuery-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json index 2a9e7b6183d2..e8c771aef5e0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json @@ -2,35 +2,34 @@ "parameters": { "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "providers/Microsoft.Management/managementGroups/MyMgId", "parameters": { "type": "Usage", - "timeframe": "TheLastMonth", "dataset": { - "granularity": "None", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "None", "grouping": [ { - "type": "Dimension", - "name": "ResourceGroup" + "name": "ResourceGroup", + "type": "Dimension" } ] - } - } + }, + "timeframe": "TheLastMonth" + }, + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "columns": [ { "name": "PreTaxCost", @@ -49,9 +48,10 @@ "type": "String" } ], + "nextLink": "https://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query?api-version=2021-10-01&$skiptoken=AQAAAA%3D%3D", "rows": [ [ - 20.359416562625452, + 20.35941656262545, "VSTSHOL-1595322048000", 20180331, "USD" @@ -73,5 +73,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "ManagementGroupQueryGrouping-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/OperationList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/OperationList.json index bd5ddb22567f..9f1222c1074a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/OperationList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/OperationList.json @@ -7,107 +7,109 @@ "body": { "value": [ { - "id": "Microsoft.CostManagement/budgets/read", "name": "Microsoft.CostManagement/budgets/read", "display": { - "provider": "Microsoft.CostManagement", - "resource": "Budgets", + "description": "List the budgets by a subscription or a management group.", "operation": "List budgets", - "description": "List the budgets by a subscription or a management group." - } + "provider": "Microsoft.CostManagement", + "resource": "Budgets" + }, + "id": "Microsoft.CostManagement/budgets/read" }, { - "id": "Microsoft.CostManagement/query/action", "name": "Microsoft.CostManagement/query/action", "display": { - "provider": "Microsoft.CostManagement", - "resource": "Query", + "description": "Query usage data by a scope.", "operation": "Query usage data", - "description": "Query usage data by a scope." - } + "provider": "Microsoft.CostManagement", + "resource": "Query" + }, + "id": "Microsoft.CostManagement/query/action" }, { - "id": "Microsoft.CostManagement/exports/read", "name": "Microsoft.CostManagement/exports/read", "display": { - "provider": "Microsoft.CostManagement", - "resource": "Exports", + "description": "List the exports by scope.", "operation": "List exports", - "description": "List the exports by scope." - } + "provider": "Microsoft.CostManagement", + "resource": "Exports" + }, + "id": "Microsoft.CostManagement/exports/read" }, { - "id": "Microsoft.CostManagement/exports/write", "name": "Microsoft.CostManagement/exports/write", "display": { - "provider": "Microsoft.CostManagement", - "resource": "Exports", + "description": "Create or update the specified export.", "operation": "Create and update export", - "description": "Create or update the specified export." - } + "provider": "Microsoft.CostManagement", + "resource": "Exports" + }, + "id": "Microsoft.CostManagement/exports/write" }, { - "id": "Microsoft.CostManagement/exports/action", "name": "Microsoft.CostManagement/exports/action", "display": { - "provider": "Microsoft.CostManagement", - "resource": "Exports", + "description": "Run the specified export.", "operation": "Run export", - "description": "Run the specified export." - } + "provider": "Microsoft.CostManagement", + "resource": "Exports" + }, + "id": "Microsoft.CostManagement/exports/action" }, { - "id": "Microsoft.CostManagement/exports/run/action", "name": "Microsoft.CostManagement/exports/run/action", "display": { - "provider": "Microsoft.CostManagement", - "resource": "exports/run", + "description": "Run exports.", "operation": "Run exports", - "description": "Run exports." - } + "provider": "Microsoft.CostManagement", + "resource": "exports/run" + }, + "id": "Microsoft.CostManagement/exports/run/action" }, { - "id": "Microsoft.CostManagement/alerts/read", "name": "Microsoft.CostManagement/alerts/read", "display": { - "provider": "Microsoft.CostManagement", - "resource": "Alerts", + "description": "List alerts.", "operation": "List Alerts", - "description": "List alerts." - } + "provider": "Microsoft.CostManagement", + "resource": "Alerts" + }, + "id": "Microsoft.CostManagement/alerts/read" }, { - "id": "Microsoft.CostManagement/operations/read", "name": "Microsoft.CostManagement/operations/read", "display": { - "provider": "Microsoft.CostManagement", - "resource": "Operations", + "description": "List all supported operations by Microsoft.CostManagement resource provider.", "operation": "List supported operations", - "description": "List all supported operations by Microsoft.CostManagement resource provider." - } + "provider": "Microsoft.CostManagement", + "resource": "Operations" + }, + "id": "Microsoft.CostManagement/operations/read" }, { - "id": "Microsoft.CostManagement/views/action", "name": "Microsoft.CostManagement/views/action", "display": { - "provider": "Microsoft.CostManagement", - "resource": "Views", + "description": "Create view.", "operation": "Create views", - "description": "Create view." - } + "provider": "Microsoft.CostManagement", + "resource": "Views" + }, + "id": "Microsoft.CostManagement/views/action" }, { - "id": "Microsoft.CostManagement/views/write", "name": "Microsoft.CostManagement/views/write", "display": { - "provider": "Microsoft.CostManagement", - "resource": "Views", + "description": "Update view.", "operation": "Update views", - "description": "Update view." - } + "provider": "Microsoft.CostManagement", + "resource": "Views" + }, + "id": "Microsoft.CostManagement/views/write" } ] } } - } + }, + "operationId": "Operations_List", + "title": "OperationList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PricesheetDownload.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PricesheetDownload.json index 340c87ce2279..f5aee427e5b6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PricesheetDownload.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PricesheetDownload.json @@ -6,18 +6,20 @@ "invoiceName": "T000940677" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com:443/providers/Microsoft.Billing/billingAccounts/7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31/billingProfiles/2USN-TPCD-BG7-TGB/providers/Microsoft.CostManagement/operationResults/45000000-0000-0000-0000-000000000000?sessiontoken=0:000000&api-version=2025-03-01&OperationType=PriceSheet", - "Retry-After": "60", - "OData-EntityId": "45000000-0000-0000-0000-000000000000" - } - }, "200": { "body": { "downloadUrl": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", "expiryTime": "2022-09-30T17:32:28Z" } + }, + "202": { + "headers": { + "Location": "https://management.azure.com:443/providers/Microsoft.Billing/billingAccounts/7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31/billingProfiles/2USN-TPCD-BG7-TGB/providers/Microsoft.CostManagement/operationResults/45000000-0000-0000-0000-000000000000?sessiontoken=0:000000&api-version=2025-03-01&OperationType=PriceSheet", + "OData-EntityId": "45000000-0000-0000-0000-000000000000", + "Retry-After": "60" + } } - } + }, + "operationId": "PriceSheet_DownloadByInvoice", + "title": "PricesheetDownload" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PricesheetDownloadByBillingProfile.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PricesheetDownloadByBillingProfile.json index d2c9bdb8fdf3..0a5fdc8420ea 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PricesheetDownloadByBillingProfile.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PricesheetDownloadByBillingProfile.json @@ -5,18 +5,20 @@ "billingProfileName": "2USN-TPCD-BG7-TGB" }, "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com:443/providers/Microsoft.Billing/billingAccounts/7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31/billingProfiles/2USN-TPCD-BG7-TGB/providers/Microsoft.CostManagement/operationResults/45000000-0000-0000-0000-000000000000?sessiontoken=0:000000&api-version=2025-03-01&OperationType=PriceSheet", - "Retry-After": "60", - "OData-EntityId": "45000000-0000-0000-0000-000000000000" - } - }, "200": { "body": { "downloadUrl": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", "expiryTime": "2018-07-21T17:32:28Z" } + }, + "202": { + "headers": { + "Location": "https://management.azure.com:443/providers/Microsoft.Billing/billingAccounts/7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31/billingProfiles/2USN-TPCD-BG7-TGB/providers/Microsoft.CostManagement/operationResults/45000000-0000-0000-0000-000000000000?sessiontoken=0:000000&api-version=2025-03-01&OperationType=PriceSheet", + "OData-EntityId": "45000000-0000-0000-0000-000000000000", + "Retry-After": "60" + } } - } + }, + "operationId": "PriceSheet_DownloadByBillingProfile", + "title": "PricesheetDownloadByBillingProfile" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateView.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateView.json index 753f3ee949f2..d22e14fc41f0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateView.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateView.json @@ -6,64 +6,66 @@ "responses": { "200": { "body": { - "id": "/providers/Microsoft.CostManagement/views/swaggerExample", "name": "swaggerExample", "type": "Microsoft.CostManagement/Views", "eTag": "\"1d4ff9fe66f1d10\"", + "id": "/providers/Microsoft.CostManagement/views/swaggerExample", "properties": { - "displayName": "swagger Example", - "scope": "", - "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", + "chart": "Table", + "displayName": "swagger Example", "kpis": [ { "type": "Forecast", - "id": null, - "enabled": true + "enabled": true, + "id": null }, { "type": "Budget", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", - "enabled": true + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" } ], + "metric": "ActualCost", "pivots": [ { - "type": "Dimension", - "name": "ServiceName" + "name": "ServiceName", + "type": "Dimension" }, { - "type": "Dimension", - "name": "MeterCategory" + "name": "MeterCategory", + "type": "Dimension" }, { - "type": "TagKey", - "name": "swaggerTagKey" + "name": "swaggerTagKey", + "type": "TagKey" } - ] + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + }, + "scope": "" } } } - } + }, + "operationId": "Views_Get", + "title": "PrivateView" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewCreateOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewCreateOrUpdate.json index c2b3190c04e5..4ceda637895e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewCreateOrUpdate.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewCreateOrUpdate.json @@ -1,185 +1,187 @@ { "parameters": { "api-version": "2025-03-01", - "viewName": "swaggerExample", "parameters": { "eTag": "\"1d4ff9fe66f1d10\"", "properties": { - "displayName": "swagger Example", - "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", + "chart": "Table", + "displayName": "swagger Example", "kpis": [ { "type": "Forecast", - "id": null, - "enabled": true + "enabled": true, + "id": null }, { "type": "Budget", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", - "enabled": true + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" } ], + "metric": "ActualCost", "pivots": [ { - "type": "Dimension", - "name": "ServiceName" + "name": "ServiceName", + "type": "Dimension" }, { - "type": "Dimension", - "name": "MeterCategory" + "name": "MeterCategory", + "type": "Dimension" }, { - "type": "TagKey", - "name": "swaggerTagKey" + "name": "swaggerTagKey", + "type": "TagKey" } - ] + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + } } - } + }, + "viewName": "swaggerExample" }, "responses": { - "201": { + "200": { "body": { - "id": "/providers/Microsoft.CostManagement/views/swaggerExample", "name": "swaggerExample", "type": "Microsoft.CostManagement/Views", "eTag": "\"1d4ffa5a9c2430c\"", + "id": "/providers/Microsoft.CostManagement/views/swaggerExample", "properties": { - "displayName": "swagger Example", - "scope": "", - "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", + "chart": "Table", + "displayName": "swagger Example", "kpis": [ { "type": "Forecast", - "id": null, - "enabled": true + "enabled": true, + "id": null }, { "type": "Budget", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", - "enabled": true + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" } ], + "metric": "ActualCost", "pivots": [ { - "type": "Dimension", - "name": "ServiceName" + "name": "ServiceName", + "type": "Dimension" }, { - "type": "Dimension", - "name": "MeterCategory" + "name": "MeterCategory", + "type": "Dimension" }, { - "type": "TagKey", - "name": "swaggerTagKey" + "name": "swaggerTagKey", + "type": "TagKey" } - ] - } - } - }, - "200": { - "body": { - "id": "/providers/Microsoft.CostManagement/views/swaggerExample", - "name": "swaggerExample", - "type": "Microsoft.CostManagement/Views", - "eTag": "\"1d4ffa5a9c2430c\"", - "properties": { - "displayName": "swagger Example", - "scope": "", + ], "query": { "type": "Usage", - "timeframe": "MonthToDate", "dataSet": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "Daily", "grouping": [], "sorting": [ { - "direction": "Ascending", - "name": "UsageDate" + "name": "UsageDate", + "direction": "Ascending" } ] - } + }, + "timeframe": "MonthToDate" }, - "chart": "Table", + "scope": "" + } + } + }, + "201": { + "body": { + "name": "swaggerExample", + "type": "Microsoft.CostManagement/Views", + "eTag": "\"1d4ffa5a9c2430c\"", + "id": "/providers/Microsoft.CostManagement/views/swaggerExample", + "properties": { "accumulated": "true", - "metric": "ActualCost", + "chart": "Table", + "displayName": "swagger Example", "kpis": [ { "type": "Forecast", - "id": null, - "enabled": true + "enabled": true, + "id": null }, { "type": "Budget", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", - "enabled": true + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" } ], + "metric": "ActualCost", "pivots": [ { - "type": "Dimension", - "name": "ServiceName" + "name": "ServiceName", + "type": "Dimension" }, { - "type": "Dimension", - "name": "MeterCategory" + "name": "MeterCategory", + "type": "Dimension" }, { - "type": "TagKey", - "name": "swaggerTagKey" + "name": "swaggerTagKey", + "type": "TagKey" } - ] + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + }, + "scope": "" } } } - } + }, + "operationId": "Views_CreateOrUpdate", + "title": "CreateOrUpdatePrivateView" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewDelete.json index 58c6bb88ee3f..81ad15abaab5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewDelete.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewDelete.json @@ -6,5 +6,7 @@ "responses": { "200": {}, "204": {} - } + }, + "operationId": "Views_Delete", + "title": "DeletePrivateView" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewList.json index d465b503ddfa..adce1dda4c87 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/PrivateViewList.json @@ -7,125 +7,127 @@ "body": { "value": [ { - "id": "/providers/Microsoft.CostManagement/views/swaggerExample", "name": "swaggerExample", "type": "Microsoft.CostManagement/Views", "eTag": "\"1d4ff9fe66f1d10\"", + "id": "/providers/Microsoft.CostManagement/views/swaggerExample", "properties": { - "displayName": "swagger Example", - "scope": "", - "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", + "chart": "Table", + "displayName": "swagger Example", "kpis": [ { "type": "Forecast", - "id": null, - "enabled": true + "enabled": true, + "id": null }, { "type": "Budget", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", - "enabled": true + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" } ], + "metric": "ActualCost", "pivots": [ { - "type": "Dimension", - "name": "ServiceName" + "name": "ServiceName", + "type": "Dimension" }, { - "type": "Dimension", - "name": "MeterCategory" + "name": "MeterCategory", + "type": "Dimension" }, { - "type": "TagKey", - "name": "swaggerTagKey" + "name": "swaggerTagKey", + "type": "TagKey" } - ] - } - }, - { - "id": "/providers/Microsoft.CostManagement/views/swaggerExample2", - "name": "swaggerExample2", - "type": "Microsoft.CostManagement/Views", - "eTag": "\"1d4ffa5a9c2430c\"", - "properties": { - "displayName": "swagger Example 2", - "scope": "", + ], "query": { "type": "Usage", - "timeframe": "LastMonthToDate", "dataSet": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "Daily", "grouping": [], "sorting": [ { - "direction": "Ascending", - "name": "UsageDate" + "name": "UsageDate", + "direction": "Ascending" } ] - } + }, + "timeframe": "MonthToDate" }, - "chart": "GroupedColumn", + "scope": "" + } + }, + { + "name": "swaggerExample2", + "type": "Microsoft.CostManagement/Views", + "eTag": "\"1d4ffa5a9c2430c\"", + "id": "/providers/Microsoft.CostManagement/views/swaggerExample2", + "properties": { "accumulated": "true", - "metric": "ActualCost", + "chart": "GroupedColumn", + "displayName": "swagger Example 2", "kpis": [ { "type": "Forecast", - "id": null, - "enabled": true + "enabled": true, + "id": null }, { "type": "Budget", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", - "enabled": true + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" } ], + "metric": "ActualCost", "pivots": [ { - "type": "Dimension", - "name": "ServiceName" + "name": "ServiceName", + "type": "Dimension" }, { - "type": "Dimension", - "name": "MeterCategory" + "name": "MeterCategory", + "type": "Dimension" }, { - "type": "TagKey", - "name": "swaggerTagKey" + "name": "swaggerTagKey", + "type": "TagKey" } - ] + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "LastMonthToDate" + }, + "scope": "" } } ] } } - } + }, + "operationId": "Views_List", + "title": "PrivateViewList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json index b9c0ebdc139b..2235ad7eabe7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json @@ -1,99 +1,101 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2019-08-31T17:51:55.1808807Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "11111111-1111-1111-111111111111_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 171000.32, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2019-06-24T05:51:52.8713179Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2019-08-31T17:51:55.1808807Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "Alerts_List", + "title": "ResourceGroupAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json index 1df053d5508a..478318e187b7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json @@ -1,38 +1,40 @@ { "parameters": { - "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "system.orlando", "$expand": "properties/data", "$top": 5, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando" + "api-version": "2025-03-01", + "resourceGroupName": "system.orlando", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "microsoft.storage/storageaccounts" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 1, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource Id", + "category": "ResourceId", "data": [ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/authprod", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/systemevents", @@ -40,18 +42,18 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/publicsystemportal" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 27, - "category": "ResourceId", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource Id", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "ResourceGroupDimensionsList-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json index 39e866165d23..df9adee7d1c0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json @@ -1,18 +1,9 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "parameters": { "type": "Usage", - "timeframe": "Custom", - "timePeriod": { - "from": "2022-08-01T00:00:00+00:00", - "to": "2022-08-31T23:59:59+00:00" - }, "dataset": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "Cost", @@ -55,20 +46,28 @@ } } ] - } + }, + "granularity": "Daily" }, "includeActualCost": false, - "includeFreshPartialCost": false - } + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "Microsoft.CostManagement/query", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", "properties": { - "nextLink": null, "columns": [ { "name": "PreTaxCost", @@ -87,6 +86,7 @@ "type": "String" } ], + "nextLink": null, "rows": [ [ 2.10333307059661, @@ -99,5 +99,7 @@ } }, "204": {} - } + }, + "operationId": "Forecast_Usage", + "title": "ResourceGroupForecast" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json index 18f194b1f0b5..d33c9f453ebd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json @@ -1,14 +1,9 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481", - "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -45,18 +40,22 @@ } } ] - } - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481" }, "responses": { "200": { "body": { - "id": "subscriptions/55312978-ba1b-415c-9304-c4b9c43c0481/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", "name": "9af9459d-441d-4055-9ed0-83d4c4a363fb", "type": "microsoft.costmanagement/Query", + "id": "subscriptions/55312978-ba1b-415c-9304-c4b9c43c0481/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", "properties": { - "nextLink": null, "columns": [ { "name": "PreTaxCost", @@ -75,6 +74,7 @@ "type": "String" } ], + "nextLink": null, "rows": [ [ 2.10333307059661, @@ -93,5 +93,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "ResourceGroupQuery-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json index 171f6773c4c0..47e5927372d1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json @@ -1,37 +1,36 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "parameters": { "type": "Usage", - "timeframe": "TheLastMonth", "dataset": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "Daily", "grouping": [ { - "type": "Dimension", - "name": "ResourceType" + "name": "ResourceType", + "type": "Dimension" } ] - } - } + }, + "timeframe": "TheLastMonth" + }, + "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", "name": "9af9459d-441d-4055-9ed0-83d4c4a363fb", "type": "microsoft.costmanagement/Query", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", "properties": { - "nextLink": null, "columns": [ { "name": "PreTaxCost", @@ -50,6 +49,7 @@ "type": "String" } ], + "nextLink": null, "rows": [ [ 2.10333307059661, @@ -68,5 +68,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "ResourceGroupQueryGrouping-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json index d1ee39c4b283..4892faf53b80 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json @@ -1,54 +1,56 @@ { "parameters": { + "alertId": "22222222-2222-2222-2222-222222222222", "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "ScreenSharingTest-peer", "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", - "alertId": "22222222-2222-2222-2222-222222222222" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", + "unit": "USD" + } } } } - } + }, + "operationId": "Alerts_Get", + "title": "SingleResourceGroupAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json index 35abf1617271..2c6595bc2f8c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json @@ -1,53 +1,55 @@ { "parameters": { + "alertId": "22222222-2222-2222-2222-222222222222", "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "alertId": "22222222-2222-2222-2222-222222222222" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01", + "unit": "USD" + } } } } - } + }, + "operationId": "Alerts_Get", + "title": "SingleSubscriptionAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json index 8d2dd8f6a776..7612ded878e8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json @@ -1,98 +1,100 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2020-04-27T11:07:52.7143901Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 161000.12, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", + "unit": "USD" + } } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { + "description": "", + "closeTime": "0001-01-01T00:00:00", + "costEntityId": "budget1", + "creationTime": "2019-06-24T05:51:52.8713179Z", "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, - "description": "", + "modificationTime": "2019-08-31T17:51:55.1808807Z", "source": "Preset", + "status": "Active", + "statusModificationTime": "0001-01-01T00:00:00", + "statusModificationUserName": null, "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "11111111-1111-1111-111111111111_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 171000.32, + "amount": 200000, "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2019-06-24T05:51:52.8713179Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2019-08-31T17:51:55.1808807Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" + "currentSpend": 171000.32, + "meterFilter": [], + "operator": "GreaterThan", + "overridingAlert": null, + "periodStartDate": "2020-03-01T00:00:00Z", + "resourceFilter": [], + "resourceGroupFilter": [], + "tagFilter": {}, + "threshold": 0.8, + "timeGrainType": "Quarterly", + "triggeredBy": "11111111-1111-1111-111111111111_1_01", + "unit": "USD" + } } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "Alerts_List", + "title": "SubscriptionAlerts" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json index 010d48058b37..cf4d5ecba580 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json @@ -1,20 +1,22 @@ { "parameters": { - "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "$top": 5, "$expand": "properties/data", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "$top": 5, + "api-version": "2025-03-01", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource group", + "category": "ResourceGroup", "data": [ "dcrg", "rg", @@ -22,38 +24,38 @@ "system.orlando.adminkeyvault", "system.orlando.keyvault" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 68, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource group", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { + "description": "Resource type", + "category": "ResourceType", "data": [ "microsoft.storage/storageaccounts", "microsoft.web.admin/role", "microsoft.sql/servers", "microsoft.compute/virtualmachines" ], + "filterEnabled": true, + "groupingEnabled": true, "total": 4, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource type", - "filterEnabled": true, - "groupingEnabled": true + "usageStart": "2018-05-01T00:00:00-07:00" } } ] } }, "204": {} - } + }, + "operationId": "Dimensions_List", + "title": "SubscriptionDimensionsList-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json index 55e916a5b402..fd2af044f319 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json @@ -1,17 +1,9 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "parameters": { "type": "Usage", - "timeframe": "Custom", - "timePeriod": { - "from": "2022-08-01T00:00:00+00:00", - "to": "2022-08-31T23:59:59+00:00" - }, "dataset": { - "granularity": "Daily", "aggregation": { "totalCost": { "name": "Cost", @@ -54,20 +46,27 @@ } } ] - } + }, + "granularity": "Daily" }, "includeActualCost": false, - "includeFreshPartialCost": false - } + "includeFreshPartialCost": false, + "timePeriod": { + "from": "2022-08-01T00:00:00+00:00", + "to": "2022-08-31T23:59:59+00:00" + }, + "timeframe": "Custom" + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "Microsoft.CostManagement/query", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", "properties": { - "nextLink": null, "columns": [ { "name": "PreTaxCost", @@ -86,6 +85,7 @@ "type": "String" } ], + "nextLink": null, "rows": [ [ 2.10333307059661, @@ -116,5 +116,7 @@ } }, "204": {} - } + }, + "operationId": "Forecast_Usage", + "title": "SubscriptionForecast" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json index d33f4592d124..5d6cda84ef49 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json @@ -1,13 +1,9 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "parameters": { "type": "Usage", - "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", "filter": { "and": [ { @@ -44,18 +40,21 @@ } } ] - } - } - } + }, + "granularity": "Daily" + }, + "timeframe": "MonthToDate" + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "microsoft.costmanagement/Query", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", "properties": { - "nextLink": null, "columns": [ { "name": "PreTaxCost", @@ -74,6 +73,7 @@ "type": "String" } ], + "nextLink": null, "rows": [ [ 2.10333307059661, @@ -104,5 +104,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "SubscriptionQuery-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json index cf1a794e9758..f0775487364d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json @@ -1,36 +1,35 @@ { "parameters": { "api-version": "2025-03-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "parameters": { "type": "Usage", - "timeframe": "TheLastMonth", "dataset": { - "granularity": "None", "aggregation": { "totalCost": { "name": "PreTaxCost", "function": "Sum" } }, + "granularity": "None", "grouping": [ { - "type": "Dimension", - "name": "ResourceGroup" + "name": "ResourceGroup", + "type": "Dimension" } ] - } - } + }, + "timeframe": "TheLastMonth" + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "microsoft.costmanagement/Query", + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", "properties": { - "nextLink": null, "columns": [ { "name": "PreTaxCost", @@ -45,6 +44,7 @@ "type": "String" } ], + "nextLink": null, "rows": [ [ 0.009865586851323632, @@ -71,5 +71,7 @@ } }, "204": {} - } + }, + "operationId": "Query_Usage", + "title": "SubscriptionQueryGrouping-Legacy" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json index 429431fd64d0..52b9474147fd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json @@ -1,70 +1,72 @@ { "parameters": { "api-version": "2025-03-01", - "viewName": "swaggerExample", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "viewName": "swaggerExample" }, "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample", "name": "swaggerExample", "type": "Microsoft.CostManagement/Views", "eTag": "\"1d4ff9fe66f1d10\"", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample", "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", + "chart": "Table", + "displayName": "swagger Example", "kpis": [ { "type": "Forecast", - "id": null, - "enabled": true + "enabled": true, + "id": null }, { "type": "Budget", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", - "enabled": true + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" } ], + "metric": "ActualCost", "pivots": [ { - "type": "Dimension", - "name": "ServiceName" + "name": "ServiceName", + "type": "Dimension" }, { - "type": "Dimension", - "name": "MeterCategory" + "name": "MeterCategory", + "type": "Dimension" }, { - "type": "TagKey", - "name": "swaggerTagKey" + "name": "swaggerTagKey", + "type": "TagKey" } - ] + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + }, + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" } } } - } + }, + "operationId": "Views_GetByScope", + "title": "ResourceGroupView" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json index 5ce348e086a4..bceff92723f8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json @@ -1,186 +1,188 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", - "viewName": "swaggerExample", "parameters": { "eTag": "\"1d4ff9fe66f1d10\"", "properties": { - "displayName": "swagger Example", - "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", + "chart": "Table", + "displayName": "swagger Example", "kpis": [ { "type": "Forecast", - "id": null, - "enabled": true + "enabled": true, + "id": null }, { "type": "Budget", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", - "enabled": true + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" } ], + "metric": "ActualCost", "pivots": [ { - "type": "Dimension", - "name": "ServiceName" + "name": "ServiceName", + "type": "Dimension" }, { - "type": "Dimension", - "name": "MeterCategory" + "name": "MeterCategory", + "type": "Dimension" }, { - "type": "TagKey", - "name": "swaggerTagKey" + "name": "swaggerTagKey", + "type": "TagKey" } - ] + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + } } - } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "viewName": "swaggerExample" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample", "name": "swaggerExample", "type": "Microsoft.CostManagement/Views", "eTag": "\"1d4ffa5a9c2430c\"", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample", "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", + "chart": "Table", + "displayName": "swagger Example", "kpis": [ { "type": "Forecast", - "id": null, - "enabled": true + "enabled": true, + "id": null }, { "type": "Budget", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", - "enabled": true + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" } ], + "metric": "ActualCost", "pivots": [ { - "type": "Dimension", - "name": "ServiceName" + "name": "ServiceName", + "type": "Dimension" }, { - "type": "Dimension", - "name": "MeterCategory" + "name": "MeterCategory", + "type": "Dimension" }, { - "type": "TagKey", - "name": "swaggerTagKey" + "name": "swaggerTagKey", + "type": "TagKey" } - ] - } - } - }, - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample", - "name": "swaggerExample", - "type": "Microsoft.CostManagement/Views", - "eTag": "\"1d4ffa5a9c2430c\"", - "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" } }, + "granularity": "Daily", "grouping": [], "sorting": [ { - "direction": "Ascending", - "name": "UsageDate" + "name": "UsageDate", + "direction": "Ascending" } ] - } + }, + "timeframe": "MonthToDate" }, - "chart": "Table", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + } + } + }, + "201": { + "body": { + "name": "swaggerExample", + "type": "Microsoft.CostManagement/Views", + "eTag": "\"1d4ffa5a9c2430c\"", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample", + "properties": { "accumulated": "true", - "metric": "ActualCost", + "chart": "Table", + "displayName": "swagger Example", "kpis": [ { "type": "Forecast", - "id": null, - "enabled": true + "enabled": true, + "id": null }, { "type": "Budget", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo", - "enabled": true + "enabled": true, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo" } ], + "metric": "ActualCost", "pivots": [ { - "type": "Dimension", - "name": "ServiceName" + "name": "ServiceName", + "type": "Dimension" }, { - "type": "Dimension", - "name": "MeterCategory" + "name": "MeterCategory", + "type": "Dimension" }, { - "type": "TagKey", - "name": "swaggerTagKey" + "name": "swaggerTagKey", + "type": "TagKey" } - ] + ], + "query": { + "type": "Usage", + "dataSet": { + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "granularity": "Daily", + "grouping": [], + "sorting": [ + { + "name": "UsageDate", + "direction": "Ascending" + } + ] + }, + "timeframe": "MonthToDate" + }, + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" } } } - } + }, + "operationId": "Views_CreateOrUpdateByScope", + "title": "ResourceGroupCreateOrUpdateView" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json index b5426ef72a43..d42216abe104 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json @@ -7,5 +7,7 @@ "responses": { "200": {}, "204": {} - } + }, + "operationId": "Views_DeleteByScope", + "title": "ResourceGroupDeleteView" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json index 037df9813038..953b8129449d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json @@ -128,5 +128,7 @@ ] } } - } + }, + "operationId": "Views_ListByScope", + "title": "ResourceGroupViewList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-private-scheduledAction.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-private-scheduledAction.json index 3754641aec04..595efbdd6fc3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-private-scheduledAction.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-private-scheduledAction.json @@ -9,10 +9,12 @@ "responses": { "200": { "body": { + "message": "A private scheduled action with name 'testName' is already present. Please specify a differnt name.", "nameAvailable": false, - "reason": "AlreadyExists", - "message": "A private scheduled action with name 'testName' is already present. Please specify a differnt name." + "reason": "AlreadyExists" } } - } + }, + "operationId": "ScheduledActions_CheckNameAvailability", + "title": "ScheduledActionCheckNameAvailability" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json index ca444bf75f90..0142bce2aa83 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json @@ -1,11 +1,11 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "checkNameAvailabilityRequest": { "name": "testName", "type": "Microsoft.CostManagement/ScheduledActions" - } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -13,5 +13,7 @@ "nameAvailable": true } } - } + }, + "operationId": "ScheduledActions_CheckNameAvailabilityByScope", + "title": "ScheduledActionCheckNameAvailabilityByScope" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-private.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-private.json index b8266577c31e..b055a942de6c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-private.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-private.json @@ -1,31 +1,31 @@ { "parameters": { - "api-version": "2025-03-01", "name": "monthlyCostByResource", "If-Match": "", + "api-version": "2025-03-01", "scheduledAction": { "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", "notification": { + "subject": "Cost by resource this month", "to": [ "user@gmail.com", "team@gmail.com" - ], - "subject": "Cost by resource this month" + ] }, "schedule": { - "frequency": "Monthly", - "weeksOfMonth": [ - "First", - "Third" - ], "daysOfWeek": [ "Monday" ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", "hourOfDay": 10, "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "weeksOfMonth": [ + "First", + "Third" + ] }, "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" @@ -33,95 +33,97 @@ } }, "responses": { - "201": { + "200": { "body": { - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "Email", "eTag": "\"1d4ff9fe66f1d10\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" - }, + "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", "notification": { - "language": "fr", "regionalFormat": "fr", + "subject": "Cost by resource this month", "to": [ "user@gmail.com", "team@gmail.com" ], - "subject": "Cost by resource this month" + "language": "fr" }, "schedule": { - "frequency": "Monthly", - "weeksOfMonth": [ - "First", - "Third" - ], "daysOfWeek": [ "Monday" ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", "hourOfDay": 10, "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "weeksOfMonth": [ + "First", + "Third" + ] }, "scope": "", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-19T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } } }, - "200": { + "201": { "body": { - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "Email", "eTag": "\"1d4ff9fe66f1d10\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-19T22:21:51.1287144Z" - }, + "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", "notification": { - "language": "fr", "regionalFormat": "fr", + "subject": "Cost by resource this month", "to": [ "user@gmail.com", "team@gmail.com" ], - "subject": "Cost by resource this month" + "language": "fr" }, - "scope": "", - "status": "Enabled", "schedule": { - "frequency": "Monthly", - "weeksOfMonth": [ - "First", - "Third" - ], "daysOfWeek": [ "Monday" ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", "hourOfDay": 10, "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "weeksOfMonth": [ + "First", + "Third" + ] }, + "scope": "", + "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ScheduledActions_CreateOrUpdate", + "title": "CreateOrUpdatePrivateScheduledAction" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json index 6a9a47eca15a..5f52b090cead 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json @@ -1,9 +1,8 @@ { "parameters": { - "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "name": "monthlyCostByResource", "If-Match": "", + "api-version": "2025-03-01", "scheduledAction": { "kind": "Email", "properties": { @@ -14,121 +13,124 @@ ] }, "notification": { + "subject": "Cost by resource this month", "to": [ "user@gmail.com", "team@gmail.com" - ], - "subject": "Cost by resource this month" + ] }, "schedule": { - "frequency": "Monthly", - "weeksOfMonth": [ - "First", - "Third" - ], "daysOfWeek": [ "Monday" ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", "hourOfDay": 10, "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "weeksOfMonth": [ + "First", + "Third" + ] }, "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" } - } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { - "201": { + "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "Email", "eTag": "\"1d4ff9fe66f1d10\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" - }, + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", - "fileDestination": { - "fileFormats": [ - "Csv" - ] - }, "notification": { + "subject": "Cost by resource this month", "to": [ "user@gmail.com", "team@gmail.com" - ], - "subject": "Cost by resource this month" + ] }, "schedule": { - "frequency": "Monthly", - "weeksOfMonth": [ - "First", - "Third" - ], "daysOfWeek": [ "Monday" ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", "hourOfDay": 10, "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "weeksOfMonth": [ + "First", + "Third" + ] }, "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-19T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } } }, - "200": { + "201": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "Email", "eTag": "\"1d4ff9fe66f1d10\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-19T22:21:51.1287144Z" - }, + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", + "fileDestination": { + "fileFormats": [ + "Csv" + ] + }, "notification": { + "subject": "Cost by resource this month", "to": [ "user@gmail.com", "team@gmail.com" - ], - "subject": "Cost by resource this month" + ] }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "schedule": { - "frequency": "Monthly", - "weeksOfMonth": [ - "First", - "Third" - ], "daysOfWeek": [ "Monday" ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", "hourOfDay": 10, "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "weeksOfMonth": [ + "First", + "Third" + ] }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ScheduledActions_CreateOrUpdateByScope", + "title": "CreateOrUpdateScheduledActionByScope" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-private.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-private.json index 5ada2e954b01..8acaef929837 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-private.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-private.json @@ -1,10 +1,12 @@ { "parameters": { - "api-version": "2025-03-01", - "name": "monthlyCostByResource" + "name": "monthlyCostByResource", + "api-version": "2025-03-01" }, "responses": { "200": {}, "204": {} - } + }, + "operationId": "ScheduledActions_Delete", + "title": "PrivateScheduledActionDelete" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json index f125e1178942..b58965e6b22f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json @@ -1,11 +1,13 @@ { "parameters": { + "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "name": "monthlyCostByResource" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, "204": {} - } + }, + "operationId": "ScheduledActions_DeleteByScope", + "title": "ScheduledActionDeleteByScope" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-private.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-private.json index 85fdd6aa2e96..6df6b6a8d7e8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-private.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-private.json @@ -1,51 +1,53 @@ { "parameters": { - "api-version": "2025-03-01", - "name": "monthlyCostByResource" + "name": "monthlyCostByResource", + "api-version": "2025-03-01" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "Email", "eTag": "\"1d4ff9fe66f1d10\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" - }, + "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", - "scope": "", - "status": "Enabled", - "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, "schedule": { - "frequency": "Monthly", - "weeksOfMonth": [ - "First", - "Third" - ], "daysOfWeek": [ "Monday" ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", "hourOfDay": 10, "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "weeksOfMonth": [ + "First", + "Third" + ] }, - "notification": { - "to": [ - "user@gmail.com", - "team@gmail.com" - ], - "subject": "Cost by resource this month" - } + "scope": "", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ScheduledActions_Get", + "title": "PrivateScheduledAction" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json index d7325eca45b4..49d56e2b7005 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json @@ -1,52 +1,54 @@ { "parameters": { + "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "name": "monthlyCostByResource" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "Email", "eTag": "\"1d4ff9fe66f1d10\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" - }, + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "status": "Enabled", - "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, "schedule": { - "frequency": "Monthly", - "weeksOfMonth": [ - "First", - "Third" - ], "daysOfWeek": [ "Monday" ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", "hourOfDay": 10, "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "weeksOfMonth": [ + "First", + "Third" + ] }, - "notification": { - "to": [ - "user@gmail.com", - "team@gmail.com" - ], - "subject": "Cost by resource this month" - } + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ScheduledActions_GetByScope", + "title": "ScheduledActionByScope" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json index cf66b2f518d1..b124605d71f3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json @@ -1,106 +1,108 @@ { "parameters": { - "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "name": "dailyAnomalyByResource", "If-Match": "", + "api-version": "2025-03-01", "scheduledAction": { "kind": "InsightAlert", "properties": { "displayName": "Daily anomaly by resource", "notification": { + "subject": "Cost anomaly detected in the resource", "to": [ "user@gmail.com", "team@gmail.com" - ], - "subject": "Cost anomaly detected in the resource" + ] }, "schedule": { + "endDate": "2021-06-19T22:21:51.1287144Z", "frequency": "Daily", - "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "startDate": "2020-06-19T22:21:51.1287144Z" }, "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" } - } + }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { - "201": { + "200": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", "name": "dailyAnomalyByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "InsightAlert", "eTag": "\"1d4ff9fe66f1d10\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" - }, + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", + "kind": "InsightAlert", "properties": { "displayName": "Daily anomaly by resource", "fileDestination": { "fileFormats": [] }, "notification": { + "subject": "Cost anomaly detected in the resource", "to": [ "user@gmail.com", "team@gmail.com" - ], - "subject": "Cost anomaly detected in the resource" + ] }, "schedule": { + "endDate": "2021-06-19T22:21:51.1287144Z", "frequency": "Daily", - "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "startDate": "2020-06-19T22:21:51.1287144Z" }, "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-19T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } } }, - "200": { + "201": { "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", "name": "dailyAnomalyByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "InsightAlert", "eTag": "\"1d4ff9fe66f1d10\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-19T22:21:51.1287144Z" - }, + "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", + "kind": "InsightAlert", "properties": { "displayName": "Daily anomaly by resource", "fileDestination": { "fileFormats": [] }, "notification": { + "subject": "Cost anomaly detected in the resource", "to": [ "user@gmail.com", "team@gmail.com" - ], - "subject": "Cost anomaly detected in the resource" + ] }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "schedule": { + "endDate": "2021-06-19T22:21:51.1287144Z", "frequency": "Daily", - "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "startDate": "2020-06-19T22:21:51.1287144Z" }, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } } } - } + }, + "operationId": "ScheduledActions_CreateOrUpdateByScope", + "title": "CreateOrUpdateInsightAlertScheduledActionByScope" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-private.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-private.json index 7abe73b7fb34..a323a9f881d8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-private.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-private.json @@ -1,9 +1,11 @@ { "parameters": { - "api-version": "2025-03-01", - "name": "monthlyCostByResource" + "name": "monthlyCostByResource", + "api-version": "2025-03-01" }, "responses": { "200": {} - } + }, + "operationId": "ScheduledActions_Run", + "title": "ScheduledActionSendNow" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json index 7dfaa731e58e..0bf9ac7dd58b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json @@ -1,10 +1,12 @@ { "parameters": { + "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "name": "monthlyCostByResource" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {} - } + }, + "operationId": "ScheduledActions_RunByScope", + "title": "ScheduledActionRunByScope" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-private.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-private.json index 0498dd302cd1..0d4f55f3f65f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-private.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-private.json @@ -5,85 +5,87 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "Email", "eTag": "\"1d4ff9fe66f1d10\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" - }, + "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", - "scope": "", - "status": "Enabled", - "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, "schedule": { - "frequency": "Monthly", - "weeksOfMonth": [ - "First", - "Third" - ], "daysOfWeek": [ "Monday" ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", "hourOfDay": 10, "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "weeksOfMonth": [ + "First", + "Third" + ] }, - "notification": { - "to": [ - "user@gmail.com", - "team@gmail.com" - ], - "subject": "Cost by resource this month" - } + "scope": "", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } }, { - "id": "providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", "name": "dailyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "Email", "eTag": "\"1d4ff9fe66f1d15\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" - }, + "id": "providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "kind": "Email", "properties": { "displayName": "Daily Cost By Resource", - "scope": "", - "status": "Disabled", - "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", - "schedule": { - "frequency": "Daily", - "hourOfDay": 12, - "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" - }, "notification": { + "subject": "Daily Cost By Resource", "to": [ "user@gmail.com", "team@gmail.com" - ], - "subject": "Daily Cost By Resource" - } + ] + }, + "schedule": { + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Daily", + "hourOfDay": 12, + "startDate": "2020-06-19T22:21:51.1287144Z" + }, + "scope": "", + "status": "Disabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "ScheduledActions_List", + "title": "PrivateScheduledActionsList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json index 82b9c3e16a43..5536274a9844 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json @@ -86,5 +86,7 @@ "nextLink": null } } - } + }, + "operationId": "ScheduledActions_ListByScope", + "title": "ScheduledActionsListByScope" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-private.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-private.json index 7f21f3057345..08222beb3930 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-private.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-private.json @@ -1,90 +1,92 @@ { "parameters": { - "api-version": "2025-03-01", - "$filter": "properties/viewId eq '/providers/Microsoft.CostManagement/views/swaggerExample'" + "$filter": "properties/viewId eq '/providers/Microsoft.CostManagement/views/swaggerExample'", + "api-version": "2025-03-01" }, "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "Email", "eTag": "\"1d4ff9fe66f1d10\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" - }, + "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", - "scope": "", - "status": "Enabled", - "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", + "notification": { + "subject": "Cost by resource this month", + "to": [ + "user@gmail.com", + "team@gmail.com" + ] + }, "schedule": { - "frequency": "Monthly", - "weeksOfMonth": [ - "First", - "Third" - ], "daysOfWeek": [ "Monday" ], + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Monthly", "hourOfDay": 10, "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" + "weeksOfMonth": [ + "First", + "Third" + ] }, - "notification": { - "to": [ - "user@gmail.com", - "team@gmail.com" - ], - "subject": "Cost by resource this month" - } + "scope": "", + "status": "Enabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } }, { - "id": "providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", "name": "dailyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", - "kind": "Email", "eTag": "\"1d4ff9fe66f1d15\"", - "systemData": { - "createdBy": "testuser", - "createdByType": "User", - "createdAt": "2020-06-18T22:21:51.1287144Z", - "lastModifiedBy": "testuser", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-06-18T22:21:51.1287144Z" - }, + "id": "providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "kind": "Email", "properties": { "displayName": "Daily Cost By Resource", - "scope": "", - "status": "Disabled", - "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", - "schedule": { - "frequency": "Daily", - "hourOfDay": 12, - "startDate": "2020-06-19T22:21:51.1287144Z", - "endDate": "2021-06-19T22:21:51.1287144Z" - }, "notification": { + "subject": "Daily Cost By Resource", "to": [ "user@gmail.com", "team@gmail.com" - ], - "subject": "Daily Cost By Resource" - } + ] + }, + "schedule": { + "endDate": "2021-06-19T22:21:51.1287144Z", + "frequency": "Daily", + "hourOfDay": 12, + "startDate": "2020-06-19T22:21:51.1287144Z" + }, + "scope": "", + "status": "Disabled", + "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" + }, + "systemData": { + "createdAt": "2020-06-18T22:21:51.1287144Z", + "createdBy": "testuser", + "createdByType": "User", + "lastModifiedAt": "2020-06-18T22:21:51.1287144Z", + "lastModifiedBy": "testuser", + "lastModifiedByType": "User" } } - ], - "nextLink": null + ] } } - } + }, + "operationId": "ScheduledActions_List", + "title": "PrivateScheduledActionsListFilterByViewId" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json index 8c1045bc3c55..e594fd6d23dd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json @@ -87,5 +87,7 @@ "nextLink": null } } - } + }, + "operationId": "ScheduledActions_ListByScope", + "title": "ScheduledActionsListByScopeFilterByViewId" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json index 1bb8a6b7ba81..58ed1b269af9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json @@ -1,11 +1,13 @@ { "parameters": { + "type": "taginheritance", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "type": "taginheritance" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, "204": {} - } + }, + "operationId": "Settings_DeleteByScope", + "title": "SettingDeleteByScope" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json index 9269e475e015..e4cea79dd5fe 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json @@ -1,20 +1,22 @@ { "parameters": { + "type": "taginheritance", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "type": "taginheritance" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", "name": "taginheritance", "type": "Microsoft.CostManagement/Settings", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", "kind": "taginheritance", "properties": { "preferContainerTags": false } } } - } + }, + "operationId": "Settings_GetByScope", + "title": "SettingByScope" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json index 35b8910f58aa..e2ed25e1f11b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json @@ -1,8 +1,8 @@ { "parameters": { + "type": "taginheritance", "api-version": "2025-03-01", "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "type": "taginheritance", "setting": { "kind": "taginheritance", "properties": { @@ -11,27 +11,29 @@ } }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", "name": "taginheritance", "type": "Microsoft.CostManagement/Settings", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", "kind": "taginheritance", "properties": { "preferContainerTags": false } } }, - "200": { + "201": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", "name": "taginheritance", "type": "Microsoft.CostManagement/Settings", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", "kind": "taginheritance", "properties": { "preferContainerTags": false } } } - } + }, + "operationId": "Settings_CreateOrUpdateByScope", + "title": "CreateOrUpdateSettingByScope" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json index 79513f5bc54b..f59ce3fd2377 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json @@ -8,9 +8,9 @@ "body": { "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", "name": "taginheritance", "type": "Microsoft.CostManagement/Settings", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/settings/taginheritance", "kind": "taginheritance", "properties": { "preferContainerTags": false @@ -19,5 +19,7 @@ ] } } - } + }, + "operationId": "Settings_List", + "title": "SettingsList" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json new file mode 100644 index 000000000000..6811ef0723f8 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json @@ -0,0 +1,10547 @@ +{ + "swagger": "2.0", + "info": { + "title": "CostManagementClient", + "version": "2025-03-01", + "description": "CostManagement management client provides access to CostManagement resources for Azure Enterprise Subscriptions.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "CostAllocationRuleDefinitions" + }, + { + "name": "Budgets" + }, + { + "name": "Exports" + }, + { + "name": "GenerateCostDetailsReport" + }, + { + "name": "GenerateDetailedCostReportOperationResults" + }, + { + "name": "GenerateDetailedCostReportOperationStatus" + }, + { + "name": "Views" + }, + { + "name": "ViewOperationGroup" + }, + { + "name": "Alerts" + }, + { + "name": "ScheduledActions" + }, + { + "name": "ScheduledActionOperationGroup" + }, + { + "name": "Settings" + } + ], + "paths": { + "/{scope}/providers/Microsoft.CostManagement/alerts": { + "get": { + "operationId": "Alerts_List", + "tags": [ + "Alerts" + ], + "description": "Lists the alerts for scope defined.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/AlertsResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "BillingAccountAlerts": { + "$ref": "./examples/BillingAccountAlerts.json" + }, + "BillingProfileAlerts": { + "$ref": "./examples/BillingProfileAlerts.json" + }, + "DepartmentAlerts": { + "$ref": "./examples/DepartmentAlerts.json" + }, + "EnrollmentAccountAlerts": { + "$ref": "./examples/EnrollmentAccountAlerts.json" + }, + "InvoiceSectionAlerts": { + "$ref": "./examples/InvoiceSectionAlerts.json" + }, + "ResourceGroupAlerts": { + "$ref": "./examples/ResourceGroupAlerts.json" + }, + "SubscriptionAlerts": { + "$ref": "./examples/SubscriptionAlerts.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/alerts/{alertId}": { + "get": { + "operationId": "Alerts_Get", + "tags": [ + "Alerts" + ], + "description": "Gets the alert for the scope by alert ID.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "alertId", + "in": "path", + "description": "Alert ID", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Alert" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SingleResourceGroupAlerts": { + "$ref": "./examples/SingleResourceGroupAlert.json" + }, + "SingleSubscriptionAlerts": { + "$ref": "./examples/SingleSubscriptionAlert.json" + } + } + }, + "patch": { + "operationId": "Alerts_Dismiss", + "tags": [ + "Alerts" + ], + "description": "Dismisses the specified alert", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "alertId", + "in": "path", + "description": "Alert ID", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the Dismiss Alert operation.", + "required": true, + "schema": { + "$ref": "#/definitions/DismissAlertPayload" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Alert" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PatchResourceGroupAlerts": { + "$ref": "./examples/DismissResourceGroupAlerts.json" + }, + "PatchSubscriptionAlerts": { + "$ref": "./examples/DismissSubscriptionAlerts.json" + } + } + } + }, + "/{billingScope}/providers/Microsoft.CostManagement/benefitRecommendations": { + "get": { + "operationId": "BenefitRecommendations_List", + "description": "List of recommendations for purchasing savings plan.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/CostManagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "Can be used to filter benefitRecommendations by: properties/scope with allowed values ['Single', 'Shared'] and default value 'Shared'; and properties/lookBackPeriod with allowed values ['Last7Days', 'Last30Days', 'Last60Days'] and default value 'Last60Days'; properties/term with allowed values ['P1Y', 'P3Y'] and default value 'P3Y'; properties/subscriptionId; properties/resourceGroup", + "required": false, + "type": "string" + }, + { + "name": "$orderby", + "in": "query", + "description": "May be used to order the recommendations by: properties/armSkuName. For the savings plan, the results are in order by default. There is no need to use this clause.", + "required": false, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "May be used to expand the properties by: properties/usage, properties/allRecommendationDetails", + "required": false, + "type": "string" + }, + { + "name": "billingScope", + "in": "path", + "description": "The scope associated with benefit recommendation operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope, /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/benefitRecommendationsListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "BenefitRecommendationsBillingAccountList": { + "$ref": "./examples/BenefitRecommendationsByBillingAccount.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/budgets": { + "get": { + "operationId": "Budgets_List", + "tags": [ + "Budgets" + ], + "description": "Lists all budgets for the defined scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/CostManagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "$filter", + "in": "query", + "description": "OData filter option. May be used to filter budgets by properties/category. The filter supports 'eq' only.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/BudgetsListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "BillingAccountBudgetsList-EA": { + "$ref": "./examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json" + }, + "BillingAccountBudgetsList-EA-CategoryTypeFilter": { + "$ref": "./examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json" + }, + "BillingAccountBudgetsList-MCA": { + "$ref": "./examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json" + }, + "BillingAccountBudgetsList-MCA-CategoryTypeFilter": { + "$ref": "./examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json" + }, + "BillingProfileBudgetsList-MCA": { + "$ref": "./examples/Budgets/List/MCA/BillingProfileBudgetsList.json" + }, + "BillingProfileBudgetsList-MCA-CategoryTypeFilter": { + "$ref": "./examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json" + }, + "CustomerBudgetsList-MCA-CSP": { + "$ref": "./examples/Budgets/List/MCA/CustomerBudgetsList.json" + }, + "CustomerBudgetsList-MCA-CSP-CategoryTypeFilter": { + "$ref": "./examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json" + }, + "DepartmentBudgetsList-EA": { + "$ref": "./examples/Budgets/List/EA/DepartmentBudgetsList.json" + }, + "EnrollmentAccountBudgetsList-EA": { + "$ref": "./examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json" + }, + "InvoiceSectionBudgetsList-MCA": { + "$ref": "./examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json" + }, + "ManagementGroupBudgetsList": { + "$ref": "./examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json" + }, + "ResourceGroupBudgetsList": { + "$ref": "./examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json" + }, + "SubscriptionBudgetsList": { + "$ref": "./examples/Budgets/List/RBAC/SubscriptionBudgetsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}": { + "get": { + "operationId": "Budgets_Get", + "tags": [ + "Budgets" + ], + "description": "Gets the budget for the scope by budget name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/CostManagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "budgetName", + "in": "path", + "description": "Budget Name.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Budget" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get-Cost-Budget": { + "$ref": "./examples/Budgets/Get/Cost/Get-Cost-Budget.json" + }, + "Get-ReservationUtilization-AlertRule": { + "$ref": "./examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json" + } + } + }, + "put": { + "operationId": "Budgets_CreateOrUpdate", + "tags": [ + "Budgets" + ], + "description": "The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/CostManagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "budgetName", + "in": "path", + "description": "Budget Name.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9_-]+$" + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the Create Budget operation.", + "required": true, + "schema": { + "$ref": "#/definitions/Budget" + } + } + ], + "responses": { + "200": { + "description": "Resource 'Budget' update operation succeeded", + "schema": { + "$ref": "#/definitions/Budget" + } + }, + "201": { + "description": "Resource 'Budget' create operation succeeded", + "schema": { + "$ref": "#/definitions/Budget" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreateOrUpdate-Cost-Subscription-Budget": { + "$ref": "./examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json" + }, + "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule": { + "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json" + }, + "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservationIdFilter": { + "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json" + }, + "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservedResourceTypeFilter": { + "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json" + }, + "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule-ReservationIdFilter": { + "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json" + }, + "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule-ReservedResourceTypeFilter": { + "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json" + }, + "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule.json": { + "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json" + }, + "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule-ReservationIdFilter": { + "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json" + }, + "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule-ReservedResourceTypeFilter": { + "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json" + }, + "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule.json": { + "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json" + } + } + }, + "delete": { + "operationId": "Budgets_Delete", + "tags": [ + "Budgets" + ], + "description": "The operation to delete a budget.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/CostManagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "budgetName", + "in": "path", + "description": "Budget Name.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-zA-Z0-9_-]+$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteBudget": { + "$ref": "./examples/Budgets/Delete/DeleteBudget.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/checkNameAvailability": { + "post": { + "operationId": "ScheduledActions_CheckNameAvailabilityByScope", + "description": "Checks availability and correctness of the name for a scheduled action within the given scope.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.", + "required": true, + "type": "string" + }, + { + "name": "checkNameAvailabilityRequest", + "in": "body", + "description": "Scheduled action to be created or updated.", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/CheckNameAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "ScheduledActionCheckNameAvailabilityByScope": { + "$ref": "./examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/costDetailsOperationResults/{operationId}": { + "get": { + "operationId": "GenerateCostDetailsReport_GetOperationResults", + "tags": [ + "GenerateCostDetailsReport" + ], + "description": "Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "operationId", + "in": "path", + "description": "The target operation Id.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CostDetailsOperationResults" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get details of the operation result": { + "$ref": "./examples/CostDetailsOperationResultsBySubscriptionScope.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/dimensions": { + "get": { + "operationId": "Dimensions_List", + "description": "Lists the dimensions by the defined scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "$filter", + "in": "query", + "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "required": false, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.", + "required": false, + "type": "string" + }, + { + "name": "$skiptoken", + "in": "query", + "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "May be used to limit the number of results to the most recent N dimension data.", + "required": false, + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "BillingAccountDimensionsList-Legacy": { + "$ref": "./examples/BillingAccountDimensionsList.json" + }, + "BillingAccountDimensionsList-MCA": { + "$ref": "./examples/MCABillingAccountDimensionsList.json" + }, + "BillingAccountDimensionsListExpandAndTop-Legacy": { + "$ref": "./examples/BillingAccountDimensionsListExpandAndTop.json" + }, + "BillingAccountDimensionsListExpandAndTop-MCA": { + "$ref": "./examples/MCABillingAccountDimensionsListExpandAndTop.json" + }, + "BillingAccountDimensionsListWithFilter-Legacy": { + "$ref": "./examples/BillingAccountDimensionsListWithFilter.json" + }, + "BillingAccountDimensionsListWithFilter-MCA": { + "$ref": "./examples/MCABillingAccountDimensionsListWithFilter.json" + }, + "BillingProfileDimensionsList-MCA": { + "$ref": "./examples/MCABillingProfileDimensionsList.json" + }, + "BillingProfileDimensionsListExpandAndTop-MCA": { + "$ref": "./examples/MCABillingProfileDimensionsListExpandAndTop.json" + }, + "BillingProfileDimensionsListWithFilter-MCA": { + "$ref": "./examples/MCABillingProfileDimensionsListWithFilter.json" + }, + "CustomerDimensionsList-MCA": { + "$ref": "./examples/MCACustomerDimensionsList.json" + }, + "CustomerDimensionsListExpandAndTop-MCA": { + "$ref": "./examples/MCACustomerDimensionsListExpandAndTop.json" + }, + "CustomerDimensionsListWithFilter-MCA": { + "$ref": "./examples/MCACustomerDimensionsListWithFilter.json" + }, + "DepartmentDimensionsList-Legacy": { + "$ref": "./examples/DepartmentDimensionsList.json" + }, + "DepartmentDimensionsListExpandAndTop-Legacy": { + "$ref": "./examples/DepartmentDimensionsListExpandAndTop.json" + }, + "DepartmentDimensionsListWithFilter-Legacy": { + "$ref": "./examples/DepartmentDimensionsListWithFilter.json" + }, + "EnrollmentAccountDimensionsList-Legacy": { + "$ref": "./examples/EnrollmentAccountDimensionsList.json" + }, + "EnrollmentAccountDimensionsListExpandAndTop-Legacy": { + "$ref": "./examples/EnrollmentAccountDimensionsListExpandAndTop.json" + }, + "EnrollmentAccountDimensionsListWithFilter-Legacy": { + "$ref": "./examples/EnrollmentAccountDimensionsListWithFilter.json" + }, + "InvoiceSectionDimensionsList-MCA": { + "$ref": "./examples/MCAInvoiceSectionDimensionsList.json" + }, + "InvoiceSectionDimensionsListExpandAndTop-MCA": { + "$ref": "./examples/MCAInvoiceSectionDimensionsListExpandAndTop.json" + }, + "InvoiceSectionDimensionsListWithFilter-MCA": { + "$ref": "./examples/MCAInvoiceSectionDimensionsListWithFilter.json" + }, + "ManagementGroupDimensionsList-Legacy": { + "$ref": "./examples/ManagementGroupDimensionsList.json" + }, + "ManagementGroupDimensionsListExpandAndTop-Legacy": { + "$ref": "./examples/ManagementGroupDimensionsListExpandAndTop.json" + }, + "ManagementGroupDimensionsListWithFilter-Legacy": { + "$ref": "./examples/ManagementGroupDimensionsListWithFilter.json" + }, + "ResourceGroupDimensionsList-Legacy": { + "$ref": "./examples/ResourceGroupDimensionsList.json" + }, + "SubscriptionDimensionsList-Legacy": { + "$ref": "./examples/SubscriptionDimensionsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/exports": { + "get": { + "operationId": "Exports_List", + "tags": [ + "Exports" + ], + "description": "The operation to list all exports at the given scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "$expand", + "in": "query", + "description": "May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last run of each export.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ExportListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ExportsGetByBillingAccount": { + "$ref": "./examples/ExportsGetByBillingAccount.json" + }, + "ExportsGetByDepartment": { + "$ref": "./examples/ExportsGetByDepartment.json" + }, + "ExportsGetByEnrollmentAccount": { + "$ref": "./examples/ExportsGetByEnrollmentAccount.json" + }, + "ExportsGetByManagementGroup": { + "$ref": "./examples/ExportsGetByManagementGroup.json" + }, + "ExportsGetByResourceGroup": { + "$ref": "./examples/ExportsGetByResourceGroup.json" + }, + "ExportsGetBySubscription": { + "$ref": "./examples/ExportsGetBySubscription.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}": { + "get": { + "operationId": "Exports_Get", + "tags": [ + "Exports" + ], + "description": "The operation to get the export for the defined scope by export name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "exportName", + "in": "path", + "description": "Export Name.", + "required": true, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last 10 runs of the export.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Export" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ExportGetByBillingAccount": { + "$ref": "./examples/ExportGetByBillingAccount.json" + }, + "ExportGetByDepartment": { + "$ref": "./examples/ExportGetByDepartment.json" + }, + "ExportGetByEnrollmentAccount": { + "$ref": "./examples/ExportGetByEnrollmentAccount.json" + }, + "ExportGetByManagementGroup": { + "$ref": "./examples/ExportGetByManagementGroup.json" + }, + "ExportGetByResourceGroup": { + "$ref": "./examples/ExportGetByResourceGroup.json" + }, + "ExportGetBySubscription": { + "$ref": "./examples/ExportGetBySubscription.json" + } + } + }, + "put": { + "operationId": "Exports_CreateOrUpdate", + "tags": [ + "Exports" + ], + "description": "The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "exportName", + "in": "path", + "description": "Export Name.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the CreateOrUpdate Export operation.", + "required": true, + "schema": { + "$ref": "#/definitions/Export" + } + } + ], + "responses": { + "200": { + "description": "Resource 'Export' update operation succeeded", + "schema": { + "$ref": "#/definitions/Export" + } + }, + "201": { + "description": "Resource 'Export' create operation succeeded", + "schema": { + "$ref": "#/definitions/Export" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ExportCreateOrUpdateByBillingAccount": { + "$ref": "./examples/ExportCreateOrUpdateByBillingAccount.json" + }, + "ExportCreateOrUpdateByBillingAccountCustom": { + "$ref": "./examples/ExportCreateOrUpdateByBillingAccountCustom.json" + }, + "ExportCreateOrUpdateByBillingAccountMonthly": { + "$ref": "./examples/ExportCreateOrUpdateByBillingAccountMonthly.json" + }, + "ExportCreateOrUpdateByBillingAccountPricesheet": { + "$ref": "./examples/ExportCreateOrUpdateByBillingAccountPricesheet.json" + }, + "ExportCreateOrUpdateByBillingAccountReservationDetails": { + "$ref": "./examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json" + }, + "ExportCreateOrUpdateByBillingAccountReservationRecommendation": { + "$ref": "./examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json" + }, + "ExportCreateOrUpdateByDepartment": { + "$ref": "./examples/ExportCreateOrUpdateByDepartment.json" + }, + "ExportCreateOrUpdateByEnrollmentAccount": { + "$ref": "./examples/ExportCreateOrUpdateByEnrollmentAccount.json" + }, + "ExportCreateOrUpdateByManagementGroup": { + "$ref": "./examples/ExportCreateOrUpdateByManagementGroup.json" + }, + "ExportCreateOrUpdateByResourceGroup": { + "$ref": "./examples/ExportCreateOrUpdateByResourceGroup.json" + }, + "ExportCreateOrUpdateBySubscription": { + "$ref": "./examples/ExportCreateOrUpdateBySubscription.json" + }, + "ExportCreateOrUpdateExportCreateOrUpdateByBillingAccountReservationTransactionsByBillingAccount": { + "$ref": "./examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json" + } + } + }, + "delete": { + "operationId": "Exports_Delete", + "tags": [ + "Exports" + ], + "description": "The operation to delete a export.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "exportName", + "in": "path", + "description": "Export Name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ExportDeleteByBillingAccount": { + "$ref": "./examples/ExportDeleteByBillingAccount.json" + }, + "ExportDeleteByDepartment": { + "$ref": "./examples/ExportDeleteByDepartment.json" + }, + "ExportDeleteByEnrollmentAccount": { + "$ref": "./examples/ExportDeleteByEnrollmentAccount.json" + }, + "ExportDeleteByManagementGroup": { + "$ref": "./examples/ExportDeleteByManagementGroup.json" + }, + "ExportDeleteByResourceGroup": { + "$ref": "./examples/ExportDeleteByResourceGroup.json" + }, + "ExportDeleteBySubscription": { + "$ref": "./examples/ExportDeleteBySubscription.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run": { + "post": { + "operationId": "Exports_Execute", + "tags": [ + "Exports" + ], + "description": "The operation to run an export.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "exportName", + "in": "path", + "description": "Export Name.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the Execute Export operation.", + "required": false, + "schema": { + "$ref": "#/definitions/ExportRunRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ExportRunByBillingAccount": { + "$ref": "./examples/ExportRunByBillingAccount.json" + }, + "ExportRunByBillingAccountWithOptionalRequestBody": { + "$ref": "./examples/ExportRunByBillingAccountWithOptionalRequestBody.json" + }, + "ExportRunByDepartment": { + "$ref": "./examples/ExportRunByDepartment.json" + }, + "ExportRunByEnrollmentAccount": { + "$ref": "./examples/ExportRunByEnrollmentAccount.json" + }, + "ExportRunByManagementGroup": { + "$ref": "./examples/ExportRunByManagementGroup.json" + }, + "ExportRunByResourceGroup": { + "$ref": "./examples/ExportRunByResourceGroup.json" + }, + "ExportRunBySubscription": { + "$ref": "./examples/ExportRunBySubscription.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory": { + "get": { + "operationId": "Exports_GetExecutionHistory", + "tags": [ + "Exports" + ], + "description": "The operation to get the run history of an export for the defined scope and export name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "exportName", + "in": "path", + "description": "Export Name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ExportExecutionListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ExportRunHistoryGetByBillingAccount": { + "$ref": "./examples/ExportRunHistoryGetByBillingAccount.json" + }, + "ExportRunHistoryGetByDepartment": { + "$ref": "./examples/ExportRunHistoryGetByDepartment.json" + }, + "ExportRunHistoryGetByEnrollmentAccount": { + "$ref": "./examples/ExportRunHistoryGetByEnrollmentAccount.json" + }, + "ExportRunHistoryGetByManagementGroup": { + "$ref": "./examples/ExportRunHistoryGetByManagementGroup.json" + }, + "ExportRunHistoryGetByResourceGroup": { + "$ref": "./examples/ExportRunHistoryGetByResourceGroup.json" + }, + "ExportRunHistoryGetBySubscription": { + "$ref": "./examples/ExportRunHistoryGetBySubscription.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/forecast": { + "post": { + "operationId": "Forecast_Usage", + "description": "Lists the forecast charges for scope defined.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.", + "required": false, + "type": "string" + }, + { + "name": "scope", + "in": "path", + "description": "The scope associated with forecast operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the CreateOrUpdate Forecast Config operation.", + "required": true, + "schema": { + "$ref": "#/definitions/ForecastDefinition" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ForecastResult" + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "BillingAccountForecast": { + "$ref": "./examples/BillingAccountForecast.json" + }, + "BillingProfileForecast": { + "$ref": "./examples/BillingProfileForecast.json" + }, + "DepartmentForecast": { + "$ref": "./examples/DepartmentForecast.json" + }, + "EnrollmentAccountForecast": { + "$ref": "./examples/EnrollmentAccountForecast.json" + }, + "InvoiceSectionForecast": { + "$ref": "./examples/InvoiceSectionForecast.json" + }, + "ResourceGroupForecast": { + "$ref": "./examples/ResourceGroupForecast.json" + }, + "SubscriptionForecast": { + "$ref": "./examples/SubscriptionForecast.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/generateCostDetailsReport": { + "post": { + "operationId": "GenerateCostDetailsReport_CreateOperation", + "description": "This API is the replacement for all previously release Usage Details APIs. Request to generate a cost details report for the provided date range, billing period (Only enterprise customers) or Invoice Id asynchronously at a certain scope. The initial call to request a report will return a 202 with a 'Location' and 'Retry-After' header. The 'Location' header will provide the endpoint to poll to get the result of the report generation. The 'Retry-After' provides the duration to wait before polling for the generated report. A call to poll the report operation will provide a 202 response with a 'Location' header if the operation is still in progress. Once the report generation operation completes, the polling endpoint will provide a 200 response along with details on the report blob(s) that are available for download. The details on the file(s) available for download will be available in the polling response body. To Understand cost details (formerly known as usage details) fields found in files ,see https://learn.microsoft.com/en-us/azure/cost-management-billing/automate/understand-usage-details-fields", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The ARM Resource ID for subscription, billing account, or other billing scopes.Currently Resource Group and Management Group are not supported. For details, see https://aka.ms/costmgmt/scopes.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the Create cost details operation.", + "required": true, + "schema": { + "$ref": "#/definitions/GenerateCostDetailsReportRequestDefinition" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CostDetailsOperationResults" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/GenerateCostDetailsReportErrorResponse" + } + } + }, + "x-ms-examples": { + "GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod": { + "$ref": "./examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json" + }, + "GenerateCostDetailsReportByBillingProfileAndInvoiceId": { + "$ref": "./examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json" + }, + "GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId": { + "$ref": "./examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json" + }, + "GenerateCostDetailsReportByCustomerAndTimePeriod": { + "$ref": "./examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json" + }, + "GenerateCostDetailsReportByDepartmentsAndTimePeriod": { + "$ref": "./examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json" + }, + "GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod": { + "$ref": "./examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json" + }, + "GenerateCostDetailsReportBySubscriptionAndTimePeriod": { + "$ref": "./examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/CostDetailsOperationResults" + }, + "x-ms-long-running-operation": true + } + }, + "/{scope}/providers/Microsoft.CostManagement/generateDetailedCostReport": { + "post": { + "operationId": "GenerateDetailedCostReport_CreateOperation", + "description": "Generates the detailed cost report for provided date range, billing period(only enterprise customers) or Invoice ID asynchronously at a certain scope. Call returns a 202 with header Azure-Consumption-AsyncOperation providing a link to the operation created. A call on the operation will provide the status and if the operation is completed the blob file where generated detailed cost report is being stored.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The ARM Resource ID for subscription, resource group, billing account, or other billing scopes. For details, see https://aka.ms/costmgmt/scopes.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the Create detailed cost report operation.", + "required": true, + "schema": { + "$ref": "#/definitions/GenerateDetailedCostReportDefinition" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GenerateDetailedCostReportOperationResult" + } + }, + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "format": "uri", + "description": "A link to the status monitor" + }, + "Azure-Consumption-AsyncOperation": { + "type": "string", + "description": "The URL to check the status of the asynchronous operation." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/GenerateDetailedCostReportErrorResponse" + } + } + }, + "x-ms-examples": { + "GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod": { + "$ref": "./examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json" + }, + "GenerateDetailedCostReportByBillingProfileAndInvoiceId": { + "$ref": "./examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json" + }, + "GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId": { + "$ref": "./examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json" + }, + "GenerateDetailedCostReportByCustomerAndTimePeriod": { + "$ref": "./examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json" + }, + "GenerateDetailedCostReportBySubscriptionAndTimePeriod": { + "$ref": "./examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/GenerateDetailedCostReportOperationResult" + }, + "x-ms-long-running-operation": true + } + }, + "/{scope}/providers/Microsoft.CostManagement/operationResults/{operationId}": { + "get": { + "operationId": "GenerateDetailedCostReportOperationResults_Get", + "tags": [ + "GenerateDetailedCostReportOperationResults" + ], + "description": "Gets the result of the specified operation. The link with this operationId is provided as a response header of the initial request.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "operationId", + "in": "path", + "description": "The target operation Id.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GenerateDetailedCostReportOperationResult" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get details of the operation result": { + "$ref": "./examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/operationStatus/{operationId}": { + "get": { + "operationId": "GenerateDetailedCostReportOperationStatus_Get", + "tags": [ + "GenerateDetailedCostReportOperationStatus" + ], + "description": "Get the status of the specified operation. This link is provided in the GenerateDetailedCostReport creation request response header.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "operationId", + "in": "path", + "description": "The target operation Id.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GenerateDetailedCostReportOperationStatuses" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get details of the operation status": { + "$ref": "./examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/query": { + "post": { + "operationId": "Query_Usage", + "description": "Query the usage data for scope defined.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the CreateOrUpdate Query Config operation.", + "required": true, + "schema": { + "$ref": "#/definitions/QueryDefinition" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/QueryResult" + } + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "BillingAccountQuery-Legacy": { + "$ref": "./examples/BillingAccountQuery.json" + }, + "BillingAccountQuery-MCA": { + "$ref": "./examples/MCABillingAccountQuery.json" + }, + "BillingAccountQueryGrouping-Legacy": { + "$ref": "./examples/BillingAccountQueryGrouping.json" + }, + "BillingAccountQueryGrouping-MCA": { + "$ref": "./examples/MCABillingAccountQueryGrouping.json" + }, + "BillingProfileQuery-MCA": { + "$ref": "./examples/MCABillingProfileQuery.json" + }, + "BillingProfileQueryGrouping-MCA": { + "$ref": "./examples/MCABillingProfileQueryGrouping.json" + }, + "CustomerQuery-MCA": { + "$ref": "./examples/MCACustomerQuery.json" + }, + "CustomerQueryGrouping-MCA": { + "$ref": "./examples/MCACustomerQueryGrouping.json" + }, + "DepartmentQuery-Legacy": { + "$ref": "./examples/DepartmentQuery.json" + }, + "DepartmentQueryGrouping-Legacy": { + "$ref": "./examples/DepartmentQueryGrouping.json" + }, + "EnrollmentAccountQuery-Legacy": { + "$ref": "./examples/EnrollmentAccountQuery.json" + }, + "EnrollmentAccountQueryGrouping-Legacy": { + "$ref": "./examples/EnrollmentAccountQueryGrouping.json" + }, + "InvoiceSectionQuery-MCA": { + "$ref": "./examples/MCAInvoiceSectionQuery.json" + }, + "InvoiceSectionQueryGrouping-MCA": { + "$ref": "./examples/MCAInvoiceSectionQueryGrouping.json" + }, + "ManagementGroupQuery-Legacy": { + "$ref": "./examples/ManagementGroupQuery.json" + }, + "ManagementGroupQueryGrouping-Legacy": { + "$ref": "./examples/ManagementGroupQueryGrouping.json" + }, + "ResourceGroupQuery-Legacy": { + "$ref": "./examples/ResourceGroupQuery.json" + }, + "ResourceGroupQueryGrouping-Legacy": { + "$ref": "./examples/ResourceGroupQueryGrouping.json" + }, + "SubscriptionQuery-Legacy": { + "$ref": "./examples/SubscriptionQuery.json" + }, + "SubscriptionQueryGrouping-Legacy": { + "$ref": "./examples/SubscriptionQueryGrouping.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/scheduledActions": { + "get": { + "operationId": "ScheduledActions_ListByScope", + "tags": [ + "ScheduledActionOperationGroup" + ], + "description": "List all private scheduled actions.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "May be used to filter scheduled actions by properties/viewId. Supported operator is 'eq'.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ScheduledActionListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "ScheduledActionsListByScope": { + "$ref": "./examples/scheduledActions/scheduledActions-list-shared.json" + }, + "ScheduledActionsListByScopeFilterByViewId": { + "$ref": "./examples/scheduledActions/scheduledActions-listWithFilter-shared.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}": { + "get": { + "operationId": "ScheduledActions_GetByScope", + "tags": [ + "ScheduledActionOperationGroup" + ], + "description": "Get the shared scheduled action from the given scope by name.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Scheduled action name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ScheduledAction" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "ScheduledActionByScope": { + "$ref": "./examples/scheduledActions/scheduledAction-get-shared.json" + } + } + }, + "put": { + "operationId": "ScheduledActions_CreateOrUpdateByScope", + "tags": [ + "ScheduledActionOperationGroup" + ], + "description": "Create or update a shared scheduled action within the given scope.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Scheduled action name.", + "required": true, + "type": "string" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag of the Entity. Not required when creating an entity. Optional when updating an entity and can be specified to achieve optimistic concurrency.", + "required": false, + "type": "string" + }, + { + "name": "scheduledAction", + "in": "body", + "description": "Scheduled action to be created or updated.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduledAction" + } + } + ], + "responses": { + "200": { + "description": "Resource 'ScheduledAction' update operation succeeded", + "schema": { + "$ref": "#/definitions/ScheduledAction" + } + }, + "201": { + "description": "Resource 'ScheduledAction' create operation succeeded", + "schema": { + "$ref": "#/definitions/ScheduledAction" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "CreateOrUpdateInsightAlertScheduledActionByScope": { + "$ref": "./examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json" + }, + "CreateOrUpdateScheduledActionByScope": { + "$ref": "./examples/scheduledActions/scheduledAction-createOrUpdate-shared.json" + } + } + }, + "delete": { + "operationId": "ScheduledActions_DeleteByScope", + "tags": [ + "ScheduledActionOperationGroup" + ], + "description": "Delete a scheduled action within the given scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Scheduled action name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "ScheduledActionDeleteByScope": { + "$ref": "./examples/scheduledActions/scheduledAction-delete-shared.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}/execute": { + "post": { + "operationId": "ScheduledActions_RunByScope", + "tags": [ + "ScheduledActionOperationGroup" + ], + "description": "Runs a shared scheduled action within the given scope.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + }, + { + "name": "name", + "in": "path", + "description": "Scheduled action name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "ScheduledActionRunByScope": { + "$ref": "./examples/scheduledActions/scheduledAction-sendNow-shared.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/settings": { + "get": { + "operationId": "Settings_List", + "tags": [ + "Settings" + ], + "description": "List all cost management settings in the requested scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SettingsListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SettingsList": { + "$ref": "./examples/settingsList.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/settings/{type}": { + "get": { + "operationId": "Settings_GetByScope", + "tags": [ + "Settings" + ], + "description": "Get the setting from the given scope by name.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + }, + { + "name": "type", + "in": "path", + "description": "Setting type.", + "required": true, + "type": "string", + "enum": [ + "taginheritance" + ], + "x-ms-enum": { + "name": "SettingType", + "modelAsString": true, + "values": [ + { + "name": "taginheritance", + "value": "taginheritance", + "description": "This setting applies billing profile, invoice section, subscription and resource group tags to current month's usage data of child resources." + } + ] + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Setting" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SettingByScope": { + "$ref": "./examples/setting-get.json" + } + } + }, + "put": { + "operationId": "Settings_CreateOrUpdateByScope", + "tags": [ + "Settings" + ], + "description": "Create or update a setting within the given scope.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + }, + { + "name": "type", + "in": "path", + "description": "Setting type.", + "required": true, + "type": "string", + "enum": [ + "taginheritance" + ], + "x-ms-enum": { + "name": "SettingType", + "modelAsString": true, + "values": [ + { + "name": "taginheritance", + "value": "taginheritance", + "description": "This setting applies billing profile, invoice section, subscription and resource group tags to current month's usage data of child resources." + } + ] + } + }, + { + "name": "setting", + "in": "body", + "description": "Setting to be created or updated.", + "required": true, + "schema": { + "$ref": "#/definitions/Setting" + } + } + ], + "responses": { + "200": { + "description": "Resource 'Setting' update operation succeeded", + "schema": { + "$ref": "#/definitions/Setting" + } + }, + "201": { + "description": "Resource 'Setting' create operation succeeded", + "schema": { + "$ref": "#/definitions/Setting" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreateOrUpdateSettingByScope": { + "$ref": "./examples/settings-createOrUpdate.json" + } + } + }, + "delete": { + "operationId": "Settings_DeleteByScope", + "tags": [ + "Settings" + ], + "description": "Delete a setting within the given scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + }, + { + "name": "type", + "in": "path", + "description": "Setting type.", + "required": true, + "type": "string", + "enum": [ + "taginheritance" + ], + "x-ms-enum": { + "name": "SettingType", + "modelAsString": true, + "values": [ + { + "name": "taginheritance", + "value": "taginheritance", + "description": "This setting applies billing profile, invoice section, subscription and resource group tags to current month's usage data of child resources." + } + ] + } + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SettingDeleteByScope": { + "$ref": "./examples/setting-delete.json" + } + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/views": { + "get": { + "operationId": "Views_ListByScope", + "tags": [ + "ViewOperationGroup" + ], + "description": "Lists all views by tenant and object.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ViewListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ResourceGroupViewList": { + "$ref": "./examples/ViewListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/views/{viewName}": { + "get": { + "operationId": "Views_GetByScope", + "tags": [ + "ViewOperationGroup" + ], + "description": "Gets the view for the defined scope by view name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + }, + { + "name": "viewName", + "in": "path", + "description": "View name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/View" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ResourceGroupView": { + "$ref": "./examples/ViewByResourceGroup.json" + } + } + }, + "put": { + "operationId": "Views_CreateOrUpdateByScope", + "tags": [ + "ViewOperationGroup" + ], + "description": "The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + }, + { + "name": "viewName", + "in": "path", + "description": "View name", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the CreateOrUpdate View operation.", + "required": true, + "schema": { + "$ref": "#/definitions/View" + } + } + ], + "responses": { + "200": { + "description": "Resource 'View' update operation succeeded", + "schema": { + "$ref": "#/definitions/View" + } + }, + "201": { + "description": "Resource 'View' create operation succeeded", + "schema": { + "$ref": "#/definitions/View" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ResourceGroupCreateOrUpdateView": { + "$ref": "./examples/ViewCreateOrUpdateByResourceGroup.json" + } + } + }, + "delete": { + "operationId": "Views_DeleteByScope", + "tags": [ + "ViewOperationGroup" + ], + "description": "The operation to delete a view.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "description": "undefined", + "required": true, + "type": "string" + }, + { + "name": "viewName", + "in": "path", + "description": "View name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ResourceGroupDeleteView": { + "$ref": "./examples/ViewDeleteByResourceGroup.json" + } + } + } + }, + "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts": { + "get": { + "operationId": "Alerts_ListExternal", + "description": "Lists the Alerts for external cloud provider type defined.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "externalCloudProviderType", + "in": "path", + "description": "The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account.", + "required": true, + "type": "string", + "enum": [ + "externalSubscriptions", + "externalBillingAccounts" + ], + "x-ms-enum": { + "name": "ExternalCloudProviderType", + "modelAsString": true, + "values": [ + { + "name": "externalSubscriptions", + "value": "externalSubscriptions" + }, + { + "name": "externalBillingAccounts", + "value": "externalBillingAccounts" + } + ] + } + }, + { + "name": "externalCloudProviderId", + "in": "path", + "description": "This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AlertsResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ExternalBillingAccountAlerts": { + "$ref": "./examples/ExternalBillingAccountAlerts.json" + }, + "ExternalSubscriptionAlerts": { + "$ref": "./examples/ExternalSubscriptionAlerts.json" + } + } + } + }, + "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions": { + "get": { + "operationId": "Dimensions_ByExternalCloudProviderType", + "description": "Lists the dimensions by the external cloud provider type.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "externalCloudProviderType", + "in": "path", + "description": "The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account.", + "required": true, + "type": "string", + "enum": [ + "externalSubscriptions", + "externalBillingAccounts" + ], + "x-ms-enum": { + "name": "ExternalCloudProviderType", + "modelAsString": true, + "values": [ + { + "name": "externalSubscriptions", + "value": "externalSubscriptions" + }, + { + "name": "externalBillingAccounts", + "value": "externalBillingAccounts" + } + ] + } + }, + { + "name": "externalCloudProviderId", + "in": "path", + "description": "This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "required": false, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.", + "required": false, + "type": "string" + }, + { + "name": "$skiptoken", + "in": "query", + "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", + "required": false, + "type": "string" + }, + { + "name": "$top", + "in": "query", + "description": "May be used to limit the number of results to the most recent N dimension data.", + "required": false, + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ExternalBillingAccountDimensionList": { + "$ref": "./examples/ExternalBillingAccountsDimensions.json" + }, + "ExternalSubscriptionDimensionList": { + "$ref": "./examples/ExternalSubscriptionsDimensions.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/forecast": { + "post": { + "operationId": "Forecast_ExternalCloudProviderUsage", + "description": "Lists the forecast charges for external cloud provider type defined.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.", + "required": false, + "type": "string" + }, + { + "name": "externalCloudProviderType", + "in": "path", + "description": "The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account.", + "required": true, + "type": "string", + "enum": [ + "externalSubscriptions", + "externalBillingAccounts" + ], + "x-ms-enum": { + "name": "ExternalCloudProviderType", + "modelAsString": true, + "values": [ + { + "name": "externalSubscriptions", + "value": "externalSubscriptions" + }, + { + "name": "externalBillingAccounts", + "value": "externalBillingAccounts" + } + ] + } + }, + { + "name": "externalCloudProviderId", + "in": "path", + "description": "This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/ForecastDefinition" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ForecastResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ExternalBillingAccountForecast": { + "$ref": "./examples/ExternalBillingAccountForecast.json" + }, + "ExternalSubscriptionForecast": { + "$ref": "./examples/ExternalSubscriptionForecast.json" + } + } + } + }, + "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query": { + "post": { + "operationId": "Query_UsageByExternalCloudProviderType", + "description": "Query the usage data for external cloud provider type defined.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "externalCloudProviderType", + "in": "path", + "description": "The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account.", + "required": true, + "type": "string", + "enum": [ + "externalSubscriptions", + "externalBillingAccounts" + ], + "x-ms-enum": { + "name": "ExternalCloudProviderType", + "modelAsString": true, + "values": [ + { + "name": "externalSubscriptions", + "value": "externalSubscriptions" + }, + { + "name": "externalBillingAccounts", + "value": "externalBillingAccounts" + } + ] + } + }, + { + "name": "externalCloudProviderId", + "in": "path", + "description": "This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/QueryDefinition" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ExternalBillingAccountQueryList": { + "$ref": "./examples/ExternalBillingAccountsQuery.json" + }, + "ExternalSubscriptionsQuery": { + "$ref": "./examples/ExternalSubscriptionsQuery.json" + } + } + } + }, + "/providers/Microsoft.CostManagement/checkNameAvailability": { + "post": { + "operationId": "ScheduledActions_CheckNameAvailability", + "description": "Checks availability and correctness of the name for a scheduled action.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "checkNameAvailabilityRequest", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/CheckNameAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "ScheduledActionCheckNameAvailability": { + "$ref": "./examples/scheduledActions/checkNameAvailability-private-scheduledAction.json" + } + } + } + }, + "/providers/Microsoft.CostManagement/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "OperationList": { + "$ref": "./examples/OperationList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.CostManagement/scheduledActions": { + "get": { + "operationId": "ScheduledActions_List", + "tags": [ + "ScheduledActions" + ], + "description": "List a ScheduledAction", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "May be used to filter scheduled actions by properties/viewId. Supported operator is 'eq'.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ScheduledActionListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "PrivateScheduledActionsList": { + "$ref": "./examples/scheduledActions/scheduledActions-list-private.json" + }, + "PrivateScheduledActionsListFilterByViewId": { + "$ref": "./examples/scheduledActions/scheduledActions-listWithFilter-private.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.CostManagement/scheduledActions/{name}": { + "get": { + "operationId": "ScheduledActions_Get", + "tags": [ + "ScheduledActions" + ], + "description": "Get the private scheduled action by name.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "name", + "in": "path", + "description": "Scheduled action name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ScheduledAction" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "PrivateScheduledAction": { + "$ref": "./examples/scheduledActions/scheduledAction-get-private.json" + } + } + }, + "put": { + "operationId": "ScheduledActions_CreateOrUpdate", + "tags": [ + "ScheduledActions" + ], + "description": "Create or update a private scheduled action.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "name", + "in": "path", + "description": "Scheduled action name.", + "required": true, + "type": "string" + }, + { + "name": "If-Match", + "in": "header", + "description": "ETag of the Entity. Not required when creating an entity. Optional when updating an entity and can be specified to achieve optimistic concurrency.", + "required": false, + "type": "string" + }, + { + "name": "scheduledAction", + "in": "body", + "description": "Scheduled action to be created or updated.", + "required": true, + "schema": { + "$ref": "#/definitions/ScheduledAction" + } + } + ], + "responses": { + "200": { + "description": "Resource 'ScheduledAction' update operation succeeded", + "schema": { + "$ref": "#/definitions/ScheduledAction" + } + }, + "201": { + "description": "Resource 'ScheduledAction' create operation succeeded", + "schema": { + "$ref": "#/definitions/ScheduledAction" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "CreateOrUpdatePrivateScheduledAction": { + "$ref": "./examples/scheduledActions/scheduledAction-createOrUpdate-private.json" + } + } + }, + "delete": { + "operationId": "ScheduledActions_Delete", + "tags": [ + "ScheduledActions" + ], + "description": "Delete a private scheduled action.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "name", + "in": "path", + "description": "Scheduled action name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "PrivateScheduledActionDelete": { + "$ref": "./examples/scheduledActions/scheduledAction-delete-private.json" + } + } + } + }, + "/providers/Microsoft.CostManagement/scheduledActions/{name}/execute": { + "post": { + "operationId": "ScheduledActions_Run", + "tags": [ + "ScheduledActions" + ], + "description": "Processes a private scheduled action.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "name", + "in": "path", + "description": "Scheduled action name.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseWithNestedDetails" + } + } + }, + "x-ms-examples": { + "ScheduledActionSendNow": { + "$ref": "./examples/scheduledActions/scheduledAction-sendNow-private.json" + } + } + } + }, + "/providers/Microsoft.CostManagement/views": { + "get": { + "operationId": "Views_List", + "tags": [ + "Views" + ], + "description": "Lists all views by tenant and object.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ViewListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateViewList": { + "$ref": "./examples/PrivateViewList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.CostManagement/views/{viewName}": { + "get": { + "operationId": "Views_Get", + "tags": [ + "Views" + ], + "description": "Gets the view by view name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "viewName", + "in": "path", + "description": "View name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/View" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateView": { + "$ref": "./examples/PrivateView.json" + } + } + }, + "put": { + "operationId": "Views_CreateOrUpdate", + "tags": [ + "Views" + ], + "description": "The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "viewName", + "in": "path", + "description": "View name", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Parameters supplied to the CreateOrUpdate View operation.", + "required": true, + "schema": { + "$ref": "#/definitions/View" + } + } + ], + "responses": { + "200": { + "description": "Resource 'View' update operation succeeded", + "schema": { + "$ref": "#/definitions/View" + } + }, + "201": { + "description": "Resource 'View' create operation succeeded", + "schema": { + "$ref": "#/definitions/View" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CreateOrUpdatePrivateView": { + "$ref": "./examples/PrivateViewCreateOrUpdate.json" + } + } + }, + "delete": { + "operationId": "Views_Delete", + "tags": [ + "Views" + ], + "description": "The operation to delete a view.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "viewName", + "in": "path", + "description": "View name", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeletePrivateView": { + "$ref": "./examples/PrivateViewDelete.json" + } + } + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountId}/billingPeriods/{billingPeriodName}/providers/Microsoft.CostManagement/pricesheets/default/download": { + "post": { + "operationId": "PriceSheet_DownloadByBillingAccount", + "description": "Generates the pricesheet for the provided billing period asynchronously based on the Enrollment ID. This is for Enterprise Agreement customers.\n\n**Migrate to version 2025-03-01**\n\nYou can use the 2025-03-01 API version with the new URI:\n\n'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingPeriods/{billingPeriodName}/providers/Microsoft.CostManagement/pricesheets/default/download'\n\nWith a new schema detailed below, the new version of the price sheet provides additional information and includes prices for Azure Reserved Instances (RI) for the current billing period. We recommend downloading an Azure Price Sheet for when entering a new billing period if you would maintain an ongoing record of past Azure Reserved Instance (RI) pricing.\n\nThe EA Azure price sheet is available for billing periods in the past 13 months. To request a price sheet for a billing period older than 13 months, please contact support.\n\nThe Azure price sheet download experience has been updated from a single .csv file to a zip file containing multiple .csv files, each with max size of 75MB. The 2023-11-01 version has been upgraded to use http POST method; details can be found below.\n\nAll versions of the Microsoft.Consumption Azure Price Sheet - Download by Billing Account (including 2022-06-01, 2021-10-01, 2020-01-01-preview, 2019-10-01, 2019-05-01) are scheduled to be retired on 01 June 2026 and will no longer be supported after this date.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + }, + { + "name": "billingPeriodName", + "in": "path", + "description": "Billing Period Name.", + "required": true, + "type": "string", + "pattern": "^[0-9]*$" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EAPriceSheetForBillingPeriod": { + "$ref": "./examples/EAPriceSheetForBillingPeriod.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/OperationStatus" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/providers/Microsoft.CostManagement/pricesheets/default/download": { + "post": { + "operationId": "PriceSheet_DownloadByInvoice", + "description": "Gets a URL to download the pricesheet for an invoice. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountName", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string", + "pattern": "([A-Za-z0-9]+(-[A-Za-z0-9]+)+):([A-Za-z0-9]+(-[A-Za-z0-9]+)+)_[0-9]{4}-[0-9]{2}-[0-9]{2}" + }, + { + "name": "billingProfileName", + "in": "path", + "description": "Billing Profile Name.", + "required": true, + "type": "string", + "pattern": "([A-Za-z0-9]+(-[A-Za-z0-9]+)+)" + }, + { + "name": "invoiceName", + "in": "path", + "description": "The ID that uniquely identifies an invoice.", + "required": true, + "type": "string", + "pattern": "[A-Za-z0-9]+" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DownloadURL" + } + }, + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "OData-EntityId": { + "type": "string", + "description": "The operation entity Id GUID." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PricesheetDownload": { + "$ref": "./examples/PricesheetDownload.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/DownloadURL" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries": { + "get": { + "operationId": "BenefitUtilizationSummaries_ListByBillingProfileId", + "description": "Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and 'Monthly'.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + }, + { + "name": "billingProfileId", + "in": "path", + "description": "Billing Profile ID.", + "required": true, + "type": "string" + }, + { + "name": "grainParameter", + "in": "query", + "description": "Grain.", + "required": false, + "type": "string", + "enum": [ + "Hourly", + "Daily", + "Monthly" + ], + "x-ms-enum": { + "name": "GrainParameter", + "modelAsString": true, + "values": [ + { + "name": "Hourly", + "value": "Hourly", + "description": "Hourly grain corresponds to value per hour." + }, + { + "name": "Daily", + "value": "Daily", + "description": "Hourly grain corresponds to value per day." + }, + { + "name": "Monthly", + "value": "Monthly", + "description": "Hourly grain corresponds to value per month." + } + ] + } + }, + { + "name": "filter", + "in": "query", + "description": "Supports filtering by properties/benefitId, properties/benefitOrderId and properties/usageDate.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanUtilizationSummaries-BillingProfile": { + "$ref": "./examples/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { + "post": { + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByBillingProfile", + "description": "Triggers generation of a benefit utilization summaries report for the provided billing account and billing profile.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + }, + { + "name": "billingProfileId", + "in": "path", + "description": "Billing Profile ID.", + "required": true, + "type": "string" + }, + { + "name": "benefitUtilizationSummariesRequest", + "in": "body", + "description": "Async Benefit Utilization Summary report to be created.", + "required": true, + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GenerateUtilizationSummariesReportByBillingProfile": { + "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/BenefitUtilizationSummariesOperationStatus" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/generateReservationDetailsReport": { + "post": { + "operationId": "GenerateReservationDetailsReport_ByBillingProfileId", + "description": "Generates the reservations details report for provided date range asynchronously by billing profile. The Reservation usage details can be viewed by only certain enterprise roles by default. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/reservations/reservation-utilization#view-utilization-in-the-azure-portal-with-azure-rbac-access", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + }, + { + "name": "billingProfileId", + "in": "path", + "description": "Billing Profile ID.", + "required": true, + "type": "string" + }, + { + "name": "startDate", + "in": "query", + "description": "Start Date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End Date", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ReservationDetails": { + "$ref": "./examples/GenerateReservationDetailsReportByBillingProfile.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/OperationStatus" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.CostManagement/pricesheets/default/download": { + "post": { + "operationId": "PriceSheet_DownloadByBillingProfile", + "description": "Gets a URL to download the current month's pricesheet for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n\nYou can use the new 2023-09-01 API version for billing periods January 2023 onwards. Azure Reserved Instance (RI) pricing is only available through the new version of the API.\n\nDue to Azure product growth, the Azure price sheet download experience in this preview version will be updated from a single csv/json file to a Zip file containing multiple csv/json files, each with max size of 75MB.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountName", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string", + "pattern": "([A-Za-z0-9]+(-[A-Za-z0-9]+)+):([A-Za-z0-9]+(-[A-Za-z0-9]+)+)_[0-9]{4}-[0-9]{2}-[0-9]{2}" + }, + { + "name": "billingProfileName", + "in": "path", + "description": "Billing Profile Name.", + "required": true, + "type": "string", + "pattern": "([A-Za-z0-9]+(-[A-Za-z0-9]+)+)" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PricesheetDownloadProperties" + } + }, + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "OData-EntityId": { + "type": "string", + "description": "The operation entity Id GUID." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PricesheetDownloadByBillingProfile": { + "$ref": "./examples/PricesheetDownloadByBillingProfile.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/PricesheetDownloadProperties" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries": { + "get": { + "operationId": "BenefitUtilizationSummaries_ListByBillingAccountId", + "description": "Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain values: 'Daily' and 'Monthly'.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + }, + { + "name": "grainParameter", + "in": "query", + "description": "Grain.", + "required": false, + "type": "string", + "enum": [ + "Hourly", + "Daily", + "Monthly" + ], + "x-ms-enum": { + "name": "GrainParameter", + "modelAsString": true, + "values": [ + { + "name": "Hourly", + "value": "Hourly", + "description": "Hourly grain corresponds to value per hour." + }, + { + "name": "Daily", + "value": "Daily", + "description": "Hourly grain corresponds to value per day." + }, + { + "name": "Monthly", + "value": "Monthly", + "description": "Hourly grain corresponds to value per month." + } + ] + } + }, + { + "name": "filter", + "in": "query", + "description": "Supports filtering by properties/benefitId, properties/benefitOrderId and properties/usageDate.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanUtilizationSummaries-BillingAccount": { + "$ref": "./examples/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules": { + "get": { + "operationId": "CostAllocationRules_List", + "tags": [ + "CostAllocationRuleDefinitions" + ], + "description": "Get the list of all cost allocation rules for a billing account or enterprise enrollment.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CostAllocationRuleList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CostAllocationRulesList": { + "$ref": "./examples/CostAllocationRulesList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}": { + "get": { + "operationId": "CostAllocationRules_Get", + "tags": [ + "CostAllocationRuleDefinitions" + ], + "description": "Get a cost allocation rule by rule name and billing account or enterprise enrollment.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + }, + { + "name": "ruleName", + "in": "path", + "description": "Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.", + "required": true, + "type": "string", + "pattern": "[A-Za-z0-9\\-_]+" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CostAllocationRuleDefinition" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CostAllocationRules": { + "$ref": "./examples/CostAllocationRuleGet.json" + } + } + }, + "put": { + "operationId": "CostAllocationRules_CreateOrUpdate", + "tags": [ + "CostAllocationRuleDefinitions" + ], + "description": "Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + }, + { + "name": "ruleName", + "in": "path", + "description": "Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.", + "required": true, + "type": "string", + "pattern": "[A-Za-z0-9\\-_]+" + }, + { + "name": "costAllocationRule", + "in": "body", + "description": "Cost allocation rule to be created or updated", + "required": true, + "schema": { + "$ref": "#/definitions/CostAllocationRuleDefinition" + } + } + ], + "responses": { + "200": { + "description": "Resource 'CostAllocationRuleDefinition' update operation succeeded", + "schema": { + "$ref": "#/definitions/CostAllocationRuleDefinition" + } + }, + "201": { + "description": "Resource 'CostAllocationRuleDefinition' create operation succeeded", + "schema": { + "$ref": "#/definitions/CostAllocationRuleDefinition" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CostAllocationRulesCreateResourceGroup": { + "$ref": "./examples/CostAllocationRuleCreate.json" + }, + "CostAllocationRulesCreateTag": { + "$ref": "./examples/CostAllocationRuleCreateTag.json" + } + } + }, + "delete": { + "operationId": "CostAllocationRules_Delete", + "tags": [ + "CostAllocationRuleDefinitions" + ], + "description": "Delete cost allocation rule for billing account or enterprise enrollment.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + }, + { + "name": "ruleName", + "in": "path", + "description": "Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.", + "required": true, + "type": "string", + "pattern": "[A-Za-z0-9\\-_]+" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteCostAllocationRule": { + "$ref": "./examples/CostAllocationRuleDelete.json" + } + } + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/checkNameAvailability": { + "post": { + "operationId": "CostAllocationRules_CheckNameAvailability", + "description": "Checks availability and correctness of a name for a cost allocation rule", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + }, + { + "name": "costAllocationRuleCheckNameAvailabilityRequest", + "in": "body", + "description": "Cost allocation rule to be created or updated", + "required": true, + "schema": { + "$ref": "#/definitions/CostAllocationRuleCheckNameAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CostAllocationRuleCheckNameAvailabilityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "CostAllocationRuleCheckNameAvailability": { + "$ref": "./examples/CostAllocationRuleCheckNameAvailability.json" + } + } + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { + "post": { + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByBillingAccount", + "description": "Triggers generation of a benefit utilization summaries report for the provided billing account. This API supports only enrollment accounts.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + }, + { + "name": "benefitUtilizationSummariesRequest", + "in": "body", + "description": "Async Benefit Utilization Summary report to be created.", + "required": true, + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GenerateUtilizationSummariesReportByBillingAccount": { + "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/BenefitUtilizationSummariesOperationStatus" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/generateReservationDetailsReport": { + "post": { + "operationId": "GenerateReservationDetailsReport_ByBillingAccountId", + "description": "Generates the reservations details report for provided date range asynchronously based on enrollment id. The Reservation usage details can be viewed only by certain enterprise roles. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/understand-ea-roles#usage-and-costs-access-by-role", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string" + }, + { + "name": "startDate", + "in": "query", + "description": "Start Date", + "required": true, + "type": "string" + }, + { + "name": "endDate", + "in": "query", + "description": "End Date", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ReservationDetails": { + "$ref": "./examples/GenerateReservationDetailsReportByBillingAccount.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/OperationStatus" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries": { + "get": { + "operationId": "BenefitUtilizationSummaries_ListBySavingsPlanOrder", + "description": "Lists the savings plan utilization summaries for daily or monthly grain.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "Supports filtering by properties/usageDate.", + "required": false, + "type": "string" + }, + { + "name": "grainParameter", + "in": "query", + "description": "Grain.", + "required": false, + "type": "string", + "enum": [ + "Hourly", + "Daily", + "Monthly" + ], + "x-ms-enum": { + "name": "GrainParameter", + "modelAsString": true, + "values": [ + { + "name": "Hourly", + "value": "Hourly", + "description": "Hourly grain corresponds to value per hour." + }, + { + "name": "Daily", + "value": "Daily", + "description": "Hourly grain corresponds to value per day." + }, + { + "name": "Monthly", + "value": "Monthly", + "description": "Hourly grain corresponds to value per month." + } + ] + } + }, + { + "name": "savingsPlanOrderId", + "in": "path", + "description": "Savings plan order ID.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanUtilizationSummariesDaily": { + "$ref": "./examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { + "post": { + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanOrderId", + "description": "Triggers generation of a benefit utilization summaries report for the provided savings plan order.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "savingsPlanOrderId", + "in": "path", + "description": "Savings plan order ID.", + "required": true, + "type": "string" + }, + { + "name": "benefitUtilizationSummariesRequest", + "in": "body", + "description": "Async Benefit Utilization Summary report to be created.", + "required": true, + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GenerateUtilizationSummariesReportBySavingsPlanOrder": { + "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/BenefitUtilizationSummariesOperationStatus" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries": { + "get": { + "operationId": "BenefitUtilizationSummaries_ListBySavingsPlanId", + "description": "Lists the savings plan utilization summaries for daily or monthly grain.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "description": "Supports filtering by properties/usageDate.", + "required": false, + "type": "string" + }, + { + "name": "grainParameter", + "in": "query", + "description": "Grain.", + "required": false, + "type": "string", + "enum": [ + "Hourly", + "Daily", + "Monthly" + ], + "x-ms-enum": { + "name": "GrainParameter", + "modelAsString": true, + "values": [ + { + "name": "Hourly", + "value": "Hourly", + "description": "Hourly grain corresponds to value per hour." + }, + { + "name": "Daily", + "value": "Daily", + "description": "Hourly grain corresponds to value per day." + }, + { + "name": "Monthly", + "value": "Monthly", + "description": "Hourly grain corresponds to value per month." + } + ] + } + }, + { + "name": "savingsPlanOrderId", + "in": "path", + "description": "Savings plan order ID.", + "required": true, + "type": "string" + }, + { + "name": "savingsPlanId", + "in": "path", + "description": "Savings plan ID.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SavingsPlanUtilizationSummariesMonthlyWithSavingsPlanId": { + "$ref": "./examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { + "post": { + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanId", + "description": "Triggers generation of a benefit utilization summaries report for the provided savings plan.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "savingsPlanOrderId", + "in": "path", + "description": "Savings plan order ID.", + "required": true, + "type": "string" + }, + { + "name": "savingsPlanId", + "in": "path", + "description": "Savings plan ID.", + "required": true, + "type": "string" + }, + { + "name": "benefitUtilizationSummariesRequest", + "in": "body", + "description": "Async Benefit Utilization Summary report to be created.", + "required": true, + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GenerateUtilizationSummariesReportBySavingsPlan": { + "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/BenefitUtilizationSummariesOperationStatus" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { + "post": { + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByReservationOrderId", + "description": "Triggers generation of a benefit utilization summaries report for the provided reservation order.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "reservationOrderId", + "in": "path", + "description": "Reservation Order ID", + "required": true, + "type": "string" + }, + { + "name": "benefitUtilizationSummariesRequest", + "in": "body", + "description": "Async Benefit Utilization Summary report to be created.", + "required": true, + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GenerateUtilizationSummariesReportByReservationOrder": { + "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/BenefitUtilizationSummariesOperationStatus" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { + "post": { + "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByReservationId", + "description": "Triggers generation of a benefit utilization summaries report for the provided reservation.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "reservationOrderId", + "in": "path", + "description": "Reservation Order ID", + "required": true, + "type": "string" + }, + { + "name": "reservationId", + "in": "path", + "description": "Reservation ID", + "required": true, + "type": "string" + }, + { + "name": "benefitUtilizationSummariesRequest", + "in": "body", + "description": "Async Benefit Utilization Summary report to be created.", + "required": true, + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GenerateUtilizationSummariesReportByReservation": { + "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/BenefitUtilizationSummariesOperationStatus" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "AccumulatedType": { + "type": "string", + "description": "Show costs accumulated over time.", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "AccumulatedType", + "modelAsString": true, + "values": [ + { + "name": "true", + "value": "true" + }, + { + "name": "false", + "value": "false" + } + ] + } + }, + "ActionType": { + "type": "string", + "description": "Enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.", + "enum": [ + "Internal" + ], + "x-ms-enum": { + "name": "ActionType", + "modelAsString": true, + "values": [ + { + "name": "Internal", + "value": "Internal" + } + ] + } + }, + "Alert": { + "type": "object", + "description": "An individual alert.", + "properties": { + "properties": { + "$ref": "#/definitions/AlertProperties", + "description": "Alert properties.", + "x-ms-client-flatten": true + }, + "eTag": { + "$ref": "#/definitions/Azure.Core.eTag", + "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "AlertCategory": { + "type": "string", + "description": "Alert category", + "enum": [ + "Cost", + "Usage", + "Billing", + "System" + ], + "x-ms-enum": { + "name": "AlertCategory", + "modelAsString": true, + "values": [ + { + "name": "Cost", + "value": "Cost" + }, + { + "name": "Usage", + "value": "Usage" + }, + { + "name": "Billing", + "value": "Billing" + }, + { + "name": "System", + "value": "System" + } + ] + } + }, + "AlertCriteria": { + "type": "string", + "description": "Criteria that triggered alert", + "enum": [ + "CostThresholdExceeded", + "UsageThresholdExceeded", + "CreditThresholdApproaching", + "CreditThresholdReached", + "QuotaThresholdApproaching", + "QuotaThresholdReached", + "MultiCurrency", + "ForecastCostThresholdExceeded", + "ForecastUsageThresholdExceeded", + "InvoiceDueDateApproaching", + "InvoiceDueDateReached", + "CrossCloudNewDataAvailable", + "CrossCloudCollectionError", + "GeneralThresholdError" + ], + "x-ms-enum": { + "name": "AlertCriteria", + "modelAsString": true, + "values": [ + { + "name": "CostThresholdExceeded", + "value": "CostThresholdExceeded" + }, + { + "name": "UsageThresholdExceeded", + "value": "UsageThresholdExceeded" + }, + { + "name": "CreditThresholdApproaching", + "value": "CreditThresholdApproaching" + }, + { + "name": "CreditThresholdReached", + "value": "CreditThresholdReached" + }, + { + "name": "QuotaThresholdApproaching", + "value": "QuotaThresholdApproaching" + }, + { + "name": "QuotaThresholdReached", + "value": "QuotaThresholdReached" + }, + { + "name": "MultiCurrency", + "value": "MultiCurrency" + }, + { + "name": "ForecastCostThresholdExceeded", + "value": "ForecastCostThresholdExceeded" + }, + { + "name": "ForecastUsageThresholdExceeded", + "value": "ForecastUsageThresholdExceeded" + }, + { + "name": "InvoiceDueDateApproaching", + "value": "InvoiceDueDateApproaching" + }, + { + "name": "InvoiceDueDateReached", + "value": "InvoiceDueDateReached" + }, + { + "name": "CrossCloudNewDataAvailable", + "value": "CrossCloudNewDataAvailable" + }, + { + "name": "CrossCloudCollectionError", + "value": "CrossCloudCollectionError" + }, + { + "name": "GeneralThresholdError", + "value": "GeneralThresholdError" + } + ] + } + }, + "AlertOperator": { + "type": "string", + "description": "operator used to compare currentSpend with amount", + "enum": [ + "None", + "EqualTo", + "GreaterThan", + "GreaterThanOrEqualTo", + "LessThan", + "LessThanOrEqualTo" + ], + "x-ms-enum": { + "name": "AlertOperator", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None" + }, + { + "name": "EqualTo", + "value": "EqualTo" + }, + { + "name": "GreaterThan", + "value": "GreaterThan" + }, + { + "name": "GreaterThanOrEqualTo", + "value": "GreaterThanOrEqualTo" + }, + { + "name": "LessThan", + "value": "LessThan" + }, + { + "name": "LessThanOrEqualTo", + "value": "LessThanOrEqualTo" + } + ] + } + }, + "AlertProperties": { + "type": "object", + "description": "Alert properties.", + "properties": { + "definition": { + "$ref": "#/definitions/AlertPropertiesDefinition", + "description": "defines the type of alert" + }, + "description": { + "type": "string", + "description": "Alert description" + }, + "source": { + "$ref": "#/definitions/AlertSource", + "description": "Source of alert" + }, + "details": { + "$ref": "#/definitions/AlertPropertiesDetails", + "description": "Alert details" + }, + "costEntityId": { + "type": "string", + "description": "related budget" + }, + "status": { + "$ref": "#/definitions/AlertStatus", + "description": "alert status" + }, + "creationTime": { + "type": "string", + "description": "dateTime in which alert was created" + }, + "closeTime": { + "type": "string", + "description": "dateTime in which alert was closed" + }, + "modificationTime": { + "type": "string", + "description": "dateTime in which alert was last modified" + }, + "statusModificationUserName": { + "type": "string", + "description": "User who last modified the alert" + }, + "statusModificationTime": { + "type": "string", + "description": "dateTime in which the alert status was last modified" + } + } + }, + "AlertPropertiesDefinition": { + "type": "object", + "description": "defines the type of alert", + "properties": { + "type": { + "$ref": "#/definitions/AlertType", + "description": "type of alert" + }, + "category": { + "$ref": "#/definitions/AlertCategory", + "description": "Alert category" + }, + "criteria": { + "$ref": "#/definitions/AlertCriteria", + "description": "Criteria that triggered alert" + } + } + }, + "AlertPropertiesDetails": { + "type": "object", + "description": "Alert details", + "properties": { + "timeGrainType": { + "$ref": "#/definitions/AlertTimeGrainType", + "description": "Type of timegrain cadence" + }, + "periodStartDate": { + "type": "string", + "description": "datetime of periodStartDate" + }, + "triggeredBy": { + "type": "string", + "description": "notificationId that triggered this alert" + }, + "resourceGroupFilter": { + "type": "array", + "description": "array of resourceGroups to filter by", + "items": {}, + "x-ms-identifiers": [] + }, + "resourceFilter": { + "type": "array", + "description": "array of resources to filter by", + "items": {}, + "x-ms-identifiers": [] + }, + "meterFilter": { + "type": "array", + "description": "array of meters to filter by", + "items": {}, + "x-ms-identifiers": [] + }, + "tagFilter": { + "type": "object", + "description": "tags to filter by", + "additionalProperties": {} + }, + "threshold": { + "type": "number", + "format": "decimal", + "description": "notification threshold percentage as a decimal which activated this alert" + }, + "operator": { + "$ref": "#/definitions/AlertOperator", + "description": "operator used to compare currentSpend with amount" + }, + "amount": { + "type": "number", + "format": "decimal", + "description": "budget threshold amount" + }, + "unit": { + "type": "string", + "description": "unit of currency being used" + }, + "currentSpend": { + "type": "number", + "format": "decimal", + "description": "current spend" + }, + "contactEmails": { + "type": "array", + "description": "list of emails to contact", + "items": { + "type": "string" + } + }, + "contactGroups": { + "type": "array", + "description": "list of action groups to broadcast to", + "items": { + "type": "string" + } + }, + "contactRoles": { + "type": "array", + "description": "list of contact roles", + "items": { + "type": "string" + } + }, + "overridingAlert": { + "type": "string", + "description": "overriding alert" + }, + "departmentName": { + "type": "string", + "description": "department name" + }, + "companyName": { + "type": "string", + "description": "company name" + }, + "enrollmentNumber": { + "type": "string", + "description": "enrollment number" + }, + "enrollmentStartDate": { + "type": "string", + "description": "datetime of enrollmentStartDate" + }, + "enrollmentEndDate": { + "type": "string", + "description": "datetime of enrollmentEndDate" + }, + "invoicingThreshold": { + "type": "number", + "format": "decimal", + "description": "invoicing threshold" + } + } + }, + "AlertSource": { + "type": "string", + "description": "Source of alert", + "enum": [ + "Preset", + "User" + ], + "x-ms-enum": { + "name": "AlertSource", + "modelAsString": true, + "values": [ + { + "name": "Preset", + "value": "Preset" + }, + { + "name": "User", + "value": "User" + } + ] + } + }, + "AlertStatus": { + "type": "string", + "description": "alert status", + "enum": [ + "None", + "Active", + "Overridden", + "Resolved", + "Dismissed" + ], + "x-ms-enum": { + "name": "AlertStatus", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None" + }, + { + "name": "Active", + "value": "Active" + }, + { + "name": "Overridden", + "value": "Overridden" + }, + { + "name": "Resolved", + "value": "Resolved" + }, + { + "name": "Dismissed", + "value": "Dismissed" + } + ] + } + }, + "AlertTimeGrainType": { + "type": "string", + "description": "Type of timegrain cadence", + "enum": [ + "None", + "Monthly", + "Quarterly", + "Annually", + "BillingMonth", + "BillingQuarter", + "BillingAnnual" + ], + "x-ms-enum": { + "name": "AlertTimeGrainType", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None" + }, + { + "name": "Monthly", + "value": "Monthly" + }, + { + "name": "Quarterly", + "value": "Quarterly" + }, + { + "name": "Annually", + "value": "Annually" + }, + { + "name": "BillingMonth", + "value": "BillingMonth" + }, + { + "name": "BillingQuarter", + "value": "BillingQuarter" + }, + { + "name": "BillingAnnual", + "value": "BillingAnnual" + } + ] + } + }, + "AlertType": { + "type": "string", + "description": "type of alert", + "enum": [ + "Budget", + "Invoice", + "Credit", + "Quota", + "General", + "xCloud", + "BudgetForecast" + ], + "x-ms-enum": { + "name": "AlertType", + "modelAsString": true, + "values": [ + { + "name": "Budget", + "value": "Budget" + }, + { + "name": "Invoice", + "value": "Invoice" + }, + { + "name": "Credit", + "value": "Credit" + }, + { + "name": "Quota", + "value": "Quota" + }, + { + "name": "General", + "value": "General" + }, + { + "name": "xCloud", + "value": "xCloud" + }, + { + "name": "BudgetForecast", + "value": "BudgetForecast" + } + ] + } + }, + "AlertsResult": { + "type": "object", + "description": "Result of alerts.", + "properties": { + "value": { + "type": "array", + "description": "List of alerts.", + "items": { + "$ref": "#/definitions/Alert" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of alerts results if there are any.", + "readOnly": true + } + } + }, + "AsyncOperationStatusProperties": { + "type": "object", + "description": "Object representing the report url and valid until date of the async report generated.", + "properties": { + "reportUrl": { + "$ref": "#/definitions/BenefitUtilizationSummaryReportSchema", + "format": "password", + "description": "Sas url to the async benefit utilization summaries report. Will be empty if the report is in Running or Failed state.", + "x-ms-secret": true + }, + "secondaryReportUrl": { + "$ref": "#/definitions/BenefitUtilizationSummaryReportSchema", + "format": "password", + "description": "Sas url to async benefit utilization summaries report in secondary storage in case of primary outage. Will be empty if the report is in Running or Failed state.", + "x-ms-secret": true + }, + "validUntil": { + "type": "string", + "format": "date-time", + "description": "The date that the sas url provided in reportUrl expires." + } + } + }, + "Azure.Core.eTag": { + "type": "string", + "description": "The ETag (or entity tag) HTTP response header is an identifier for a specific version of a resource.\nIt lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content was not changed.\n\nIt is a string of ASCII characters placed between double quotes, like \"675af34563dc-tr34\"." + }, + "BenefitKind": { + "type": "string", + "description": "Kind/type of the benefit.", + "enum": [ + "IncludedQuantity", + "Reservation", + "SavingsPlan" + ], + "x-ms-enum": { + "name": "BenefitKind", + "modelAsString": true, + "values": [ + { + "name": "IncludedQuantity", + "value": "IncludedQuantity", + "description": "Benefit is IncludedQuantity." + }, + { + "name": "Reservation", + "value": "Reservation", + "description": "Benefit is Reservation." + }, + { + "name": "SavingsPlan", + "value": "SavingsPlan", + "description": "Benefit is SavingsPlan." + } + ] + } + }, + "BenefitResource": { + "type": "object", + "description": "The benefit resource model definition.", + "properties": { + "kind": { + "$ref": "#/definitions/BenefitKind", + "description": "Reservation or SavingsPlan." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ] + }, + "BenefitUtilizationSummariesListResult": { + "type": "object", + "description": "List of benefit utilization summaries.", + "properties": { + "value": { + "type": "array", + "description": "The list of benefit utilization summaries.", + "items": { + "$ref": "#/definitions/BenefitUtilizationSummary" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "The link (URL) to the next page of results." + } + } + }, + "BenefitUtilizationSummariesOperationStatus": { + "type": "object", + "description": "Status of a benefit utilization summaries report. Provides Async Benefit Utilization Summaries Request input, status, and report sas url.", + "properties": { + "input": { + "$ref": "#/definitions/BenefitUtilizationSummariesRequest", + "description": "Input given to create the benefit utilization summaries report." + }, + "status": { + "$ref": "#/definitions/OperationStatusType", + "description": "The status of the creation of the benefit utilization summaries report." + }, + "properties": { + "$ref": "#/definitions/AsyncOperationStatusProperties", + "description": "Contains sas url to the async benefit utilization summaries report and a date that the url is valid until. These values will be empty if the report is in a Running or Failed state" + } + } + }, + "BenefitUtilizationSummariesRequest": { + "type": "object", + "description": "Properties of an async benefit utilization summaries request.", + "properties": { + "billingAccountId": { + "type": "string", + "description": "Billing account the benefit utilization summaries report is for. Required for billing account and billing profile scopes. Not supported for any benefit scopes." + }, + "billingProfileId": { + "type": "string", + "description": "Billing profile id the benefit utilization summaries report is for. Required for billing profile scope. Not supported for billing account or any benefit scopes." + }, + "benefitOrderId": { + "type": "string", + "description": "Benefit order id the benefit utilization summaries report is for. Required for benefit order and benefit id scopes. Not supported for any billing scopes." + }, + "benefitId": { + "type": "string", + "description": "Benefit id the benefit utilization summaries report is for. Required for benefit id scope. Not supported for benefit order or any billing scopes." + }, + "grain": { + "$ref": "#/definitions/Grain", + "description": "The grain the summaries data is served at in the report. Accepted values are 'Daily' or 'Monthly'." + }, + "startDate": { + "type": "string", + "format": "date-time", + "description": "The start date of the summaries data that will be served in the report." + }, + "endDate": { + "type": "string", + "format": "date-time", + "description": "The end date of the summaries data that will be served in the report." + }, + "kind": { + "$ref": "#/definitions/BenefitKind", + "description": "The type of benefit data requested. Required for billing account and billing profile scopes. Implied and not to be passed at benefit scopes. Supported values are Reservation and SavingsPlan" + } + }, + "required": [ + "grain", + "startDate", + "endDate" + ] + }, + "BenefitUtilizationSummary": { + "type": "object", + "description": "Benefit utilization summary resource.", + "properties": { + "kind": { + "$ref": "#/definitions/BenefitKind", + "description": "Supported values: 'SavingsPlan'." + } + }, + "discriminator": "kind", + "required": [ + "kind" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ] + }, + "BenefitUtilizationSummaryProperties": { + "type": "object", + "description": "The properties of a benefit utilization summary.", + "properties": { + "armSkuName": { + "type": "string", + "description": "ARM SKU name. For example, 'Compute_Savings_Plan' for savings plan.", + "readOnly": true + }, + "benefitId": { + "type": "string", + "description": "The benefit ID is the identifier of the benefit.", + "readOnly": true + }, + "benefitOrderId": { + "type": "string", + "description": "The benefit order ID is the identifier for a benefit purchase.", + "readOnly": true + }, + "benefitType": { + "$ref": "#/definitions/BenefitKind", + "description": "The benefit type. Supported values: 'SavingsPlan'." + }, + "usageDate": { + "type": "string", + "format": "date-time", + "description": "Date corresponding to the utilization summary record. If the grain of data is monthly, value for this field will be first day of the month.", + "readOnly": true + } + } + }, + "BenefitUtilizationSummaryReportSchema": { + "type": "string", + "description": "The CSV file from the reportUrl and secondaryReportUrl blob link will consist of the following columns of benefit utilization data. UtilizedPercentage will be 0 for savings plans reports and non data bricks reservations. Utilization percentages will be 0 for data bricks reservations.", + "enum": [ + "Kind", + "AvgUtilizationPercentage", + "BenefitOrderId", + "BenefitId", + "BenefitType", + "MaxUtilizationPercentage", + "MinUtilizationPercentage", + "UsageDate", + "UtilizedPercentage" + ], + "x-ms-enum": { + "name": "BenefitUtilizationSummaryReportSchema", + "modelAsString": true, + "values": [ + { + "name": "Kind", + "value": "Kind" + }, + { + "name": "AvgUtilizationPercentage", + "value": "AvgUtilizationPercentage" + }, + { + "name": "BenefitOrderId", + "value": "BenefitOrderId" + }, + { + "name": "BenefitId", + "value": "BenefitId" + }, + { + "name": "BenefitType", + "value": "BenefitType" + }, + { + "name": "MaxUtilizationPercentage", + "value": "MaxUtilizationPercentage" + }, + { + "name": "MinUtilizationPercentage", + "value": "MinUtilizationPercentage" + }, + { + "name": "UsageDate", + "value": "UsageDate" + }, + { + "name": "UtilizedPercentage", + "value": "UtilizedPercentage" + } + ] + } + }, + "BlobInfo": { + "type": "object", + "description": "The blob information generated by this operation.", + "properties": { + "blobLink": { + "type": "string", + "description": "Link to the blob to download file." + }, + "byteCount": { + "type": "integer", + "format": "int64", + "description": "Bytes in the blob." + } + } + }, + "Budget": { + "type": "object", + "description": "A budget resource.", + "properties": { + "properties": { + "$ref": "#/definitions/BudgetProperties", + "description": "The properties of the budget.", + "x-ms-client-flatten": true + }, + "eTag": { + "$ref": "#/definitions/Azure.Core.eTag", + "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "BudgetComparisonExpression": { + "type": "object", + "description": "The comparison expression to be used in the budgets.", + "properties": { + "name": { + "type": "string", + "description": "The name of the column to use in comparison." + }, + "operator": { + "$ref": "#/definitions/BudgetOperatorType", + "description": "The operator to use for comparison." + }, + "values": { + "type": "array", + "description": "Array of values to use for comparison", + "minItems": 0, + "items": { + "type": "string" + } + } + }, + "required": [ + "name", + "operator", + "values" + ] + }, + "BudgetFilter": { + "type": "object", + "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.", + "properties": { + "and": { + "type": "array", + "description": "The logical \"AND\" expression. Must have at least 2 items.\n\nSupported for CategoryType(s): Cost.", + "minItems": 0, + "items": { + "$ref": "#/definitions/BudgetFilterProperties" + }, + "x-ms-identifiers": [] + }, + "dimensions": { + "$ref": "#/definitions/BudgetComparisonExpression", + "description": "Has comparison expression for a dimension.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization**\n- ReservationId\n- ReservedResourceType" + }, + "tags": { + "$ref": "#/definitions/BudgetComparisonExpression", + "description": "Has comparison expression for a tag.\n\nSupported for CategoryType(s): Cost." + } + } + }, + "BudgetFilterProperties": { + "type": "object", + "description": "The Dimensions or Tags to filter a budget by.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.", + "properties": { + "dimensions": { + "$ref": "#/definitions/BudgetComparisonExpression", + "description": "Has comparison expression for a dimension.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization**\n- ReservationId\n- ReservedResourceType" + }, + "tags": { + "$ref": "#/definitions/BudgetComparisonExpression", + "description": "Has comparison expression for a tag.\n\nSupported for CategoryType(s): Cost." + } + } + }, + "BudgetNotificationOperatorType": { + "type": "string", + "description": "The comparison operator.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported operators for **CategoryType: Cost**\n- GreaterThan\n- GreaterThanOrEqualTo\n\nSupported operators for **CategoryType: ReservationUtilization**\n- LessThan", + "enum": [ + "EqualTo", + "GreaterThan", + "GreaterThanOrEqualTo", + "LessThan" + ], + "x-ms-enum": { + "name": "BudgetNotificationOperatorType", + "modelAsString": true, + "values": [ + { + "name": "EqualTo", + "value": "EqualTo", + "description": "Notification will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future.\n\nSupported for CategoryType(s): Cost." + }, + { + "name": "GreaterThan", + "value": "GreaterThan", + "description": "Notification will be triggered if the evaluated cost is greater than the threshold value. Note: This is the recommended OperatorType while configuring Budget Alert.\n\nSupported for CategoryType(s): Cost." + }, + { + "name": "GreaterThanOrEqualTo", + "value": "GreaterThanOrEqualTo", + "description": "Notification will be triggered if the evaluated cost is greater than or equal to the threshold value.\n\nSupported for CategoryType(s): Cost." + }, + { + "name": "LessThan", + "value": "LessThan", + "description": "Notification will be triggered if any Reservations in the scope of the Reservation Utilization Alert Rule have a utilization less than the threshold percentage.\n\nSupported for CategoryType(s): ReservationUtilization." + } + ] + } + }, + "BudgetOperatorType": { + "type": "string", + "description": "The operator to use for comparison.", + "enum": [ + "In" + ], + "x-ms-enum": { + "name": "BudgetOperatorType", + "modelAsString": true, + "values": [ + { + "name": "In", + "value": "In" + } + ] + } + }, + "BudgetProperties": { + "type": "object", + "description": "The properties of the budget.", + "properties": { + "category": { + "$ref": "#/definitions/CategoryType", + "description": "The category of the budget.\n- 'Cost' defines a Budget.\n- 'ReservationUtilization' defines a Reservation Utilization Alert Rule." + }, + "amount": { + "type": "number", + "format": "float", + "description": "The total amount of cost to track with the budget.\n\nSupported for CategoryType(s): Cost.\n\nRequired for CategoryType(s): Cost." + }, + "timeGrain": { + "$ref": "#/definitions/TimeGrainType", + "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported timeGrainTypes for **CategoryType: Cost**\n\n- Monthly\n- Quarterly\n- Annually\n- BillingMonth*\n- BillingQuarter*\n- BillingAnnual*\n\n*only supported for Web Direct customers.\n\nSupported timeGrainTypes for **CategoryType: ReservationUtilization**\n- Last7Days\n- Last30Days\n\nRequired for CategoryType(s): Cost, ReservationUtilization." + }, + "timePeriod": { + "$ref": "#/definitions/BudgetTimePeriod", + "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\nRequired for CategoryType(s): Cost, ReservationUtilization." + }, + "filter": { + "$ref": "#/definitions/BudgetFilter", + "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\nSupported for CategoryType(s): Cost, ReservationUtilization." + }, + "currentSpend": { + "$ref": "#/definitions/CurrentSpend", + "description": "The current amount of cost which is being tracked for a budget.\n\nSupported for CategoryType(s): Cost.", + "readOnly": true + }, + "notifications": { + "type": "object", + "description": "Dictionary of notifications associated with the budget.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\n- Constraints for **CategoryType: Cost** - Budget can have up to 5 notifications with thresholdType: Actual and 5 notifications with thresholdType: Forecasted.\n- Constraints for **CategoryType: ReservationUtilization** - Only one notification allowed. thresholdType is not applicable.", + "additionalProperties": { + "$ref": "#/definitions/Notification" + } + }, + "forecastSpend": { + "$ref": "#/definitions/ForecastSpend", + "description": "The forecasted cost which is being tracked for a budget.\n\nSupported for CategoryType(s): Cost.", + "readOnly": true + } + }, + "required": [ + "category", + "timeGrain", + "timePeriod" + ] + }, + "BudgetTimePeriod": { + "type": "object", + "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\nRequired for CategoryType(s): Cost, ReservationUtilization.", + "properties": { + "startDate": { + "type": "string", + "format": "date-time", + "description": "The start date for the budget.\n\n- Constraints for **CategoryType: Cost** - Must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period.\n\n- Constraints for **CategoryType: ReservationUtilization** - Must be on or after the current date and less than the end date." + }, + "endDate": { + "type": "string", + "format": "date-time", + "description": "The end date for the budget.\n\n- Constraints for **CategoryType: Cost** - No constraints. If not provided, we default this to 10 years from the start date.\n\n- Constraints for **CategoryType: ReservationUtilization** - End date cannot be more than 3 years after the start date." + } + }, + "required": [ + "startDate" + ] + }, + "BudgetsListResult": { + "type": "object", + "description": "Result of listing budgets. It contains a list of available budgets in the scope provided.", + "properties": { + "value": { + "type": "array", + "description": "The list of budgets.", + "items": { + "$ref": "#/definitions/Budget" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results.\\r\\nIt's null for now, added for future use." + } + } + }, + "CategoryType": { + "type": "string", + "description": "The category of the budget.\n- 'Cost' defines a Budget.\n- 'ReservationUtilization' defines a Reservation Utilization Alert Rule.", + "enum": [ + "Cost", + "ReservationUtilization" + ], + "x-ms-enum": { + "name": "CategoryType", + "modelAsString": true, + "values": [ + { + "name": "Cost", + "value": "Cost", + "description": "A Budget that evaluates monetary cost of Azure resources against an amount, and alerts based on a configured notification threshold." + }, + { + "name": "ReservationUtilization", + "value": "ReservationUtilization", + "description": "An Alert Rule that evaluates the utilization percentage of Azure Reservations, and alerts based on a configured notification threshold." + } + ] + } + }, + "ChartType": { + "type": "string", + "description": "Chart type of the main view in Cost Analysis. Required.", + "enum": [ + "Area", + "Line", + "StackedColumn", + "GroupedColumn", + "Table" + ], + "x-ms-enum": { + "name": "ChartType", + "modelAsString": true, + "values": [ + { + "name": "Area", + "value": "Area" + }, + { + "name": "Line", + "value": "Line" + }, + { + "name": "StackedColumn", + "value": "StackedColumn" + }, + { + "name": "GroupedColumn", + "value": "GroupedColumn" + }, + { + "name": "Table", + "value": "Table" + } + ] + } + }, + "CheckNameAvailabilityReason": { + "type": "string", + "description": "The reason why the given name is not available.", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "CheckNameAvailabilityReason", + "modelAsString": true, + "values": [ + { + "name": "Invalid", + "value": "Invalid" + }, + { + "name": "AlreadyExists", + "value": "AlreadyExists" + } + ] + } + }, + "CommonExportProperties": { + "type": "object", + "description": "The common properties of the export.", + "properties": { + "format": { + "$ref": "#/definitions/FormatType", + "description": "The format of the export being delivered." + }, + "deliveryInfo": { + "$ref": "#/definitions/ExportDeliveryInfo", + "description": "Has delivery information for the export." + }, + "definition": { + "$ref": "#/definitions/ExportDefinition", + "description": "Has the definition for the export." + }, + "runHistory": { + "$ref": "#/definitions/ExportExecutionListResult", + "description": "If requested, has the most recent run history for the export." + }, + "partitionData": { + "type": "boolean", + "description": "If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file." + }, + "dataOverwriteBehavior": { + "$ref": "#/definitions/DataOverwriteBehaviorType", + "description": "Allow customers to select overwrite data(OverwritePreviousReport) for exports. This setting will enable overwrite data for the same month in customer storage account. By default set to CreateNewReport." + }, + "compressionMode": { + "$ref": "#/definitions/CompressionModeType", + "description": "Allow customers to select compress data for exports. This setting will enable destination file compression scheme at runtime. By default set to None. Gzip is for csv and snappy for parquet." + }, + "exportDescription": { + "type": "string", + "description": "The export description set by customer at time of export creation/update." + }, + "nextRunTimeEstimate": { + "type": "string", + "format": "date-time", + "description": "If the export has an active schedule, provides an estimate of the next run time.", + "readOnly": true + }, + "systemSuspensionContext": { + "$ref": "#/definitions/ExportSuspensionContext", + "description": "The export suspension reason if export is in SystemSuspended state. This is not populated currently.", + "readOnly": true + } + }, + "required": [ + "deliveryInfo", + "definition" + ] + }, + "CompressionModeType": { + "type": "string", + "description": "Allow customers to select compress data for exports. This setting will enable destination file compression scheme at runtime. By default set to None. Gzip is for csv and snappy for parquet.", + "enum": [ + "gzip", + "snappy", + "none" + ], + "x-ms-enum": { + "name": "CompressionModeType", + "modelAsString": true, + "values": [ + { + "name": "gzip", + "value": "gzip" + }, + { + "name": "snappy", + "value": "snappy" + }, + { + "name": "none", + "value": "none" + } + ] + } + }, + "CostAllocationPolicyType": { + "type": "string", + "description": "Method to use for allocating cost. FixedProportion indicates that cost will be split based on specified percentage values.", + "enum": [ + "FixedProportion" + ], + "x-ms-enum": { + "name": "CostAllocationPolicyType", + "modelAsString": true, + "values": [ + { + "name": "FixedProportion", + "value": "FixedProportion" + } + ] + } + }, + "CostAllocationProportion": { + "type": "object", + "description": "Target resources and allocation", + "properties": { + "name": { + "type": "string", + "description": "Target resource for cost allocation" + }, + "percentage": { + "type": "number", + "format": "float", + "description": "Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00." + } + }, + "required": [ + "name", + "percentage" + ] + }, + "CostAllocationResource": { + "type": "object", + "description": "Common values for resources for cost allocation", + "properties": { + "resourceType": { + "$ref": "#/definitions/CostAllocationResourceType", + "description": "Type of resources contained in this cost allocation rule" + }, + "name": { + "type": "string", + "description": "If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag" + } + }, + "required": [ + "resourceType", + "name" + ] + }, + "CostAllocationResourceType": { + "type": "string", + "description": "Category of resource to use for allocation.", + "enum": [ + "Dimension", + "Tag" + ], + "x-ms-enum": { + "name": "CostAllocationResourceType", + "modelAsString": true, + "values": [ + { + "name": "Dimension", + "value": "Dimension", + "description": "Indicates an Azure dimension such as a subscription id or resource group name is being used for allocation." + }, + { + "name": "Tag", + "value": "Tag", + "description": "Allocates cost based on Azure Tag key value pairs." + } + ] + } + }, + "CostAllocationRuleCheckNameAvailabilityRequest": { + "type": "object", + "description": "The cost allocation rule check name availability request", + "properties": { + "name": { + "type": "string", + "description": "Rule name" + }, + "type": { + "type": "string", + "description": "Resource type. This is expected to be Microsoft.CostManagement/costAllocationRules" + } + } + }, + "CostAllocationRuleCheckNameAvailabilityResponse": { + "type": "object", + "description": "The cost allocation rule check name availability response", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Whether this rule name is available" + }, + "reason": { + "$ref": "#/definitions/Reason", + "description": "The reason this name is not available" + }, + "message": { + "type": "string", + "description": "Error message if the name is not available" + } + } + }, + "CostAllocationRuleDefinition": { + "type": "object", + "description": "The cost allocation rule model definition", + "properties": { + "properties": { + "$ref": "#/definitions/CostAllocationRuleProperties", + "description": "Cost allocation rule properties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "CostAllocationRuleDetails": { + "type": "object", + "description": "Resource details of the cost allocation rule", + "properties": { + "sourceResources": { + "type": "array", + "description": "Source resources for cost allocation. At this time, this list can contain no more than one element.", + "items": { + "$ref": "#/definitions/SourceCostAllocationResource" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "targetResources": { + "type": "array", + "description": "Target resources for cost allocation. At this time, this list can contain no more than one element.", + "items": { + "$ref": "#/definitions/TargetCostAllocationResource" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "CostAllocationRuleList": { + "type": "object", + "description": "Result of listing cost allocation rules. It contains a list of available rules in the billing account or enterprise enrollment provided.", + "properties": { + "value": { + "type": "array", + "description": "The list of cost allocation rules.", + "items": { + "$ref": "#/definitions/CostAllocationRuleDefinition" + }, + "x-ms-identifiers": [ + "id" + ] + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of rule list results if there are any." + } + } + }, + "CostAllocationRuleProperties": { + "type": "object", + "description": "The properties of a cost allocation rule", + "properties": { + "description": { + "type": "string", + "description": "Description of a cost allocation rule." + }, + "details": { + "$ref": "#/definitions/CostAllocationRuleDetails", + "description": "Resource information for the cost allocation rule" + }, + "status": { + "$ref": "#/definitions/RuleStatus", + "description": "Status of the rule" + }, + "createdDate": { + "type": "string", + "format": "date-time", + "description": "Time at which the rule was created. Rules that change cost for the same resource are applied in order of creation.", + "readOnly": true + }, + "updatedDate": { + "type": "string", + "format": "date-time", + "description": "Time at which the rule was last updated.", + "readOnly": true + } + }, + "required": [ + "details", + "status" + ] + }, + "CostDetailsDataFormat": { + "type": "string", + "description": "The data format of the report", + "enum": [ + "Csv" + ], + "x-ms-enum": { + "name": "CostDetailsDataFormat", + "modelAsString": true, + "values": [ + { + "name": "CsvCostDetailsDataFormat", + "value": "Csv", + "description": "Csv data format." + } + ] + } + }, + "CostDetailsMetricType": { + "type": "string", + "description": "The type of the detailed report. By default ActualCost is provided", + "enum": [ + "ActualCost", + "AmortizedCost" + ], + "x-ms-enum": { + "name": "CostDetailsMetricType", + "modelAsString": true, + "values": [ + { + "name": "ActualCostCostDetailsMetricType", + "value": "ActualCost", + "description": "Actual cost data." + }, + { + "name": "AmortizedCostCostDetailsMetricType", + "value": "AmortizedCost", + "description": "Amortized cost data." + } + ] + } + }, + "CostDetailsOperationResults": { + "type": "object", + "description": "The result of the long running operation for cost details Api.", + "properties": { + "status": { + "$ref": "#/definitions/CostDetailsStatusType", + "description": "The status of the cost details operation" + }, + "manifest": { + "$ref": "#/definitions/ReportManifest", + "description": "The manifest of the report generated by the operation.", + "x-ms-client-flatten": true + }, + "validTill": { + "type": "string", + "format": "date-time", + "description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z." + }, + "error": { + "$ref": "#/definitions/ErrorDetails", + "description": "The details of the error." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "CostDetailsStatusType": { + "type": "string", + "description": "The status of the cost details operation", + "enum": [ + "Completed", + "NoDataFound", + "Failed" + ], + "x-ms-enum": { + "name": "CostDetailsStatusType", + "modelAsString": true, + "values": [ + { + "name": "CompletedCostDetailsStatusType", + "value": "Completed", + "description": "Operation is Completed." + }, + { + "name": "NoDataFoundCostDetailsStatusType", + "value": "NoDataFound", + "description": "Operation is Completed and no cost data found." + }, + { + "name": "FailedCostDetailsStatusType", + "value": "Failed", + "description": "Operation Failed." + } + ] + } + }, + "CostDetailsTimePeriod": { + "type": "object", + "description": "The start and end date for pulling data for the cost detailed report. API only allows data to be pulled for 1 month or less and no older than 13 months.", + "properties": { + "start": { + "type": "string", + "description": "The start date to pull data from. example format 2020-03-15" + }, + "end": { + "type": "string", + "description": "The end date to pull data to. example format 2020-03-15" + } + }, + "required": [ + "start", + "end" + ] + }, + "CostManagementOperation": { + "type": "object", + "description": "A Cost management REST API operation.", + "properties": { + "id": { + "type": "string", + "description": "Operation id: {provider}/{resource}/{operation}.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Operation" + } + ] + }, + "CostManagementProxyResource": { + "type": "object", + "description": "The Resource model definition.", + "properties": { + "id": { + "type": "string", + "description": "Resource Id.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Resource name.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Resource type.", + "readOnly": true + }, + "eTag": { + "type": "string", + "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not." + } + } + }, + "CostManagementResource": { + "type": "object", + "description": "The Resource model definition.", + "properties": { + "id": { + "type": "string", + "description": "Resource Id.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Resource name.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Resource type.", + "readOnly": true + }, + "location": { + "type": "string", + "description": "Location of the resource.", + "readOnly": true + }, + "sku": { + "type": "string", + "description": "SKU of the resource.", + "readOnly": true + }, + "eTag": { + "type": "string", + "description": "ETag of the resource.", + "readOnly": true + }, + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + }, + "readOnly": true + } + } + }, + "CreatedByType": { + "type": "string", + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "CreatedByType", + "modelAsString": true, + "values": [ + { + "name": "User", + "value": "User" + }, + { + "name": "Application", + "value": "Application" + }, + { + "name": "ManagedIdentity", + "value": "ManagedIdentity" + }, + { + "name": "Key", + "value": "Key" + } + ] + } + }, + "CultureCode": { + "type": "string", + "description": "Language in which the recipient will receive the notification,\n\nSupported for CategoryType(s): Cost, ReservationUtilization.", + "enum": [ + "en-us", + "ja-jp", + "zh-cn", + "de-de", + "es-es", + "fr-fr", + "it-it", + "ko-kr", + "pt-br", + "ru-ru", + "zh-tw", + "cs-cz", + "pl-pl", + "tr-tr", + "da-dk", + "en-gb", + "hu-hu", + "nb-no", + "nl-nl", + "pt-pt", + "sv-se" + ], + "x-ms-enum": { + "name": "CultureCode", + "modelAsString": true, + "values": [ + { + "name": "en-us", + "value": "en-us" + }, + { + "name": "ja-jp", + "value": "ja-jp" + }, + { + "name": "zh-cn", + "value": "zh-cn" + }, + { + "name": "de-de", + "value": "de-de" + }, + { + "name": "es-es", + "value": "es-es" + }, + { + "name": "fr-fr", + "value": "fr-fr" + }, + { + "name": "it-it", + "value": "it-it" + }, + { + "name": "ko-kr", + "value": "ko-kr" + }, + { + "name": "pt-br", + "value": "pt-br" + }, + { + "name": "ru-ru", + "value": "ru-ru" + }, + { + "name": "zh-tw", + "value": "zh-tw" + }, + { + "name": "cs-cz", + "value": "cs-cz" + }, + { + "name": "pl-pl", + "value": "pl-pl" + }, + { + "name": "tr-tr", + "value": "tr-tr" + }, + { + "name": "da-dk", + "value": "da-dk" + }, + { + "name": "en-gb", + "value": "en-gb" + }, + { + "name": "hu-hu", + "value": "hu-hu" + }, + { + "name": "nb-no", + "value": "nb-no" + }, + { + "name": "nl-nl", + "value": "nl-nl" + }, + { + "name": "pt-pt", + "value": "pt-pt" + }, + { + "name": "sv-se", + "value": "sv-se" + } + ] + } + }, + "CurrentSpend": { + "type": "object", + "description": "The current amount of cost which is being tracked for a budget.\n\nSupported for CategoryType(s): Cost.", + "properties": { + "amount": { + "type": "number", + "format": "float", + "description": "The total amount of cost which is being tracked by the budget.", + "readOnly": true + }, + "unit": { + "type": "string", + "description": "The unit of measure for the budget amount.", + "readOnly": true + } + } + }, + "DataOverwriteBehaviorType": { + "type": "string", + "description": "Allow customers to select overwrite data(OverwritePreviousReport) for exports. This setting will enable overwrite data for the same month in customer storage account. By default set to CreateNewReport.", + "enum": [ + "OverwritePreviousReport", + "CreateNewReport" + ], + "x-ms-enum": { + "name": "DataOverwriteBehaviorType", + "modelAsString": true, + "values": [ + { + "name": "OverwritePreviousReport", + "value": "OverwritePreviousReport" + }, + { + "name": "CreateNewReport", + "value": "CreateNewReport" + } + ] + } + }, + "DaysOfWeek": { + "type": "string", + "description": "Days of Week.", + "enum": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "x-ms-enum": { + "name": "DaysOfWeek", + "modelAsString": true, + "values": [ + { + "name": "Monday", + "value": "Monday" + }, + { + "name": "Tuesday", + "value": "Tuesday" + }, + { + "name": "Wednesday", + "value": "Wednesday" + }, + { + "name": "Thursday", + "value": "Thursday" + }, + { + "name": "Friday", + "value": "Friday" + }, + { + "name": "Saturday", + "value": "Saturday" + }, + { + "name": "Sunday", + "value": "Sunday" + } + ] + } + }, + "DestinationType": { + "type": "string", + "description": "The export delivery destination type. Currently only 'AzureBlob' is supported.", + "enum": [ + "AzureBlob" + ], + "x-ms-enum": { + "name": "DestinationType", + "modelAsString": true, + "values": [ + { + "name": "AzureBlob", + "value": "AzureBlob" + } + ] + } + }, + "Dimension": { + "type": "object", + "description": "List of Dimension.", + "properties": { + "properties": { + "$ref": "#/definitions/DimensionProperties", + "description": "Dimension properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/CostManagementResource" + } + ] + }, + "DimensionProperties": { + "type": "object", + "description": "Dimension properties.", + "properties": { + "description": { + "type": "string", + "description": "Dimension description.", + "readOnly": true + }, + "filterEnabled": { + "type": "boolean", + "description": "Filter enabled.", + "readOnly": true + }, + "groupingEnabled": { + "type": "boolean", + "description": "Grouping enabled.", + "readOnly": true + }, + "data": { + "type": "array", + "description": "Dimension data.", + "items": { + "type": "string" + } + }, + "total": { + "type": "integer", + "format": "int32", + "description": "Total number of data for the dimension.", + "readOnly": true + }, + "category": { + "type": "string", + "description": "Dimension category.", + "readOnly": true + }, + "usageStart": { + "type": "string", + "format": "date-time", + "description": "Usage start.", + "readOnly": true + }, + "usageEnd": { + "type": "string", + "format": "date-time", + "description": "Usage end.", + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results.", + "readOnly": true + } + } + }, + "DimensionsListResult": { + "type": "object", + "description": "Result of listing dimensions. It contains a list of available dimensions.", + "properties": { + "value": { + "type": "array", + "description": "The list of dimensions.", + "items": { + "$ref": "#/definitions/Dimension" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results." + } + } + }, + "DismissAlertPayload": { + "type": "object", + "description": "The request payload to update an alert", + "properties": { + "properties": { + "$ref": "#/definitions/AlertProperties", + "description": "Alert properties.", + "x-ms-client-flatten": true + } + } + }, + "DownloadURL": { + "type": "object", + "description": "The URL to download the generated report.", + "properties": { + "expiryTime": { + "type": "string", + "format": "date-time", + "description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.", + "readOnly": true + }, + "validTill": { + "type": "string", + "format": "date-time", + "description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z." + }, + "downloadUrl": { + "type": "string", + "description": "The URL to download the generated report." + } + } + }, + "EAPriceSheetProperties": { + "type": "object", + "description": "The properties of the EA price sheet. Properties supported with version 2025-03-01 are as below", + "properties": { + "enrollmentNumber": { + "type": "string", + "description": "Unique identifier for the EA billing account.", + "readOnly": true + }, + "serviceFamily": { + "type": "number", + "format": "float", + "description": "Type of Azure service. For example, Compute, Analytics, and Security.", + "readOnly": true + }, + "product": { + "type": "string", + "description": "Name of the product accruing the charges.", + "readOnly": true + }, + "productId": { + "type": "string", + "description": "Unique identifier for the product whose meter is consumed.", + "readOnly": true + }, + "skuId": { + "type": "string", + "description": "Unique identifier of the SKU", + "readOnly": true + }, + "unitOfMeasure": { + "type": "string", + "description": "How usage is measured for the service. Note: The field “Unit” has been removed with version 2023-11-01 as a duplicate of “UnitofMeasure”, please use the field “UnitOfMeasure”.", + "readOnly": true + }, + "meterId": { + "type": "string", + "description": "Unique identifier of the meter", + "readOnly": true + }, + "meterName": { + "type": "string", + "description": "Name of the meter. The meter represents the deployable resource of an Azure service.", + "readOnly": true + }, + "meterType": { + "type": "string", + "description": "Name of the meter type", + "readOnly": true + }, + "offerId": { + "type": "string", + "description": "Determines the Azure offer associated with this meter. [Learn more about Azure offers] (https://azure.microsoft.com/en-us/support/legal/offer-details/)", + "readOnly": true + }, + "meterCategory": { + "type": "string", + "description": "Name of the classification category for the meter. For example, Cloud services, Networking, etc.", + "readOnly": true + }, + "meterSubCategory": { + "type": "string", + "description": "Name of the meter subclassification category.", + "readOnly": true + }, + "meterRegion": { + "type": "string", + "description": "Name of the Azure region where the meter for the service is available.", + "readOnly": true + }, + "effectiveStartDate": { + "type": "string", + "format": "date-time", + "description": "Effective start date of the Price Sheet billing period", + "readOnly": true + }, + "effectiveEndDate": { + "type": "string", + "format": "date-time", + "description": "Effective end date of the Price Sheet billing period", + "readOnly": true + }, + "unitPrice": { + "type": "string", + "description": "The per-unit price at the time of billing for a given product or service, inclusive of any negotiated discounts on top of the market price.\n\nFor PriceType ReservedInstance, unit price reflects the total cost of the 1 or 3-year commitment including discounts.\n\nNote: The unit price isn't the same as the effective price in usage details downloads when services have differential prices across tiers.\n\nIf services have multi-tiered pricing, the effective price is a blended rate across the tiers and doesn't show a tier-specific unit price. The blended price or effective price is the net price for the consumed quantity spanning across the multiple tiers (where each tier has a specific unit price).", + "readOnly": true + }, + "basePrice": { + "type": "string", + "description": "The unit price at the time the customer signs on or the unit price at the time of service meter GA launch if it is after sign-on.\n\nThis is applicable for Enterprise Agreement users", + "readOnly": true + }, + "marketPrice": { + "type": "string", + "description": "The current list price for a given product or service. This price is without any negotiations and is based on your Microsoft Agreement type.\n\nFor PriceType Consumption, market price is reflected as the pay-as-you-go price.\n\nFor PriceType Savings Plan, market price reflects the Savings plan benefit on top of pay-as-you-go price for the corresponding commitment term.\n\nFor PriceType ReservedInstance, market price reflects the total price of the 1 or 3-year commitment.\n\nNote: For EA customers with no negotiations, market price may appear rounded to a different decimal precision than unit price.", + "readOnly": true + }, + "includedQuantity": { + "type": "string", + "description": "Quantities of a specific service to which an EA customer is entitled to consume without incremental charges.", + "readOnly": true + }, + "currencyCode": { + "type": "string", + "description": "Currency in which the Enterprise Agreement was signed", + "readOnly": true + }, + "term": { + "type": "string", + "description": "Term length for Azure Savings Plan or Reservation term – one year or three years (P1Y or P3Y)", + "readOnly": true + }, + "priceType": { + "type": "string", + "description": "Price type for a product. For example, an Azure resource with a pay-as-you-go rate with priceType as Consumption. Other price types include ReservedInstance and Savings Plan.", + "readOnly": true + }, + "partNumber": { + "type": "string", + "description": "Part number associated with the meter", + "readOnly": true + } + } + }, + "EAPricesheetDownloadProperties": { + "type": "object", + "description": "The properties of the price sheet download.", + "properties": { + "downloadUrl": { + "type": "string", + "description": "The link (url) to download the pricesheet.", + "readOnly": true + }, + "validTill": { + "type": "string", + "format": "date-time", + "description": "Download link validity.", + "readOnly": true + }, + "downloadFileProperties": { + "$ref": "#/definitions/EAPriceSheetProperties", + "description": "The properties in downloaded file" + } + } + }, + "ErrorDetails": { + "type": "object", + "description": "The details of the error.", + "properties": { + "code": { + "type": "string", + "description": "Error code.", + "readOnly": true + }, + "message": { + "type": "string", + "description": "Error message indicating why the operation failed.", + "readOnly": true + } + } + }, + "ErrorDetailsWithNestedDetails": { + "type": "object", + "description": "The details of the error.", + "properties": { + "details": { + "type": "array", + "description": "The additional details of the error.", + "items": { + "$ref": "#/definitions/ErrorDetailsWithNestedDetails" + }, + "readOnly": true, + "x-ms-identifiers": [] + } + }, + "allOf": [ + { + "$ref": "#/definitions/ErrorDetails" + } + ] + }, + "ErrorResponse": { + "type": "object", + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \\n\\nSome Error responses: \\n\\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \\\"x-ms-ratelimit-microsoft.consumption-retry-after\\\" header. \\n\\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \\\"Retry-After\\\" header.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDetails", + "description": "The details of the error." + } + } + }, + "ErrorResponseWithNestedDetails": { + "type": "object", + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.\n\nSome Error responses:\n\n* 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header.\n\n* 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDetailsWithNestedDetails", + "description": "The details of the error." + } + } + }, + "ExecutionStatus": { + "type": "string", + "description": "The last known status of the export run.", + "enum": [ + "Queued", + "InProgress", + "Completed", + "Failed", + "Timeout", + "NewDataNotAvailable", + "DataNotAvailable" + ], + "x-ms-enum": { + "name": "ExecutionStatus", + "modelAsString": true, + "values": [ + { + "name": "Queued", + "value": "Queued" + }, + { + "name": "InProgress", + "value": "InProgress" + }, + { + "name": "Completed", + "value": "Completed" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Timeout", + "value": "Timeout" + }, + { + "name": "NewDataNotAvailable", + "value": "NewDataNotAvailable" + }, + { + "name": "DataNotAvailable", + "value": "DataNotAvailable" + } + ] + } + }, + "ExecutionType": { + "type": "string", + "description": "The type of the export run.", + "enum": [ + "OnDemand", + "Scheduled" + ], + "x-ms-enum": { + "name": "ExecutionType", + "modelAsString": true, + "values": [ + { + "name": "OnDemand", + "value": "OnDemand" + }, + { + "name": "Scheduled", + "value": "Scheduled" + } + ] + } + }, + "Export": { + "type": "object", + "description": "An export resource.", + "properties": { + "properties": { + "$ref": "#/definitions/ExportProperties", + "description": "The properties of the export.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/SystemAssignedServiceIdentity", + "description": "The managed identity associated with Export" + }, + "location": { + "type": "string", + "description": "The location of the Export's managed identity. Only required when utilizing managed identity.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "eTag": { + "$ref": "#/definitions/Azure.Core.eTag", + "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "ExportDataset": { + "type": "object", + "description": "The definition for data in the export.", + "properties": { + "granularity": { + "$ref": "#/definitions/GranularityType", + "description": "The granularity of rows in the export. Currently 'Daily' is supported for most cases." + }, + "configuration": { + "$ref": "#/definitions/ExportDatasetConfiguration", + "description": "The export dataset configuration." + } + } + }, + "ExportDatasetConfiguration": { + "type": "object", + "description": "This is on path to deprecation and will not be supported going forward.", + "properties": { + "columns": { + "type": "array", + "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", + "items": { + "type": "string" + } + }, + "dataVersion": { + "type": "string", + "description": "The data version for the selected for the export. If not provided then the export will default to latest data version." + }, + "filters": { + "type": "array", + "description": "Filters associated with the data sets.", + "items": { + "$ref": "#/definitions/FilterItems" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "ExportDefinition": { + "type": "object", + "description": "The definition of an export.", + "properties": { + "type": { + "$ref": "#/definitions/ExportType", + "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations." + }, + "timeframe": { + "$ref": "#/definitions/TimeframeType", + "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided." + }, + "timePeriod": { + "$ref": "#/definitions/ExportTimePeriod", + "description": "Has time period for pulling data for the export." + }, + "dataSet": { + "$ref": "#/definitions/ExportDataset", + "description": "The definition for data in the export." + } + }, + "required": [ + "type", + "timeframe" + ] + }, + "ExportDeliveryDestination": { + "type": "object", + "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).", + "properties": { + "type": { + "$ref": "#/definitions/DestinationType", + "description": "The export delivery destination type. Currently only 'AzureBlob' is supported." + }, + "resourceId": { + "type": "string", + "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified." + }, + "container": { + "type": "string", + "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created." + }, + "rootFolderPath": { + "type": "string", + "description": "The name of the directory where exports will be uploaded." + }, + "sasToken": { + "type": "string", + "format": "password", + "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.", + "x-ms-secret": true + }, + "storageAccount": { + "type": "string", + "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId." + } + }, + "required": [ + "container" + ] + }, + "ExportDeliveryInfo": { + "type": "object", + "description": "The delivery information associated with a export.", + "properties": { + "destination": { + "$ref": "#/definitions/ExportDeliveryDestination", + "description": "Has destination for the export being delivered." + } + }, + "required": [ + "destination" + ] + }, + "ExportExecutionListResult": { + "type": "object", + "description": "Result of listing the run history of an export.", + "properties": { + "value": { + "type": "array", + "description": "A list of export runs.", + "items": { + "$ref": "#/definitions/ExportRun" + }, + "readOnly": true + } + } + }, + "ExportListResult": { + "type": "object", + "description": "Result of listing exports. It contains a list of available exports in the scope provided.", + "properties": { + "value": { + "type": "array", + "description": "The list of exports.", + "items": { + "$ref": "#/definitions/Export" + }, + "readOnly": true + } + } + }, + "ExportProperties": { + "type": "object", + "description": "The properties of the export.", + "properties": { + "schedule": { + "$ref": "#/definitions/ExportSchedule", + "description": "Has schedule information for the export." + } + }, + "allOf": [ + { + "$ref": "#/definitions/CommonExportProperties" + } + ] + }, + "ExportRecurrencePeriod": { + "type": "object", + "description": "The start and end date for recurrence schedule.", + "properties": { + "from": { + "type": "string", + "format": "date-time", + "description": "The start date of recurrence." + }, + "to": { + "type": "string", + "format": "date-time", + "description": "The end date of recurrence." + } + }, + "required": [ + "from" + ] + }, + "ExportRun": { + "type": "object", + "description": "An export run.", + "properties": { + "properties": { + "$ref": "#/definitions/ExportRunProperties", + "description": "The properties of the export run.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/CostManagementProxyResource" + } + ] + }, + "ExportRunProperties": { + "type": "object", + "description": "The properties of the export run.", + "properties": { + "executionType": { + "$ref": "#/definitions/ExecutionType", + "description": "The type of the export run." + }, + "status": { + "$ref": "#/definitions/ExecutionStatus", + "description": "The last known status of the export run." + }, + "submittedBy": { + "type": "string", + "description": "The identifier for the entity that triggered the export. For on-demand runs it is the user email. For scheduled runs it is 'System'." + }, + "submittedTime": { + "type": "string", + "format": "date-time", + "description": "The time when export was queued to be run." + }, + "processingStartTime": { + "type": "string", + "format": "date-time", + "description": "The time when export was picked up to be run." + }, + "processingEndTime": { + "type": "string", + "format": "date-time", + "description": "The time when the export run finished." + }, + "startDate": { + "type": "string", + "format": "date-time", + "description": "The start datetime for the export." + }, + "endDate": { + "type": "string", + "format": "date-time", + "description": "The end datetime for the export." + }, + "fileName": { + "type": "string", + "description": "The name of the exported file." + }, + "manifestFile": { + "type": "string", + "description": "The manifest file location(URI location) for the exported files." + }, + "runSettings": { + "$ref": "#/definitions/CommonExportProperties", + "description": "The export settings that were in effect for this run." + }, + "error": { + "$ref": "#/definitions/ErrorDetails", + "description": "The details of any error." + } + } + }, + "ExportRunRequest": { + "type": "object", + "description": "The export run request.", + "properties": { + "timePeriod": { + "$ref": "#/definitions/ExportTimePeriod", + "description": "Has time period for pulling data for the export." + } + } + }, + "ExportSchedule": { + "type": "object", + "description": "The schedule associated with the export.", + "properties": { + "status": { + "$ref": "#/definitions/StatusType", + "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused. To enable export set the status to be Active and then make a PUT request." + }, + "recurrence": { + "$ref": "#/definitions/RecurrenceType", + "description": "The schedule recurrence." + }, + "recurrencePeriod": { + "$ref": "#/definitions/ExportRecurrencePeriod", + "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date." + } + } + }, + "ExportSuspensionContext": { + "type": "object", + "description": "The properties of the export run. This is not populated currently.", + "properties": { + "suspensionCode": { + "type": "string", + "description": "The code for export suspension." + }, + "suspensionReason": { + "type": "string", + "description": "The detailed reason for export suspension." + }, + "suspensionTime": { + "type": "string", + "format": "date-time", + "description": "The time when the export was suspended." + } + } + }, + "ExportTimePeriod": { + "type": "object", + "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 1 calendar month.", + "properties": { + "from": { + "type": "string", + "format": "date-time", + "description": "The start date for export data." + }, + "to": { + "type": "string", + "format": "date-time", + "description": "The end date for export data." + } + }, + "required": [ + "from", + "to" + ] + }, + "ExportType": { + "type": "string", + "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.", + "enum": [ + "Usage", + "ActualCost", + "AmortizedCost", + "FocusCost", + "PriceSheet", + "ReservationTransactions", + "ReservationRecommendations", + "ReservationDetails" + ], + "x-ms-enum": { + "name": "ExportType", + "modelAsString": true, + "values": [ + { + "name": "Usage", + "value": "Usage" + }, + { + "name": "ActualCost", + "value": "ActualCost" + }, + { + "name": "AmortizedCost", + "value": "AmortizedCost" + }, + { + "name": "FocusCost", + "value": "FocusCost" + }, + { + "name": "PriceSheet", + "value": "PriceSheet" + }, + { + "name": "ReservationTransactions", + "value": "ReservationTransactions" + }, + { + "name": "ReservationRecommendations", + "value": "ReservationRecommendations" + }, + { + "name": "ReservationDetails", + "value": "ReservationDetails" + } + ] + } + }, + "ExternalCloudProviderType": { + "type": "string", + "enum": [ + "externalSubscriptions", + "externalBillingAccounts" + ], + "x-ms-enum": { + "name": "ExternalCloudProviderType", + "modelAsString": true, + "values": [ + { + "name": "externalSubscriptions", + "value": "externalSubscriptions" + }, + { + "name": "externalBillingAccounts", + "value": "externalBillingAccounts" + } + ] + } + }, + "FileDestination": { + "type": "object", + "description": "Destination of the view data. This is optional. Currently only CSV format is supported.", + "properties": { + "fileFormats": { + "type": "array", + "description": "Destination of the view data. Currently only CSV format is supported.", + "items": { + "$ref": "#/definitions/FileFormat" + } + } + } + }, + "FileFormat": { + "type": "string", + "description": "Destination of the view data. Currently only CSV format is supported.", + "enum": [ + "Csv" + ], + "x-ms-enum": { + "name": "FileFormat", + "modelAsString": true, + "values": [ + { + "name": "Csv", + "value": "Csv" + } + ] + } + }, + "FilterItemNames": { + "type": "string", + "description": "The name of the filter. This is currently only supported for Export Definition type of ReservationRecommendations. Supported names are ['ReservationScope', 'LookBackPeriod', 'ResourceType']", + "enum": [ + "ReservationScope", + "ResourceType", + "LookBackPeriod" + ], + "x-ms-enum": { + "name": "FilterItemNames", + "modelAsString": true, + "values": [ + { + "name": "ReservationScope", + "value": "ReservationScope" + }, + { + "name": "ResourceType", + "value": "ResourceType" + }, + { + "name": "LookBackPeriod", + "value": "LookBackPeriod" + } + ] + } + }, + "FilterItems": { + "type": "object", + "description": "Will contain the filter name and value to operate on. This is currently only supported for Export Definition type of ReservationRecommendations.", + "properties": { + "name": { + "$ref": "#/definitions/FilterItemNames", + "description": "The name of the filter. This is currently only supported for Export Definition type of ReservationRecommendations. Supported names are ['ReservationScope', 'LookBackPeriod', 'ResourceType']" + }, + "value": { + "type": "string", + "description": "Value to filter by. Currently values supported per name are, for 'ReservationScope' supported values are ['Single', 'Shared'], for 'LookBackPeriod' supported values are ['Last7Days', 'Last30Days', 'Last60Days'] and for 'ResourceType' supported values are ['VirtualMachines', 'SQLDatabases', 'PostgreSQL', 'ManagedDisk', 'MySQL', 'RedHat', 'MariaDB', 'RedisCache', 'CosmosDB', 'SqlDataWarehouse', 'SUSELinux', 'AppService', 'BlockBlob', 'AzureDataExplorer', 'VMwareCloudSimple']." + } + } + }, + "ForecastAggregation": { + "type": "object", + "description": "The aggregation expression to be used in the forecast.", + "properties": { + "name": { + "$ref": "#/definitions/FunctionName", + "description": "The name of the column to aggregate." + }, + "function": { + "$ref": "#/definitions/FunctionType", + "description": "The name of the aggregation function to use." + } + }, + "required": [ + "name", + "function" + ] + }, + "ForecastColumn": { + "type": "object", + "description": "Forecast column properties", + "properties": { + "name": { + "type": "string", + "description": "The name of column." + }, + "type": { + "type": "string", + "description": "The type of column." + } + } + }, + "ForecastComparisonExpression": { + "type": "object", + "description": "The comparison expression to be used in the forecast.", + "properties": { + "name": { + "type": "string", + "description": "The name of the column to use in comparison." + }, + "operator": { + "$ref": "#/definitions/ForecastOperatorType", + "description": "The operator to use for comparison." + }, + "values": { + "type": "array", + "description": "Array of values to use for comparison", + "minItems": 1, + "items": { + "type": "string" + } + } + }, + "required": [ + "name", + "operator", + "values" + ] + }, + "ForecastDataset": { + "type": "object", + "description": "The definition of data present in the forecast.", + "properties": { + "granularity": { + "$ref": "#/definitions/GranularityType", + "description": "The granularity of rows in the forecast." + }, + "configuration": { + "$ref": "#/definitions/ForecastDatasetConfiguration", + "description": "Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided." + }, + "aggregation": { + "type": "object", + "description": "Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the aggregated column. forecast can have up to 2 aggregation clauses.", + "additionalProperties": { + "$ref": "#/definitions/ForecastAggregation" + } + }, + "filter": { + "$ref": "#/definitions/ForecastFilter", + "description": "Has filter expression to use in the forecast." + } + }, + "required": [ + "aggregation" + ] + }, + "ForecastDatasetConfiguration": { + "type": "object", + "description": "The configuration of dataset in the forecast.", + "properties": { + "columns": { + "type": "array", + "description": "Array of column names to be included in the forecast. Any valid forecast column name is allowed. If not provided, then forecast includes all columns.", + "items": { + "type": "string" + } + } + } + }, + "ForecastDefinition": { + "type": "object", + "description": "The definition of a forecast.", + "properties": { + "type": { + "$ref": "#/definitions/ForecastType", + "description": "The type of the forecast." + }, + "timeframe": { + "$ref": "#/definitions/ForecastTimeframe", + "description": "The time frame for pulling data for the forecast. If custom, then a specific time period must be provided." + }, + "timePeriod": { + "$ref": "#/definitions/ForecastTimePeriod", + "description": "Has time period for pulling data for the forecast." + }, + "dataset": { + "$ref": "#/definitions/ForecastDataset", + "description": "Has definition for data in this forecast." + }, + "includeActualCost": { + "type": "boolean", + "description": "A boolean determining if actualCost will be included." + }, + "includeFreshPartialCost": { + "type": "boolean", + "description": "A boolean determining if FreshPartialCost will be included." + } + }, + "required": [ + "type", + "timeframe", + "dataset" + ] + }, + "ForecastFilter": { + "type": "object", + "description": "The filter expression to be used in the export.", + "properties": { + "and": { + "type": "array", + "description": "The logical \"AND\" expression. Must have at least 2 items.", + "minItems": 2, + "items": { + "$ref": "#/definitions/ForecastFilter" + }, + "x-ms-identifiers": [] + }, + "or": { + "type": "array", + "description": "The logical \"OR\" expression. Must have at least 2 items.", + "minItems": 2, + "items": { + "$ref": "#/definitions/ForecastFilter" + }, + "x-ms-identifiers": [] + }, + "dimensions": { + "$ref": "#/definitions/ForecastComparisonExpression", + "description": "Has comparison expression for a dimension" + }, + "tags": { + "$ref": "#/definitions/ForecastComparisonExpression", + "description": "Has comparison expression for a tag" + } + } + }, + "ForecastOperatorType": { + "type": "string", + "description": "The operator to use for comparison.", + "enum": [ + "In" + ], + "x-ms-enum": { + "name": "ForecastOperatorType", + "modelAsString": true, + "values": [ + { + "name": "In", + "value": "In" + } + ] + } + }, + "ForecastProperties": { + "type": "object", + "description": "Forecast properties", + "properties": { + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results." + }, + "columns": { + "type": "array", + "description": "Array of columns", + "items": { + "$ref": "#/definitions/ForecastColumn" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "rows": { + "type": "array", + "description": "Array of rows", + "items": { + "type": "array", + "items": {} + }, + "x-ms-identifiers": [] + } + } + }, + "ForecastResult": { + "type": "object", + "description": "Result of forecast. It contains all columns listed under groupings and aggregation.", + "properties": { + "properties": { + "$ref": "#/definitions/ForecastProperties", + "description": "Forecast properties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/CostManagementResource" + } + ] + }, + "ForecastSpend": { + "type": "object", + "description": "The forecasted cost which is being tracked for a budget.\n\nSupported for CategoryType(s): Cost.", + "properties": { + "amount": { + "type": "number", + "format": "float", + "description": "The forecasted cost for the total time period which is being tracked by the budget. This value is only provided if the budget contains a forecast alert type.", + "readOnly": true + }, + "unit": { + "type": "string", + "description": "The unit of measure for the budget amount.", + "readOnly": true + } + } + }, + "ForecastTimePeriod": { + "type": "object", + "description": "Has time period for pulling data for the forecast.", + "properties": { + "from": { + "type": "string", + "format": "date-time", + "description": "The start date to pull data from." + }, + "to": { + "type": "string", + "format": "date-time", + "description": "The end date to pull data to." + } + }, + "required": [ + "from", + "to" + ] + }, + "ForecastTimeframe": { + "type": "string", + "description": "The time frame for pulling data for the forecast.", + "enum": [ + "Custom" + ], + "x-ms-enum": { + "name": "ForecastTimeframe", + "modelAsString": true, + "values": [ + { + "name": "Custom", + "value": "Custom" + } + ] + } + }, + "ForecastType": { + "type": "string", + "description": "The type of the forecast.", + "enum": [ + "Usage", + "ActualCost", + "AmortizedCost" + ], + "x-ms-enum": { + "name": "ForecastType", + "modelAsString": true, + "values": [ + { + "name": "Usage", + "value": "Usage" + }, + { + "name": "ActualCost", + "value": "ActualCost" + }, + { + "name": "AmortizedCost", + "value": "AmortizedCost" + } + ] + } + }, + "FormatType": { + "type": "string", + "description": "The format of the export being delivered.", + "enum": [ + "Csv", + "Parquet" + ], + "x-ms-enum": { + "name": "FormatType", + "modelAsString": true, + "values": [ + { + "name": "Csv", + "value": "Csv" + }, + { + "name": "Parquet", + "value": "Parquet" + } + ] + } + }, + "Frequency": { + "type": "string", + "description": "Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days).\n\nSupported for CategoryType(s): ReservationUtilization.", + "enum": [ + "Daily", + "Weekly", + "Monthly" + ], + "x-ms-enum": { + "name": "Frequency", + "modelAsString": true, + "values": [ + { + "name": "Daily", + "value": "Daily", + "description": "After the threshold breaches and an Alert is fired, no further alerts will be sent until the next calendar day." + }, + { + "name": "Weekly", + "value": "Weekly", + "description": "After the threshold breaches and an Alert is fired, no further alerts will be sent for 7 calendar days." + }, + { + "name": "Monthly", + "value": "Monthly", + "description": "After the threshold breaches and an Alert is fired, no further alerts will be sent for 30 calendar days." + } + ] + } + }, + "FunctionName": { + "type": "string", + "description": "The name of the column to aggregate.", + "enum": [ + "PreTaxCostUSD", + "Cost", + "CostUSD", + "PreTaxCost" + ], + "x-ms-enum": { + "name": "FunctionName", + "modelAsString": true, + "values": [ + { + "name": "PreTaxCostUSD", + "value": "PreTaxCostUSD" + }, + { + "name": "Cost", + "value": "Cost" + }, + { + "name": "CostUSD", + "value": "CostUSD" + }, + { + "name": "PreTaxCost", + "value": "PreTaxCost" + } + ] + } + }, + "FunctionType": { + "type": "string", + "description": "The name of the aggregation function to use.", + "enum": [ + "Sum" + ], + "x-ms-enum": { + "name": "FunctionType", + "modelAsString": true, + "values": [ + { + "name": "Sum", + "value": "Sum" + } + ] + } + }, + "GenerateCostDetailsReportErrorResponse": { + "type": "object", + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.\n\nSome Error responses:\n\n* 400 Bad Request - Invalid Request Payload. Request payload provided is not in a json format or had an invalid member not accepted in the request payload.\n\n* 400 Bad Request - Invalid request payload: can only have either timePeriod or invoiceId or billingPeriod. API only allows data to be pulled for either timePeriod or invoiceId or billingPeriod. Customer should provide only one of these parameters.\n\n* 400 Bad Request - Start date must be after . API only allows data to be pulled no older than 13 months from now.\n\n* 400 Bad Request - The maximum allowed date range is 1 months. API only allows data to be pulled for 1 month or less.\n\n* 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"retry-after\" header.\n\n* 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDetails", + "description": "The details of the error." + } + } + }, + "GenerateCostDetailsReportRequestDefinition": { + "type": "object", + "description": "The definition of a cost detailed report.", + "properties": { + "metric": { + "$ref": "#/definitions/CostDetailsMetricType", + "description": "The type of the detailed report. By default ActualCost is provided" + }, + "timePeriod": { + "$ref": "#/definitions/CostDetailsTimePeriod", + "description": "The specific date range of cost details requested for the report. This parameter cannot be used alongside either the invoiceId or billingPeriod parameters. If a timePeriod, invoiceId or billingPeriod parameter is not provided in the request body the API will return the current month's cost. API only allows data to be pulled for 1 month or less and no older than 13 months. If no timePeriod or billingPeriod or invoiceId is provided the API defaults to the open month time period" + }, + "billingPeriod": { + "type": "string", + "description": "This parameter can be used only by Enterprise Agreement customers. Use the YearMonth(e.g. 202008) format. This parameter cannot be used alongside either the invoiceId or timePeriod parameters. If a timePeriod, invoiceId or billingPeriod parameter is not provided in the request body the API will return the current month's cost." + }, + "invoiceId": { + "type": "string", + "description": "This parameter can only be used by Microsoft Customer Agreement customers. Additionally, it can only be used at the Billing Profile or Customer scope. This parameter cannot be used alongside either the billingPeriod or timePeriod parameters. If a timePeriod, invoiceId or billingPeriod parameter is not provided in the request body the API will return the current month's cost." + } + } + }, + "GenerateDetailedCostReportDefinition": { + "type": "object", + "description": "The definition of a cost detailed report.", + "properties": { + "metric": { + "$ref": "#/definitions/GenerateDetailedCostReportMetricType", + "description": "The type of the detailed report. By default ActualCost is provided" + }, + "timePeriod": { + "$ref": "#/definitions/GenerateDetailedCostReportTimePeriod", + "description": "Has time period for pulling data for the cost detailed report. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided." + }, + "billingPeriod": { + "type": "string", + "description": "Billing period in YearMonth(e.g. 202008) format. Only for legacy enterprise customers can use this. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided." + }, + "invoiceId": { + "type": "string", + "description": "Invoice ID for Pay-as-you-go and Microsoft Customer Agreement scopes. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided." + }, + "customerId": { + "type": "string", + "description": "Customer ID for Microsoft Customer Agreement scopes (Invoice Id is also required for this)." + } + } + }, + "GenerateDetailedCostReportErrorResponse": { + "type": "object", + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.\n\nSome Error responses:\n\n* 413 Request Entity Too Large - Request is throttled. The amount of data required to fulfill the request exceeds the maximum size permitted of 2Gb. Please utilize our Exports feature instead.\n\n* 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header.\n\n* 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDetails", + "description": "The details of the error." + } + } + }, + "GenerateDetailedCostReportMetricType": { + "type": "string", + "description": "The type of the detailed report. By default ActualCost is provided", + "enum": [ + "ActualCost", + "AmortizedCost" + ], + "x-ms-enum": { + "name": "GenerateDetailedCostReportMetricType", + "modelAsString": true, + "values": [ + { + "name": "ActualCost", + "value": "ActualCost" + }, + { + "name": "AmortizedCost", + "value": "AmortizedCost" + } + ] + } + }, + "GenerateDetailedCostReportOperationResult": { + "type": "object", + "description": "The result of the long running operation for cost detailed report.", + "properties": { + "properties": { + "$ref": "#/definitions/DownloadURL", + "description": "The properties of the resource generated.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "GenerateDetailedCostReportOperationStatuses": { + "type": "object", + "description": "The status of the long running operation for cost detailed report.", + "properties": { + "properties": { + "$ref": "#/definitions/DownloadURL", + "description": "The properties of the usage file generated.", + "x-ms-client-flatten": true + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The status of the long running operation." + }, + "startTime": { + "type": "string", + "description": "The startTime of the operation." + }, + "endTime": { + "type": "string", + "description": "The endTime of the operation." + }, + "error": { + "$ref": "#/definitions/ErrorDetails", + "description": "The details of the error." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "GenerateDetailedCostReportTimePeriod": { + "type": "object", + "description": "The start and end date for pulling data for the cost detailed report.", + "properties": { + "start": { + "type": "string", + "description": "The start date to pull data from. example format 2020-03-15" + }, + "end": { + "type": "string", + "description": "The end date to pull data to. example format 2020-03-15" + } + }, + "required": [ + "start", + "end" + ] + }, + "Grain": { + "type": "string", + "description": "Grain which corresponds to value.", + "enum": [ + "Hourly", + "Daily", + "Monthly" + ], + "x-ms-enum": { + "name": "Grain", + "modelAsString": true, + "values": [ + { + "name": "Hourly", + "value": "Hourly", + "description": "Hourly grain corresponds to value per hour." + }, + { + "name": "Daily", + "value": "Daily", + "description": "Hourly grain corresponds to value per day." + }, + { + "name": "Monthly", + "value": "Monthly", + "description": "Hourly grain corresponds to value per month." + } + ] + } + }, + "GrainParameter": { + "type": "string", + "enum": [ + "Hourly", + "Daily", + "Monthly" + ], + "x-ms-enum": { + "name": "GrainParameter", + "modelAsString": true, + "values": [ + { + "name": "Hourly", + "value": "Hourly", + "description": "Hourly grain corresponds to value per hour." + }, + { + "name": "Daily", + "value": "Daily", + "description": "Hourly grain corresponds to value per day." + }, + { + "name": "Monthly", + "value": "Monthly", + "description": "Hourly grain corresponds to value per month." + } + ] + } + }, + "GranularityType": { + "type": "string", + "description": "The granularity of rows in the export. Currently 'Daily' is supported for most cases.", + "enum": [ + "Daily", + "Monthly" + ], + "x-ms-enum": { + "name": "GranularityType", + "modelAsString": true, + "values": [ + { + "name": "Daily", + "value": "Daily" + }, + { + "name": "Monthly", + "value": "Monthly" + } + ] + } + }, + "IncludedQuantityUtilizationSummary": { + "type": "object", + "description": "Included Quantity utilization summary resource.", + "properties": { + "properties": { + "$ref": "#/definitions/IncludedQuantityUtilizationSummaryProperties", + "description": "Included Quantity utilization summary properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/BenefitUtilizationSummary" + } + ], + "x-ms-discriminator-value": "IncludedQuantity" + }, + "IncludedQuantityUtilizationSummaryProperties": { + "type": "object", + "description": "Included Quantity utilization summary properties.", + "properties": { + "utilizationPercentage": { + "type": "number", + "format": "decimal", + "description": "This is the utilized percentage for the benefit ID.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/BenefitUtilizationSummaryProperties" + } + ] + }, + "KpiProperties": { + "type": "object", + "description": "Each KPI must contain a 'type' and 'enabled' key.", + "properties": { + "type": { + "$ref": "#/definitions/KpiTypeType", + "description": "KPI type (Forecast, Budget)." + }, + "id": { + "type": "string", + "description": "ID of resource related to metric (budget)." + }, + "enabled": { + "type": "boolean", + "description": "show the KPI in the UI?" + } + } + }, + "KpiTypeType": { + "type": "string", + "description": "KPI type (Forecast, Budget).", + "enum": [ + "Forecast", + "Budget" + ], + "x-ms-enum": { + "name": "KpiTypeType", + "modelAsString": true, + "values": [ + { + "name": "Forecast", + "value": "Forecast" + }, + { + "name": "Budget", + "value": "Budget" + } + ] + } + }, + "LookBackPeriod": { + "type": "string", + "description": "The number of days used to look back.", + "enum": [ + "Last7Days", + "Last30Days", + "Last60Days" + ], + "x-ms-enum": { + "name": "LookBackPeriod", + "modelAsString": true, + "values": [ + { + "name": "Last7Days", + "value": "Last7Days", + "description": "7 days used to look back." + }, + { + "name": "Last30Days", + "value": "Last30Days", + "description": "30 days used to look back." + }, + { + "name": "Last60Days", + "value": "Last60Days", + "description": "60 days used to look back." + } + ] + } + }, + "MCAPriceSheetProperties": { + "type": "object", + "description": "The properties of the price sheet.", + "properties": { + "billingAccountID": { + "type": "string", + "description": "Unique identifier for the billing account.", + "readOnly": true + }, + "billingAccountName": { + "type": "string", + "description": "Name of the billing profile that is set up to receive invoices. The prices in the price sheet are associated with this billing profile.", + "readOnly": true + }, + "billingProfileId": { + "type": "string", + "description": "Unique identifier for the billing profile.", + "readOnly": true + }, + "billingProfileName": { + "type": "string", + "description": "Name of the billing profile that is set up to receive invoices. The prices in the price sheet are associated with this billing profile.", + "readOnly": true + }, + "productOrderName": { + "type": "string", + "description": "Name of the purchased product plan. Indicates if this pricing is standard Azure Plan pricing, Dev/Test pricing etc.\n\nCurrently unavailable for Azure 3rd party and ReservedInstance meters.", + "readOnly": true + }, + "serviceFamily": { + "type": "number", + "format": "float", + "description": "Type of Azure service. For example, Compute, Analytics, and Security.", + "readOnly": true + }, + "product": { + "type": "string", + "description": "Name of the product accruing the charges.", + "readOnly": true + }, + "productId": { + "type": "string", + "description": "Unique identifier for the product whose meter is consumed.", + "readOnly": true + }, + "skuId": { + "type": "string", + "description": "Unique identifier of the SKU", + "readOnly": true + }, + "unitOfMeasure": { + "type": "string", + "description": "How usage is measured for the service", + "readOnly": true + }, + "meterId": { + "type": "string", + "description": "Unique identifier of the meter", + "readOnly": true + }, + "meterName": { + "type": "string", + "description": "Name of the meter. The meter represents the deployable resource of an Azure service.", + "readOnly": true + }, + "meterType": { + "type": "string", + "description": "Name of the meter type", + "readOnly": true + }, + "meterCategory": { + "type": "string", + "description": "Name of the classification category for the meter. For example, Cloud services, Networking, etc.", + "readOnly": true + }, + "meterSubCategory": { + "type": "string", + "description": "Name of the meter subclassification category.", + "readOnly": true + }, + "meterRegion": { + "type": "string", + "description": "Name of the Azure region where the meter for the service is available.", + "readOnly": true + }, + "tierMinimumUnits": { + "type": "string", + "description": "Defines the lower bound of the tier range for which prices are defined. For example, if the range is 0 to 100, tierMinimumUnits would be 0.", + "readOnly": true + }, + "effectiveStartDate": { + "type": "string", + "format": "date-time", + "description": "Effective start date of the Price Sheet billing period", + "readOnly": true + }, + "effectiveEndDate": { + "type": "string", + "format": "date-time", + "description": "Effective end date of the Price Sheet billing period", + "readOnly": true + }, + "unitPrice": { + "type": "string", + "description": "The per-unit price at the time of billing for a given product or service, inclusive of any negotiated discounts on top of the market price.\n\nFor PriceType ReservedInstance, unit price reflects the total cost of the 1 or 3-year commitment including discounts.\n\nNote: The unit price isn't the same as the effective price in usage details downloads when services have differential prices across tiers.\n\nIf services have multi-tiered pricing, the effective price is a blended rate across the tiers and doesn't show a tier-specific unit price. The blended price or effective price is the net price for the consumed quantity spanning across the multiple tiers (where each tier has a specific unit price).", + "readOnly": true + }, + "basePrice": { + "type": "string", + "description": "The unit price at the time the customer signs on or the unit price at the time of service meter GA launch if it is after sign-on.\n\nThis is applicable for Enterprise Agreement users", + "readOnly": true + }, + "marketPrice": { + "type": "string", + "description": "The current list price for a given product or service. This price is without any negotiations and is based on your Microsoft Agreement type.\n\nFor PriceType Consumption, market price is reflected as the pay-as-you-go price.\n\nFor PriceType Savings Plan, market price reflects the Savings plan benefit on top of pay-as-you-go price for the corresponding commitment term.\n\nFor PriceType ReservedInstance, market price reflects the total price of the 1 or 3-year commitment.", + "readOnly": true + }, + "currency": { + "type": "string", + "description": "Currency in which all the prices are reflected.", + "readOnly": true + }, + "billingCurrency": { + "type": "string", + "description": "Currency in which charges are posted.", + "readOnly": true + }, + "term": { + "type": "string", + "description": "Term length for Azure Savings Plan or Reservation term – one year or three years (P1Y or P3Y)", + "readOnly": true + }, + "priceType": { + "type": "string", + "description": "Price type for a product. For example, an Azure resource with a pay-as-you-go rate with priceType as Consumption. Other price types include ReservedInstance and Savings Plan.", + "readOnly": true + } + } + }, + "MetricType": { + "type": "string", + "description": "Metric to use when displaying costs.", + "enum": [ + "ActualCost", + "AmortizedCost", + "AHUB" + ], + "x-ms-enum": { + "name": "MetricType", + "modelAsString": true, + "values": [ + { + "name": "ActualCost", + "value": "ActualCost" + }, + { + "name": "AmortizedCost", + "value": "AmortizedCost" + }, + { + "name": "AHUB", + "value": "AHUB" + } + ] + } + }, + "Notification": { + "type": "object", + "description": "The notification associated with a budget.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.", + "properties": { + "enabled": { + "type": "boolean", + "description": "The notification is enabled or not.\n\nSupported for CategoryType(s): Cost, ReservationUtilization." + }, + "operator": { + "$ref": "#/definitions/BudgetNotificationOperatorType", + "description": "The comparison operator.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported operators for **CategoryType: Cost**\n- GreaterThan\n- GreaterThanOrEqualTo\n\nSupported operators for **CategoryType: ReservationUtilization**\n- LessThan" + }, + "threshold": { + "type": "number", + "format": "float", + "description": "Threshold value associated with a notification. It is always percent with a maximum of 2 decimal places.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\n**CategoryType: Cost** - Must be between 0 and 1000. Notification is sent when the cost exceeded the threshold.\n\n**CategoryType: ReservationUtilization** - Must be between 0 and 100. Notification is sent when a reservation has a utilization percentage below the threshold." + }, + "frequency": { + "$ref": "#/definitions/Frequency", + "description": "Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days).\n\nSupported for CategoryType(s): ReservationUtilization." + }, + "contactEmails": { + "type": "array", + "description": "Email addresses to send the notification to when the threshold is breached. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.", + "minItems": 0, + "maxItems": 50, + "items": { + "type": "string" + } + }, + "contactRoles": { + "type": "array", + "description": "Subscription or Resource Group scopes only. Contact roles to send the notification to when the threshold is breached.\n\nSupported for CategoryType(s): Cost.", + "items": { + "type": "string" + } + }, + "contactGroups": { + "type": "array", + "description": "Subscription or Resource Group scopes only. Action groups to send the notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id.\n\nSupported for CategoryType(s): Cost.", + "minItems": 0, + "maxItems": 50, + "items": { + "type": "string" + } + }, + "thresholdType": { + "type": "string", + "description": "The type of threshold.\n\nSupported for CategoryType(s): Cost.", + "default": "Actual", + "enum": [ + "Actual", + "Forecasted" + ], + "x-ms-enum": { + "name": "ThresholdType", + "modelAsString": true, + "values": [ + { + "name": "Actual", + "value": "Actual", + "description": "Actual costs budget alerts notify when the actual accrued cost exceeds the allocated budget." + }, + { + "name": "Forecasted", + "value": "Forecasted", + "description": "Forecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions." + } + ] + } + }, + "locale": { + "$ref": "#/definitions/CultureCode", + "description": "Language in which the recipient will receive the notification,\n\nSupported for CategoryType(s): Cost, ReservationUtilization." + } + }, + "required": [ + "enabled", + "operator", + "threshold", + "contactEmails" + ] + }, + "NotificationProperties": { + "type": "object", + "description": "The properties of the scheduled action notification.", + "properties": { + "to": { + "type": "array", + "description": "Array of email addresses.", + "minItems": 1, + "maxItems": 20, + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "description": "Locale of the email." + }, + "message": { + "type": "string", + "description": "Optional message to be added in the email. Length is limited to 250 characters." + }, + "regionalFormat": { + "type": "string", + "description": "Regional format used for formatting date/time and currency values in the email." + }, + "subject": { + "type": "string", + "description": "Subject of the email. Length is limited to 70 characters." + } + }, + "required": [ + "to", + "subject" + ] + }, + "OperationListResult": { + "type": "object", + "description": "Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "description": "List of cost management operations supported by the Microsoft.CostManagement resource provider.", + "items": { + "$ref": "#/definitions/CostManagementOperation" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any.", + "readOnly": true + } + } + }, + "OperationStatus": { + "type": "object", + "description": "The status of the long running operation.", + "properties": { + "status": { + "$ref": "#/definitions/OperationStatusType", + "description": "The status of the long running operation." + }, + "properties": { + "$ref": "#/definitions/ReportURL", + "description": "The properties of the resource generated.", + "x-ms-client-flatten": true + } + } + }, + "OperationStatusType": { + "type": "string", + "description": "Enum representing the status of an async operation.", + "enum": [ + "Running", + "Complete", + "Failed" + ], + "x-ms-enum": { + "name": "OperationStatusType", + "modelAsString": true, + "values": [ + { + "name": "Running", + "value": "Running" + }, + { + "name": "Complete", + "value": "Complete" + }, + { + "name": "Failed", + "value": "Failed" + } + ] + } + }, + "OperatorType": { + "type": "string", + "description": "The operator to use for comparison.", + "enum": [ + "In", + "Contains" + ], + "x-ms-enum": { + "name": "OperatorType", + "modelAsString": true, + "values": [ + { + "name": "In", + "value": "In" + }, + { + "name": "Contains", + "value": "Contains" + } + ] + } + }, + "Origin": { + "type": "string", + "description": "The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\"", + "enum": [ + "user", + "system", + "user,system" + ], + "x-ms-enum": { + "name": "Origin", + "modelAsString": true, + "values": [ + { + "name": "user", + "value": "user" + }, + { + "name": "system", + "value": "system" + }, + { + "name": "user,system", + "value": "user,system" + } + ] + } + }, + "PivotProperties": { + "type": "object", + "description": "Each pivot must contain a 'type' and 'name'.", + "properties": { + "type": { + "$ref": "#/definitions/PivotTypeType", + "description": "Data type to show in view." + }, + "name": { + "type": "string", + "description": "Data field to show in view." + } + } + }, + "PivotTypeType": { + "type": "string", + "description": "Data type to show in view.", + "enum": [ + "Dimension", + "TagKey" + ], + "x-ms-enum": { + "name": "PivotTypeType", + "modelAsString": true, + "values": [ + { + "name": "Dimension", + "value": "Dimension" + }, + { + "name": "TagKey", + "value": "TagKey" + } + ] + } + }, + "PricesheetDownloadProperties": { + "type": "object", + "description": "The URL to download the generated report.", + "properties": { + "expiryTime": { + "type": "string", + "format": "date-time", + "description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.", + "readOnly": true + }, + "downloadUrl": { + "type": "string", + "description": "The URL to download the generated report." + }, + "downloadFileProperties": { + "$ref": "#/definitions/MCAPriceSheetProperties", + "description": "The properties in downloaded file" + } + } + }, + "QueryAggregation": { + "type": "object", + "description": "The aggregation expression to be used in the query.", + "properties": { + "name": { + "type": "string", + "description": "The name of the column to aggregate." + }, + "function": { + "$ref": "#/definitions/FunctionType", + "description": "The name of the aggregation function to use." + } + }, + "required": [ + "name", + "function" + ] + }, + "QueryColumn": { + "type": "object", + "description": "QueryColumn properties", + "properties": { + "name": { + "type": "string", + "description": "The name of column." + }, + "type": { + "type": "string", + "description": "The type of column." + } + } + }, + "QueryColumnType": { + "type": "string", + "description": "The type of the column in the report.", + "enum": [ + "TagKey", + "Dimension" + ], + "x-ms-enum": { + "name": "QueryColumnType", + "modelAsString": true, + "values": [ + { + "name": "TagKey", + "value": "TagKey", + "description": "The tag associated with the cost data." + }, + { + "name": "Dimension", + "value": "Dimension", + "description": "The dimension of cost data." + } + ] + } + }, + "QueryComparisonExpression": { + "type": "object", + "description": "The comparison expression to be used in the query.", + "properties": { + "name": { + "type": "string", + "description": "The name of the column to use in comparison." + }, + "operator": { + "$ref": "#/definitions/QueryOperatorType", + "description": "The operator to use for comparison." + }, + "values": { + "type": "array", + "description": "Array of values to use for comparison", + "minItems": 1, + "items": { + "type": "string" + } + } + }, + "required": [ + "name", + "operator", + "values" + ] + }, + "QueryDataset": { + "type": "object", + "description": "The definition of data present in the query.", + "properties": { + "granularity": { + "$ref": "#/definitions/GranularityType", + "description": "The granularity of rows in the query." + }, + "configuration": { + "$ref": "#/definitions/QueryDatasetConfiguration", + "description": "Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided." + }, + "aggregation": { + "type": "object", + "description": "Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.", + "additionalProperties": { + "$ref": "#/definitions/QueryAggregation" + } + }, + "grouping": { + "type": "array", + "description": "Array of group by expression to use in the query. Query can have up to 2 group by clauses.", + "maxItems": 2, + "items": { + "$ref": "#/definitions/QueryGrouping" + }, + "x-ms-identifiers": [ + "name", + "type" + ] + }, + "filter": { + "$ref": "#/definitions/QueryFilter", + "description": "The filter expression to use in the query. Please reference our Query API REST documentation for how to properly format the filter." + } + } + }, + "QueryDatasetConfiguration": { + "type": "object", + "description": "The configuration of dataset in the query.", + "properties": { + "columns": { + "type": "array", + "description": "Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.", + "items": { + "type": "string" + } + } + } + }, + "QueryDefinition": { + "type": "object", + "description": "The definition of a query.", + "properties": { + "type": { + "$ref": "#/definitions/ExportType", + "description": "The type of the query." + }, + "timeframe": { + "$ref": "#/definitions/TimeframeType", + "description": "The time frame for pulling data for the query. If custom, then a specific time period must be provided." + }, + "timePeriod": { + "$ref": "#/definitions/QueryTimePeriod", + "description": "Has time period for pulling data for the query." + }, + "dataset": { + "$ref": "#/definitions/QueryDataset", + "description": "Has definition for data in this query." + } + }, + "required": [ + "type", + "timeframe", + "dataset" + ] + }, + "QueryFilter": { + "type": "object", + "description": "The filter expression to be used in the export.", + "properties": { + "and": { + "type": "array", + "description": "The logical \"AND\" expression. Must have at least 2 items.", + "minItems": 2, + "items": { + "$ref": "#/definitions/QueryFilter" + }, + "x-ms-identifiers": [] + }, + "or": { + "type": "array", + "description": "The logical \"OR\" expression. Must have at least 2 items.", + "minItems": 2, + "items": { + "$ref": "#/definitions/QueryFilter" + }, + "x-ms-identifiers": [] + }, + "dimensions": { + "$ref": "#/definitions/QueryComparisonExpression", + "description": "Has comparison expression for a dimension" + }, + "tags": { + "$ref": "#/definitions/QueryComparisonExpression", + "description": "Has comparison expression for a tag" + } + } + }, + "QueryGrouping": { + "type": "object", + "description": "The group by expression to be used in the query.", + "properties": { + "type": { + "$ref": "#/definitions/QueryColumnType", + "description": "Has type of the column to group." + }, + "name": { + "type": "string", + "description": "The name of the column to group." + } + }, + "required": [ + "type", + "name" + ] + }, + "QueryOperatorType": { + "type": "string", + "description": "The operator to use for comparison.", + "enum": [ + "In" + ], + "x-ms-enum": { + "name": "QueryOperatorType", + "modelAsString": true, + "values": [ + { + "name": "In", + "value": "In" + } + ] + } + }, + "QueryProperties": { + "type": "object", + "description": "Query properties", + "properties": { + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results." + }, + "columns": { + "type": "array", + "description": "Array of columns", + "items": { + "$ref": "#/definitions/QueryColumn" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "rows": { + "type": "array", + "description": "Array of rows", + "items": { + "type": "array", + "items": {} + }, + "x-ms-identifiers": [] + } + } + }, + "QueryResult": { + "type": "object", + "description": "Result of query. It contains all columns listed under groupings and aggregation.", + "properties": { + "properties": { + "$ref": "#/definitions/QueryProperties", + "description": "Query properties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/CostManagementResource" + } + ] + }, + "QueryTimePeriod": { + "type": "object", + "description": "The start and end date for pulling data for the query.", + "properties": { + "from": { + "type": "string", + "format": "date-time", + "description": "The start date to pull data from." + }, + "to": { + "type": "string", + "format": "date-time", + "description": "The end date to pull data to." + } + }, + "required": [ + "from", + "to" + ] + }, + "Reason": { + "type": "string", + "description": "The reason this name is not available.", + "enum": [ + "Invalid", + "AlreadyExists", + "Valid" + ], + "x-ms-enum": { + "name": "Reason", + "modelAsString": true, + "values": [ + { + "name": "Invalid", + "value": "Invalid" + }, + { + "name": "AlreadyExists", + "value": "AlreadyExists" + }, + { + "name": "Valid", + "value": "Valid" + } + ] + } + }, + "RecurrenceType": { + "type": "string", + "description": "The schedule recurrence.", + "enum": [ + "Daily", + "Weekly", + "Monthly", + "Annually" + ], + "x-ms-enum": { + "name": "RecurrenceType", + "modelAsString": true, + "values": [ + { + "name": "Daily", + "value": "Daily" + }, + { + "name": "Weekly", + "value": "Weekly" + }, + { + "name": "Monthly", + "value": "Monthly" + }, + { + "name": "Annually", + "value": "Annually" + } + ] + } + }, + "ReportConfigAggregation": { + "type": "object", + "description": "The aggregation expression to be used in the report.", + "properties": { + "name": { + "type": "string", + "description": "The name of the column to aggregate." + }, + "function": { + "$ref": "#/definitions/FunctionType", + "description": "The name of the aggregation function to use." + } + }, + "required": [ + "name", + "function" + ] + }, + "ReportConfigComparisonExpression": { + "type": "object", + "description": "The comparison expression to be used in the report.", + "properties": { + "name": { + "type": "string", + "description": "The name of the column to use in comparison." + }, + "operator": { + "$ref": "#/definitions/OperatorType", + "description": "The operator to use for comparison." + }, + "values": { + "type": "array", + "description": "Array of values to use for comparison", + "minItems": 1, + "items": { + "type": "string" + } + } + }, + "required": [ + "name", + "operator", + "values" + ] + }, + "ReportConfigDataset": { + "type": "object", + "description": "The definition of data present in the report.", + "properties": { + "granularity": { + "$ref": "#/definitions/ReportGranularityType", + "description": "The granularity of rows in the report." + }, + "configuration": { + "$ref": "#/definitions/ReportConfigDatasetConfiguration", + "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided." + }, + "aggregation": { + "type": "object", + "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.", + "additionalProperties": { + "$ref": "#/definitions/ReportConfigAggregation" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "grouping": { + "type": "array", + "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.", + "maxItems": 2, + "items": { + "$ref": "#/definitions/ReportConfigGrouping" + }, + "x-ms-identifiers": [ + "name", + "type" + ] + }, + "sorting": { + "type": "array", + "description": "Array of order by expression to use in the report.", + "items": { + "$ref": "#/definitions/ReportConfigSorting" + }, + "x-ms-identifiers": [] + }, + "filter": { + "$ref": "#/definitions/ReportConfigFilter", + "description": "Has filter expression to use in the report." + } + } + }, + "ReportConfigDatasetConfiguration": { + "type": "object", + "description": "The configuration of dataset in the report.", + "properties": { + "columns": { + "type": "array", + "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.", + "items": { + "type": "string" + } + } + } + }, + "ReportConfigDefinition": { + "type": "object", + "description": "The definition of a report config.", + "properties": { + "type": { + "$ref": "#/definitions/ReportType", + "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates." + }, + "timeframe": { + "$ref": "#/definitions/ReportTimeframeType", + "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided." + }, + "timePeriod": { + "$ref": "#/definitions/ReportConfigTimePeriod", + "description": "Has time period for pulling data for the report." + }, + "dataSet": { + "$ref": "#/definitions/ReportConfigDataset", + "description": "Has definition for data in this report config." + }, + "includeMonetaryCommitment": { + "type": "boolean", + "description": "If true, report includes monetary commitment." + } + }, + "required": [ + "type", + "timeframe" + ] + }, + "ReportConfigFilter": { + "type": "object", + "description": "The filter expression to be used in the report.", + "properties": { + "and": { + "type": "array", + "description": "The logical \"AND\" expression. Must have at least 2 items.", + "minItems": 2, + "items": { + "$ref": "#/definitions/ReportConfigFilter" + }, + "x-ms-identifiers": [] + }, + "or": { + "type": "array", + "description": "The logical \"OR\" expression. Must have at least 2 items.", + "minItems": 2, + "items": { + "$ref": "#/definitions/ReportConfigFilter" + }, + "x-ms-identifiers": [] + }, + "dimensions": { + "$ref": "#/definitions/ReportConfigComparisonExpression", + "description": "Has comparison expression for a dimension" + }, + "tags": { + "$ref": "#/definitions/ReportConfigComparisonExpression", + "description": "Has comparison expression for a tag" + } + } + }, + "ReportConfigGrouping": { + "type": "object", + "description": "The group by expression to be used in the report.", + "properties": { + "type": { + "$ref": "#/definitions/QueryColumnType", + "description": "Has type of the column to group." + }, + "name": { + "type": "string", + "description": "The name of the column to group. This version supports subscription lowest possible grain." + } + }, + "required": [ + "type", + "name" + ] + }, + "ReportConfigSorting": { + "type": "object", + "description": "The order by expression to be used in the report.", + "properties": { + "direction": { + "$ref": "#/definitions/ReportConfigSortingType", + "description": "Direction of sort." + }, + "name": { + "type": "string", + "description": "The name of the column to sort." + } + }, + "required": [ + "name" + ] + }, + "ReportConfigSortingType": { + "type": "string", + "description": "Direction of sort.", + "enum": [ + "Ascending", + "Descending" + ], + "x-ms-enum": { + "name": "ReportConfigSortingType", + "modelAsString": true, + "values": [ + { + "name": "Ascending", + "value": "Ascending" + }, + { + "name": "Descending", + "value": "Descending" + } + ] + } + }, + "ReportConfigTimePeriod": { + "type": "object", + "description": "The start and end date for pulling data for the report.", + "properties": { + "from": { + "type": "string", + "format": "date-time", + "description": "The start date to pull data from." + }, + "to": { + "type": "string", + "format": "date-time", + "description": "The end date to pull data to." + } + }, + "required": [ + "from", + "to" + ] + }, + "ReportGranularityType": { + "type": "string", + "description": "The granularity of rows in the report.", + "enum": [ + "Daily", + "Monthly" + ], + "x-ms-enum": { + "name": "ReportGranularityType", + "modelAsString": true, + "values": [ + { + "name": "Daily", + "value": "Daily" + }, + { + "name": "Monthly", + "value": "Monthly" + } + ] + } + }, + "ReportManifest": { + "type": "object", + "description": "The manifest of the report generated by the operation.", + "properties": { + "manifestVersion": { + "type": "string", + "description": "The Manifest version." + }, + "dataFormat": { + "$ref": "#/definitions/CostDetailsDataFormat", + "description": "The data format of the report" + }, + "byteCount": { + "type": "integer", + "format": "int64", + "description": "The total number of bytes in all blobs." + }, + "blobCount": { + "type": "integer", + "format": "int32", + "description": "The total number of blobs." + }, + "compressData": { + "type": "boolean", + "description": "Is the data in compressed format." + }, + "requestContext": { + "$ref": "#/definitions/RequestContext", + "description": "The context of the Cost Details request.", + "x-ms-client-flatten": true + }, + "blobs": { + "type": "array", + "description": "List of blob information generated by this operation.", + "items": { + "$ref": "#/definitions/BlobInfo" + }, + "x-ms-identifiers": [ + "blobLink" + ] + } + } + }, + "ReportOperationStatusType": { + "type": "string", + "description": "The status of the long running operation.", + "enum": [ + "InProgress", + "Completed", + "Failed", + "Queued", + "NoDataFound", + "ReadyToDownload", + "TimedOut" + ], + "x-ms-enum": { + "name": "ReportOperationStatusType", + "modelAsString": true, + "values": [ + { + "name": "InProgress", + "value": "InProgress" + }, + { + "name": "Completed", + "value": "Completed" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Queued", + "value": "Queued" + }, + { + "name": "NoDataFound", + "value": "NoDataFound" + }, + { + "name": "ReadyToDownload", + "value": "ReadyToDownload" + }, + { + "name": "TimedOut", + "value": "TimedOut" + } + ] + } + }, + "ReportTimeframeType": { + "type": "string", + "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.", + "enum": [ + "WeekToDate", + "MonthToDate", + "YearToDate", + "Custom" + ], + "x-ms-enum": { + "name": "ReportTimeframeType", + "modelAsString": true, + "values": [ + { + "name": "WeekToDate", + "value": "WeekToDate" + }, + { + "name": "MonthToDate", + "value": "MonthToDate" + }, + { + "name": "YearToDate", + "value": "YearToDate" + }, + { + "name": "Custom", + "value": "Custom" + } + ] + } + }, + "ReportType": { + "type": "string", + "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.", + "enum": [ + "Usage" + ], + "x-ms-enum": { + "name": "ReportType", + "modelAsString": true, + "values": [ + { + "name": "Usage", + "value": "Usage" + } + ] + } + }, + "ReportURL": { + "type": "object", + "description": "The URL to download the generated report.", + "properties": { + "reportUrl": { + "$ref": "#/definitions/ReservationReportSchema", + "description": "The CSV file from the reportUrl blob link consists of reservation usage data with the following schema at daily granularity" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "description": "The time at which report URL becomes invalid." + } + } + }, + "RequestContext": { + "type": "object", + "description": "The context of the Cost Details request.", + "properties": { + "requestScope": { + "type": "string", + "description": "The request scope of the request." + }, + "requestBody": { + "$ref": "#/definitions/GenerateCostDetailsReportRequestDefinition", + "description": "The request payload body provided in Cost Details call" + } + } + }, + "ReservationReportSchema": { + "type": "string", + "description": "The CSV file from the reportUrl blob link consists of reservation usage data with the following schema at daily granularity", + "enum": [ + "InstanceFlexibilityGroup", + "InstanceFlexibilityRatio", + "InstanceId", + "Kind", + "ReservationId", + "ReservationOrderId", + "ReservedHours", + "SkuName", + "TotalReservedQuantity", + "UsageDate", + "UsedHours" + ], + "x-ms-enum": { + "name": "ReservationReportSchema", + "modelAsString": true, + "values": [ + { + "name": "InstanceFlexibilityGroup", + "value": "InstanceFlexibilityGroup" + }, + { + "name": "InstanceFlexibilityRatio", + "value": "InstanceFlexibilityRatio" + }, + { + "name": "InstanceId", + "value": "InstanceId" + }, + { + "name": "Kind", + "value": "Kind" + }, + { + "name": "ReservationId", + "value": "ReservationId" + }, + { + "name": "ReservationOrderId", + "value": "ReservationOrderId" + }, + { + "name": "ReservedHours", + "value": "ReservedHours" + }, + { + "name": "SkuName", + "value": "SkuName" + }, + { + "name": "TotalReservedQuantity", + "value": "TotalReservedQuantity" + }, + { + "name": "UsageDate", + "value": "UsageDate" + }, + { + "name": "UsedHours", + "value": "UsedHours" + } + ] + } + }, + "RuleStatus": { + "type": "string", + "description": "Current status of the rule.", + "enum": [ + "NotActive", + "Active", + "Processing" + ], + "x-ms-enum": { + "name": "RuleStatus", + "modelAsString": true, + "values": [ + { + "name": "NotActive", + "value": "NotActive", + "description": "Rule is saved but not used to allocate costs." + }, + { + "name": "Active", + "value": "Active", + "description": "Rule is saved and impacting cost allocation." + }, + { + "name": "Processing", + "value": "Processing", + "description": "Rule is saved and cost allocation is being updated. Readonly value that cannot be submitted in a put request." + } + ] + } + }, + "SavingsPlanUtilizationSummary": { + "type": "object", + "description": "Savings plan utilization summary resource.", + "properties": { + "properties": { + "$ref": "#/definitions/SavingsPlanUtilizationSummaryProperties", + "description": "Savings plan utilization summary properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/BenefitUtilizationSummary" + } + ], + "x-ms-discriminator-value": "SavingsPlan" + }, + "SavingsPlanUtilizationSummaryProperties": { + "type": "object", + "description": "Savings plan utilization summary properties.", + "properties": { + "avgUtilizationPercentage": { + "type": "number", + "format": "decimal", + "description": "This is the average hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the avgUtilizationPercentage value will be equal to the average of the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day.", + "readOnly": true + }, + "minUtilizationPercentage": { + "type": "number", + "format": "decimal", + "description": "This is the minimum hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the minUtilizationPercentage value will be equal to the smallest in the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day. If on the day 2022-10-18, the lowest utilization percentage was 10% at hour 4, then the value for the minUtilizationPercentage in the response will be 10%.", + "readOnly": true + }, + "maxUtilizationPercentage": { + "type": "number", + "format": "decimal", + "description": "This is the maximum hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the maxUtilizationPercentage value will be equal to the largest in the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day. If on the day 2022-10-18, the largest utilization percentage was 90% at hour 5, then the value for the maxUtilizationPercentage in the response will be 90%.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/BenefitUtilizationSummaryProperties" + } + ] + }, + "ScheduleFrequency": { + "type": "string", + "description": "Frequency of the schedule.", + "enum": [ + "Daily", + "Weekly", + "Monthly" + ], + "x-ms-enum": { + "name": "ScheduleFrequency", + "modelAsString": true, + "values": [ + { + "name": "Daily", + "value": "Daily", + "description": "Cost analysis data will be emailed every day." + }, + { + "name": "Weekly", + "value": "Weekly", + "description": "Cost analysis data will be emailed every week." + }, + { + "name": "Monthly", + "value": "Monthly", + "description": "Cost analysis data will be emailed every month." + } + ] + } + }, + "ScheduleProperties": { + "type": "object", + "description": "The properties of the schedule.", + "properties": { + "frequency": { + "$ref": "#/definitions/ScheduleFrequency", + "description": "Frequency of the schedule." + }, + "hourOfDay": { + "type": "integer", + "format": "int32", + "description": "UTC time at which cost analysis data will be emailed." + }, + "daysOfWeek": { + "type": "array", + "description": "Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.", + "items": { + "$ref": "#/definitions/DaysOfWeek" + } + }, + "weeksOfMonth": { + "type": "array", + "description": "Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.", + "items": { + "$ref": "#/definitions/WeeksOfMonth" + } + }, + "dayOfMonth": { + "type": "integer", + "format": "int32", + "description": "UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek." + }, + "startDate": { + "type": "string", + "format": "date-time", + "description": "The start date and time of the scheduled action (UTC)." + }, + "endDate": { + "type": "string", + "format": "date-time", + "description": "The end date and time of the scheduled action (UTC)." + } + }, + "required": [ + "frequency", + "startDate", + "endDate" + ] + }, + "ScheduledAction": { + "type": "object", + "description": "Scheduled action definition.", + "properties": { + "properties": { + "$ref": "#/definitions/ScheduledActionProperties", + "description": "The properties of the scheduled action.", + "x-ms-client-flatten": true + }, + "eTag": { + "$ref": "#/definitions/Azure.Core.eTag", + "description": "Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required." + }, + "kind": { + "$ref": "#/definitions/ScheduledActionKind", + "description": "Kind of the scheduled action." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "ScheduledActionKind": { + "type": "string", + "description": "Kind of the scheduled action.", + "enum": [ + "Email", + "InsightAlert" + ], + "x-ms-enum": { + "name": "ScheduledActionKind", + "modelAsString": true, + "values": [ + { + "name": "Email", + "value": "Email", + "description": "Cost analysis data will be emailed." + }, + { + "name": "InsightAlert", + "value": "InsightAlert", + "description": "Cost anomaly information will be emailed. Available only on subscription scope at daily frequency. If no anomaly is detected on the resource, an email won't be sent." + } + ] + } + }, + "ScheduledActionListResult": { + "type": "object", + "description": "Scheduled actions list result. It contains a list of scheduled actions.", + "properties": { + "value": { + "type": "array", + "description": "The list of scheduled actions.", + "items": { + "$ref": "#/definitions/ScheduledAction" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results." + } + } + }, + "ScheduledActionProperties": { + "type": "object", + "description": "The properties of the scheduled action.", + "properties": { + "displayName": { + "type": "string", + "description": "Scheduled action name." + }, + "fileDestination": { + "$ref": "#/definitions/FileDestination", + "description": "Destination format of the view data. This is optional." + }, + "notification": { + "$ref": "#/definitions/NotificationProperties", + "description": "Notification properties based on scheduled action kind." + }, + "notificationEmail": { + "type": "string", + "description": "Email address of the point of contact that should get the unsubscribe requests and notification emails." + }, + "schedule": { + "$ref": "#/definitions/ScheduleProperties", + "description": "Schedule of the scheduled action." + }, + "scope": { + "type": "string", + "description": "For private scheduled action(Create or Update), scope will be empty.
For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope." + }, + "status": { + "$ref": "#/definitions/ScheduledActionStatus", + "description": "Status of the scheduled action." + }, + "viewId": { + "type": "string", + "description": "Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'" + } + }, + "required": [ + "displayName", + "notification", + "schedule", + "status", + "viewId" + ] + }, + "ScheduledActionProxyResource": { + "type": "object", + "description": "The Resource model definition.", + "properties": { + "eTag": { + "type": "string", + "description": "Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required.", + "readOnly": true + }, + "kind": { + "$ref": "#/definitions/ScheduledActionKind", + "description": "Kind of the scheduled action." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/systemData", + "description": "Kind of the scheduled action." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "ScheduledActionStatus": { + "type": "string", + "description": "Status of the scheduled action.", + "enum": [ + "Enabled", + "Expired", + "Disabled" + ], + "x-ms-enum": { + "name": "ScheduledActionStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Scheduled action is saved and will be run." + }, + { + "name": "Expired", + "value": "Expired", + "description": "Scheduled action is expired." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Scheduled action is saved but will not be run." + } + ] + } + }, + "Scope": { + "type": "string", + "description": "Kind of the recommendation scope.", + "enum": [ + "Single", + "Shared" + ], + "x-ms-enum": { + "name": "Scope", + "modelAsString": true, + "values": [ + { + "name": "Single", + "value": "Single", + "description": "Single scope recommendation." + }, + { + "name": "Shared", + "value": "Shared", + "description": "Shared scope recommendation." + } + ] + } + }, + "Setting": { + "type": "object", + "description": "Setting definition.", + "properties": { + "properties": { + "type": "object", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true + }, + "kind": { + "$ref": "#/definitions/SettingsKind", + "description": "Specifies the kind of settings." + } + }, + "discriminator": "kind", + "required": [ + "kind" + ], + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "SettingType": { + "type": "string", + "enum": [ + "taginheritance" + ], + "x-ms-enum": { + "name": "SettingType", + "modelAsString": true, + "values": [ + { + "name": "taginheritance", + "value": "taginheritance", + "description": "This setting applies billing profile, invoice section, subscription and resource group tags to current month's usage data of child resources." + } + ] + } + }, + "SettingsKind": { + "type": "string", + "description": "Specifies the kind of settings.", + "enum": [ + "taginheritance" + ], + "x-ms-enum": { + "name": "SettingsKind", + "modelAsString": true, + "values": [ + { + "name": "taginheritance", + "value": "taginheritance" + } + ] + } + }, + "SettingsListResult": { + "type": "object", + "description": "Setting list result. It contains a list of settings.", + "properties": { + "value": { + "type": "array", + "description": "The list of settings.", + "items": { + "$ref": "#/definitions/Setting" + }, + "readOnly": true, + "x-ms-identifiers": [ + "id" + ] + } + } + }, + "SourceCostAllocationResource": { + "type": "object", + "description": "Source resources for cost allocation", + "properties": { + "values": { + "type": "array", + "description": "Source Resources for cost allocation. This list cannot contain more than 25 values.", + "items": { + "type": "string" + }, + "x-ms-identifiers": [ + "name" + ] + } + }, + "required": [ + "values" + ], + "allOf": [ + { + "$ref": "#/definitions/CostAllocationResource" + } + ] + }, + "Status": { + "type": "object", + "description": "The status of the long running operation.", + "properties": { + "status": { + "$ref": "#/definitions/ReportOperationStatusType", + "description": "The status of the long running operation." + } + } + }, + "StatusType": { + "type": "string", + "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused. To enable export set the status to be Active and then make a PUT request.", + "enum": [ + "Active", + "Inactive" + ], + "x-ms-enum": { + "name": "StatusType", + "modelAsString": true, + "values": [ + { + "name": "Active", + "value": "Active" + }, + { + "name": "Inactive", + "value": "Inactive" + } + ] + } + }, + "TagInheritanceProperties": { + "type": "object", + "description": "The properties of the tag inheritance setting.", + "properties": { + "preferContainerTags": { + "type": "boolean", + "description": "This property defines the behavior when an inherited tag being applied matches a lower scope tag (Eg. Subscription tag matches the resource tag). If set to true - when tags match, the highest scope tags will be applied. Billing profile is the highest scope, followed by invoice sections, subscriptions and resource groups (allows overriding of lower scope tag values). If set to false - when tags match, the lowest scope tags will be applied. So, if a resource has the same tag as a subscription tag, the resource tag will be applied (does not allow overriding of lower scope tag values)." + } + }, + "required": [ + "preferContainerTags" + ] + }, + "TagInheritanceSetting": { + "type": "object", + "description": "Tag Inheritance Setting definition.", + "properties": { + "properties": { + "$ref": "#/definitions/TagInheritanceProperties", + "description": "The properties of the tag inheritance setting." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Setting" + } + ], + "x-ms-discriminator-value": "taginheritance" + }, + "TargetCostAllocationResource": { + "type": "object", + "description": "Target resources for cost allocation.", + "properties": { + "values": { + "type": "array", + "description": "Target resources for cost allocation. This list cannot contain more than 25 values.", + "items": { + "$ref": "#/definitions/CostAllocationProportion" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "policyType": { + "$ref": "#/definitions/CostAllocationPolicyType", + "description": "Method of cost allocation for the rule" + } + }, + "required": [ + "values", + "policyType" + ], + "allOf": [ + { + "$ref": "#/definitions/CostAllocationResource" + } + ] + }, + "Term": { + "type": "string", + "description": "Grain which corresponds to value.", + "enum": [ + "P1Y", + "P3Y" + ], + "x-ms-enum": { + "name": "Term", + "modelAsString": true, + "values": [ + { + "name": "P1Y", + "value": "P1Y", + "description": "Benefit term is 1 year." + }, + { + "name": "P3Y", + "value": "P3Y", + "description": "Benefit term is 3 years." + } + ] + } + }, + "ThresholdType": { + "type": "string", + "description": "The type of threshold.\n\nSupported for CategoryType(s): Cost.", + "enum": [ + "Actual", + "Forecasted" + ], + "x-ms-enum": { + "name": "ThresholdType", + "modelAsString": true, + "values": [ + { + "name": "Actual", + "value": "Actual", + "description": "Actual costs budget alerts notify when the actual accrued cost exceeds the allocated budget." + }, + { + "name": "Forecasted", + "value": "Forecasted", + "description": "Forecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions." + } + ] + } + }, + "TimeGrainType": { + "type": "string", + "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported timeGrainTypes for **CategoryType: Cost**\n\n- Monthly\n- Quarterly\n- Annually\n- BillingMonth*\n- BillingQuarter*\n- BillingAnnual*\n\n*only supported for Web Direct customers.\n\nSupported timeGrainTypes for **CategoryType: ReservationUtilization**\n- Last7Days\n- Last30Days\n\nRequired for CategoryType(s): Cost, ReservationUtilization.", + "enum": [ + "Monthly", + "Quarterly", + "Annually", + "BillingMonth", + "BillingQuarter", + "BillingAnnual", + "Last7Days", + "Last30Days" + ], + "x-ms-enum": { + "name": "TimeGrainType", + "modelAsString": true, + "values": [ + { + "name": "Monthly", + "value": "Monthly", + "description": "The budget will track costs in the current calendar month against the amount.\n\nSupported for CategoryType: Cost only." + }, + { + "name": "Quarterly", + "value": "Quarterly", + "description": "The budget will track costs in the current calendar quarter against the amount.\n\nSupported for CategoryType: Cost only." + }, + { + "name": "Annually", + "value": "Annually", + "description": "The budget will track costs in the current calendar year against the amount.\n\nSupported for CategoryType: Cost only." + }, + { + "name": "BillingMonth", + "value": "BillingMonth", + "description": "The budget will track costs in the current billing month against the amount.\n\nSupported for CategoryType: Cost and Web Direct customers only." + }, + { + "name": "BillingQuarter", + "value": "BillingQuarter", + "description": "The budget will track costs in the current billing quarter against the amount.\n\nSupported for CategoryType: Cost and Web Direct customers only." + }, + { + "name": "BillingAnnual", + "value": "BillingAnnual", + "description": "The budget will track costs in the current billing year against the amount.\n\nSupported for CategoryType: Cost and Web Direct customers only." + }, + { + "name": "Last7Days", + "value": "Last7Days", + "description": "The Reservation Utilization Alert Rule will evaluate reservations based on their 7-Day utilization percentage.\n\nSupported for CategoryType: ReservationUtilization only." + }, + { + "name": "Last30Days", + "value": "Last30Days", + "description": "The Reservation Utilization Alert Rule will evaluate reservations based on their 30-Day utilization percentage.\n\nSupported for CategoryType: ReservationUtilization only." + } + ] + } + }, + "TimeframeType": { + "type": "string", + "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.", + "enum": [ + "MonthToDate", + "BillingMonthToDate", + "TheLastMonth", + "TheLastBillingMonth", + "WeekToDate", + "Custom", + "TheCurrentMonth" + ], + "x-ms-enum": { + "name": "TimeframeType", + "modelAsString": true, + "values": [ + { + "name": "MonthToDate", + "value": "MonthToDate" + }, + { + "name": "BillingMonthToDate", + "value": "BillingMonthToDate" + }, + { + "name": "TheLastMonth", + "value": "TheLastMonth" + }, + { + "name": "TheLastBillingMonth", + "value": "TheLastBillingMonth" + }, + { + "name": "WeekToDate", + "value": "WeekToDate" + }, + { + "name": "Custom", + "value": "Custom" + }, + { + "name": "TheCurrentMonth", + "value": "TheCurrentMonth" + } + ] + } + }, + "View": { + "type": "object", + "description": "States and configurations of Cost Analysis.", + "properties": { + "properties": { + "$ref": "#/definitions/ViewProperties", + "description": "The properties of the view.", + "x-ms-client-flatten": true + }, + "eTag": { + "$ref": "#/definitions/Azure.Core.eTag", + "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "ViewListResult": { + "type": "object", + "description": "Result of listing views. It contains a list of available views.", + "properties": { + "value": { + "type": "array", + "description": "The list of views.", + "items": { + "$ref": "#/definitions/View" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results." + } + } + }, + "ViewProperties": { + "type": "object", + "description": "The properties of the view.", + "properties": { + "displayName": { + "type": "string", + "description": "User input name of the view. Required." + }, + "scope": { + "type": "string", + "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope." + }, + "createdOn": { + "type": "string", + "format": "date-time", + "description": "Date the user created this view.", + "readOnly": true + }, + "modifiedOn": { + "type": "string", + "format": "date-time", + "description": "Date when the user last modified this view." + }, + "dateRange": { + "type": "string", + "description": "Date range of the current view." + }, + "currency": { + "type": "string", + "description": "Currency of the current view.", + "readOnly": true + }, + "query": { + "$ref": "#/definitions/ReportConfigDefinition", + "description": "Query body configuration. Required.", + "x-ms-client-flatten": true + }, + "chart": { + "$ref": "#/definitions/ChartType", + "description": "Chart type of the main view in Cost Analysis. Required." + }, + "accumulated": { + "$ref": "#/definitions/AccumulatedType", + "description": "Show costs accumulated over time." + }, + "metric": { + "$ref": "#/definitions/MetricType", + "description": "Metric to use when displaying costs." + }, + "kpis": { + "type": "array", + "description": "List of KPIs to show in Cost Analysis UI.", + "items": { + "$ref": "#/definitions/KpiProperties" + } + }, + "pivots": { + "type": "array", + "description": "Configuration of 3 sub-views in the Cost Analysis UI.", + "items": { + "$ref": "#/definitions/PivotProperties" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "WeeksOfMonth": { + "type": "string", + "description": "Weeks of month.", + "enum": [ + "First", + "Second", + "Third", + "Fourth", + "Last" + ], + "x-ms-enum": { + "name": "WeeksOfMonth", + "modelAsString": true, + "values": [ + { + "name": "First", + "value": "First" + }, + { + "name": "Second", + "value": "Second" + }, + { + "name": "Third", + "value": "Third" + }, + { + "name": "Fourth", + "value": "Fourth" + }, + { + "name": "Last", + "value": "Last" + } + ] + } + }, + "allSavingsBenefitDetails": { + "type": "object", + "description": "Benefit recommendation details.", + "properties": { + "overageCost": { + "type": "number", + "format": "decimal", + "description": "The difference between total cost and benefit cost for the 'totalHours' in the look-back period.", + "readOnly": true + }, + "benefitCost": { + "type": "number", + "format": "decimal", + "description": "The estimated cost with benefit for the 'totalHours' in the look-back period. It's equal to (commitmentAmount * totalHours)", + "readOnly": true + }, + "totalCost": { + "type": "number", + "format": "decimal", + "description": "Total cost, which is sum of benefit cost and overage cost.", + "readOnly": true + }, + "savingsAmount": { + "type": "number", + "format": "decimal", + "description": "The amount saved for the 'totalHours' in the look-back period, by purchasing the recommended quantity of the benefit.", + "readOnly": true + }, + "savingsPercentage": { + "type": "number", + "format": "decimal", + "description": "The savings in percentage for the 'totalHours' in the look-back period, by purchasing the recommended quantity of benefit.", + "readOnly": true + }, + "coveragePercentage": { + "type": "number", + "format": "decimal", + "description": "Estimated benefit coverage percentage for the 'totalHours' in the look-back period, with this commitment.", + "readOnly": true + }, + "commitmentAmount": { + "type": "number", + "format": "decimal", + "description": "The commitment amount at the commitmentGranularity.", + "readOnly": true + }, + "averageUtilizationPercentage": { + "type": "number", + "format": "decimal", + "description": "Estimated average utilization percentage for the 'totalHours' in the look-back period, with this commitment.", + "readOnly": true + }, + "wastageCost": { + "type": "number", + "format": "decimal", + "description": "Estimated unused portion of the 'benefitCost'.", + "readOnly": true + } + } + }, + "allSavingsList": { + "type": "object", + "description": "The list of all benefit recommendations with the recommendation details.", + "properties": { + "value": { + "type": "array", + "description": "The list of benefit recommendations with the recommendation details..", + "items": { + "$ref": "#/definitions/allSavingsBenefitDetails" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link (URL) to the next page of results.", + "readOnly": true + } + } + }, + "benefitRecommendationModel": { + "type": "object", + "description": "benefit plan recommendation details.", + "properties": { + "properties": { + "$ref": "#/definitions/benefitRecommendationProperties", + "description": "The properties of the benefit recommendations." + } + }, + "allOf": [ + { + "$ref": "#/definitions/BenefitResource" + } + ] + }, + "benefitRecommendationProperties": { + "type": "object", + "description": "The properties of the benefit recommendations.", + "properties": { + "firstConsumptionDate": { + "type": "string", + "format": "date-time", + "description": "The first usage date used for looking back for computing the recommendations.", + "readOnly": true + }, + "lastConsumptionDate": { + "type": "string", + "format": "date-time", + "description": "The last usage date used for looking back for computing the recommendations.", + "readOnly": true + }, + "lookBackPeriod": { + "$ref": "#/definitions/LookBackPeriod", + "description": "The number of days of usage evaluated for computing the recommendations." + }, + "totalHours": { + "type": "integer", + "format": "int32", + "description": "The total hours for which the cost is covered. Its equal to number of records in a property 'properties/usage/charges'.", + "readOnly": true + }, + "usage": { + "$ref": "#/definitions/recommendationUsageDetails", + "description": "On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations." + }, + "armSkuName": { + "type": "string", + "description": "ARM SKU name. 'Compute_Savings_Plan' for SavingsPlan.", + "readOnly": true + }, + "term": { + "$ref": "#/definitions/Term", + "description": "Term period of the benefit. For example, P1Y or P3Y." + }, + "commitmentGranularity": { + "$ref": "#/definitions/Grain", + "description": "Grain of the proposed commitment amount. Supported values: 'Hourly'" + }, + "currencyCode": { + "type": "string", + "description": "An ISO 4217 currency code identifier for the costs and savings amounts.", + "readOnly": true + }, + "costWithoutBenefit": { + "type": "number", + "format": "decimal", + "description": "The current cost without benefit, corresponds to 'totalHours' in the look-back period.", + "readOnly": true + }, + "recommendationDetails": { + "$ref": "#/definitions/allSavingsBenefitDetails", + "description": "The details of the proposed recommendation." + }, + "allRecommendationDetails": { + "$ref": "#/definitions/allSavingsList", + "description": "The list of all benefit recommendations with the recommendation details.", + "readOnly": true + }, + "scope": { + "$ref": "#/definitions/Scope", + "description": "Benefit scope. For example, Single or Shared." + } + }, + "discriminator": "scope", + "required": [ + "scope" + ] + }, + "benefitRecommendationsListResult": { + "type": "object", + "description": "Result of listing benefit recommendations.", + "properties": { + "value": { + "type": "array", + "description": "The list of benefit recommendations.", + "items": { + "$ref": "#/definitions/benefitRecommendationModel" + }, + "readOnly": true + }, + "nextLink": { + "type": "string", + "description": "The link (url) to the next page of results." + } + } + }, + "recommendationUsageDetails": { + "type": "object", + "description": "On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.", + "properties": { + "usageGrain": { + "$ref": "#/definitions/Grain", + "description": "The grain of the usage. Supported values: 'Hourly'" + }, + "charges": { + "type": "array", + "description": "On-demand charges for each hour between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.", + "items": { + "type": "number", + "format": "decimal" + }, + "readOnly": true + } + } + }, + "sharedScopeBenefitRecommendationProperties": { + "type": "object", + "description": "The properties of the benefit recommendation when scope is 'Shared'.", + "allOf": [ + { + "$ref": "#/definitions/benefitRecommendationProperties" + } + ], + "x-ms-discriminator-value": "Shared" + }, + "singleScopeBenefitRecommendationProperties": { + "type": "object", + "description": "The properties of the benefit recommendations when scope is 'Single'.", + "properties": { + "subscriptionId": { + "type": "string", + "description": "The subscription ID that this single scope recommendation is for. Applicable only if recommendation is for 'Single' scope.", + "readOnly": true + }, + "resourceGroup": { + "type": "string", + "description": "The resource group that this single scope recommendation is for. Applicable only if recommendation is for 'Single' scope and 'ResourceGroup' request scope.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/benefitRecommendationProperties" + } + ], + "x-ms-discriminator-value": "Single" + } + }, + "parameters": {} +} diff --git a/specification/cost-management/resource-manager/readme.md b/specification/cost-management/resource-manager/readme.md index dc6b1a43a6b4..4132b14bd629 100644 --- a/specification/cost-management/resource-manager/readme.md +++ b/specification/cost-management/resource-manager/readme.md @@ -39,17 +39,7 @@ These settings apply only when `--tag=package-2025-03` is specified on the comma ```yaml $(tag) == 'package-2025-03' input-file: - - Microsoft.CostManagement/stable/2025-03-01/common-types.json - - Microsoft.CostManagement/stable/2025-03-01/costallocation.json - - Microsoft.CostManagement/stable/2025-03-01/costmanagement.benefits.json - - Microsoft.CostManagement/stable/2025-03-01/costmanagement.budgets.json - - Microsoft.CostManagement/stable/2025-03-01/costmanagement.exports.json - - Microsoft.CostManagement/stable/2025-03-01/costmanagement.generatecostdetailsreport.json - - Microsoft.CostManagement/stable/2025-03-01/costmanagement.generatedetailedcostreport.json - - Microsoft.CostManagement/stable/2025-03-01/costmanagement.json - - Microsoft.CostManagement/stable/2025-03-01/costmanagement.pricesheets.json - - Microsoft.CostManagement/stable/2025-03-01/scheduledActions.json - - Microsoft.CostManagement/stable/2025-03-01/settings.json + - Microsoft.CostManagement/stable/2025-03-01/openapi.json ``` ### Tag: package-preview-2024-10-01-preview From 794801abe8c84d762b306f09820b49150e2d1973 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 12 Sep 2025 12:31:30 +0800 Subject: [PATCH 03/45] Delete old swagger files --- .../stable/2025-03-01/common-types.json | 231 -- .../stable/2025-03-01/costallocation.json | 617 ---- .../2025-03-01/costmanagement.benefits.json | 1481 -------- .../2025-03-01/costmanagement.budgets.json | 768 ----- .../2025-03-01/costmanagement.exports.json | 974 ------ ...tmanagement.generatecostdetailsreport.json | 405 --- ...management.generatedetailedcostreport.json | 368 -- .../stable/2025-03-01/costmanagement.json | 2979 ----------------- .../costmanagement.pricesheets.json | 592 ---- .../stable/2025-03-01/scheduledActions.json | 932 ------ .../stable/2025-03-01/settings.json | 316 -- 11 files changed, 9663 deletions(-) delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/common-types.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costallocation.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.benefits.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.budgets.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.exports.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.generatecostdetailsreport.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.generatedetailedcostreport.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.pricesheets.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/scheduledActions.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/settings.json diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/common-types.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/common-types.json deleted file mode 100644 index dcf46b414cc4..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/common-types.json +++ /dev/null @@ -1,231 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2025-03-01", - "title": "CostManagementClient" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/providers/Microsoft.CostManagement/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists all of the available cost management REST API operations.", - "x-ms-examples": { - "OperationList": { - "$ref": "./examples/OperationList.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "ErrorResponse": { - "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", - "type": "object", - "properties": { - "error": { - "description": "The details of the error.", - "$ref": "#/definitions/ErrorDetails" - } - } - }, - "ErrorDetails": { - "description": "The details of the error.", - "type": "object", - "properties": { - "code": { - "description": "Error code.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string", - "readOnly": true - } - } - }, - "ErrorDetailsWithNestedDetails": { - "description": "The details of the error.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ErrorDetails" - } - ], - "properties": { - "details": { - "type": "array", - "readOnly": true, - "description": "The additional details of the error.", - "items": { - "$ref": "#/definitions/ErrorDetailsWithNestedDetails" - }, - "x-ms-identifiers": [] - } - } - }, - "ErrorResponseWithNestedDetails": { - "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", - "type": "object", - "properties": { - "error": { - "description": "The details of the error.", - "$ref": "#/definitions/ErrorDetailsWithNestedDetails" - } - } - }, - "CostManagementOperation": { - "description": "A Cost management REST API operation.", - "type": "object", - "properties": { - "id": { - "description": "Operation id: {provider}/{resource}/{operation}.", - "type": "string", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Operation" - } - ] - }, - "OperationListResult": { - "description": "Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results.", - "type": "object", - "properties": { - "value": { - "description": "List of cost management operations supported by the Microsoft.CostManagement resource provider.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/CostManagementOperation" - } - }, - "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "CostManagementProxyResource": { - "description": "The Resource model definition.", - "type": "object", - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type." - }, - "eTag": { - "type": "string", - "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not." - } - }, - "x-ms-azure-resource": true - }, - "DownloadURL": { - "description": "The URL to download the generated report.", - "type": "object", - "properties": { - "expiryTime": { - "description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "validTill": { - "description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.", - "type": "string", - "format": "date-time" - }, - "downloadUrl": { - "description": "The URL to download the generated report.", - "type": "string" - } - } - } - }, - "parameters": { - "billingAccountIdParameter": { - "description": "Billing account ID", - "in": "path", - "name": "billingAccountId", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "billingProfileIdParameter": { - "description": "Billing profile ID.", - "in": "path", - "name": "billingProfileId", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costallocation.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costallocation.json deleted file mode 100644 index 2039034932b9..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costallocation.json +++ /dev/null @@ -1,617 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "CostManagementClient", - "version": "2025-03-01" - }, - "tags": [ - { - "name": "CostAllocationRules", - "description": "An API for creating and managing cost allocation rules within a billing account or enterprise enrollment. These rules can be used to reallocate cost between resources, filtered by Resource Group, Subscription, or Tag." - } - ], - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules": { - "get": { - "tags": [ - "CostAllocationRules" - ], - "operationId": "CostAllocationRules_List", - "description": "Get the list of all cost allocation rules for a billing account or enterprise enrollment.", - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "CostAllocationRulesList": { - "$ref": "./examples/CostAllocationRulesList.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - } - ], - "responses": { - "200": { - "description": "List of cost allocation rules for the billing account or enterprise enrollment.", - "schema": { - "$ref": "#/definitions/CostAllocationRuleList" - } - }, - "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/checkNameAvailability": { - "post": { - "tags": [ - "CostAllocationRules" - ], - "operationId": "CostAllocationRules_CheckNameAvailability", - "description": "Checks availability and correctness of a name for a cost allocation rule", - "x-ms-examples": { - "CostAllocationRuleCheckNameAvailability": { - "$ref": "./examples/CostAllocationRuleCheckNameAvailability.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "name": "costAllocationRuleCheckNameAvailabilityRequest", - "description": "Cost allocation rule to be created or updated", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CostAllocationRuleCheckNameAvailabilityRequest" - } - } - ], - "responses": { - "200": { - "description": "Response of cost allocation rule name availability.", - "schema": { - "$ref": "#/definitions/CostAllocationRuleCheckNameAvailabilityResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}": { - "get": { - "tags": [ - "CostAllocationRules" - ], - "operationId": "CostAllocationRules_Get", - "description": "Get a cost allocation rule by rule name and billing account or enterprise enrollment.", - "x-ms-examples": { - "CostAllocationRules": { - "$ref": "./examples/CostAllocationRuleGet.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/ruleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/CostAllocationRuleDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "tags": [ - "CostAllocationRules" - ], - "operationId": "CostAllocationRules_CreateOrUpdate", - "description": "Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment.", - "x-ms-examples": { - "CostAllocationRulesCreateResourceGroup": { - "$ref": "./examples/CostAllocationRuleCreate.json" - }, - "CostAllocationRulesCreateTag": { - "$ref": "./examples/CostAllocationRuleCreateTag.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/ruleNameParameter" - }, - { - "name": "costAllocationRule", - "description": "Cost allocation rule to be created or updated", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CostAllocationRuleDefinition" - } - } - ], - "responses": { - "200": { - "description": "OK. The update request has succeeded.", - "schema": { - "$ref": "#/definitions/CostAllocationRuleDefinition" - } - }, - "201": { - "description": "Created. The request has succeeded.", - "schema": { - "$ref": "#/definitions/CostAllocationRuleDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "CostAllocationRules" - ], - "operationId": "CostAllocationRules_Delete", - "description": "Delete cost allocation rule for billing account or enterprise enrollment.", - "x-ms-examples": { - "DeleteCostAllocationRule": { - "$ref": "./examples/CostAllocationRuleDelete.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/ruleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "204": { - "description": "NoContent. Rule did not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "ErrorDetails": { - "description": "The details of the error.", - "type": "object", - "properties": { - "code": { - "description": "Error code.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string", - "readOnly": true - } - } - }, - "ErrorResponse": { - "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", - "type": "object", - "properties": { - "error": { - "description": "The details of the error.", - "$ref": "#/definitions/ErrorDetails" - } - } - }, - "CostAllocationRuleList": { - "type": "object", - "description": "Result of listing cost allocation rules. It contains a list of available rules in the billing account or enterprise enrollment provided.", - "properties": { - "value": { - "description": "The list of cost allocation rules.", - "type": "array", - "items": { - "$ref": "#/definitions/CostAllocationRuleDefinition" - }, - "x-ms-identifiers": [ - "id" - ] - }, - "nextLink": { - "description": "URL to get the next set of rule list results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "CostAllocationRuleCheckNameAvailabilityRequest": { - "type": "object", - "description": "The cost allocation rule check name availability request", - "properties": { - "name": { - "type": "string", - "description": "Rule name" - }, - "type": { - "type": "string", - "description": "Resource type. This is expected to be Microsoft.CostManagement/costAllocationRules" - } - } - }, - "CostAllocationRuleCheckNameAvailabilityResponse": { - "type": "object", - "description": "The cost allocation rule check name availability response", - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Whether this rule name is available" - }, - "reason": { - "$ref": "#/definitions/Reason", - "description": "The reason this name is not available" - }, - "message": { - "type": "string", - "description": "Error message if the name is not available" - } - } - }, - "Reason": { - "type": "string", - "description": "The reason this name is not available.", - "enum": [ - "Invalid", - "AlreadyExists", - "Valid" - ], - "x-ms-enum": { - "name": "Reason", - "modelAsString": true - } - }, - "CostAllocationRuleDefinition": { - "type": "object", - "description": "The cost allocation rule model definition", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure Resource Manager Id for the rule. This is a read ony value." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Name of the rule. This is a read only value." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource type of the rule. This is a read only value of Microsoft.CostManagement/CostAllocationRule." - }, - "properties": { - "description": "Cost allocation rule properties", - "$ref": "#/definitions/CostAllocationRuleProperties" - } - }, - "x-ms-azure-resource": true - }, - "CostAllocationRuleProperties": { - "type": "object", - "description": "The properties of a cost allocation rule", - "additionalProperties": false, - "required": [ - "details", - "status" - ], - "properties": { - "description": { - "description": "Description of a cost allocation rule.", - "type": "string" - }, - "details": { - "description": "Resource information for the cost allocation rule", - "$ref": "#/definitions/CostAllocationRuleDetails" - }, - "status": { - "$ref": "#/definitions/RuleStatus", - "description": "Status of the rule" - }, - "createdDate": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Time at which the rule was created. Rules that change cost for the same resource are applied in order of creation." - }, - "updatedDate": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Time at which the rule was last updated." - } - } - }, - "RuleStatus": { - "type": "string", - "description": "Current status of the rule.", - "enum": [ - "NotActive", - "Active", - "Processing" - ], - "x-ms-enum": { - "name": "RuleStatus", - "modelAsString": true, - "values": [ - { - "value": "NotActive", - "description": "Rule is saved but not used to allocate costs.", - "name": "NotActive" - }, - { - "value": "Active", - "description": "Rule is saved and impacting cost allocation.", - "name": "Active" - }, - { - "value": "Processing", - "description": "Rule is saved and cost allocation is being updated. Readonly value that cannot be submitted in a put request.", - "name": "Processing" - } - ] - } - }, - "CostAllocationRuleDetails": { - "type": "object", - "description": "Resource details of the cost allocation rule", - "properties": { - "sourceResources": { - "description": "Source resources for cost allocation. At this time, this list can contain no more than one element.", - "type": "array", - "items": { - "$ref": "#/definitions/SourceCostAllocationResource" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "targetResources": { - "type": "array", - "description": "Target resources for cost allocation. At this time, this list can contain no more than one element.", - "items": { - "$ref": "#/definitions/TargetCostAllocationResource" - }, - "x-ms-identifiers": [ - "name" - ] - } - } - }, - "CostAllocationResource": { - "type": "object", - "description": "Common values for resources for cost allocation", - "required": [ - "resourceType", - "name" - ], - "properties": { - "resourceType": { - "description": "Type of resources contained in this cost allocation rule", - "$ref": "#/definitions/CostAllocationResourceType" - }, - "name": { - "description": "If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag", - "type": "string" - } - } - }, - "SourceCostAllocationResource": { - "allOf": [ - { - "$ref": "#/definitions/CostAllocationResource" - }, - { - "type": "object", - "properties": { - "values": { - "description": "Source Resources for cost allocation. This list cannot contain more than 25 values.", - "type": "array", - "items": { - "description": "Source resource for cost allocation", - "type": "string" - }, - "x-ms-identifiers": [ - "name" - ] - } - }, - "required": [ - "values" - ] - } - ], - "description": "Source resources for cost allocation" - }, - "TargetCostAllocationResource": { - "description": "Target resources for cost allocation.", - "allOf": [ - { - "$ref": "#/definitions/CostAllocationResource" - }, - { - "type": "object", - "properties": { - "values": { - "description": "Target resources for cost allocation. This list cannot contain more than 25 values.", - "type": "array", - "items": { - "$ref": "#/definitions/CostAllocationProportion" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "policyType": { - "description": "Method of cost allocation for the rule", - "$ref": "#/definitions/CostAllocationPolicyType" - } - }, - "required": [ - "values", - "policyType" - ] - } - ] - }, - "CostAllocationResourceType": { - "type": "string", - "description": "Category of resource to use for allocation.", - "enum": [ - "Dimension", - "Tag" - ], - "x-ms-enum": { - "name": "CostAllocationResourceType", - "modelAsString": true, - "values": [ - { - "value": "Dimension", - "description": "Indicates an Azure dimension such as a subscription id or resource group name is being used for allocation.", - "name": "Dimension" - }, - { - "value": "Tag", - "description": "Allocates cost based on Azure Tag key value pairs.", - "name": "Tag" - } - ] - } - }, - "CostAllocationProportion": { - "type": "object", - "description": "Target resources and allocation", - "required": [ - "percentage", - "name" - ], - "properties": { - "name": { - "description": "Target resource for cost allocation", - "type": "string" - }, - "percentage": { - "description": "Percentage of source cost to allocate to this resource. This value can be specified to two decimal places and the total percentage of all resources in this rule must sum to 100.00.", - "type": "number" - } - } - }, - "CostAllocationPolicyType": { - "type": "string", - "description": "Method to use for allocating cost. FixedProportion indicates that cost will be split based on specified percentage values.", - "enum": [ - "FixedProportion" - ], - "x-ms-enum": { - "name": "CostAllocationPolicyType", - "modelAsString": true - } - } - }, - "parameters": { - "billingAccountIdParameter": { - "name": "billingAccountId", - "in": "path", - "description": "BillingAccount ID", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ruleNameParameter": { - "name": "ruleName", - "in": "path", - "description": "Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "pattern": "[A-Za-z0-9\\-_]+" - } - } -} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.benefits.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.benefits.json deleted file mode 100644 index c4b4fd07fb3d..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.benefits.json +++ /dev/null @@ -1,1481 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "CostManagementClient", - "description": "CostManagement management client provides access to CostManagement resources for Azure Enterprise Subscriptions.", - "version": "2025-03-01" - }, - "tags": [ - { - "name": "Benefits API", - "description": "APIs for getting benefit recommendations and benefit utilization summaries." - } - ], - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "description": "Azure Active Directory OAuth2 Flow.", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/{billingScope}/providers/Microsoft.CostManagement/benefitRecommendations": { - "get": { - "tags": [ - "BenefitRecommendations" - ], - "description": "List of recommendations for purchasing savings plan.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/CostManagement/" - }, - "x-ms-examples": { - "BenefitRecommendationsBillingAccountList": { - "$ref": "./examples/BenefitRecommendationsByBillingAccount.json" - } - }, - "operationId": "BenefitRecommendations_List", - "parameters": [ - { - "$ref": "#/parameters/benefitRecommendationsFilterParameter" - }, - { - "name": "$orderby", - "in": "query", - "description": "May be used to order the recommendations by: properties/armSkuName. For the savings plan, the results are in order by default. There is no need to use this clause.", - "type": "string", - "x-ms-parameter-location": "method" - }, - { - "name": "$expand", - "in": "query", - "description": "May be used to expand the properties by: properties/usage, properties/allRecommendationDetails", - "type": "string", - "x-ms-parameter-location": "method" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/billingScopeBenefitRecommendationParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/benefitRecommendationsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries": { - "get": { - "tags": [ - "BenefitUtilizationSummaries" - ], - "operationId": "BenefitUtilizationSummaries_ListByBillingAccountId", - "description": "Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain values: 'Daily' and 'Monthly'.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "common-types.json#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/grainParameter" - }, - { - "name": "filter", - "in": "query", - "description": "Supports filtering by properties/benefitId, properties/benefitOrderId and properties/usageDate.", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "SavingsPlanUtilizationSummaries-BillingAccount": { - "$ref": "./examples/BenefitUtilizationSummaries/SavingsPlan-BillingAccount.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries": { - "get": { - "tags": [ - "BenefitUtilizationSummaries" - ], - "operationId": "BenefitUtilizationSummaries_ListByBillingProfileId", - "description": "Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and 'Monthly'.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "common-types.json#/parameters/billingAccountIdParameter" - }, - { - "$ref": "common-types.json#/parameters/billingProfileIdParameter" - }, - { - "$ref": "#/parameters/grainParameter" - }, - { - "name": "filter", - "in": "query", - "description": "Supports filtering by properties/benefitId, properties/benefitOrderId and properties/usageDate.", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "SavingsPlanUtilizationSummaries-BillingProfile": { - "$ref": "./examples/BenefitUtilizationSummaries/SavingsPlan-BillingProfile.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries": { - "get": { - "tags": [ - "BenefitUtilizationSummaries" - ], - "operationId": "BenefitUtilizationSummaries_ListBySavingsPlanOrder", - "description": "Lists the savings plan utilization summaries for daily or monthly grain.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" - }, - "x-ms-examples": { - "SavingsPlanUtilizationSummariesDaily": { - "$ref": "./examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanOrderId-Daily.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "description": "Supports filtering by properties/usageDate.", - "in": "query", - "required": false, - "type": "string" - }, - { - "$ref": "#/parameters/grainParameter" - }, - { - "$ref": "#/parameters/savingsPlanOrderIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries": { - "get": { - "tags": [ - "BenefitUtilizationSummaries" - ], - "operationId": "BenefitUtilizationSummaries_ListBySavingsPlanId", - "description": "Lists the savings plan utilization summaries for daily or monthly grain.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" - }, - "x-ms-examples": { - "SavingsPlanUtilizationSummariesMonthlyWithSavingsPlanId": { - "$ref": "./examples/BenefitUtilizationSummaries/SavingsPlan-SavingsPlanId-Monthly.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "description": "Supports filtering by properties/usageDate.", - "in": "query", - "required": false, - "type": "string" - }, - { - "$ref": "#/parameters/grainParameter" - }, - { - "$ref": "#/parameters/savingsPlanOrderIdParameter" - }, - { - "$ref": "#/parameters/savingsPlanIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { - "post": { - "tags": [ - "BenefitUtilizationSummariesAsync" - ], - "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByBillingAccount", - "description": "Triggers generation of a benefit utilization summaries report for the provided billing account. This API supports only enrollment accounts.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "GenerateUtilizationSummariesReportByBillingAccount": { - "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingAccount.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "common-types.json#/parameters/billingAccountIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "benefitUtilizationSummariesRequest", - "description": "Async Benefit Utilization Summary report to be created.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesRequest" - } - } - ], - "responses": { - "200": { - "description": "The status of the generation of the benefit utilization summaries report. This could be in progress, failed, or completed.", - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" - } - }, - "202": { - "description": "Accepted. Request will be processed. Use the location header to check the status.", - "headers": { - "Location": { - "description": "The URL to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "format": "int32", - "type": "integer" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { - "post": { - "tags": [ - "BenefitUtilizationSummariesAsync" - ], - "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByBillingProfile", - "description": "Triggers generation of a benefit utilization summaries report for the provided billing account and billing profile.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "GenerateUtilizationSummariesReportByBillingProfile": { - "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByBillingProfile.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "common-types.json#/parameters/billingAccountIdParameter" - }, - { - "$ref": "common-types.json#/parameters/billingProfileIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "benefitUtilizationSummariesRequest", - "description": "Async Benefit Utilization Summary report to be created.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesRequest" - } - } - ], - "responses": { - "200": { - "description": "The status of the generation of the benefit utilization summaries report. This could be in progress, failed, or completed.", - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" - } - }, - "202": { - "description": "Accepted. Request will be processed. Use the location header to check the status.", - "headers": { - "Location": { - "description": "The URL to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "format": "int32", - "type": "integer" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { - "post": { - "tags": [ - "BenefitUtilizationSummariesAsync" - ], - "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByReservationOrderId", - "description": "Triggers generation of a benefit utilization summaries report for the provided reservation order.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "GenerateUtilizationSummariesReportByReservationOrder": { - "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservationOrder.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "#/parameters/reservationOrderIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "benefitUtilizationSummariesRequest", - "description": "Async Benefit Utilization Summary report to be created.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesRequest" - } - } - ], - "responses": { - "200": { - "description": "The status of the generation of the benefit utilization summaries report. This could be in progress, failed, or completed.", - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" - } - }, - "202": { - "description": "Accepted. Request will be processed. Use the location header to check the status.", - "headers": { - "Location": { - "description": "The URL to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "format": "int32", - "type": "integer" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { - "post": { - "tags": [ - "BenefitUtilizationSummariesAsync" - ], - "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateByReservationId", - "description": "Triggers generation of a benefit utilization summaries report for the provided reservation.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "GenerateUtilizationSummariesReportByReservation": { - "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportByReservation.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "#/parameters/reservationOrderIdParameter" - }, - { - "$ref": "#/parameters/reservationIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "benefitUtilizationSummariesRequest", - "description": "Async Benefit Utilization Summary report to be created.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesRequest" - } - } - ], - "responses": { - "200": { - "description": "The status of the generation of the benefit utilization summaries report. This could be in progress, failed, or completed.", - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" - } - }, - "202": { - "description": "Accepted. Request will be processed. Use the location header to check the status.", - "headers": { - "Location": { - "description": "The URL to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "format": "int32", - "type": "integer" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { - "post": { - "tags": [ - "BenefitUtilizationSummariesAsync" - ], - "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanOrderId", - "description": "Triggers generation of a benefit utilization summaries report for the provided savings plan order.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "GenerateUtilizationSummariesReportBySavingsPlanOrder": { - "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlanOrder.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "#/parameters/savingsPlanOrderIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "benefitUtilizationSummariesRequest", - "description": "Async Benefit Utilization Summary report to be created.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesRequest" - } - } - ], - "responses": { - "200": { - "description": "The status of the generation of the benefit utilization summaries report. This could be in progress, failed, or completed.", - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" - } - }, - "202": { - "description": "Accepted. Request will be processed. Use the location header to check the status.", - "headers": { - "Location": { - "description": "The URL to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "format": "int32", - "type": "integer" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/providers/Microsoft.CostManagement/generateBenefitUtilizationSummariesReport": { - "post": { - "tags": [ - "BenefitUtilizationSummariesAsync" - ], - "operationId": "GenerateBenefitUtilizationSummariesReport_GenerateBySavingsPlanId", - "description": "Triggers generation of a benefit utilization summaries report for the provided savings plan.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "GenerateUtilizationSummariesReportBySavingsPlan": { - "$ref": "./examples/BenefitUtilizationSummaries/Async/GenerateBenefitUtilizationSummariesReportBySavingsPlan.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "#/parameters/savingsPlanOrderIdParameter" - }, - { - "$ref": "#/parameters/savingsPlanIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "benefitUtilizationSummariesRequest", - "description": "Async Benefit Utilization Summary report to be created.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesRequest" - } - } - ], - "responses": { - "200": { - "description": "The status of the generation of the benefit utilization summaries report. This could be in progress, failed, or completed.", - "schema": { - "$ref": "#/definitions/BenefitUtilizationSummariesOperationStatus" - } - }, - "202": { - "description": "Accepted. Request will be processed. Use the location header to check the status.", - "headers": { - "Location": { - "description": "The URL to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "format": "int32", - "type": "integer" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "benefitRecommendationsListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "description": "The list of benefit recommendations.", - "readOnly": true, - "items": { - "$ref": "#/definitions/benefitRecommendationModel" - } - }, - "nextLink": { - "type": "string", - "description": "The link (URL) to the next page of results.", - "readOnly": true, - "format": "uri" - } - }, - "description": "Result of listing benefit recommendations." - }, - "benefitRecommendationModel": { - "type": "object", - "description": "benefit plan recommendation details.", - "allOf": [ - { - "$ref": "#/definitions/BenefitResource" - } - ], - "properties": { - "properties": { - "type": "object", - "$ref": "#/definitions/benefitRecommendationProperties" - } - } - }, - "benefitRecommendationProperties": { - "type": "object", - "description": "The properties of the benefit recommendations.", - "discriminator": "scope", - "properties": { - "firstConsumptionDate": { - "type": "string", - "description": "The first usage date used for looking back for computing the recommendations.", - "readOnly": true, - "format": "date-time" - }, - "lastConsumptionDate": { - "type": "string", - "description": "The last usage date used for looking back for computing the recommendations.", - "readOnly": true, - "format": "date-time" - }, - "lookBackPeriod": { - "description": "The number of days of usage evaluated for computing the recommendations.", - "$ref": "#/definitions/LookBackPeriod" - }, - "totalHours": { - "type": "integer", - "format": "int32", - "description": "The total hours for which the cost is covered. Its equal to number of records in a property 'properties/usage/charges'.", - "readOnly": true - }, - "usage": { - "type": "object", - "description": "On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.", - "$ref": "#/definitions/recommendationUsageDetails" - }, - "armSkuName": { - "description": "ARM SKU name. 'Compute_Savings_Plan' for SavingsPlan.", - "type": "string", - "readOnly": true - }, - "term": { - "description": "Term period of the benefit. For example, P1Y or P3Y.", - "$ref": "#/definitions/Term" - }, - "commitmentGranularity": { - "description": "Grain of the proposed commitment amount. Supported values: 'Hourly'", - "$ref": "#/definitions/Grain" - }, - "currencyCode": { - "type": "string", - "description": "An ISO 4217 currency code identifier for the costs and savings amounts.", - "readOnly": true - }, - "costWithoutBenefit": { - "type": "number", - "format": "decimal", - "description": "The current cost without benefit, corresponds to 'totalHours' in the look-back period.", - "readOnly": true - }, - "recommendationDetails": { - "type": "object", - "description": "The details of the proposed recommendation.", - "$ref": "#/definitions/allSavingsBenefitDetails" - }, - "allRecommendationDetails": { - "type": "object", - "description": "The list of all benefit recommendations with the recommendation details.", - "readOnly": true, - "$ref": "#/definitions/allSavingsList" - }, - "scope": { - "description": "Benefit scope. For example, Single or Shared.", - "$ref": "#/definitions/RecommendationScope" - } - }, - "required": [ - "scope" - ] - }, - "singleScopeBenefitRecommendationProperties": { - "type": "object", - "description": "The properties of the benefit recommendations when scope is 'Single'.", - "x-ms-discriminator-value": "Single", - "properties": { - "subscriptionId": { - "type": "string", - "description": "The subscription ID that this single scope recommendation is for. Applicable only if recommendation is for 'Single' scope.", - "readOnly": true - }, - "resourceGroup": { - "type": "string", - "description": "The resource group that this single scope recommendation is for. Applicable only if recommendation is for 'Single' scope and 'ResourceGroup' request scope.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "#/definitions/benefitRecommendationProperties" - } - ] - }, - "sharedScopeBenefitRecommendationProperties": { - "type": "object", - "description": "The properties of the benefit recommendation when scope is 'Shared'.", - "x-ms-discriminator-value": "Shared", - "allOf": [ - { - "$ref": "#/definitions/benefitRecommendationProperties" - } - ] - }, - "recommendationUsageDetails": { - "type": "object", - "description": "On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.", - "properties": { - "usageGrain": { - "description": "The grain of the usage. Supported values: 'Hourly'", - "$ref": "#/definitions/Grain" - }, - "charges": { - "type": "array", - "description": "On-demand charges for each hour between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.", - "readOnly": true, - "items": { - "type": "number", - "format": "decimal" - } - } - } - }, - "allSavingsList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "description": "The list of benefit recommendations with the recommendation details..", - "readOnly": true, - "items": { - "$ref": "#/definitions/allSavingsBenefitDetails" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "type": "string", - "description": "The link (URL) to the next page of results.", - "readOnly": true, - "format": "uri" - } - }, - "description": "The list of all benefit recommendations with the recommendation details." - }, - "allSavingsBenefitDetails": { - "description": "Benefit recommendation details.", - "type": "object", - "properties": { - "overageCost": { - "type": "number", - "format": "decimal", - "description": "The difference between total cost and benefit cost for the 'totalHours' in the look-back period.", - "readOnly": true - }, - "benefitCost": { - "type": "number", - "format": "decimal", - "description": "The estimated cost with benefit for the 'totalHours' in the look-back period. It's equal to (commitmentAmount * totalHours)", - "readOnly": true - }, - "totalCost": { - "type": "number", - "format": "decimal", - "description": "Total cost, which is sum of benefit cost and overage cost.", - "readOnly": true - }, - "savingsAmount": { - "type": "number", - "format": "decimal", - "description": "The amount saved for the 'totalHours' in the look-back period, by purchasing the recommended quantity of the benefit.", - "readOnly": true - }, - "savingsPercentage": { - "type": "number", - "format": "decimal", - "description": "The savings in percentage for the 'totalHours' in the look-back period, by purchasing the recommended quantity of benefit.", - "readOnly": true - }, - "coveragePercentage": { - "description": "Estimated benefit coverage percentage for the 'totalHours' in the look-back period, with this commitment.", - "type": "number", - "format": "decimal", - "readOnly": true - }, - "commitmentAmount": { - "description": "The commitment amount at the commitmentGranularity.", - "type": "number", - "format": "decimal", - "readOnly": true - }, - "averageUtilizationPercentage": { - "description": "Estimated average utilization percentage for the 'totalHours' in the look-back period, with this commitment.", - "type": "number", - "format": "decimal", - "readOnly": true - }, - "wastageCost": { - "description": "Estimated unused portion of the 'benefitCost'.", - "type": "number", - "format": "decimal", - "readOnly": true - } - } - }, - "BenefitKind": { - "type": "string", - "description": "Kind/type of the benefit.", - "enum": [ - "IncludedQuantity", - "Reservation", - "SavingsPlan" - ], - "x-ms-enum": { - "name": "benefitKind", - "modelAsString": true, - "values": [ - { - "value": "IncludedQuantity", - "description": "Benefit is IncludedQuantity.", - "name": "IncludedQuantity" - }, - { - "value": "Reservation", - "description": "Benefit is Reservation.", - "name": "Reservation" - }, - { - "value": "SavingsPlan", - "description": "Benefit is SavingsPlan.", - "name": "SavingsPlan" - } - ] - } - }, - "RecommendationScope": { - "type": "string", - "description": "Kind of the recommendation scope.", - "enum": [ - "Single", - "Shared" - ], - "x-ms-enum": { - "name": "scope", - "modelAsString": true, - "values": [ - { - "value": "Single", - "description": "Single scope recommendation.", - "name": "Single" - }, - { - "value": "Shared", - "description": "Shared scope recommendation.", - "name": "Shared" - } - ] - } - }, - "Grain": { - "type": "string", - "description": "Grain which corresponds to value.", - "enum": [ - "Hourly", - "Daily", - "Monthly" - ], - "x-ms-enum": { - "name": "grain", - "modelAsString": true, - "values": [ - { - "value": "Hourly", - "description": "Hourly grain corresponds to value per hour.", - "name": "Hourly" - }, - { - "value": "Daily", - "description": "Hourly grain corresponds to value per day.", - "name": "Daily" - }, - { - "value": "Monthly", - "description": "Hourly grain corresponds to value per month.", - "name": "Monthly" - } - ] - } - }, - "Term": { - "type": "string", - "description": "Grain which corresponds to value.", - "enum": [ - "P1Y", - "P3Y" - ], - "x-ms-enum": { - "name": "term", - "modelAsString": true, - "values": [ - { - "value": "P1Y", - "description": "Benefit term is 1 year.", - "name": "P1Y" - }, - { - "value": "P3Y", - "description": "Benefit term is 3 years.", - "name": "P3Y" - } - ] - } - }, - "LookBackPeriod": { - "type": "string", - "description": "The number of days used to look back.", - "enum": [ - "Last7Days", - "Last30Days", - "Last60Days" - ], - "x-ms-enum": { - "name": "lookBackPeriod", - "modelAsString": true, - "values": [ - { - "value": "Last7Days", - "description": "7 days used to look back.", - "name": "Last7Days" - }, - { - "value": "Last30Days", - "description": "30 days used to look back.", - "name": "Last30Days" - }, - { - "value": "Last60Days", - "description": "60 days used to look back.", - "name": "Last60Days" - } - ] - } - }, - "BenefitResource": { - "type": "object", - "description": "The benefit resource model definition.", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" - } - ], - "properties": { - "kind": { - "description": "Reservation or SavingsPlan.", - "$ref": "#/definitions/BenefitKind" - } - }, - "x-ms-azure-resource": true - }, - "BenefitUtilizationSummariesListResult": { - "description": "List of benefit utilization summaries.", - "type": "object", - "properties": { - "value": { - "description": "The list of benefit utilization summaries.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/BenefitUtilizationSummary" - } - }, - "nextLink": { - "description": "The link (URL) to the next page of results.", - "type": "string", - "readOnly": true, - "format": "uri" - } - } - }, - "BenefitUtilizationSummary": { - "description": "Benefit utilization summary resource.", - "discriminator": "kind", - "type": "object", - "required": [ - "kind" - ], - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" - } - ], - "properties": { - "kind": { - "description": "Supported values: 'SavingsPlan'.", - "$ref": "#/definitions/BenefitKind" - } - } - }, - "BenefitUtilizationSummaryProperties": { - "description": "The properties of a benefit utilization summary.", - "type": "object", - "properties": { - "armSkuName": { - "description": "ARM SKU name. For example, 'Compute_Savings_Plan' for savings plan.", - "type": "string", - "readOnly": true - }, - "benefitId": { - "description": "The benefit ID is the identifier of the benefit.", - "type": "string", - "readOnly": true - }, - "benefitOrderId": { - "description": "The benefit order ID is the identifier for a benefit purchase.", - "type": "string", - "readOnly": true - }, - "benefitType": { - "description": "The benefit type. Supported values: 'SavingsPlan'.", - "$ref": "#/definitions/BenefitKind" - }, - "usageDate": { - "description": "Date corresponding to the utilization summary record. If the grain of data is monthly, value for this field will be first day of the month.", - "type": "string", - "format": "date-time", - "readOnly": true - } - } - }, - "IncludedQuantityUtilizationSummary": { - "description": "Included Quantity utilization summary resource.", - "x-ms-discriminator-value": "IncludedQuantity", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/BenefitUtilizationSummary" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/IncludedQuantityUtilizationSummaryProperties", - "title": "Benefit utilization summary for benefit kind Included Quantity." - } - } - }, - "IncludedQuantityUtilizationSummaryProperties": { - "type": "object", - "description": "Included Quantity utilization summary properties.", - "allOf": [ - { - "$ref": "#/definitions/BenefitUtilizationSummaryProperties" - } - ], - "properties": { - "utilizationPercentage": { - "description": "This is the utilized percentage for the benefit ID.", - "type": "number", - "format": "decimal", - "readOnly": true - } - } - }, - "SavingsPlanUtilizationSummary": { - "description": "Savings plan utilization summary resource.", - "x-ms-discriminator-value": "SavingsPlan", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/BenefitUtilizationSummary" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SavingsPlanUtilizationSummaryProperties", - "title": "Benefit utilization Summary for benefit kind savings plan." - } - } - }, - "SavingsPlanUtilizationSummaryProperties": { - "type": "object", - "description": "Savings plan utilization summary properties.", - "allOf": [ - { - "$ref": "#/definitions/BenefitUtilizationSummaryProperties" - } - ], - "properties": { - "avgUtilizationPercentage": { - "description": "This is the average hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the avgUtilizationPercentage value will be equal to the average of the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day.", - "type": "number", - "format": "decimal", - "readOnly": true - }, - "minUtilizationPercentage": { - "description": "This is the minimum hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the minUtilizationPercentage value will be equal to the smallest in the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day. If on the day 2022-10-18, the lowest utilization percentage was 10% at hour 4, then the value for the minUtilizationPercentage in the response will be 10%.", - "type": "number", - "format": "decimal", - "readOnly": true - }, - "maxUtilizationPercentage": { - "description": "This is the maximum hourly utilization for each date range that corresponds to given grain (Daily, Monthly). Suppose the API call is for usageDate > 2025-03-01 and usageDate < 2022-10-31 at a daily granularity. There will be one record per benefit id for each day. For a single day, the maxUtilizationPercentage value will be equal to the largest in the set of values where the set contains 24 utilization percentage entries one for each hour in a specific day. If on the day 2022-10-18, the largest utilization percentage was 90% at hour 5, then the value for the maxUtilizationPercentage in the response will be 90%.", - "type": "number", - "format": "decimal", - "readOnly": true - } - } - }, - "BenefitUtilizationSummariesOperationStatus": { - "type": "object", - "description": "Status of a benefit utilization summaries report. Provides Async Benefit Utilization Summaries Request input, status, and report sas url.", - "properties": { - "input": { - "$ref": "#/definitions/BenefitUtilizationSummariesRequest", - "description": "Input given to create the benefit utilization summaries report." - }, - "status": { - "description": "The status of the creation of the benefit utilization summaries report.", - "$ref": "#/definitions/AsyncOperationStatusEnum" - }, - "properties": { - "description": "Contains sas url to the async benefit utilization summaries report and a date that the url is valid until. These values will be empty if the report is in a Running or Failed state", - "$ref": "#/definitions/AsyncOperationStatusProperties" - } - } - }, - "AsyncOperationStatusEnum": { - "description": "Enum representing the status of an async operation.", - "type": "string", - "enum": [ - "Running", - "Complete", - "Failed" - ], - "x-ms-enum": { - "name": "OperationStatusType", - "modelAsString": true - } - }, - "AsyncOperationStatusProperties": { - "description": "Object representing the report url and valid until date of the async report generated.", - "type": "object", - "properties": { - "reportUrl": { - "description": "Sas url to the async benefit utilization summaries report. Will be empty if the report is in Running or Failed state.", - "$ref": "#/definitions/BenefitUtilizationSummaryReportSchema", - "x-ms-secret": true - }, - "secondaryReportUrl": { - "description": "Sas url to async benefit utilization summaries report in secondary storage in case of primary outage. Will be empty if the report is in Running or Failed state.", - "$ref": "#/definitions/BenefitUtilizationSummaryReportSchema", - "x-ms-secret": true - }, - "validUntil": { - "description": "The date that the sas url provided in reportUrl expires.", - "type": "string", - "format": "date-time" - } - } - }, - "BenefitUtilizationSummaryReportSchema": { - "description": "The CSV file from the reportUrl and secondaryReportUrl blob link will consist of the following columns of benefit utilization data. UtilizedPercentage will be 0 for savings plans reports and non data bricks reservations. Utilization percentages will be 0 for data bricks reservations.", - "type": "string", - "enum": [ - "Kind", - "AvgUtilizationPercentage", - "BenefitOrderId", - "BenefitId", - "BenefitType", - "MaxUtilizationPercentage", - "MinUtilizationPercentage", - "UsageDate", - "UtilizedPercentage" - ], - "x-ms-enum": { - "name": "BenefitUtilizationSummaryReportSchema", - "modelAsString": true - } - }, - "BenefitUtilizationSummariesRequest": { - "description": "Properties of an async benefit utilization summaries request.", - "type": "object", - "required": [ - "startDate", - "endDate", - "grain" - ], - "properties": { - "billingAccountId": { - "description": "Billing account the benefit utilization summaries report is for. Required for billing account and billing profile scopes. Not supported for any benefit scopes.", - "type": "string" - }, - "billingProfileId": { - "description": "Billing profile id the benefit utilization summaries report is for. Required for billing profile scope. Not supported for billing account or any benefit scopes.", - "type": "string" - }, - "benefitOrderId": { - "description": "Benefit order id the benefit utilization summaries report is for. Required for benefit order and benefit id scopes. Not supported for any billing scopes.", - "type": "string" - }, - "benefitId": { - "description": "Benefit id the benefit utilization summaries report is for. Required for benefit id scope. Not supported for benefit order or any billing scopes.", - "type": "string" - }, - "grain": { - "description": "The grain the summaries data is served at in the report. Accepted values are 'Daily' or 'Monthly'.", - "$ref": "#/definitions/Grain" - }, - "startDate": { - "description": "The start date of the summaries data that will be served in the report.", - "type": "string", - "format": "date-time" - }, - "endDate": { - "description": "The end date of the summaries data that will be served in the report.", - "type": "string", - "format": "date-time" - }, - "kind": { - "description": "The type of benefit data requested. Required for billing account and billing profile scopes. Implied and not to be passed at benefit scopes. Supported values are Reservation and SavingsPlan", - "$ref": "#/definitions/BenefitKind" - } - } - } - }, - "parameters": { - "benefitAsyncOperationIdParameter": { - "description": "Operation id of the report being generated", - "in": "path", - "name": "operationId", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "benefitRecommendationsFilterParameter": { - "name": "$filter", - "in": "query", - "description": "Can be used to filter benefitRecommendations by: properties/scope with allowed values ['Single', 'Shared'] and default value 'Shared'; and properties/lookBackPeriod with allowed values ['Last7Days', 'Last30Days', 'Last60Days'] and default value 'Last60Days'; properties/term with allowed values ['P1Y', 'P3Y'] and default value 'P3Y'; properties/subscriptionId; properties/resourceGroup", - "type": "string", - "x-ms-parameter-location": "method" - }, - "billingScopeBenefitRecommendationParameter": { - "name": "billingScope", - "in": "path", - "description": "The scope associated with benefit recommendation operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope, /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "grainParameter": { - "description": "Grain.", - "in": "query", - "required": false, - "x-ms-parameter-location": "method", - "type": "string", - "name": "grainParameter", - "enum": [ - "Hourly", - "Daily", - "Monthly" - ], - "x-ms-enum": { - "name": "grainParameter", - "modelAsString": true, - "values": [ - { - "value": "Hourly", - "description": "Hourly grain corresponds to value per hour.", - "name": "Hourly" - }, - { - "value": "Daily", - "description": "Hourly grain corresponds to value per day.", - "name": "Daily" - }, - { - "value": "Monthly", - "description": "Hourly grain corresponds to value per month.", - "name": "Monthly" - } - ] - } - }, - "reservationIdParameter": { - "description": "Reservation ID", - "in": "path", - "name": "reservationId", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "reservationOrderIdParameter": { - "description": "Reservation Order ID", - "in": "path", - "name": "reservationOrderId", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "savingsPlanIdParameter": { - "description": "Savings plan ID.", - "in": "path", - "name": "savingsPlanId", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "savingsPlanOrderIdParameter": { - "description": "Savings plan order ID.", - "in": "path", - "name": "savingsPlanOrderId", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.budgets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.budgets.json deleted file mode 100644 index 92086767ca4e..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.budgets.json +++ /dev/null @@ -1,768 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "CostManagementClient", - "description": "CostManagement management client provides access to CostManagement resources for Azure Enterprise Subscriptions.", - "version": "2025-03-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "description": "Azure Active Directory OAuth2 Flow.", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/{scope}/providers/Microsoft.CostManagement/budgets": { - "get": { - "tags": [ - "Budgets" - ], - "operationId": "Budgets_List", - "description": "Lists all budgets for the defined scope.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/CostManagement/" - }, - "x-ms-examples": { - "SubscriptionBudgetsList": { - "$ref": "./examples/Budgets/List/RBAC/SubscriptionBudgetsList.json" - }, - "ResourceGroupBudgetsList": { - "$ref": "./examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json" - }, - "ManagementGroupBudgetsList": { - "$ref": "./examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json" - }, - "BillingAccountBudgetsList-EA": { - "$ref": "./examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json" - }, - "BillingAccountBudgetsList-EA-CategoryTypeFilter": { - "$ref": "./examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json" - }, - "DepartmentBudgetsList-EA": { - "$ref": "./examples/Budgets/List/EA/DepartmentBudgetsList.json" - }, - "EnrollmentAccountBudgetsList-EA": { - "$ref": "./examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json" - }, - "BillingAccountBudgetsList-MCA": { - "$ref": "./examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json" - }, - "BillingAccountBudgetsList-MCA-CategoryTypeFilter": { - "$ref": "./examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json" - }, - "BillingProfileBudgetsList-MCA": { - "$ref": "./examples/Budgets/List/MCA/BillingProfileBudgetsList.json" - }, - "BillingProfileBudgetsList-MCA-CategoryTypeFilter": { - "$ref": "./examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json" - }, - "InvoiceSectionBudgetsList-MCA": { - "$ref": "./examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json" - }, - "CustomerBudgetsList-MCA-CSP": { - "$ref": "./examples/Budgets/List/MCA/CustomerBudgetsList.json" - }, - "CustomerBudgetsList-MCA-CSP-CategoryTypeFilter": { - "$ref": "./examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeBudgetParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/budgetCategoryFilterParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/BudgetsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}": { - "get": { - "tags": [ - "Budgets" - ], - "operationId": "Budgets_Get", - "description": "Gets the budget for the scope by budget name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/CostManagement/" - }, - "x-ms-examples": { - "Get-Cost-Budget": { - "$ref": "./examples/Budgets/Get/Cost/Get-Cost-Budget.json" - }, - "Get-ReservationUtilization-AlertRule": { - "$ref": "./examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeBudgetParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/budgetNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Budget" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "tags": [ - "Budgets" - ], - "operationId": "Budgets_CreateOrUpdate", - "description": "The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/CostManagement/" - }, - "x-ms-examples": { - "CreateOrUpdate-Cost-Subscription-Budget": { - "$ref": "./examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json" - }, - "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule": { - "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json" - }, - "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservedResourceTypeFilter": { - "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json" - }, - "CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservationIdFilter": { - "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json" - }, - "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule.json": { - "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json" - }, - "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule-ReservedResourceTypeFilter": { - "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json" - }, - "CreateOrUpdate-ReservationUtilization-BillingProfileMCA-AlertRule-ReservationIdFilter": { - "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json" - }, - "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule.json": { - "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json" - }, - "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule-ReservedResourceTypeFilter": { - "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json" - }, - "CreateOrUpdate-ReservationUtilization-CustomerCSP-AlertRule-ReservationIdFilter": { - "$ref": "./examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeBudgetParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/budgetNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Budget" - }, - "description": "Parameters supplied to the Create Budget operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded and the Budget update is complete.", - "schema": { - "$ref": "#/definitions/Budget" - } - }, - "201": { - "description": "Created.", - "schema": { - "$ref": "#/definitions/Budget" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "Budgets" - ], - "operationId": "Budgets_Delete", - "description": "The operation to delete a budget.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/CostManagement/" - }, - "x-ms-examples": { - "DeleteBudget": { - "$ref": "./examples/Budgets/Delete/DeleteBudget.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeBudgetParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/budgetNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "BudgetsListResult": { - "description": "Result of listing budgets. It contains a list of available budgets in the scope provided.", - "type": "object", - "properties": { - "value": { - "description": "The list of budgets.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Budget" - } - }, - "nextLink": { - "description": "The link (url) to the next page of results.\r\nIt's null for now, added for future use.", - "type": "string", - "readOnly": true - } - } - }, - "Budget": { - "description": "A budget resource.", - "type": "object", - "allOf": [ - { - "$ref": "common-types.json#/definitions/CostManagementProxyResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/BudgetProperties", - "title": "Budget properties" - } - } - }, - "BudgetProperties": { - "description": "The properties of the budget.", - "type": "object", - "properties": { - "category": { - "description": "The category of the budget.\n- 'Cost' defines a Budget.\n- 'ReservationUtilization' defines a Reservation Utilization Alert Rule.", - "type": "string", - "enum": [ - "Cost", - "ReservationUtilization" - ], - "x-ms-enum": { - "name": "CategoryType", - "modelAsString": true, - "values": [ - { - "value": "Cost", - "description": "A Budget that evaluates monetary cost of Azure resources against an amount, and alerts based on a configured notification threshold.", - "name": "Cost" - }, - { - "value": "ReservationUtilization", - "description": "An Alert Rule that evaluates the utilization percentage of Azure Reservations, and alerts based on a configured notification threshold." - } - ] - } - }, - "amount": { - "description": "The total amount of cost to track with the budget.\n\n Supported for CategoryType(s): Cost.\n\n Required for CategoryType(s): Cost.", - "type": "number" - }, - "timeGrain": { - "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.\n\nSupported for CategoryType(s): Cost, ReservationUtilization.\n\n Supported timeGrainTypes for **CategoryType: Cost**\n\n- Monthly\n- Quarterly\n- Annually\n- BillingMonth*\n- BillingQuarter*\n- BillingAnnual*\n\n *only supported for Web Direct customers.\n\n Supported timeGrainTypes for **CategoryType: ReservationUtilization**\n- Last7Days\n- Last30Days\n\n Required for CategoryType(s): Cost, ReservationUtilization.", - "type": "string", - "enum": [ - "Monthly", - "Quarterly", - "Annually", - "BillingMonth", - "BillingQuarter", - "BillingAnnual", - "Last7Days", - "Last30Days" - ], - "x-ms-enum": { - "name": "TimeGrainType", - "modelAsString": true, - "values": [ - { - "value": "Monthly", - "description": "The budget will track costs in the current calendar month against the amount.\n\n Supported for CategoryType: Cost only.", - "name": "Monthly" - }, - { - "value": "Quarterly", - "description": "The budget will track costs in the current calendar quarter against the amount.\n\n Supported for CategoryType: Cost only.", - "name": "Quarterly" - }, - { - "value": "Annually", - "description": "The budget will track costs in the current calendar year against the amount.\n\n Supported for CategoryType: Cost only.", - "name": "Annually" - }, - { - "value": "BillingMonth", - "description": "The budget will track costs in the current billing month against the amount.\n\n Supported for CategoryType: Cost and Web Direct customers only.", - "name": "BillingMonth" - }, - { - "value": "BillingQuarter", - "description": "The budget will track costs in the current billing quarter against the amount.\n\n Supported for CategoryType: Cost and Web Direct customers only.", - "name": "BillingQuarter" - }, - { - "value": "BillingAnnual", - "description": "The budget will track costs in the current billing year against the amount.\n\n Supported for CategoryType: Cost and Web Direct customers only.", - "name": "BillingAnnual" - }, - { - "value": "Last7Days", - "description": "The Reservation Utilization Alert Rule will evaluate reservations based on their 7-Day utilization percentage.\n\n Supported for CategoryType: ReservationUtilization only.", - "name": "Last7Days" - }, - { - "value": "Last30Days", - "description": "The Reservation Utilization Alert Rule will evaluate reservations based on their 30-Day utilization percentage.\n\n Supported for CategoryType: ReservationUtilization only.", - "name": "Last30Days" - } - ] - } - }, - "timePeriod": { - "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Required for CategoryType(s): Cost, ReservationUtilization.", - "type": "object", - "$ref": "#/definitions/BudgetTimePeriod" - }, - "filter": { - "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.", - "type": "object", - "$ref": "#/definitions/BudgetFilter" - }, - "currentSpend": { - "description": "The current amount of cost which is being tracked for a budget.\n\n Supported for CategoryType(s): Cost.", - "$ref": "#/definitions/CurrentSpend", - "readOnly": true - }, - "notifications": { - "type": "object", - "description": "Dictionary of notifications associated with the budget.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n- Constraints for **CategoryType: Cost** - Budget can have up to 5 notifications with thresholdType: Actual and 5 notifications with thresholdType: Forecasted.\n- Constraints for **CategoryType: ReservationUtilization** - Only one notification allowed. thresholdType is not applicable.", - "additionalProperties": { - "$ref": "#/definitions/Notification" - }, - "maxItems": 5 - }, - "forecastSpend": { - "description": "The forecasted cost which is being tracked for a budget.\n\n Supported for CategoryType(s): Cost.", - "$ref": "#/definitions/ForecastSpend", - "readOnly": true - } - }, - "required": [ - "category", - "timeGrain", - "timePeriod" - ] - }, - "BudgetTimePeriod": { - "description": "The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Required for CategoryType(s): Cost, ReservationUtilization.", - "type": "object", - "properties": { - "startDate": { - "description": "The start date for the budget.\n\n- Constraints for **CategoryType: Cost** - Must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period.\n\n- Constraints for **CategoryType: ReservationUtilization** - Must be on or after the current date and less than the end date.", - "type": "string", - "format": "date-time" - }, - "endDate": { - "description": "The end date for the budget.\n\n- Constraints for **CategoryType: Cost** - No constraints. If not provided, we default this to 10 years from the start date.\n\n- Constraints for **CategoryType: ReservationUtilization** - End date cannot be more than 3 years after the start date.", - "type": "string", - "format": "date-time" - } - }, - "required": [ - "startDate" - ] - }, - "BudgetFilter": { - "description": "May be used to filter budgets by user-specified dimensions and/or tags.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.", - "type": "object", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.\n\n Supported for CategoryType(s): Cost.", - "type": "array", - "items": { - "$ref": "#/definitions/BudgetFilterProperties" - }, - "x-ms-identifiers": [], - "minItems": 0 - }, - "dimensions": { - "description": "Has comparison expression for a dimension.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization** \n- ReservationId\n- ReservedResourceType", - "$ref": "#/definitions/BudgetComparisonExpression" - }, - "tags": { - "description": "Has comparison expression for a tag.\n\n Supported for CategoryType(s): Cost.", - "$ref": "#/definitions/BudgetComparisonExpression" - } - } - }, - "BudgetFilterProperties": { - "description": "The Dimensions or Tags to filter a budget by.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.", - "type": "object", - "properties": { - "dimensions": { - "description": "Has comparison expression for a dimension.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\nSupported dimension names for **CategoryType: ReservationUtilization** \n- ReservationId\n- ReservedResourceType", - "$ref": "#/definitions/BudgetComparisonExpression" - }, - "tags": { - "description": "Has comparison expression for a tag.\n\n Supported for CategoryType(s): Cost.", - "$ref": "#/definitions/BudgetComparisonExpression" - } - } - }, - "BudgetComparisonExpression": { - "description": "The comparison expression to be used in the budgets.", - "type": "object", - "properties": { - "name": { - "description": "The name of the column to use in comparison.", - "type": "string" - }, - "operator": { - "description": "The operator to use for comparison.", - "type": "string", - "enum": [ - "In" - ], - "x-ms-enum": { - "name": "BudgetOperatorType", - "modelAsString": true - } - }, - "values": { - "description": "Array of values to use for comparison", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 0 - } - }, - "required": [ - "name", - "operator", - "values" - ] - }, - "CurrentSpend": { - "description": "The current amount of cost which is being tracked for a budget.\n\n Supported for CategoryType(s): Cost.", - "type": "object", - "properties": { - "amount": { - "description": "The total amount of cost which is being tracked by the budget.", - "type": "number", - "readOnly": true - }, - "unit": { - "description": "The unit of measure for the budget amount.", - "type": "string", - "readOnly": true - } - } - }, - "ForecastSpend": { - "description": "The forecasted cost which is being tracked for a budget.\n\n Supported for CategoryType(s): Cost.", - "type": "object", - "properties": { - "amount": { - "description": "The forecasted cost for the total time period which is being tracked by the budget. This value is only provided if the budget contains a forecast alert type.", - "type": "number", - "readOnly": true - }, - "unit": { - "description": "The unit of measure for the budget amount.", - "type": "string", - "readOnly": true - } - } - }, - "Notification": { - "description": "The notification associated with a budget.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.", - "type": "object", - "properties": { - "enabled": { - "description": "The notification is enabled or not.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.", - "type": "boolean" - }, - "operator": { - "description": "The comparison operator.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n Supported operators for **CategoryType: Cost**\n- GreaterThan\n- GreaterThanOrEqualTo\n\n Supported operators for **CategoryType: ReservationUtilization**\n- LessThan", - "type": "string", - "enum": [ - "EqualTo", - "GreaterThan", - "GreaterThanOrEqualTo", - "LessThan" - ], - "x-ms-enum": { - "name": "BudgetNotificationOperatorType", - "modelAsString": true, - "values": [ - { - "value": "EqualTo", - "description": "Notification will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future.\n\n Supported for CategoryType(s): Cost.", - "name": "EqualTo" - }, - { - "value": "GreaterThan", - "description": "Notification will be triggered if the evaluated cost is greater than the threshold value. Note: This is the recommended OperatorType while configuring Budget Alert.\n\n Supported for CategoryType(s): Cost.", - "name": "GreaterThan" - }, - { - "value": "GreaterThanOrEqualTo", - "description": "Notification will be triggered if the evaluated cost is greater than or equal to the threshold value.\n\n Supported for CategoryType(s): Cost.", - "name": "GreaterThanOrEqualTo" - }, - { - "value": "LessThan", - "description": "Notification will be triggered if any Reservations in the scope of the Reservation Utilization Alert Rule have a utilization less than the threshold percentage.\n\n Supported for CategoryType(s): ReservationUtilization.", - "name": "LessThan" - } - ] - } - }, - "threshold": { - "description": "Threshold value associated with a notification. It is always percent with a maximum of 2 decimal places.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.\n\n **CategoryType: Cost** - Must be between 0 and 1000. Notification is sent when the cost exceeded the threshold.\n\n **CategoryType: ReservationUtilization** - Must be between 0 and 100. Notification is sent when a reservation has a utilization percentage below the threshold.", - "type": "number" - }, - "frequency": { - "description": "Frequency of a notification. Represents how long the notification will be silent after triggering an alert for a threshold breach. If not specified, the frequency will be set by default based on the timeGrain (Weekly when timeGrain: Last7Days, Monthly when timeGrain: Last30Days).\n\n Supported for CategoryType(s): ReservationUtilization.", - "type": "string", - "enum": [ - "Daily", - "Weekly", - "Monthly" - ], - "x-ms-enum": { - "name": "Frequency", - "modelAsString": true, - "values": [ - { - "value": "Daily", - "description": "After the threshold breaches and an Alert is fired, no further alerts will be sent until the next calendar day.", - "name": "Daily" - }, - { - "value": "Weekly", - "description": "After the threshold breaches and an Alert is fired, no further alerts will be sent for 7 calendar days.", - "name": "Weekly" - }, - { - "value": "Monthly", - "description": "After the threshold breaches and an Alert is fired, no further alerts will be sent for 30 calendar days.", - "name": "Monthly" - } - ] - } - }, - "contactEmails": { - "description": "Email addresses to send the notification to when the threshold is breached. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.\n\n Supported for CategoryType(s): Cost, ReservationUtilization.", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 0, - "maxItems": 50 - }, - "contactRoles": { - "description": "Subscription or Resource Group scopes only. Contact roles to send the notification to when the threshold is breached.\n\n Supported for CategoryType(s): Cost.", - "type": "array", - "items": { - "type": "string" - } - }, - "contactGroups": { - "description": "Subscription or Resource Group scopes only. Action groups to send the notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id.\n\n Supported for CategoryType(s): Cost.", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 0, - "maxItems": 50 - }, - "thresholdType": { - "description": "The type of threshold.\n\n Supported for CategoryType(s): Cost.", - "type": "string", - "enum": [ - "Actual", - "Forecasted" - ], - "x-ms-enum": { - "name": "ThresholdType", - "modelAsString": true, - "values": [ - { - "value": "Actual", - "description": "Actual costs budget alerts notify when the actual accrued cost exceeds the allocated budget.", - "name": "Actual" - }, - { - "value": "Forecasted", - "description": "Forecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions.", - "name": "Forecasted" - } - ] - }, - "default": "Actual" - }, - "locale": { - "description": "Language in which the recipient will receive the notification, \n\n Supported for CategoryType(s): Cost, ReservationUtilization.", - "type": "string", - "enum": [ - "en-us", - "ja-jp", - "zh-cn", - "de-de", - "es-es", - "fr-fr", - "it-it", - "ko-kr", - "pt-br", - "ru-ru", - "zh-tw", - "cs-cz", - "pl-pl", - "tr-tr", - "da-dk", - "en-gb", - "hu-hu", - "nb-no", - "nl-nl", - "pt-pt", - "sv-se" - ], - "x-ms-enum": { - "name": "CultureCode", - "modelAsString": true - } - } - }, - "required": [ - "enabled", - "operator", - "threshold", - "contactEmails" - ] - } - }, - "parameters": { - "scopeBudgetParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope associated with budget operations.\n\n Supported scopes for **CategoryType: Cost**\n\n Azure RBAC Scopes:\n- '/subscriptions/{subscriptionId}/' for subscription scope\n- '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope\n- '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope\n\n EA (Enterprise Agreement) Scopes:\n\n- '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope\n- '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope\n- '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope\n\n MCA (Modern Customer Agreement) Scopes:\n- '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope\n- '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope\n- '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope\n- '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' for customer scope (CSP only)\n\n Supported scopes for **CategoryType: ReservationUtilization**\n\n EA (Enterprise Agreement) Scopes:\n- '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account Scope\n\nMCA (Modern Customer Agreement) Scopes:\n- '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope (non-CSP only)\n- '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' for customer scope (CSP only)", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "budgetNameParameter": { - "name": "budgetName", - "in": "path", - "description": "Budget Name.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9_-]+$", - "minLength": 1, - "maxLength": 63 - }, - "budgetCategoryFilterParameter": { - "name": "$filter", - "description": "OData filter option. May be used to filter budgets by properties/category. The filter supports 'eq' only.", - "in": "query", - "required": false, - "type": "string", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.exports.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.exports.json deleted file mode 100644 index 17ec37a5512e..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.exports.json +++ /dev/null @@ -1,974 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2025-03-01", - "title": "CostManagementClient" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/{scope}/providers/Microsoft.CostManagement/exports": { - "get": { - "tags": [ - "Exports" - ], - "operationId": "Exports_List", - "description": "The operation to list all exports at the given scope.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ExportsGetBySubscription": { - "$ref": "./examples/ExportsGetBySubscription.json" - }, - "ExportsGetByResourceGroup": { - "$ref": "./examples/ExportsGetByResourceGroup.json" - }, - "ExportsGetByBillingAccount": { - "$ref": "./examples/ExportsGetByBillingAccount.json" - }, - "ExportsGetByDepartment": { - "$ref": "./examples/ExportsGetByDepartment.json" - }, - "ExportsGetByEnrollmentAccount": { - "$ref": "./examples/ExportsGetByEnrollmentAccount.json" - }, - "ExportsGetByManagementGroup": { - "$ref": "./examples/ExportsGetByManagementGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeExportParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "$expand", - "description": "May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last run of each export.", - "in": "query", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ExportListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}": { - "get": { - "tags": [ - "Exports" - ], - "operationId": "Exports_Get", - "description": "The operation to get the export for the defined scope by export name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ExportGetBySubscription": { - "$ref": "./examples/ExportGetBySubscription.json" - }, - "ExportGetByResourceGroup": { - "$ref": "./examples/ExportGetByResourceGroup.json" - }, - "ExportGetByBillingAccount": { - "$ref": "./examples/ExportGetByBillingAccount.json" - }, - "ExportGetByDepartment": { - "$ref": "./examples/ExportGetByDepartment.json" - }, - "ExportGetByEnrollmentAccount": { - "$ref": "./examples/ExportGetByEnrollmentAccount.json" - }, - "ExportGetByManagementGroup": { - "$ref": "./examples/ExportGetByManagementGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeExportParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/exportNameParameter" - }, - { - "name": "$expand", - "description": "May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last 10 runs of the export.", - "in": "query", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Export" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "tags": [ - "Exports" - ], - "operationId": "Exports_CreateOrUpdate", - "description": "The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ExportCreateOrUpdateBySubscription": { - "$ref": "./examples/ExportCreateOrUpdateBySubscription.json" - }, - "ExportCreateOrUpdateByResourceGroup": { - "$ref": "./examples/ExportCreateOrUpdateByResourceGroup.json" - }, - "ExportCreateOrUpdateByBillingAccount": { - "$ref": "./examples/ExportCreateOrUpdateByBillingAccount.json" - }, - "ExportCreateOrUpdateByBillingAccountMonthly": { - "$ref": "./examples/ExportCreateOrUpdateByBillingAccountMonthly.json" - }, - "ExportCreateOrUpdateByBillingAccountCustom": { - "$ref": "./examples/ExportCreateOrUpdateByBillingAccountCustom.json" - }, - "ExportCreateOrUpdateByDepartment": { - "$ref": "./examples/ExportCreateOrUpdateByDepartment.json" - }, - "ExportCreateOrUpdateByEnrollmentAccount": { - "$ref": "./examples/ExportCreateOrUpdateByEnrollmentAccount.json" - }, - "ExportCreateOrUpdateByManagementGroup": { - "$ref": "./examples/ExportCreateOrUpdateByManagementGroup.json" - }, - "ExportCreateOrUpdateByBillingAccountPricesheet": { - "$ref": "./examples/ExportCreateOrUpdateByBillingAccountPricesheet.json" - }, - "ExportCreateOrUpdateByBillingAccountReservationDetails": { - "$ref": "./examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json" - }, - "ExportCreateOrUpdateByBillingAccountReservationRecommendation": { - "$ref": "./examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json" - }, - "ExportCreateOrUpdateExportCreateOrUpdateByBillingAccountReservationTransactionsByBillingAccount": { - "$ref": "./examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeExportParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/exportNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Export" - }, - "description": "Parameters supplied to the CreateOrUpdate Export operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Export" - } - }, - "201": { - "description": "Created.", - "schema": { - "$ref": "#/definitions/Export" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "Exports" - ], - "operationId": "Exports_Delete", - "description": "The operation to delete a export.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ExportDeleteBySubscription": { - "$ref": "./examples/ExportDeleteBySubscription.json" - }, - "ExportDeleteByResourceGroup": { - "$ref": "./examples/ExportDeleteByResourceGroup.json" - }, - "ExportDeleteByBillingAccount": { - "$ref": "./examples/ExportDeleteByBillingAccount.json" - }, - "ExportDeleteByEnrollmentAccount": { - "$ref": "./examples/ExportDeleteByEnrollmentAccount.json" - }, - "ExportDeleteByDepartment": { - "$ref": "./examples/ExportDeleteByDepartment.json" - }, - "ExportDeleteByManagementGroup": { - "$ref": "./examples/ExportDeleteByManagementGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeExportParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/exportNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run": { - "post": { - "tags": [ - "Exports" - ], - "operationId": "Exports_Execute", - "description": "The operation to run an export.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ExportRunBySubscription": { - "$ref": "./examples/ExportRunBySubscription.json" - }, - "ExportRunByResourceGroup": { - "$ref": "./examples/ExportRunByResourceGroup.json" - }, - "ExportRunByBillingAccount": { - "$ref": "./examples/ExportRunByBillingAccount.json" - }, - "ExportRunByBillingAccountWithOptionalRequestBody": { - "$ref": "./examples/ExportRunByBillingAccountWithOptionalRequestBody.json" - }, - "ExportRunByDepartment": { - "$ref": "./examples/ExportRunByDepartment.json" - }, - "ExportRunByEnrollmentAccount": { - "$ref": "./examples/ExportRunByEnrollmentAccount.json" - }, - "ExportRunByManagementGroup": { - "$ref": "./examples/ExportRunByManagementGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeExportParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/exportNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": false, - "schema": { - "$ref": "#/definitions/ExportRunRequest" - }, - "description": "Parameters supplied to the Execute Export operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory": { - "get": { - "tags": [ - "Exports" - ], - "operationId": "Exports_GetExecutionHistory", - "description": "The operation to get the run history of an export for the defined scope and export name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ExportRunHistoryGetBySubscription": { - "$ref": "./examples/ExportRunHistoryGetBySubscription.json" - }, - "ExportRunHistoryGetByResourceGroup": { - "$ref": "./examples/ExportRunHistoryGetByResourceGroup.json" - }, - "ExportRunHistoryGetByBillingAccount": { - "$ref": "./examples/ExportRunHistoryGetByBillingAccount.json" - }, - "ExportRunHistoryGetByDepartment": { - "$ref": "./examples/ExportRunHistoryGetByDepartment.json" - }, - "ExportRunHistoryGetByEnrollmentAccount": { - "$ref": "./examples/ExportRunHistoryGetByEnrollmentAccount.json" - }, - "ExportRunHistoryGetByManagementGroup": { - "$ref": "./examples/ExportRunHistoryGetByManagementGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeExportParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/exportNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ExportExecutionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "ExportListResult": { - "description": "Result of listing exports. It contains a list of available exports in the scope provided.", - "type": "object", - "properties": { - "value": { - "description": "The list of exports.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Export" - } - } - } - }, - "Export": { - "description": "An export resource.", - "type": "object", - "allOf": [ - { - "$ref": "common-types.json#/definitions/CostManagementProxyResource" - } - ], - "properties": { - "identity": { - "description": "The managed identity associated with Export", - "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/SystemAssignedServiceIdentity" - }, - "location": { - "type": "string", - "description": "The location of the Export's managed identity. Only required when utilizing managed identity.", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ExportProperties", - "title": "Export properties" - } - } - }, - "ExportProperties": { - "description": "The properties of the export.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/CommonExportProperties" - } - ], - "properties": { - "schedule": { - "description": "Has schedule information for the export.", - "$ref": "#/definitions/ExportSchedule" - } - } - }, - "CommonExportProperties": { - "description": "The common properties of the export.", - "type": "object", - "properties": { - "format": { - "description": "The format of the export being delivered.", - "type": "string", - "enum": [ - "Csv", - "Parquet" - ], - "x-ms-enum": { - "name": "FormatType", - "modelAsString": true - } - }, - "deliveryInfo": { - "description": "Has delivery information for the export.", - "$ref": "#/definitions/ExportDeliveryInfo" - }, - "definition": { - "description": "Has the definition for the export.", - "$ref": "#/definitions/ExportDefinition" - }, - "runHistory": { - "description": "If requested, has the most recent run history for the export.", - "$ref": "#/definitions/ExportExecutionListResult" - }, - "partitionData": { - "description": "If set to true, exported data will be partitioned by size and placed in a blob directory together with a manifest file.", - "type": "boolean" - }, - "dataOverwriteBehavior": { - "description": "Allow customers to select overwrite data(OverwritePreviousReport) for exports. This setting will enable overwrite data for the same month in customer storage account. By default set to CreateNewReport.", - "type": "string", - "enum": [ - "OverwritePreviousReport", - "CreateNewReport" - ], - "x-ms-enum": { - "name": "DataOverwriteBehaviorType", - "modelAsString": true - } - }, - "compressionMode": { - "description": "Allow customers to select compress data for exports. This setting will enable destination file compression scheme at runtime. By default set to None. Gzip is for csv and snappy for parquet.", - "type": "string", - "enum": [ - "gzip", - "snappy", - "none" - ], - "x-ms-enum": { - "name": "CompressionModeType", - "modelAsString": true - } - }, - "exportDescription": { - "description": "The export description set by customer at time of export creation/update.", - "type": "string" - }, - "nextRunTimeEstimate": { - "description": "If the export has an active schedule, provides an estimate of the next run time.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "systemSuspensionContext": { - "description": "The export suspension reason if export is in SystemSuspended state. This is not populated currently.", - "$ref": "#/definitions/ExportSuspensionContext", - "readOnly": true - } - }, - "required": [ - "deliveryInfo", - "definition" - ] - }, - "ExportSchedule": { - "description": "The schedule associated with the export.", - "type": "object", - "properties": { - "status": { - "description": "The status of the export's schedule. If 'Inactive', the export's schedule is paused. To enable export set the status to be Active and then make a PUT request.", - "type": "string", - "enum": [ - "Active", - "Inactive" - ], - "x-ms-enum": { - "name": "StatusType", - "modelAsString": true - } - }, - "recurrence": { - "description": "The schedule recurrence.", - "type": "string", - "enum": [ - "Daily", - "Weekly", - "Monthly", - "Annually" - ], - "x-ms-enum": { - "name": "RecurrenceType", - "modelAsString": true - } - }, - "recurrencePeriod": { - "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.", - "$ref": "#/definitions/ExportRecurrencePeriod" - } - } - }, - "ExportDeliveryInfo": { - "description": "The delivery information associated with a export.", - "type": "object", - "properties": { - "destination": { - "description": "Has destination for the export being delivered.", - "$ref": "#/definitions/ExportDeliveryDestination" - } - }, - "required": [ - "destination" - ] - }, - "ExportRecurrencePeriod": { - "description": "The start and end date for recurrence schedule.", - "type": "object", - "properties": { - "from": { - "description": "The start date of recurrence.", - "type": "string", - "format": "date-time" - }, - "to": { - "description": "The end date of recurrence.", - "type": "string", - "format": "date-time" - } - }, - "required": [ - "from" - ] - }, - "ExportDeliveryDestination": { - "description": "This represents the blob storage account location where exports of costs will be delivered. There are two ways to configure the destination. The approach recommended for most customers is to specify the resourceId of the storage account. This requires a one-time registration of the account's subscription with the Microsoft.CostManagementExports resource provider in order to give Cost Management services access to the storage. When creating an export in the Azure portal this registration is performed automatically but API users may need to register the subscription explicitly (for more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services ). Another way to configure the destination is available ONLY to Partners with a Microsoft Partner Agreement plan who are global admins of their billing account. These Partners, instead of specifying the resourceId of a storage account, can specify the storage account name along with a SAS token for the account. This allows exports of costs to a storage account in any tenant. The SAS token should be created for the blob service with Service/Container/Object resource types and with Read/Write/Delete/List/Add/Create permissions (for more information see https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/export-cost-data-storage-account-sas-key ).", - "type": "object", - "properties": { - "type": { - "description": "The export delivery destination type. Currently only 'AzureBlob' is supported.", - "type": "string", - "enum": [ - "AzureBlob" - ], - "x-ms-enum": { - "name": "DestinationType", - "modelAsString": true - } - }, - "resourceId": { - "description": "The resource id of the storage account where exports will be delivered. This is not required if a sasToken and storageAccount are specified.", - "type": "string" - }, - "container": { - "description": "The name of the container where exports will be uploaded. If the container does not exist it will be created.", - "type": "string" - }, - "rootFolderPath": { - "description": "The name of the directory where exports will be uploaded.", - "type": "string" - }, - "sasToken": { - "description": "A SAS token for the storage account. For a restricted set of Azure customers this together with storageAccount can be specified instead of resourceId. Note: the value returned by the API for this property will always be obfuscated. Returning this same obfuscated value will not result in the SAS token being updated. To update this value a new SAS token must be specified.", - "type": "string", - "x-ms-secret": true - }, - "storageAccount": { - "description": "The storage account where exports will be uploaded. For a restricted set of Azure customers this together with sasToken can be specified instead of resourceId.", - "type": "string" - } - }, - "required": [ - "container" - ] - }, - "ExportDefinition": { - "description": "The definition of an export.", - "type": "object", - "properties": { - "type": { - "description": "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.", - "type": "string", - "enum": [ - "Usage", - "ActualCost", - "AmortizedCost", - "FocusCost", - "PriceSheet", - "ReservationTransactions", - "ReservationRecommendations", - "ReservationDetails" - ], - "x-ms-enum": { - "name": "ExportType", - "modelAsString": true - } - }, - "timeframe": { - "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.", - "type": "string", - "enum": [ - "MonthToDate", - "BillingMonthToDate", - "TheLastMonth", - "TheLastBillingMonth", - "WeekToDate", - "Custom", - "TheCurrentMonth" - ], - "x-ms-enum": { - "name": "TimeframeType", - "modelAsString": true - } - }, - "timePeriod": { - "description": "Has time period for pulling data for the export.", - "$ref": "#/definitions/ExportTimePeriod" - }, - "dataSet": { - "description": "The definition for data in the export.", - "$ref": "#/definitions/ExportDataset" - } - }, - "required": [ - "type", - "timeframe" - ] - }, - "ExportDataset": { - "description": "The definition for data in the export.", - "type": "object", - "properties": { - "granularity": { - "description": "The granularity of rows in the export. Currently 'Daily' is supported for most cases.", - "type": "string", - "enum": [ - "Daily", - "Monthly" - ], - "x-ms-enum": { - "name": "GranularityType", - "modelAsString": true - } - }, - "configuration": { - "description": "The export dataset configuration.", - "$ref": "#/definitions/ExportDatasetConfiguration" - } - } - }, - "ExportDatasetConfiguration": { - "description": "This is on path to deprecation and will not be supported going forward.", - "type": "object", - "properties": { - "columns": { - "description": "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", - "type": "array", - "items": { - "type": "string" - } - }, - "dataVersion": { - "description": "The data version for the selected for the export. If not provided then the export will default to latest data version.", - "type": "string" - }, - "filters": { - "description": "Filters associated with the data sets.", - "type": "array", - "items": { - "$ref": "#/definitions/FilterItems" - }, - "x-ms-identifiers": [ - "name" - ] - } - } - }, - "ExportTimePeriod": { - "description": "The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date range is 1 calendar month.", - "type": "object", - "properties": { - "from": { - "description": "The start date for export data.", - "type": "string", - "format": "date-time" - }, - "to": { - "description": "The end date for export data.", - "type": "string", - "format": "date-time" - } - }, - "required": [ - "from", - "to" - ] - }, - "ExportExecutionListResult": { - "description": "Result of listing the run history of an export.", - "type": "object", - "properties": { - "value": { - "description": "A list of export runs.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/ExportRun" - } - } - } - }, - "ExportRun": { - "description": "An export run.", - "type": "object", - "allOf": [ - { - "$ref": "common-types.json#/definitions/CostManagementProxyResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ExportRunProperties", - "title": "Export run properties" - } - } - }, - "ExportRunProperties": { - "description": "The properties of the export run.", - "type": "object", - "properties": { - "executionType": { - "description": "The type of the export run.", - "type": "string", - "enum": [ - "OnDemand", - "Scheduled" - ], - "x-ms-enum": { - "name": "ExecutionType", - "modelAsString": true - } - }, - "status": { - "description": "The last known status of the export run.", - "type": "string", - "enum": [ - "Queued", - "InProgress", - "Completed", - "Failed", - "Timeout", - "NewDataNotAvailable", - "DataNotAvailable" - ], - "x-ms-enum": { - "name": "ExecutionStatus", - "modelAsString": true - } - }, - "submittedBy": { - "description": "The identifier for the entity that triggered the export. For on-demand runs it is the user email. For scheduled runs it is 'System'.", - "type": "string" - }, - "submittedTime": { - "description": "The time when export was queued to be run.", - "type": "string", - "format": "date-time" - }, - "processingStartTime": { - "description": "The time when export was picked up to be run.", - "type": "string", - "format": "date-time" - }, - "processingEndTime": { - "description": "The time when the export run finished.", - "type": "string", - "format": "date-time" - }, - "startDate": { - "description": "The start datetime for the export.", - "type": "string", - "format": "date-time" - }, - "endDate": { - "description": "The end datetime for the export.", - "type": "string", - "format": "date-time" - }, - "fileName": { - "description": "The name of the exported file.", - "type": "string" - }, - "manifestFile": { - "description": "The manifest file location(URI location) for the exported files.", - "type": "string" - }, - "runSettings": { - "description": "The export settings that were in effect for this run.", - "$ref": "#/definitions/CommonExportProperties" - }, - "error": { - "description": "The details of any error.", - "$ref": "common-types.json#/definitions/ErrorDetails" - } - } - }, - "ExportSuspensionContext": { - "description": "The properties of the export run. This is not populated currently.", - "type": "object", - "properties": { - "suspensionCode": { - "description": "The code for export suspension.", - "type": "string" - }, - "suspensionReason": { - "description": "The detailed reason for export suspension.", - "type": "string" - }, - "suspensionTime": { - "description": "The time when the export was suspended.", - "type": "string", - "format": "date-time" - } - } - }, - "ExportRunRequest": { - "description": "The export run request.", - "type": "object", - "properties": { - "timePeriod": { - "description": "Has time period for pulling data for the export.", - "$ref": "#/definitions/ExportTimePeriod" - } - } - }, - "FilterItems": { - "description": "Will contain the filter name and value to operate on. This is currently only supported for Export Definition type of ReservationRecommendations.", - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the filter. This is currently only supported for Export Definition type of ReservationRecommendations. Supported names are ['ReservationScope', 'LookBackPeriod', 'ResourceType']", - "enum": [ - "ReservationScope", - "ResourceType", - "LookBackPeriod" - ], - "x-ms-enum": { - "name": "FilterItemNames", - "modelAsString": true - } - }, - "value": { - "type": "string", - "description": "Value to filter by. Currently values supported per name are, for 'ReservationScope' supported values are ['Single', 'Shared'], for 'LookBackPeriod' supported values are ['Last7Days', 'Last30Days', 'Last60Days'] and for 'ResourceType' supported values are ['VirtualMachines', 'SQLDatabases', 'PostgreSQL', 'ManagedDisk', 'MySQL', 'RedHat', 'MariaDB', 'RedisCache', 'CosmosDB', 'SqlDataWarehouse', 'SUSELinux', 'AppService', 'BlockBlob', 'AzureDataExplorer', 'VMwareCloudSimple']." - } - } - } - }, - "parameters": { - "scopeExportParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "exportNameParameter": { - "name": "exportName", - "in": "path", - "description": "Export Name.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.generatecostdetailsreport.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.generatecostdetailsreport.json deleted file mode 100644 index 653f387cf3c9..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.generatecostdetailsreport.json +++ /dev/null @@ -1,405 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2025-03-01", - "title": "CostManagementClient" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/{scope}/providers/Microsoft.CostManagement/generateCostDetailsReport": { - "post": { - "tags": [ - "CostDetails" - ], - "operationId": "GenerateCostDetailsReport_CreateOperation", - "description": "This API is the replacement for all previously release Usage Details APIs. Request to generate a cost details report for the provided date range, billing period (Only enterprise customers) or Invoice Id asynchronously at a certain scope. The initial call to request a report will return a 202 with a 'Location' and 'Retry-After' header. The 'Location' header will provide the endpoint to poll to get the result of the report generation. The 'Retry-After' provides the duration to wait before polling for the generated report. A call to poll the report operation will provide a 202 response with a 'Location' header if the operation is still in progress. Once the report generation operation completes, the polling endpoint will provide a 200 response along with details on the report blob(s) that are available for download. The details on the file(s) available for download will be available in the polling response body. To Understand cost details (formerly known as usage details) fields found in files ,see https://learn.microsoft.com/en-us/azure/cost-management-billing/automate/understand-usage-details-fields", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "GenerateCostDetailsReportByBillingProfileAndInvoiceId": { - "$ref": "./examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json" - }, - "GenerateCostDetailsReportBySubscriptionAndTimePeriod": { - "$ref": "./examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json" - }, - "GenerateCostDetailsReportByCustomerAndTimePeriod": { - "$ref": "./examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json" - }, - "GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId": { - "$ref": "./examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json" - }, - "GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod": { - "$ref": "./examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json" - }, - "GenerateCostDetailsReportByDepartmentsAndTimePeriod": { - "$ref": "./examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json" - }, - "GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod": { - "$ref": "./examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "#/parameters/scopeUsageDetailsParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/GenerateCostDetailsReportRequestDefinition" - }, - "description": "Parameters supplied to the Create cost details operation." - } - ], - "responses": { - "200": { - "description": "Request processing completed.", - "schema": { - "$ref": "#/definitions/CostDetailsOperationResults" - } - }, - "202": { - "description": "Accepted. Request will be processed. Use the Location header to check the status.", - "headers": { - "Location": { - "description": "The URL to check the result of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "format": "int32", - "type": "integer" - } - } - }, - "204": { - "description": "No Content. The request has succeeded but returned no results." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/GenerateCostDetailsReportErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/costDetailsOperationResults/{operationId}": { - "get": { - "tags": [ - "CostDetails" - ], - "operationId": "GenerateCostDetailsReport_GetOperationResults", - "description": "Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header.", - "x-ms-examples": { - "Get details of the operation result": { - "$ref": "./examples/CostDetailsOperationResultsBySubscriptionScope.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "#/parameters/scopeUsageDetailsParameter" - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "The target operation Id." - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/CostDetailsOperationResults" - } - }, - "202": { - "description": "Accepted. The operation is ongoing." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "GenerateCostDetailsReportErrorResponse": { - "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 400 Bad Request - Invalid Request Payload. Request payload provided is not in a json format or had an invalid member not accepted in the request payload. \n\n * 400 Bad Request - Invalid request payload: can only have either timePeriod or invoiceId or billingPeriod. API only allows data to be pulled for either timePeriod or invoiceId or billingPeriod. Customer should provide only one of these parameters. \n\n * 400 Bad Request - Start date must be after . API only allows data to be pulled no older than 13 months from now. \n\n * 400 Bad Request - The maximum allowed date range is 1 months. API only allows data to be pulled for 1 month or less. \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", - "type": "object", - "properties": { - "error": { - "description": "The details of the error.", - "$ref": "common-types.json#/definitions/ErrorDetails" - } - } - }, - "GenerateCostDetailsReportRequestDefinition": { - "description": "The definition of a cost detailed report.", - "type": "object", - "properties": { - "metric": { - "description": "The type of the detailed report. By default ActualCost is provided", - "type": "string", - "enum": [ - "ActualCost", - "AmortizedCost" - ], - "x-ms-enum": { - "name": "CostDetailsMetricType", - "modelAsString": true, - "values": [ - { - "value": "ActualCost", - "description": "Actual cost data.", - "name": "ActualCostCostDetailsMetricType" - }, - { - "value": "AmortizedCost", - "description": "Amortized cost data.", - "name": "AmortizedCostCostDetailsMetricType" - } - ] - } - }, - "timePeriod": { - "description": "The specific date range of cost details requested for the report. This parameter cannot be used alongside either the invoiceId or billingPeriod parameters. If a timePeriod, invoiceId or billingPeriod parameter is not provided in the request body the API will return the current month's cost. API only allows data to be pulled for 1 month or less and no older than 13 months. If no timePeriod or billingPeriod or invoiceId is provided the API defaults to the open month time period", - "$ref": "#/definitions/CostDetailsTimePeriod" - }, - "billingPeriod": { - "description": "This parameter can be used only by Enterprise Agreement customers. Use the YearMonth(e.g. 202008) format. This parameter cannot be used alongside either the invoiceId or timePeriod parameters. If a timePeriod, invoiceId or billingPeriod parameter is not provided in the request body the API will return the current month's cost.", - "type": "string" - }, - "invoiceId": { - "description": "This parameter can only be used by Microsoft Customer Agreement customers. Additionally, it can only be used at the Billing Profile or Customer scope. This parameter cannot be used alongside either the billingPeriod or timePeriod parameters. If a timePeriod, invoiceId or billingPeriod parameter is not provided in the request body the API will return the current month's cost.", - "type": "string" - } - } - }, - "CostDetailsTimePeriod": { - "description": "The start and end date for pulling data for the cost detailed report. API only allows data to be pulled for 1 month or less and no older than 13 months.", - "type": "object", - "properties": { - "start": { - "description": "The start date to pull data from. example format 2020-03-15", - "type": "string" - }, - "end": { - "description": "The end date to pull data to. example format 2020-03-15", - "type": "string" - } - }, - "required": [ - "start", - "end" - ] - }, - "CostDetailsOperationResults": { - "description": "The result of the long running operation for cost details Api.", - "type": "object", - "properties": { - "id": { - "description": "The id of the long running operation.", - "type": "string" - }, - "name": { - "description": "The name of the long running operation.", - "type": "string" - }, - "type": { - "description": "The type of the long running operation.", - "type": "string" - }, - "status": { - "description": "The status of the cost details operation", - "type": "string", - "enum": [ - "Completed", - "NoDataFound", - "Failed" - ], - "x-ms-enum": { - "name": "CostDetailsStatusType", - "modelAsString": true, - "values": [ - { - "value": "Completed", - "description": "Operation is Completed.", - "name": "CompletedCostDetailsStatusType" - }, - { - "value": "NoDataFound", - "description": "Operation is Completed and no cost data found.", - "name": "NoDataFoundCostDetailsStatusType" - }, - { - "value": "Failed", - "description": "Operation Failed.", - "name": "FailedCostDetailsStatusType" - } - ] - } - }, - "manifest": { - "x-ms-client-flatten": true, - "description": "The manifest of the report generated by the operation.", - "$ref": "#/definitions/ReportManifest" - }, - "validTill": { - "description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.", - "type": "string", - "format": "date-time" - }, - "error": { - "description": "The details of the error.", - "$ref": "common-types.json#/definitions/ErrorDetails" - } - } - }, - "ReportManifest": { - "description": "The manifest of the report generated by the operation.", - "type": "object", - "properties": { - "manifestVersion": { - "description": "The Manifest version.", - "type": "string" - }, - "dataFormat": { - "description": "The data format of the report", - "type": "string", - "enum": [ - "Csv" - ], - "x-ms-enum": { - "name": "CostDetailsDataFormat", - "modelAsString": true, - "values": [ - { - "value": "Csv", - "description": "Csv data format.", - "name": "CsvCostDetailsDataFormat" - } - ] - } - }, - "byteCount": { - "description": "The total number of bytes in all blobs.", - "format": "int64", - "type": "integer" - }, - "blobCount": { - "description": "The total number of blobs.", - "format": "int32", - "type": "integer" - }, - "compressData": { - "description": "Is the data in compressed format.", - "type": "boolean" - }, - "requestContext": { - "x-ms-client-flatten": true, - "description": "The context of the Cost Details request.", - "$ref": "#/definitions/RequestContext" - }, - "blobs": { - "description": "List of blob information generated by this operation.", - "type": "array", - "items": { - "$ref": "#/definitions/BlobInfo" - }, - "x-ms-identifiers": [ - "blobLink" - ] - } - } - }, - "RequestContext": { - "description": "The context of the Cost Details request.", - "type": "object", - "properties": { - "requestScope": { - "description": "The request scope of the request.", - "type": "string" - }, - "requestBody": { - "description": "The request payload body provided in Cost Details call", - "$ref": "#/definitions/GenerateCostDetailsReportRequestDefinition" - } - } - }, - "BlobInfo": { - "description": "The blob information generated by this operation.", - "type": "object", - "properties": { - "blobLink": { - "description": "Link to the blob to download file.", - "type": "string" - }, - "byteCount": { - "description": "Bytes in the blob.", - "format": "int64", - "type": "integer" - } - } - } - }, - "parameters": { - "scopeUsageDetailsParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The ARM Resource ID for subscription, billing account, or other billing scopes.Currently Resource Group and Management Group are not supported. For details, see https://aka.ms/costmgmt/scopes.", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - } - } -} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.generatedetailedcostreport.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.generatedetailedcostreport.json deleted file mode 100644 index 72094e30b5dc..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.generatedetailedcostreport.json +++ /dev/null @@ -1,368 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2025-03-01", - "title": "CostManagementClient" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/{scope}/providers/Microsoft.CostManagement/generateDetailedCostReport": { - "post": { - "tags": [ - "UsageDetails" - ], - "operationId": "GenerateDetailedCostReport_CreateOperation", - "description": "Generates the detailed cost report for provided date range, billing period(only enterprise customers) or Invoice ID asynchronously at a certain scope. Call returns a 202 with header Azure-Consumption-AsyncOperation providing a link to the operation created. A call on the operation will provide the status and if the operation is completed the blob file where generated detailed cost report is being stored.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "GenerateDetailedCostReportByBillingProfileAndInvoiceId": { - "$ref": "./examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json" - }, - "GenerateDetailedCostReportBySubscriptionAndTimePeriod": { - "$ref": "./examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json" - }, - "GenerateDetailedCostReportByCustomerAndTimePeriod": { - "$ref": "./examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json" - }, - "GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId": { - "$ref": "./examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json" - }, - "GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod": { - "$ref": "./examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "#/parameters/scopeUsageDetailsParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/GenerateDetailedCostReportDefinition" - }, - "description": "Parameters supplied to the Create detailed cost report operation." - } - ], - "responses": { - "200": { - "description": "Request processing completed.", - "schema": { - "$ref": "#/definitions/GenerateDetailedCostReportOperationResult" - } - }, - "202": { - "description": "Accepted. Request will be processed. Use the Location header to check the status.", - "headers": { - "Location": { - "description": "The URL to check the result of the asynchronous operation.", - "type": "string" - }, - "Azure-Consumption-AsyncOperation": { - "description": "The URL to check the status of the asynchronous operation.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URL to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "format": "int32", - "type": "integer" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/GenerateDetailedCostReportErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/operationResults/{operationId}": { - "get": { - "tags": [ - "GenerateDetailedCostReportOperationResults" - ], - "operationId": "GenerateDetailedCostReportOperationResults_Get", - "description": "Gets the result of the specified operation. The link with this operationId is provided as a response header of the initial request.", - "x-ms-examples": { - "Get details of the operation result": { - "$ref": "./examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "The target operation Id." - }, - { - "$ref": "#/parameters/scopeUsageDetailsParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/GenerateDetailedCostReportOperationResult" - } - }, - "202": { - "description": "Accepted. The operation is ongoing." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/operationStatus/{operationId}": { - "get": { - "tags": [ - "GenerateDetailedCostReportOperationStatus" - ], - "operationId": "GenerateDetailedCostReportOperationStatus_Get", - "description": "Get the status of the specified operation. This link is provided in the GenerateDetailedCostReport creation request response header.", - "x-ms-examples": { - "Get details of the operation status": { - "$ref": "./examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json" - } - }, - "parameters": [ - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "The target operation Id." - }, - { - "$ref": "#/parameters/scopeUsageDetailsParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/GenerateDetailedCostReportOperationStatuses" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "GenerateDetailedCostReportErrorResponse": { - "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 413 Request Entity Too Large - Request is throttled. The amount of data required to fulfill the request exceeds the maximum size permitted of 2Gb. Please utilize our Exports feature instead. \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", - "type": "object", - "properties": { - "error": { - "description": "The details of the error.", - "$ref": "common-types.json#/definitions/ErrorDetails" - } - } - }, - "GenerateDetailedCostReportDefinition": { - "description": "The definition of a cost detailed report.", - "properties": { - "metric": { - "description": "The type of the detailed report. By default ActualCost is provided", - "type": "string", - "enum": [ - "ActualCost", - "AmortizedCost" - ], - "x-ms-enum": { - "name": "GenerateDetailedCostReportMetricType", - "modelAsString": true - } - }, - "timePeriod": { - "description": "Has time period for pulling data for the cost detailed report. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided.", - "$ref": "#/definitions/GenerateDetailedCostReportTimePeriod" - }, - "billingPeriod": { - "description": "Billing period in YearMonth(e.g. 202008) format. Only for legacy enterprise customers can use this. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided.", - "type": "string" - }, - "invoiceId": { - "description": "Invoice ID for Pay-as-you-go and Microsoft Customer Agreement scopes. Can only have one of either timePeriod or invoiceId or billingPeriod parameters. If none provided current month cost is provided.", - "type": "string" - }, - "customerId": { - "description": "Customer ID for Microsoft Customer Agreement scopes (Invoice Id is also required for this).", - "type": "string" - } - } - }, - "GenerateDetailedCostReportTimePeriod": { - "description": "The start and end date for pulling data for the cost detailed report.", - "properties": { - "start": { - "description": "The start date to pull data from. example format 2020-03-15", - "type": "string" - }, - "end": { - "description": "The end date to pull data to. example format 2020-03-15", - "type": "string" - } - }, - "required": [ - "start", - "end" - ] - }, - "GenerateDetailedCostReportOperationStatuses": { - "description": "The status of the long running operation for cost detailed report.", - "properties": { - "id": { - "description": "The ID of the long running operation.", - "type": "string" - }, - "name": { - "description": "The name of the long running operation.", - "type": "string" - }, - "status": { - "description": "The status of the long running operation.", - "$ref": "#/definitions/Status" - }, - "startTime": { - "description": "The startTime of the operation.", - "type": "string" - }, - "endTime": { - "description": "The endTime of the operation.", - "type": "string" - }, - "type": { - "description": "The type of the long running operation.", - "type": "string" - }, - "error": { - "description": "The details of the error.", - "$ref": "common-types.json#/definitions/ErrorDetails" - }, - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of the usage file generated.", - "$ref": "common-types.json#/definitions/DownloadURL" - } - } - }, - "GenerateDetailedCostReportOperationResult": { - "description": "The result of the long running operation for cost detailed report.", - "properties": { - "id": { - "description": "The ARM resource id of the long running operation.", - "type": "string" - }, - "name": { - "description": "The name of the long running operation.", - "type": "string" - }, - "type": { - "description": "The type of the long running operation.", - "type": "string" - }, - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of the resource generated.", - "$ref": "common-types.json#/definitions/DownloadURL" - } - } - }, - "Status": { - "description": "The status of the long running operation.", - "properties": { - "status": { - "description": "The status of the long running operation.", - "type": "string", - "enum": [ - "InProgress", - "Completed", - "Failed", - "Queued", - "NoDataFound", - "ReadyToDownload", - "TimedOut" - ], - "x-ms-enum": { - "name": "ReportOperationStatusType", - "modelAsString": true - } - } - } - } - }, - "parameters": { - "scopeUsageDetailsParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The ARM Resource ID for subscription, resource group, billing account, or other billing scopes. For details, see https://aka.ms/costmgmt/scopes.", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - } - } -} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.json deleted file mode 100644 index 6884ab6dc7bc..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.json +++ /dev/null @@ -1,2979 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2025-03-01", - "title": "CostManagementClient" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/providers/Microsoft.CostManagement/views": { - "get": { - "tags": [ - "Views" - ], - "operationId": "Views_List", - "description": "Lists all views by tenant and object.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "PrivateViewList": { - "$ref": "./examples/PrivateViewList.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ViewListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/views": { - "get": { - "tags": [ - "Views" - ], - "operationId": "Views_ListByScope", - "description": "Lists all views at the given scope.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ResourceGroupViewList": { - "$ref": "./examples/ViewListByResourceGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeViewParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ViewListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.CostManagement/views/{viewName}": { - "get": { - "tags": [ - "Views" - ], - "operationId": "Views_Get", - "description": "Gets the view by view name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "PrivateView": { - "$ref": "./examples/PrivateView.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/viewNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/View" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "tags": [ - "Views" - ], - "operationId": "Views_CreateOrUpdate", - "description": "The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "CreateOrUpdatePrivateView": { - "$ref": "./examples/PrivateViewCreateOrUpdate.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/viewNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/View" - }, - "description": "Parameters supplied to the CreateOrUpdate View operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/View" - } - }, - "201": { - "description": "Created.", - "schema": { - "$ref": "#/definitions/View" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "Views" - ], - "operationId": "Views_Delete", - "description": "The operation to delete a view.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "DeletePrivateView": { - "$ref": "./examples/PrivateViewDelete.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/viewNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "204": { - "description": "NoContent. Resource is not available." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/views/{viewName}": { - "get": { - "tags": [ - "Views" - ], - "operationId": "Views_GetByScope", - "description": "Gets the view for the defined scope by view name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ResourceGroupView": { - "$ref": "./examples/ViewByResourceGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeViewParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/viewNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/View" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "tags": [ - "Views" - ], - "operationId": "Views_CreateOrUpdateByScope", - "description": "The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ResourceGroupCreateOrUpdateView": { - "$ref": "./examples/ViewCreateOrUpdateByResourceGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeViewParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/viewNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/View" - }, - "description": "Parameters supplied to the CreateOrUpdate View operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/View" - } - }, - "201": { - "description": "Created.", - "schema": { - "$ref": "#/definitions/View" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "Views" - ], - "operationId": "Views_DeleteByScope", - "description": "The operation to delete a view.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ResourceGroupDeleteView": { - "$ref": "./examples/ViewDeleteByResourceGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeViewParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/viewNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "204": { - "description": "NoContent. Resource is not available." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/alerts": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_List", - "description": "Lists the alerts for scope defined.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "BillingAccountAlerts": { - "$ref": "./examples/BillingAccountAlerts.json" - }, - "BillingProfileAlerts": { - "$ref": "./examples/BillingProfileAlerts.json" - }, - "InvoiceSectionAlerts": { - "$ref": "./examples/InvoiceSectionAlerts.json" - }, - "EnrollmentAccountAlerts": { - "$ref": "./examples/EnrollmentAccountAlerts.json" - }, - "DepartmentAlerts": { - "$ref": "./examples/DepartmentAlerts.json" - }, - "SubscriptionAlerts": { - "$ref": "./examples/SubscriptionAlerts.json" - }, - "ResourceGroupAlerts": { - "$ref": "./examples/ResourceGroupAlerts.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/scopeAlertParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AlertsResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/alerts/{alertId}": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_Get", - "description": "Gets the alert for the scope by alert ID.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SingleSubscriptionAlerts": { - "$ref": "./examples/SingleSubscriptionAlert.json" - }, - "SingleResourceGroupAlerts": { - "$ref": "./examples/SingleResourceGroupAlert.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/scopeAlertParameter" - }, - { - "$ref": "#/parameters/alertIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Alert" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - }, - "patch": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_Dismiss", - "description": "Dismisses the specified alert", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "PatchSubscriptionAlerts": { - "$ref": "./examples/DismissSubscriptionAlerts.json" - }, - "PatchResourceGroupAlerts": { - "$ref": "./examples/DismissResourceGroupAlerts.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/scopeAlertParameter" - }, - { - "$ref": "#/parameters/alertIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DismissAlertPayload" - }, - "description": "Parameters supplied to the Dismiss Alert operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Alert" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_ListExternal", - "description": "Lists the Alerts for external cloud provider type defined.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ExternalBillingAccountAlerts": { - "$ref": "./examples/ExternalBillingAccountAlerts.json" - }, - "ExternalSubscriptionAlerts": { - "$ref": "./examples/ExternalSubscriptionAlerts.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/externalCloudProviderTypeParameter" - }, - { - "$ref": "#/parameters/externalCloudProviderIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AlertsResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/forecast": { - "post": { - "tags": [ - "Forecast" - ], - "operationId": "Forecast_Usage", - "description": "Lists the forecast charges for scope defined.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "BillingAccountForecast": { - "$ref": "./examples/BillingAccountForecast.json" - }, - "BillingProfileForecast": { - "$ref": "./examples/BillingProfileForecast.json" - }, - "InvoiceSectionForecast": { - "$ref": "./examples/InvoiceSectionForecast.json" - }, - "EnrollmentAccountForecast": { - "$ref": "./examples/EnrollmentAccountForecast.json" - }, - "DepartmentForecast": { - "$ref": "./examples/DepartmentForecast.json" - }, - "SubscriptionForecast": { - "$ref": "./examples/SubscriptionForecast.json" - }, - "ResourceGroupForecast": { - "$ref": "./examples/ResourceGroupForecast.json" - } - }, - "parameters": [ - { - "name": "$filter", - "description": "May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.", - "in": "query", - "required": false, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/scopeForecastParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ForecastDefinition" - }, - "description": "Parameters supplied to the CreateOrUpdate Forecast Config operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ForecastResult" - } - }, - "204": { - "description": "No Content. Resource is not available." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/forecast": { - "post": { - "tags": [ - "Forecast" - ], - "operationId": "Forecast_ExternalCloudProviderUsage", - "description": "Lists the forecast charges for external cloud provider type defined.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ExternalBillingAccountForecast": { - "$ref": "./examples/ExternalBillingAccountForecast.json" - }, - "ExternalSubscriptionForecast": { - "$ref": "./examples/ExternalSubscriptionForecast.json" - } - }, - "parameters": [ - { - "name": "$filter", - "description": "May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.", - "in": "query", - "required": false, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/externalCloudProviderTypeParameter" - }, - { - "$ref": "#/parameters/externalCloudProviderIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ForecastDefinition" - }, - "description": "Parameters supplied to the CreateOrUpdate Forecast Config operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ForecastResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/dimensions": { - "get": { - "tags": [ - "Dimensions" - ], - "x-ms-odata": "#/definitions/Dimension", - "operationId": "Dimensions_List", - "description": "Lists the dimensions by the defined scope.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionDimensionsList-Legacy": { - "$ref": "./examples/SubscriptionDimensionsList.json" - }, - "ResourceGroupDimensionsList-Legacy": { - "$ref": "./examples/ResourceGroupDimensionsList.json" - }, - "ManagementGroupDimensionsList-Legacy": { - "$ref": "./examples/ManagementGroupDimensionsList.json" - }, - "ManagementGroupDimensionsListExpandAndTop-Legacy": { - "$ref": "./examples/ManagementGroupDimensionsListExpandAndTop.json" - }, - "ManagementGroupDimensionsListWithFilter-Legacy": { - "$ref": "./examples/ManagementGroupDimensionsListWithFilter.json" - }, - "DepartmentDimensionsList-Legacy": { - "$ref": "./examples/DepartmentDimensionsList.json" - }, - "DepartmentDimensionsListExpandAndTop-Legacy": { - "$ref": "./examples/DepartmentDimensionsListExpandAndTop.json" - }, - "DepartmentDimensionsListWithFilter-Legacy": { - "$ref": "./examples/DepartmentDimensionsListWithFilter.json" - }, - "EnrollmentAccountDimensionsList-Legacy": { - "$ref": "./examples/EnrollmentAccountDimensionsList.json" - }, - "EnrollmentAccountDimensionsListExpandAndTop-Legacy": { - "$ref": "./examples/EnrollmentAccountDimensionsListExpandAndTop.json" - }, - "EnrollmentAccountDimensionsListWithFilter-Legacy": { - "$ref": "./examples/EnrollmentAccountDimensionsListWithFilter.json" - }, - "BillingAccountDimensionsList-Legacy": { - "$ref": "./examples/BillingAccountDimensionsList.json" - }, - "BillingAccountDimensionsListExpandAndTop-Legacy": { - "$ref": "./examples/BillingAccountDimensionsListExpandAndTop.json" - }, - "BillingAccountDimensionsListWithFilter-Legacy": { - "$ref": "./examples/BillingAccountDimensionsListWithFilter.json" - }, - "BillingAccountDimensionsList-MCA": { - "$ref": "./examples/MCABillingAccountDimensionsList.json" - }, - "BillingAccountDimensionsListExpandAndTop-MCA": { - "$ref": "./examples/MCABillingAccountDimensionsListExpandAndTop.json" - }, - "BillingAccountDimensionsListWithFilter-MCA": { - "$ref": "./examples/MCABillingAccountDimensionsListWithFilter.json" - }, - "BillingProfileDimensionsList-MCA": { - "$ref": "./examples/MCABillingProfileDimensionsList.json" - }, - "BillingProfileDimensionsListExpandAndTop-MCA": { - "$ref": "./examples/MCABillingProfileDimensionsListExpandAndTop.json" - }, - "BillingProfileDimensionsListWithFilter-MCA": { - "$ref": "./examples/MCABillingProfileDimensionsListWithFilter.json" - }, - "InvoiceSectionDimensionsList-MCA": { - "$ref": "./examples/MCAInvoiceSectionDimensionsList.json" - }, - "InvoiceSectionDimensionsListExpandAndTop-MCA": { - "$ref": "./examples/MCAInvoiceSectionDimensionsListExpandAndTop.json" - }, - "InvoiceSectionDimensionsListWithFilter-MCA": { - "$ref": "./examples/MCAInvoiceSectionDimensionsListWithFilter.json" - }, - "CustomerDimensionsList-MCA": { - "$ref": "./examples/MCACustomerDimensionsList.json" - }, - "CustomerDimensionsListExpandAndTop-MCA": { - "$ref": "./examples/MCACustomerDimensionsListExpandAndTop.json" - }, - "CustomerDimensionsListWithFilter-MCA": { - "$ref": "./examples/MCACustomerDimensionsListWithFilter.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeDimensionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "$expand", - "description": "May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "$skiptoken", - "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "$top", - "description": "May be used to limit the number of results to the most recent N dimension data.", - "in": "query", - "required": false, - "type": "integer", - "minimum": 1, - "maximum": 1000, - "format": "int32" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DimensionsListResult" - } - }, - "204": { - "description": "No Content. Resource is not available." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions": { - "get": { - "tags": [ - "Dimensions" - ], - "x-ms-odata": "#/definitions/Dimension", - "operationId": "Dimensions_ByExternalCloudProviderType", - "description": "Lists the dimensions by the external cloud provider type.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ExternalBillingAccountDimensionList": { - "$ref": "./examples/ExternalBillingAccountsDimensions.json" - }, - "ExternalSubscriptionDimensionList": { - "$ref": "./examples/ExternalSubscriptionsDimensions.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/externalCloudProviderTypeParameter" - }, - { - "$ref": "#/parameters/externalCloudProviderIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "$expand", - "description": "May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "$skiptoken", - "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "$top", - "description": "May be used to limit the number of results to the most recent N dimension data.", - "in": "query", - "required": false, - "type": "integer", - "minimum": 1, - "maximum": 1000, - "format": "int32" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DimensionsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/query": { - "post": { - "tags": [ - "Query" - ], - "operationId": "Query_Usage", - "description": "Query the usage data for scope defined.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionQuery-Legacy": { - "$ref": "./examples/SubscriptionQuery.json" - }, - "SubscriptionQueryGrouping-Legacy": { - "$ref": "./examples/SubscriptionQueryGrouping.json" - }, - "ResourceGroupQuery-Legacy": { - "$ref": "./examples/ResourceGroupQuery.json" - }, - "ResourceGroupQueryGrouping-Legacy": { - "$ref": "./examples/ResourceGroupQueryGrouping.json" - }, - "BillingAccountQuery-Legacy": { - "$ref": "./examples/BillingAccountQuery.json" - }, - "BillingAccountQueryGrouping-Legacy": { - "$ref": "./examples/BillingAccountQueryGrouping.json" - }, - "EnrollmentAccountQuery-Legacy": { - "$ref": "./examples/EnrollmentAccountQuery.json" - }, - "EnrollmentAccountQueryGrouping-Legacy": { - "$ref": "./examples/EnrollmentAccountQueryGrouping.json" - }, - "DepartmentQuery-Legacy": { - "$ref": "./examples/DepartmentQuery.json" - }, - "DepartmentQueryGrouping-Legacy": { - "$ref": "./examples/DepartmentQueryGrouping.json" - }, - "ManagementGroupQuery-Legacy": { - "$ref": "./examples/ManagementGroupQuery.json" - }, - "ManagementGroupQueryGrouping-Legacy": { - "$ref": "./examples/ManagementGroupQueryGrouping.json" - }, - "BillingAccountQuery-MCA": { - "$ref": "./examples/MCABillingAccountQuery.json" - }, - "BillingAccountQueryGrouping-MCA": { - "$ref": "./examples/MCABillingAccountQueryGrouping.json" - }, - "BillingProfileQuery-MCA": { - "$ref": "./examples/MCABillingProfileQuery.json" - }, - "BillingProfileQueryGrouping-MCA": { - "$ref": "./examples/MCABillingProfileQueryGrouping.json" - }, - "InvoiceSectionQuery-MCA": { - "$ref": "./examples/MCAInvoiceSectionQuery.json" - }, - "InvoiceSectionQueryGrouping-MCA": { - "$ref": "./examples/MCAInvoiceSectionQueryGrouping.json" - }, - "CustomerQuery-MCA": { - "$ref": "./examples/MCACustomerQuery.json" - }, - "CustomerQueryGrouping-MCA": { - "$ref": "./examples/MCACustomerQueryGrouping.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeQueryParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/QueryDefinition" - }, - "description": "Parameters supplied to the CreateOrUpdate Query Config operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/QueryResult" - } - }, - "204": { - "description": "No Content. Resource is not available." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query": { - "post": { - "tags": [ - "Query" - ], - "operationId": "Query_UsageByExternalCloudProviderType", - "description": "Query the usage data for external cloud provider type defined.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ExternalBillingAccountQueryList": { - "$ref": "./examples/ExternalBillingAccountsQuery.json" - }, - "ExternalSubscriptionsQuery": { - "$ref": "./examples/ExternalSubscriptionsQuery.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/externalCloudProviderTypeParameter" - }, - { - "$ref": "#/parameters/externalCloudProviderIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/QueryDefinition" - }, - "description": "Parameters supplied to the CreateOrUpdate Query Config operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/QueryResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/generateReservationDetailsReport": { - "post": { - "tags": [ - "ReservedInstances" - ], - "operationId": "GenerateReservationDetailsReport_ByBillingAccountId", - "description": "Generates the reservations details report for provided date range asynchronously based on enrollment id. The Reservation usage details can be viewed only by certain enterprise roles. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/understand-ea-roles#usage-and-costs-access-by-role", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ReservationDetails": { - "$ref": "./examples/GenerateReservationDetailsReportByBillingAccount.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "#/parameters/enrollmentIdParameter" - }, - { - "$ref": "#/parameters/startDateParameter" - }, - { - "$ref": "#/parameters/endDateParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Request processing completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "202": { - "description": "Accepted. Request will be processed. Use the location header to check the status.", - "headers": { - "Location": { - "description": "The URL to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "format": "int32", - "type": "integer" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/generateReservationDetailsReport": { - "post": { - "tags": [ - "ReservedInstances" - ], - "operationId": "GenerateReservationDetailsReport_ByBillingProfileId", - "description": "Generates the reservations details report for provided date range asynchronously by billing profile. The Reservation usage details can be viewed by only certain enterprise roles by default. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/reservations/reservation-utilization#view-utilization-in-the-azure-portal-with-azure-rbac-access", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ReservationDetails": { - "$ref": "./examples/GenerateReservationDetailsReportByBillingProfile.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "parameters": [ - { - "$ref": "common-types.json#/parameters/billingAccountIdParameter" - }, - { - "$ref": "common-types.json#/parameters/billingProfileIdParameter" - }, - { - "$ref": "#/parameters/startDateParameter" - }, - { - "$ref": "#/parameters/endDateParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Request processing completed.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "202": { - "description": "Accepted. Request will be processed. Use the Location header to check the status.", - "headers": { - "Location": { - "description": "The URL to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "format": "int32", - "type": "integer" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "ReportConfigDefinition": { - "description": "The definition of a report config.", - "type": "object", - "properties": { - "type": { - "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.", - "type": "string", - "enum": [ - "Usage" - ], - "x-ms-enum": { - "name": "ReportType", - "modelAsString": true - } - }, - "timeframe": { - "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.", - "type": "string", - "enum": [ - "WeekToDate", - "MonthToDate", - "YearToDate", - "Custom" - ], - "x-ms-enum": { - "name": "ReportTimeframeType", - "modelAsString": true - } - }, - "timePeriod": { - "description": "Has time period for pulling data for the report.", - "$ref": "#/definitions/ReportConfigTimePeriod" - }, - "dataSet": { - "description": "Has definition for data in this report config.", - "$ref": "#/definitions/ReportConfigDataset" - }, - "includeMonetaryCommitment": { - "description": "If true, report includes monetary commitment.", - "type": "boolean" - } - }, - "required": [ - "type", - "timeframe" - ] - }, - "ReportConfigTimePeriod": { - "description": "The start and end date for pulling data for the report.", - "type": "object", - "properties": { - "from": { - "description": "The start date to pull data from.", - "type": "string", - "format": "date-time" - }, - "to": { - "description": "The end date to pull data to.", - "type": "string", - "format": "date-time" - } - }, - "required": [ - "from", - "to" - ] - }, - "ReportConfigDataset": { - "description": "The definition of data present in the report.", - "type": "object", - "properties": { - "granularity": { - "description": "The granularity of rows in the report.", - "type": "string", - "enum": [ - "Daily", - "Monthly" - ], - "x-ms-enum": { - "name": "ReportGranularityType", - "modelAsString": true - } - }, - "configuration": { - "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.", - "$ref": "#/definitions/ReportConfigDatasetConfiguration" - }, - "aggregation": { - "type": "object", - "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.", - "additionalProperties": { - "$ref": "#/definitions/ReportConfigAggregation" - }, - "x-ms-identifiers": [ - "name" - ], - "maxItems": 2 - }, - "grouping": { - "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.", - "type": "array", - "items": { - "$ref": "#/definitions/ReportConfigGrouping" - }, - "x-ms-identifiers": [ - "name", - "type" - ], - "maxItems": 2 - }, - "sorting": { - "description": "Array of order by expression to use in the report.", - "type": "array", - "items": { - "$ref": "#/definitions/ReportConfigSorting" - }, - "x-ms-identifiers": [] - }, - "filter": { - "description": "Has filter expression to use in the report.", - "$ref": "#/definitions/ReportConfigFilter" - } - } - }, - "ReportConfigDatasetConfiguration": { - "description": "The configuration of dataset in the report.", - "type": "object", - "properties": { - "columns": { - "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ReportConfigAggregation": { - "description": "The aggregation expression to be used in the report.", - "type": "object", - "properties": { - "name": { - "description": "The name of the column to aggregate.", - "type": "string" - }, - "function": { - "description": "The name of the aggregation function to use.", - "type": "string", - "enum": [ - "Sum" - ], - "x-ms-enum": { - "name": "FunctionType", - "modelAsString": true - } - } - }, - "required": [ - "name", - "function" - ] - }, - "ReportConfigSorting": { - "description": "The order by expression to be used in the report.", - "type": "object", - "properties": { - "direction": { - "description": "Direction of sort.", - "type": "string", - "enum": [ - "Ascending", - "Descending" - ], - "x-ms-enum": { - "name": "ReportConfigSortingType", - "modelAsString": true - } - }, - "name": { - "description": "The name of the column to sort.", - "type": "string" - } - }, - "required": [ - "name" - ] - }, - "ReportConfigGrouping": { - "description": "The group by expression to be used in the report.", - "type": "object", - "properties": { - "type": { - "description": "Has type of the column to group.", - "$ref": "#/definitions/ReportConfigColumnType" - }, - "name": { - "description": "The name of the column to group. This version supports subscription lowest possible grain.", - "type": "string" - } - }, - "required": [ - "type", - "name" - ] - }, - "ReportConfigFilter": { - "description": "The filter expression to be used in the report.", - "type": "object", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "type": "array", - "items": { - "$ref": "#/definitions/ReportConfigFilter" - }, - "x-ms-identifiers": [], - "minItems": 2 - }, - "or": { - "description": "The logical \"OR\" expression. Must have at least 2 items.", - "type": "array", - "items": { - "$ref": "#/definitions/ReportConfigFilter" - }, - "x-ms-identifiers": [], - "minItems": 2 - }, - "dimensions": { - "description": "Has comparison expression for a dimension", - "$ref": "#/definitions/ReportConfigComparisonExpression" - }, - "tags": { - "description": "Has comparison expression for a tag", - "$ref": "#/definitions/ReportConfigComparisonExpression" - } - } - }, - "ReportConfigColumnType": { - "description": "The type of the column in the report.", - "type": "string", - "enum": [ - "TagKey", - "Dimension" - ], - "x-ms-enum": { - "name": "QueryColumnType", - "modelAsString": true, - "values": [ - { - "value": "TagKey", - "description": "The tag associated with the cost data." - }, - { - "value": "Dimension", - "description": "The dimension of cost data." - } - ] - } - }, - "ReportConfigComparisonExpression": { - "description": "The comparison expression to be used in the report.", - "type": "object", - "properties": { - "name": { - "description": "The name of the column to use in comparison.", - "type": "string" - }, - "operator": { - "description": "The operator to use for comparison.", - "type": "string", - "enum": [ - "In", - "Contains" - ], - "x-ms-enum": { - "name": "OperatorType", - "modelAsString": true - } - }, - "values": { - "description": "Array of values to use for comparison", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1 - } - }, - "required": [ - "name", - "operator", - "values" - ] - }, - "ViewListResult": { - "description": "Result of listing views. It contains a list of available views.", - "type": "object", - "properties": { - "value": { - "description": "The list of views.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/View" - } - }, - "nextLink": { - "description": "The link (url) to the next page of results.", - "type": "string", - "readOnly": true - } - } - }, - "View": { - "description": "States and configurations of Cost Analysis.", - "type": "object", - "allOf": [ - { - "$ref": "common-types.json#/definitions/CostManagementProxyResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ViewProperties", - "title": "View properties" - } - } - }, - "ViewProperties": { - "type": "object", - "description": "The properties of the view.", - "properties": { - "displayName": { - "description": "User input name of the view. Required.", - "type": "string" - }, - "scope": { - "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.", - "type": "string" - }, - "createdOn": { - "description": "Date the user created this view.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "modifiedOn": { - "description": "Date when the user last modified this view.", - "type": "string", - "format": "date-time", - "readOnly": false - }, - "dateRange": { - "description": "Date range of the current view.", - "type": "string", - "readOnly": false - }, - "currency": { - "description": "Currency of the current view.", - "type": "string", - "readOnly": true - }, - "query": { - "description": "Query body configuration. Required.", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ReportConfigDefinition" - }, - "chart": { - "description": "Chart type of the main view in Cost Analysis. Required.", - "type": "string", - "enum": [ - "Area", - "Line", - "StackedColumn", - "GroupedColumn", - "Table" - ], - "x-ms-enum": { - "name": "ChartType", - "modelAsString": true - } - }, - "accumulated": { - "description": "Show costs accumulated over time.", - "type": "string", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "AccumulatedType", - "modelAsString": true - } - }, - "metric": { - "description": "Metric to use when displaying costs.", - "type": "string", - "enum": [ - "ActualCost", - "AmortizedCost", - "AHUB" - ], - "x-ms-enum": { - "name": "MetricType", - "modelAsString": true - } - }, - "kpis": { - "description": "List of KPIs to show in Cost Analysis UI.", - "type": "array", - "items": { - "$ref": "#/definitions/KpiProperties" - } - }, - "pivots": { - "description": "Configuration of 3 sub-views in the Cost Analysis UI.", - "type": "array", - "items": { - "$ref": "#/definitions/PivotProperties" - }, - "x-ms-identifiers": [ - "name" - ] - } - } - }, - "KpiProperties": { - "description": "Each KPI must contain a 'type' and 'enabled' key.", - "type": "object", - "properties": { - "type": { - "description": "KPI type (Forecast, Budget).", - "type": "string", - "enum": [ - "Forecast", - "Budget" - ], - "x-ms-enum": { - "name": "KpiTypeType", - "modelAsString": true - } - }, - "id": { - "description": "ID of resource related to metric (budget).", - "type": "string" - }, - "enabled": { - "description": "show the KPI in the UI?", - "type": "boolean" - } - } - }, - "PivotProperties": { - "description": "Each pivot must contain a 'type' and 'name'.", - "type": "object", - "properties": { - "type": { - "description": "Data type to show in view.", - "type": "string", - "enum": [ - "Dimension", - "TagKey" - ], - "x-ms-enum": { - "name": "PivotTypeType", - "modelAsString": true - } - }, - "name": { - "description": "Data field to show in view.", - "type": "string" - } - } - }, - "CostManagementResource": { - "description": "The Resource model definition.", - "type": "object", - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type." - }, - "location": { - "readOnly": true, - "type": "string", - "description": "Location of the resource." - }, - "sku": { - "readOnly": true, - "type": "string", - "description": "SKU of the resource." - }, - "eTag": { - "readOnly": true, - "type": "string", - "description": "ETag of the resource." - }, - "tags": { - "readOnly": true, - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags." - } - }, - "x-ms-azure-resource": true - }, - "DimensionsListResult": { - "description": "Result of listing dimensions. It contains a list of available dimensions.", - "type": "object", - "properties": { - "value": { - "description": "The list of dimensions.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Dimension" - } - } - } - }, - "Dimension": { - "description": "List of Dimension.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/CostManagementResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DimensionProperties", - "title": "Dimension properties" - } - } - }, - "DimensionProperties": { - "description": "Dimension properties.", - "type": "object", - "properties": { - "description": { - "description": "Dimension description.", - "type": "string", - "readOnly": true - }, - "filterEnabled": { - "description": "Filter enabled.", - "type": "boolean", - "readOnly": true - }, - "groupingEnabled": { - "description": "Grouping enabled.", - "type": "boolean", - "readOnly": true - }, - "data": { - "description": "Dimension data.", - "type": "array", - "items": { - "description": "Dimension data item.", - "type": "string", - "readOnly": true - } - }, - "total": { - "description": "Total number of data for the dimension.", - "format": "int32", - "type": "integer", - "readOnly": true - }, - "category": { - "description": "Dimension category.", - "type": "string", - "readOnly": true - }, - "usageStart": { - "description": "Usage start.", - "format": "date-time", - "type": "string", - "readOnly": true - }, - "usageEnd": { - "description": "Usage end.", - "format": "date-time", - "type": "string", - "readOnly": true - }, - "nextLink": { - "description": "The link (url) to the next page of results.", - "type": "string", - "readOnly": true - } - } - }, - "AlertsResult": { - "description": "Result of alerts.", - "type": "object", - "properties": { - "value": { - "description": "List of alerts.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Alert" - } - }, - "nextLink": { - "description": "URL to get the next set of alerts results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "Alert": { - "description": "An individual alert.", - "type": "object", - "allOf": [ - { - "$ref": "common-types.json#/definitions/CostManagementProxyResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AlertProperties", - "title": "Alert properties" - } - } - }, - "AlertProperties": { - "description": "Alert properties.", - "type": "object", - "properties": { - "definition": { - "description": "defines the type of alert", - "type": "object", - "properties": { - "type": { - "description": "type of alert", - "type": "string", - "enum": [ - "Budget", - "Invoice", - "Credit", - "Quota", - "General", - "xCloud", - "BudgetForecast" - ], - "x-ms-enum": { - "name": "AlertType", - "modelAsString": true - } - }, - "category": { - "description": "Alert category", - "type": "string", - "enum": [ - "Cost", - "Usage", - "Billing", - "System" - ], - "x-ms-enum": { - "name": "AlertCategory", - "modelAsString": true - } - }, - "criteria": { - "description": "Criteria that triggered alert", - "type": "string", - "enum": [ - "CostThresholdExceeded", - "UsageThresholdExceeded", - "CreditThresholdApproaching", - "CreditThresholdReached", - "QuotaThresholdApproaching", - "QuotaThresholdReached", - "MultiCurrency", - "ForecastCostThresholdExceeded", - "ForecastUsageThresholdExceeded", - "InvoiceDueDateApproaching", - "InvoiceDueDateReached", - "CrossCloudNewDataAvailable", - "CrossCloudCollectionError", - "GeneralThresholdError" - ], - "x-ms-enum": { - "name": "AlertCriteria", - "modelAsString": true - } - } - } - }, - "description": { - "description": "Alert description", - "type": "string" - }, - "source": { - "description": "Source of alert", - "type": "string", - "enum": [ - "Preset", - "User" - ], - "x-ms-enum": { - "name": "AlertSource", - "modelAsString": true - } - }, - "details": { - "description": "Alert details", - "type": "object", - "properties": { - "timeGrainType": { - "description": "Type of timegrain cadence", - "type": "string", - "enum": [ - "None", - "Monthly", - "Quarterly", - "Annually", - "BillingMonth", - "BillingQuarter", - "BillingAnnual" - ], - "x-ms-enum": { - "name": "AlertTimeGrainType", - "modelAsString": true - } - }, - "periodStartDate": { - "description": "datetime of periodStartDate", - "type": "string" - }, - "triggeredBy": { - "description": "notificationId that triggered this alert", - "type": "string" - }, - "resourceGroupFilter": { - "description": "array of resourceGroups to filter by", - "type": "array", - "items": {}, - "x-ms-identifiers": [] - }, - "resourceFilter": { - "description": "array of resources to filter by", - "type": "array", - "items": {}, - "x-ms-identifiers": [] - }, - "meterFilter": { - "description": "array of meters to filter by", - "type": "array", - "items": {}, - "x-ms-identifiers": [] - }, - "tagFilter": { - "description": "tags to filter by", - "type": "object", - "properties": {} - }, - "threshold": { - "description": "notification threshold percentage as a decimal which activated this alert", - "type": "number", - "format": "decimal" - }, - "operator": { - "description": "operator used to compare currentSpend with amount", - "type": "string", - "enum": [ - "None", - "EqualTo", - "GreaterThan", - "GreaterThanOrEqualTo", - "LessThan", - "LessThanOrEqualTo" - ], - "x-ms-enum": { - "name": "AlertOperator", - "modelAsString": true - } - }, - "amount": { - "description": "budget threshold amount", - "type": "number", - "format": "decimal" - }, - "unit": { - "description": "unit of currency being used", - "type": "string" - }, - "currentSpend": { - "description": "current spend", - "type": "number", - "format": "decimal" - }, - "contactEmails": { - "description": "list of emails to contact", - "type": "array", - "items": { - "type": "string" - } - }, - "contactGroups": { - "description": "list of action groups to broadcast to", - "type": "array", - "items": { - "type": "string" - } - }, - "contactRoles": { - "description": "list of contact roles", - "type": "array", - "items": { - "type": "string" - } - }, - "overridingAlert": { - "description": "overriding alert", - "type": "string" - }, - "departmentName": { - "description": "department name", - "type": "string" - }, - "companyName": { - "description": "company name", - "type": "string" - }, - "enrollmentNumber": { - "description": "enrollment number", - "type": "string" - }, - "enrollmentStartDate": { - "description": "datetime of enrollmentStartDate", - "type": "string" - }, - "enrollmentEndDate": { - "description": "datetime of enrollmentEndDate", - "type": "string" - }, - "invoicingThreshold": { - "description": "invoicing threshold", - "type": "number", - "format": "decimal" - } - } - }, - "costEntityId": { - "description": "related budget", - "type": "string" - }, - "status": { - "description": "alert status", - "type": "string", - "enum": [ - "None", - "Active", - "Overridden", - "Resolved", - "Dismissed" - ], - "x-ms-enum": { - "name": "AlertStatus", - "modelAsString": true - } - }, - "creationTime": { - "description": "dateTime in which alert was created", - "type": "string" - }, - "closeTime": { - "description": "dateTime in which alert was closed", - "type": "string" - }, - "modificationTime": { - "description": "dateTime in which alert was last modified", - "type": "string" - }, - "statusModificationUserName": { - "description": "User who last modified the alert", - "type": "string" - }, - "statusModificationTime": { - "description": "dateTime in which the alert status was last modified", - "type": "string" - } - } - }, - "DismissAlertPayload": { - "description": "The request payload to update an alert", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AlertProperties", - "title": "Alert properties" - } - } - }, - "ForecastResult": { - "description": "Result of forecast. It contains all columns listed under groupings and aggregation.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/CostManagementResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ForecastProperties", - "title": "Forecast properties" - } - } - }, - "ForecastProperties": { - "description": "Forecast properties", - "type": "object", - "properties": { - "nextLink": { - "description": "The link (url) to the next page of results.", - "type": "string" - }, - "columns": { - "description": "Array of columns", - "type": "array", - "items": { - "$ref": "#/definitions/ForecastColumn" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "rows": { - "description": "Array of rows", - "type": "array", - "items": { - "type": "array", - "items": {}, - "x-ms-identifiers": [] - }, - "x-ms-identifiers": [] - } - } - }, - "ForecastColumn": { - "description": "Forecast column properties", - "type": "object", - "properties": { - "name": { - "description": "The name of column.", - "type": "string" - }, - "type": { - "description": "The type of column.", - "type": "string" - } - } - }, - "QueryResult": { - "description": "Result of query. It contains all columns listed under groupings and aggregation.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/CostManagementResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/QueryProperties", - "title": "Query properties" - } - } - }, - "QueryProperties": { - "description": "Query properties", - "type": "object", - "properties": { - "nextLink": { - "description": "The link (url) to the next page of results.", - "type": "string" - }, - "columns": { - "description": "Array of columns", - "type": "array", - "items": { - "$ref": "#/definitions/QueryColumn" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "rows": { - "description": "Array of rows", - "type": "array", - "items": { - "type": "array", - "items": {}, - "x-ms-identifiers": [] - }, - "x-ms-identifiers": [] - } - } - }, - "QueryColumn": { - "description": "QueryColumn properties", - "type": "object", - "properties": { - "name": { - "description": "The name of column.", - "type": "string" - }, - "type": { - "description": "The type of column.", - "type": "string" - } - } - }, - "ForecastDefinition": { - "description": "The definition of a forecast.", - "type": "object", - "properties": { - "type": { - "description": "The type of the forecast.", - "$ref": "#/definitions/ForecastType" - }, - "timeframe": { - "description": "The time frame for pulling data for the forecast. If custom, then a specific time period must be provided.", - "$ref": "#/definitions/ForecastTimeframe" - }, - "timePeriod": { - "description": "Has time period for pulling data for the forecast.", - "$ref": "#/definitions/ForecastTimePeriod" - }, - "dataset": { - "description": "Has definition for data in this forecast.", - "$ref": "#/definitions/ForecastDataset" - }, - "includeActualCost": { - "description": "A boolean determining if actualCost will be included.", - "type": "boolean" - }, - "includeFreshPartialCost": { - "description": "A boolean determining if FreshPartialCost will be included.", - "type": "boolean" - } - }, - "required": [ - "type", - "timeframe", - "dataset" - ] - }, - "ForecastType": { - "description": "The type of the forecast.", - "type": "string", - "enum": [ - "Usage", - "ActualCost", - "AmortizedCost" - ], - "x-ms-enum": { - "name": "ForecastType", - "modelAsString": true - } - }, - "ForecastTimeframe": { - "description": "The time frame for pulling data for the forecast.", - "type": "string", - "enum": [ - "Custom" - ], - "x-ms-enum": { - "name": "ForecastTimeframe", - "modelAsString": true - } - }, - "ForecastTimePeriod": { - "description": "Has time period for pulling data for the forecast.", - "type": "object", - "properties": { - "from": { - "description": "The start date to pull data from.", - "type": "string", - "format": "date-time" - }, - "to": { - "description": "The end date to pull data to.", - "type": "string", - "format": "date-time" - } - }, - "required": [ - "from", - "to" - ] - }, - "ForecastDataset": { - "description": "The definition of data present in the forecast.", - "type": "object", - "properties": { - "granularity": { - "description": "The granularity of rows in the forecast.", - "$ref": "#/definitions/GranularityType" - }, - "configuration": { - "description": "Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.", - "$ref": "#/definitions/ForecastDatasetConfiguration" - }, - "aggregation": { - "description": "Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the aggregated column. forecast can have up to 2 aggregation clauses.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ForecastAggregation" - }, - "maxItems": 2 - }, - "filter": { - "description": "Has filter expression to use in the forecast.", - "$ref": "#/definitions/ForecastFilter" - } - }, - "required": [ - "aggregation" - ] - }, - "GranularityType": { - "description": "The granularity of rows in the forecast.", - "type": "string", - "enum": [ - "Daily" - ], - "x-ms-enum": { - "name": "GranularityType", - "modelAsString": true - } - }, - "ForecastDatasetConfiguration": { - "description": "The configuration of dataset in the forecast.", - "type": "object", - "properties": { - "columns": { - "description": "Array of column names to be included in the forecast. Any valid forecast column name is allowed. If not provided, then forecast includes all columns.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ForecastAggregation": { - "description": "The aggregation expression to be used in the forecast.", - "type": "object", - "properties": { - "name": { - "description": "The name of the column to aggregate.", - "type": "string", - "enum": [ - "PreTaxCostUSD", - "Cost", - "CostUSD", - "PreTaxCost" - ], - "x-ms-enum": { - "name": "FunctionName", - "modelAsString": true - } - }, - "function": { - "description": "The name of the aggregation function to use.", - "type": "string", - "enum": [ - "Sum" - ], - "x-ms-enum": { - "name": "FunctionType", - "modelAsString": true - } - } - }, - "required": [ - "name", - "function" - ] - }, - "ForecastFilter": { - "description": "The filter expression to be used in the export.", - "type": "object", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "type": "array", - "items": { - "$ref": "#/definitions/ForecastFilter" - }, - "x-ms-identifiers": [], - "minItems": 2 - }, - "or": { - "description": "The logical \"OR\" expression. Must have at least 2 items.", - "type": "array", - "items": { - "$ref": "#/definitions/ForecastFilter" - }, - "x-ms-identifiers": [], - "minItems": 2 - }, - "dimensions": { - "description": "Has comparison expression for a dimension", - "$ref": "#/definitions/ForecastComparisonExpression" - }, - "tags": { - "description": "Has comparison expression for a tag", - "$ref": "#/definitions/ForecastComparisonExpression" - } - } - }, - "ForecastComparisonExpression": { - "description": "The comparison expression to be used in the forecast.", - "type": "object", - "properties": { - "name": { - "description": "The name of the column to use in comparison.", - "type": "string" - }, - "operator": { - "description": "The operator to use for comparison.", - "type": "string", - "enum": [ - "In" - ], - "x-ms-enum": { - "name": "ForecastOperatorType", - "modelAsString": true - } - }, - "values": { - "description": "Array of values to use for comparison", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1 - } - }, - "required": [ - "name", - "operator", - "values" - ] - }, - "QueryDefinition": { - "description": "The definition of a query.", - "type": "object", - "properties": { - "type": { - "description": "The type of the query.", - "type": "string", - "enum": [ - "Usage", - "ActualCost", - "AmortizedCost" - ], - "x-ms-enum": { - "name": "ExportType", - "modelAsString": true - } - }, - "timeframe": { - "description": "The time frame for pulling data for the query. If custom, then a specific time period must be provided.", - "type": "string", - "enum": [ - "MonthToDate", - "BillingMonthToDate", - "TheLastMonth", - "TheLastBillingMonth", - "WeekToDate", - "Custom" - ], - "x-ms-enum": { - "name": "TimeframeType", - "modelAsString": true - } - }, - "timePeriod": { - "description": "Has time period for pulling data for the query.", - "$ref": "#/definitions/QueryTimePeriod" - }, - "dataset": { - "description": "Has definition for data in this query.", - "$ref": "#/definitions/QueryDataset" - } - }, - "required": [ - "type", - "timeframe", - "dataset" - ] - }, - "QueryTimePeriod": { - "description": "The start and end date for pulling data for the query.", - "type": "object", - "properties": { - "from": { - "description": "The start date to pull data from.", - "type": "string", - "format": "date-time" - }, - "to": { - "description": "The end date to pull data to.", - "type": "string", - "format": "date-time" - } - }, - "required": [ - "from", - "to" - ] - }, - "QueryDataset": { - "description": "The definition of data present in the query.", - "type": "object", - "properties": { - "granularity": { - "description": "The granularity of rows in the query.", - "type": "string", - "enum": [ - "Daily" - ], - "x-ms-enum": { - "name": "GranularityType", - "modelAsString": true - } - }, - "configuration": { - "description": "Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.", - "$ref": "#/definitions/QueryDatasetConfiguration" - }, - "aggregation": { - "type": "object", - "description": "Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.", - "additionalProperties": { - "$ref": "#/definitions/QueryAggregation" - }, - "maxItems": 2 - }, - "grouping": { - "description": "Array of group by expression to use in the query. Query can have up to 2 group by clauses.", - "type": "array", - "items": { - "$ref": "#/definitions/QueryGrouping" - }, - "x-ms-identifiers": [ - "name", - "type" - ], - "maxItems": 2 - }, - "filter": { - "description": "The filter expression to use in the query. Please reference our Query API REST documentation for how to properly format the filter.", - "$ref": "#/definitions/QueryFilter" - } - } - }, - "OperationStatus": { - "description": "The status of the long running operation.", - "type": "object", - "properties": { - "status": { - "description": "The status of the long running operation.", - "type": "string", - "enum": [ - "Running", - "Completed", - "Failed" - ], - "x-ms-enum": { - "name": "OperationStatusType", - "modelAsString": true - } - }, - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of the resource generated.", - "$ref": "#/definitions/ReportURL" - } - } - }, - "ReportURL": { - "description": "The URL to download the generated report.", - "type": "object", - "properties": { - "reportUrl": { - "description": "The CSV file from the reportUrl blob link consists of reservation usage data with the following schema at daily granularity", - "$ref": "#/definitions/ReservationReportSchema" - }, - "validUntil": { - "description": "The time at which report URL becomes invalid.", - "type": "string", - "format": "date-time" - } - } - }, - "QueryDatasetConfiguration": { - "description": "The configuration of dataset in the query.", - "type": "object", - "properties": { - "columns": { - "description": "Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "QueryAggregation": { - "description": "The aggregation expression to be used in the query.", - "type": "object", - "properties": { - "name": { - "description": "The name of the column to aggregate.", - "type": "string" - }, - "function": { - "description": "The name of the aggregation function to use.", - "type": "string", - "enum": [ - "Sum" - ], - "x-ms-enum": { - "name": "FunctionType", - "modelAsString": true - } - } - }, - "required": [ - "name", - "function" - ] - }, - "QueryGrouping": { - "description": "The group by expression to be used in the query.", - "type": "object", - "properties": { - "type": { - "description": "Has type of the column to group.", - "$ref": "#/definitions/QueryColumnType" - }, - "name": { - "description": "The name of the column to group.", - "type": "string" - } - }, - "required": [ - "type", - "name" - ] - }, - "QueryFilter": { - "description": "The filter expression to be used in the export.", - "type": "object", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "type": "array", - "items": { - "$ref": "#/definitions/QueryFilter" - }, - "x-ms-identifiers": [], - "minItems": 2 - }, - "or": { - "description": "The logical \"OR\" expression. Must have at least 2 items.", - "type": "array", - "items": { - "$ref": "#/definitions/QueryFilter" - }, - "x-ms-identifiers": [], - "minItems": 2 - }, - "dimensions": { - "description": "Has comparison expression for a dimension", - "$ref": "#/definitions/QueryComparisonExpression" - }, - "tags": { - "description": "Has comparison expression for a tag", - "$ref": "#/definitions/QueryComparisonExpression" - } - } - }, - "QueryColumnType": { - "description": "The type of the column in the export.", - "type": "string", - "enum": [ - "TagKey", - "Dimension" - ], - "x-ms-enum": { - "name": "QueryColumnType", - "modelAsString": true, - "values": [ - { - "value": "TagKey", - "description": "The tag associated with the cost data." - }, - { - "value": "Dimension", - "description": "The dimension of cost data." - } - ] - } - }, - "QueryComparisonExpression": { - "description": "The comparison expression to be used in the query.", - "type": "object", - "properties": { - "name": { - "description": "The name of the column to use in comparison.", - "type": "string" - }, - "operator": { - "description": "The operator to use for comparison.", - "type": "string", - "enum": [ - "In" - ], - "x-ms-enum": { - "name": "QueryOperatorType", - "modelAsString": true - } - }, - "values": { - "description": "Array of values to use for comparison", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1 - } - }, - "required": [ - "name", - "operator", - "values" - ] - }, - "ReservationReportSchema": { - "description": "The CSV file from the reportUrl blob link consists of reservation usage data with the following schema at daily granularity", - "type": "string", - "enum": [ - "InstanceFlexibilityGroup", - "InstanceFlexibilityRatio", - "InstanceId", - "Kind", - "ReservationId", - "ReservationOrderId", - "ReservedHours", - "SkuName", - "TotalReservedQuantity", - "UsageDate", - "UsedHours" - ], - "x-ms-enum": { - "name": "ReservationReportSchema", - "modelAsString": true - } - } - }, - "parameters": { - "viewNameParameter": { - "name": "viewName", - "in": "path", - "description": "View name", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "scopeViewParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope.", - "x-ms-parameter-location": "method" - }, - "scopeDimensionParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "scopeAlertParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "scopeForecastParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope associated with forecast operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "scopeQueryParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "subscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "description": "Azure Subscription ID.", - "required": true, - "type": "string" - }, - "resourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "description": "Azure Resource Group Name.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "startDateParameter": { - "name": "startDate", - "in": "query", - "description": "Start Date", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "endDateParameter": { - "name": "endDate", - "in": "query", - "description": "End Date", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "enrollmentIdParameter": { - "name": "billingAccountId", - "in": "path", - "description": "Enrollment ID (Legacy BillingAccount ID)", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "managementGroupIdParameter": { - "name": "managementGroupId", - "in": "path", - "description": "ManagementGroup ID", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "departmentIdParameter": { - "name": "departmentId", - "in": "path", - "description": "Department ID", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "enrollmentAccountIdParameter": { - "name": "enrollmentAccountId", - "in": "path", - "description": "Enrollment Account ID", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "externalCloudProviderTypeParameter": { - "name": "externalCloudProviderType", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "externalSubscriptions", - "externalBillingAccounts" - ], - "x-ms-enum": { - "name": "externalCloudProviderType", - "modelAsString": true - }, - "description": "The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account.", - "x-ms-parameter-location": "method" - }, - "externalCloudProviderIdParameter": { - "name": "externalCloudProviderId", - "in": "path", - "required": true, - "type": "string", - "description": "This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.", - "x-ms-parameter-location": "method" - }, - "alertIdParameter": { - "name": "alertId", - "in": "path", - "description": "Alert ID", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - } - } -} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.pricesheets.json deleted file mode 100644 index 3ec72a6e8b7e..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/costmanagement.pricesheets.json +++ /dev/null @@ -1,592 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2025-03-01", - "title": "CostManagementClient" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/providers/Microsoft.CostManagement/pricesheets/default/download": { - "post": { - "tags": [ - "PriceSheets" - ], - "x-ms-examples": { - "PricesheetDownload": { - "$ref": "./examples/PricesheetDownload.json" - } - }, - "operationId": "PriceSheet_DownloadByInvoice", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "description": "Gets a URL to download the pricesheet for an invoice. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountNameParameter" - }, - { - "$ref": "#/parameters/billingProfileNameParameter" - }, - { - "$ref": "#/parameters/invoiceNameParameter" - } - ], - "responses": { - "202": { - "description": "Accepted.", - "headers": { - "Location": { - "description": "GET this URL to retrieve the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "type": "string" - }, - "OData-EntityId": { - "description": "The operation entity Id GUID.", - "type": "string" - } - } - }, - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "common-types.json#/definitions/DownloadURL" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.CostManagement/pricesheets/default/download": { - "post": { - "tags": [ - "PriceSheets" - ], - "x-ms-examples": { - "PricesheetDownloadByBillingProfile": { - "$ref": "./examples/PricesheetDownloadByBillingProfile.json" - } - }, - "operationId": "PriceSheet_DownloadByBillingProfile", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "description": "Gets a URL to download the current month's pricesheet for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n \n You can use the new 2023-09-01 API version for billing periods January 2023 onwards. Azure Reserved Instance (RI) pricing is only available through the new version of the API. \n \n Due to Azure product growth, the Azure price sheet download experience in this preview version will be updated from a single csv/json file to a Zip file containing multiple csv/json files, each with max size of 75MB.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountNameParameter" - }, - { - "$ref": "#/parameters/billingProfileNameParameter" - } - ], - "responses": { - "202": { - "description": "Accepted.", - "headers": { - "Location": { - "description": "GET this URL to retrieve the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "type": "string" - }, - "OData-EntityId": { - "description": "The operation entity Id GUID.", - "type": "string" - } - } - }, - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/PricesheetDownloadProperties" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingPeriods/{billingPeriodName}/providers/Microsoft.CostManagement/pricesheets/default/download": { - "post": { - "tags": [ - "PriceSheets" - ], - "x-ms-examples": { - "EAPriceSheetForBillingPeriod": { - "$ref": "./examples/EAPriceSheetForBillingPeriod.json" - } - }, - "operationId": "PriceSheet_DownloadByBillingAccount", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "description": "Generates the pricesheet for the provided billing period asynchronously based on the Enrollment ID. This is for Enterprise Agreement customers.\n \n **Migrate to version 2025-03-01** \n\n You can use the 2025-03-01 API version with the new URI: \n\n '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingPeriods/{billingPeriodName}/providers/Microsoft.CostManagement/pricesheets/default/download' \n\n With a new schema detailed below, the new version of the price sheet provides additional information and includes prices for Azure Reserved Instances (RI) for the current billing period. We recommend downloading an Azure Price Sheet for when entering a new billing period if you would maintain an ongoing record of past Azure Reserved Instance (RI) pricing.\n\n The EA Azure price sheet is available for billing periods in the past 13 months. To request a price sheet for a billing period older than 13 months, please contact support.\n\n The Azure price sheet download experience has been updated from a single .csv file to a zip file containing multiple .csv files, each with max size of 75MB. The 2023-11-01 version has been upgraded to use http POST method; details can be found below.\n\n All versions of the Microsoft.Consumption Azure Price Sheet - Download by Billing Account (including 2022-06-01, 2021-10-01, 2020-01-01-preview, 2019-10-01, 2019-05-01) are scheduled to be retired on 01 June 2026 and will no longer be supported after this date.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/billingPeriodNameParameter" - } - ], - "responses": { - "202": { - "description": "Accepted.", - "headers": { - "Location": { - "description": "GET this URL to retrieve the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.", - "type": "string" - } - } - }, - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "OperationStatus": { - "description": "The status of the long running operation.", - "type": "object", - "properties": { - "status": { - "description": "The status of the long running operation.", - "type": "string", - "enum": [ - "Running", - "Completed", - "Failed" - ], - "x-ms-enum": { - "name": "OperationStatusType", - "modelAsString": true - } - }, - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of the resource generated.", - "$ref": "#/definitions/EAPricesheetDownloadProperties" - } - } - }, - "EAPricesheetDownloadProperties": { - "description": "The properties of the price sheet download.", - "type": "object", - "properties": { - "downloadUrl": { - "description": "The link (url) to download the pricesheet.", - "type": "string", - "readOnly": true - }, - "validTill": { - "description": "Download link validity.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "downloadFileProperties": { - "description": "The properties in downloaded file", - "type": "object", - "$ref": "#/definitions/EAPriceSheetProperties" - } - } - }, - "PricesheetDownloadProperties": { - "description": "The URL to download the generated report.", - "type": "object", - "properties": { - "expiryTime": { - "description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "downloadUrl": { - "description": "The URL to download the generated report.", - "type": "string" - }, - "downloadFileProperties": { - "description": "The properties in downloaded file", - "type": "object", - "$ref": "#/definitions/MCAPriceSheetProperties" - } - } - }, - "MCAPriceSheetProperties": { - "description": "The properties of the price sheet.", - "type": "object", - "properties": { - "billingAccountID": { - "description": "Unique identifier for the billing account.", - "type": "string", - "readOnly": true - }, - "billingAccountName": { - "description": "Name of the billing profile that is set up to receive invoices. The prices in the price sheet are associated with this billing profile.", - "type": "string", - "readOnly": true - }, - "billingProfileId": { - "description": "Unique identifier for the billing profile.", - "type": "string", - "readOnly": true - }, - "billingProfileName": { - "description": "Name of the billing profile that is set up to receive invoices. The prices in the price sheet are associated with this billing profile.", - "type": "string", - "readOnly": true - }, - "productOrderName": { - "description": "Name of the purchased product plan. Indicates if this pricing is standard Azure Plan pricing, Dev/Test pricing etc. \n\n Currently unavailable for Azure 3rd party and ReservedInstance meters.", - "type": "string", - "readOnly": true - }, - "serviceFamily": { - "description": "Type of Azure service. For example, Compute, Analytics, and Security.", - "type": "number", - "readOnly": true - }, - "product": { - "description": "Name of the product accruing the charges.", - "type": "string", - "readOnly": true - }, - "productId": { - "description": "Unique identifier for the product whose meter is consumed.", - "type": "string", - "readOnly": true - }, - "skuId": { - "description": "Unique identifier of the SKU", - "type": "string", - "readOnly": true - }, - "unitOfMeasure": { - "description": "How usage is measured for the service", - "type": "string", - "readOnly": true - }, - "meterId": { - "description": "Unique identifier of the meter ", - "type": "string", - "readOnly": true - }, - "meterName": { - "description": "Name of the meter. The meter represents the deployable resource of an Azure service.", - "type": "string", - "readOnly": true - }, - "meterType": { - "description": "Name of the meter type", - "type": "string", - "readOnly": true - }, - "meterCategory": { - "description": "Name of the classification category for the meter. For example, Cloud services, Networking, etc. ", - "type": "string", - "readOnly": true - }, - "meterSubCategory": { - "description": "Name of the meter subclassification category.", - "type": "string", - "readOnly": true - }, - "meterRegion": { - "description": "Name of the Azure region where the meter for the service is available.", - "type": "string", - "readOnly": true - }, - "tierMinimumUnits": { - "description": "Defines the lower bound of the tier range for which prices are defined. For example, if the range is 0 to 100, tierMinimumUnits would be 0.", - "type": "string", - "readOnly": true - }, - "effectiveStartDate": { - "description": "Effective start date of the Price Sheet billing period", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "effectiveEndDate": { - "description": "Effective end date of the Price Sheet billing period", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "unitPrice": { - "description": "The per-unit price at the time of billing for a given product or service, inclusive of any negotiated discounts on top of the market price.\n\n For PriceType ReservedInstance, unit price reflects the total cost of the 1 or 3-year commitment including discounts.\n\n Note: The unit price isn't the same as the effective price in usage details downloads when services have differential prices across tiers.\n\n If services have multi-tiered pricing, the effective price is a blended rate across the tiers and doesn't show a tier-specific unit price. The blended price or effective price is the net price for the consumed quantity spanning across the multiple tiers (where each tier has a specific unit price).", - "type": "string", - "readOnly": true - }, - "basePrice": { - "description": "The unit price at the time the customer signs on or the unit price at the time of service meter GA launch if it is after sign-on.\n\n This is applicable for Enterprise Agreement users", - "type": "string", - "readOnly": true - }, - "marketPrice": { - "description": "The current list price for a given product or service. This price is without any negotiations and is based on your Microsoft Agreement type.\n\n For PriceType Consumption, market price is reflected as the pay-as-you-go price.\n\n For PriceType Savings Plan, market price reflects the Savings plan benefit on top of pay-as-you-go price for the corresponding commitment term.\n\n For PriceType ReservedInstance, market price reflects the total price of the 1 or 3-year commitment.", - "type": "string", - "readOnly": true - }, - "currency": { - "description": "Currency in which all the prices are reflected.", - "type": "string", - "readOnly": true - }, - "billingCurrency": { - "description": "Currency in which charges are posted.", - "type": "string", - "readOnly": true - }, - "term": { - "description": "Term length for Azure Savings Plan or Reservation term – one year or three years (P1Y or P3Y)", - "type": "string", - "readOnly": true - }, - "priceType": { - "description": "Price type for a product. For example, an Azure resource with a pay-as-you-go rate with priceType as Consumption. Other price types include ReservedInstance and Savings Plan.", - "type": "string", - "readOnly": true - } - } - }, - "EAPriceSheetProperties": { - "description": "The properties of the EA price sheet. Properties supported with version 2025-03-01 are as below", - "type": "object", - "properties": { - "enrollmentNumber": { - "description": "Unique identifier for the EA billing account.", - "type": "string", - "readOnly": true - }, - "serviceFamily": { - "description": "Type of Azure service. For example, Compute, Analytics, and Security.", - "type": "number", - "readOnly": true - }, - "product": { - "description": "Name of the product accruing the charges.", - "type": "string", - "readOnly": true - }, - "productId": { - "description": "Unique identifier for the product whose meter is consumed.", - "type": "string", - "readOnly": true - }, - "skuId": { - "description": "Unique identifier of the SKU", - "type": "string", - "readOnly": true - }, - "unitOfMeasure": { - "description": "How usage is measured for the service. Note: The field “Unit” has been removed with version 2023-11-01 as a duplicate of “UnitofMeasure”, please use the field “UnitOfMeasure”. ", - "type": "string", - "readOnly": true - }, - "meterId": { - "description": "Unique identifier of the meter ", - "type": "string", - "readOnly": true - }, - "meterName": { - "description": "Name of the meter. The meter represents the deployable resource of an Azure service.", - "type": "string", - "readOnly": true - }, - "meterType": { - "description": "Name of the meter type", - "type": "string", - "readOnly": true - }, - "offerId": { - "description": "Determines the Azure offer associated with this meter. [Learn more about Azure offers] (https://azure.microsoft.com/en-us/support/legal/offer-details/)", - "type": "string", - "readOnly": true - }, - "meterCategory": { - "description": "Name of the classification category for the meter. For example, Cloud services, Networking, etc. ", - "type": "string", - "readOnly": true - }, - "meterSubCategory": { - "description": "Name of the meter subclassification category.", - "type": "string", - "readOnly": true - }, - "meterRegion": { - "description": "Name of the Azure region where the meter for the service is available.", - "type": "string", - "readOnly": true - }, - "effectiveStartDate": { - "description": "Effective start date of the Price Sheet billing period", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "effectiveEndDate": { - "description": "Effective end date of the Price Sheet billing period", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "unitPrice": { - "description": "The per-unit price at the time of billing for a given product or service, inclusive of any negotiated discounts on top of the market price.\n\n For PriceType ReservedInstance, unit price reflects the total cost of the 1 or 3-year commitment including discounts.\n\n Note: The unit price isn't the same as the effective price in usage details downloads when services have differential prices across tiers.\n\n If services have multi-tiered pricing, the effective price is a blended rate across the tiers and doesn't show a tier-specific unit price. The blended price or effective price is the net price for the consumed quantity spanning across the multiple tiers (where each tier has a specific unit price).", - "type": "string", - "readOnly": true - }, - "basePrice": { - "description": "The unit price at the time the customer signs on or the unit price at the time of service meter GA launch if it is after sign-on.\n\n This is applicable for Enterprise Agreement users", - "type": "string", - "readOnly": true - }, - "marketPrice": { - "description": "The current list price for a given product or service. This price is without any negotiations and is based on your Microsoft Agreement type.\n\n For PriceType Consumption, market price is reflected as the pay-as-you-go price.\n\n For PriceType Savings Plan, market price reflects the Savings plan benefit on top of pay-as-you-go price for the corresponding commitment term.\n\n For PriceType ReservedInstance, market price reflects the total price of the 1 or 3-year commitment.\n\n Note: For EA customers with no negotiations, market price may appear rounded to a different decimal precision than unit price.", - "type": "string", - "readOnly": true - }, - "includedQuantity": { - "description": "Quantities of a specific service to which an EA customer is entitled to consume without incremental charges.", - "type": "string", - "readOnly": true - }, - "currencyCode": { - "description": "Currency in which the Enterprise Agreement was signed", - "type": "string", - "readOnly": true - }, - "term": { - "description": "Term length for Azure Savings Plan or Reservation term – one year or three years (P1Y or P3Y)", - "type": "string", - "readOnly": true - }, - "priceType": { - "description": "Price type for a product. For example, an Azure resource with a pay-as-you-go rate with priceType as Consumption. Other price types include ReservedInstance and Savings Plan.", - "type": "string", - "readOnly": true - }, - "partNumber": { - "description": "Part number associated with the meter", - "type": "string", - "readOnly": true - } - } - } - }, - "parameters": { - "billingAccountNameParameter": { - "name": "billingAccountName", - "in": "path", - "description": "The ID that uniquely identifies a billing account.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "pattern": "([A-Za-z0-9]+(-[A-Za-z0-9]+)+):([A-Za-z0-9]+(-[A-Za-z0-9]+)+)_[0-9]{4}-[0-9]{2}-[0-9]{2}" - }, - "billingProfileNameParameter": { - "name": "billingProfileName", - "in": "path", - "description": "The ID that uniquely identifies a billing profile.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "pattern": "([A-Za-z0-9]+(-[A-Za-z0-9]+)+)" - }, - "invoiceNameParameter": { - "name": "invoiceName", - "in": "path", - "description": "The ID that uniquely identifies an invoice.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "pattern": "[A-Za-z0-9]+" - }, - "billingAccountIdParameter": { - "name": "billingAccountId", - "in": "path", - "description": "BillingAccount ID", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "billingPeriodNameParameter": { - "name": "billingPeriodName", - "in": "path", - "description": "Billing Period Name.", - "required": true, - "type": "string", - "pattern": "^[0-9]*$", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/scheduledActions.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/scheduledActions.json deleted file mode 100644 index f80a6199c078..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/scheduledActions.json +++ /dev/null @@ -1,932 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "CostManagementClient", - "version": "2025-03-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/providers/Microsoft.CostManagement/scheduledActions": { - "get": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_List", - "description": "List all private scheduled actions.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "PrivateScheduledActionsList": { - "$ref": "./examples/scheduledActions/scheduledActions-list-private.json" - }, - "PrivateScheduledActionsListFilterByViewId": { - "$ref": "./examples/scheduledActions/scheduledActions-listWithFilter-private.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "description": "May be used to filter scheduled actions by properties/viewId. Supported operator is 'eq'.", - "in": "query", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ScheduledActionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/scheduledActions": { - "get": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_ListByScope", - "description": "List all shared scheduled actions within the given scope.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "ScheduledActionsListByScope": { - "$ref": "./examples/scheduledActions/scheduledActions-list-shared.json" - }, - "ScheduledActionsListByScopeFilterByViewId": { - "$ref": "./examples/scheduledActions/scheduledActions-listWithFilter-shared.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "$filter", - "description": "May be used to filter scheduled actions by properties/viewId. Supported operator is 'eq'.", - "in": "query", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ScheduledActionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.CostManagement/scheduledActions/{name}": { - "put": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_CreateOrUpdate", - "description": "Create or update a private scheduled action.", - "x-ms-examples": { - "CreateOrUpdatePrivateScheduledAction": { - "$ref": "./examples/scheduledActions/scheduledAction-createOrUpdate-private.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scheduledActionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "scheduledAction", - "description": "Scheduled action to be created or updated.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ScheduledAction" - } - }, - { - "$ref": "#/parameters/IfMatchOptionalParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ScheduledAction" - } - }, - "201": { - "description": "Created.", - "schema": { - "$ref": "#/definitions/ScheduledAction" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - } - }, - "get": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_Get", - "description": "Get the private scheduled action by name.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "PrivateScheduledAction": { - "$ref": "./examples/scheduledActions/scheduledAction-get-private.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scheduledActionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ScheduledAction" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - } - }, - "delete": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_Delete", - "description": "Delete a private scheduled action.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "PrivateScheduledActionDelete": { - "$ref": "./examples/scheduledActions/scheduledAction-delete-private.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scheduledActionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "204": { - "description": "NoContent. Resource is not available." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}": { - "put": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_CreateOrUpdateByScope", - "description": "Create or update a shared scheduled action within the given scope.", - "x-ms-examples": { - "CreateOrUpdateScheduledActionByScope": { - "$ref": "./examples/scheduledActions/scheduledAction-createOrUpdate-shared.json" - }, - "CreateOrUpdateInsightAlertScheduledActionByScope": { - "$ref": "./examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeParameter" - }, - { - "$ref": "#/parameters/scheduledActionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "scheduledAction", - "description": "Scheduled action to be created or updated.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ScheduledAction" - } - }, - { - "$ref": "#/parameters/IfMatchOptionalParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ScheduledAction" - } - }, - "201": { - "description": "Created.", - "schema": { - "$ref": "#/definitions/ScheduledAction" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - } - }, - "get": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_GetByScope", - "description": "Get the shared scheduled action from the given scope by name.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "ScheduledActionByScope": { - "$ref": "./examples/scheduledActions/scheduledAction-get-shared.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeParameter" - }, - { - "$ref": "#/parameters/scheduledActionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ScheduledAction" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - } - }, - "delete": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_DeleteByScope", - "description": "Delete a scheduled action within the given scope.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "ScheduledActionDeleteByScope": { - "$ref": "./examples/scheduledActions/scheduledAction-delete-shared.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeParameter" - }, - { - "$ref": "#/parameters/scheduledActionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "204": { - "description": "NoContent. Resource is not available." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - } - } - }, - "/providers/Microsoft.CostManagement/scheduledActions/{name}/execute": { - "post": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_Run", - "description": "Processes a private scheduled action.", - "x-ms-examples": { - "ScheduledActionSendNow": { - "$ref": "./examples/scheduledActions/scheduledAction-sendNow-private.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scheduledActionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded. It might take up to an hour to receive the email." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}/execute": { - "post": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_RunByScope", - "description": "Runs a shared scheduled action within the given scope.", - "x-ms-examples": { - "ScheduledActionRunByScope": { - "$ref": "./examples/scheduledActions/scheduledAction-sendNow-shared.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeParameter" - }, - { - "$ref": "#/parameters/scheduledActionNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded. It might take up to an hour to receive cost analysis information." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - } - } - }, - "/providers/Microsoft.CostManagement/checkNameAvailability": { - "post": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_CheckNameAvailability", - "description": "Checks availability and correctness of the name for a scheduled action.", - "x-ms-examples": { - "ScheduledActionCheckNameAvailability": { - "$ref": "./examples/scheduledActions/checkNameAvailability-private-scheduledAction.json" - } - }, - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "checkNameAvailabilityRequest", - "description": "Scheduled action to be created or updated.", - "in": "body", - "required": true, - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/CheckNameAvailabilityRequest" - } - } - ], - "responses": { - "200": { - "description": "Response of scheduled action name availability.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/CheckNameAvailabilityResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/checkNameAvailability": { - "post": { - "tags": [ - "ScheduledActions" - ], - "operationId": "ScheduledActions_CheckNameAvailabilityByScope", - "description": "Checks availability and correctness of the name for a scheduled action within the given scope.", - "x-ms-examples": { - "ScheduledActionCheckNameAvailabilityByScope": { - "$ref": "./examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "checkNameAvailabilityRequest", - "description": "Scheduled action to be created or updated.", - "in": "body", - "required": true, - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/CheckNameAvailabilityRequest" - } - } - ], - "responses": { - "200": { - "description": "Response of scheduled action name availability.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/CheckNameAvailabilityResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponseWithNestedDetails" - } - } - } - } - } - }, - "definitions": { - "DaysOfWeek": { - "type": "string", - "description": "Days of Week.", - "enum": [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ], - "x-ms-enum": { - "name": "DaysOfWeek", - "modelAsString": true - } - }, - "FileDestination": { - "type": "object", - "description": "Destination of the view data. This is optional. Currently only CSV format is supported.", - "properties": { - "fileFormats": { - "type": "array", - "description": "Destination of the view data. Currently only CSV format is supported.", - "items": { - "$ref": "#/definitions/FileFormat" - } - } - } - }, - "FileFormat": { - "type": "string", - "description": "Destination of the view data. Currently only CSV format is supported.", - "enum": [ - "Csv" - ], - "x-ms-enum": { - "name": "FileFormat", - "modelAsString": true - } - }, - "Language": { - "type": "string", - "description": "Language in which the email is localized, for ex: 'Fr'. When the specified language is not supported, email will be in english. The supported languages are cs (Czech), da (Danish), de (German), en (English), es (Spanish), fr (French), hu (Hungarian), id (Indonesian), it (Lithuanian), ja (Japanese), ko (Korean), nb (Norwegian Bokmål), nl (Dutch), pl (Polish), pt (Portuguese), ru (Russian), sv (Swedish), tr (Turkish), zh (Chinese) " - }, - "NotificationEmail": { - "type": "string", - "description": "Email address of the point of contact that should get the unsubscribe requests and notification emails." - }, - "NotificationProperties": { - "type": "object", - "description": "The properties of the scheduled action notification.", - "required": [ - "to", - "subject" - ], - "properties": { - "to": { - "description": "Array of email addresses.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$" - }, - "minItems": 1, - "maxItems": 20 - }, - "language": { - "description": "Locale of the email.", - "$ref": "#/definitions/Language" - }, - "message": { - "description": "Optional message to be added in the email. Length is limited to 250 characters.", - "type": "string" - }, - "regionalFormat": { - "description": "Regional format used for formatting date/time and currency values in the email.", - "$ref": "#/definitions/RegionalFormat" - }, - "subject": { - "description": "Subject of the email. Length is limited to 70 characters.", - "type": "string" - } - } - }, - "RegionalFormat": { - "type": "string", - "description": "Language for formatting the date/time and currency values in the email. For ex: 'fr'. Defaulted to English, when the specified regional format is not supported. " - }, - "ScheduledActionProxyResource": { - "description": "The Resource model definition.", - "properties": { - "eTag": { - "type": "string", - "readOnly": true, - "description": "Resource Etag. For update calls, eTag is optional and can be specified to achieve optimistic concurrency. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required." - }, - "kind": { - "$ref": "#/definitions/ScheduledActionKind", - "description": "Kind of the scheduled action." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "Kind of the scheduled action." - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "type": "object", - "x-ms-azure-resource": true - }, - "ScheduledAction": { - "description": "Scheduled action definition.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ScheduledActionProxyResource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ScheduledActionProperties", - "title": "Scheduled action properties" - } - } - }, - "ScheduledActionKind": { - "type": "string", - "description": "Kind of the scheduled action.", - "enum": [ - "Email", - "InsightAlert" - ], - "x-ms-enum": { - "name": "ScheduledActionKind", - "modelAsString": true, - "values": [ - { - "value": "Email", - "description": "Cost analysis data will be emailed.", - "name": "Email" - }, - { - "value": "InsightAlert", - "description": "Cost anomaly information will be emailed. Available only on subscription scope at daily frequency. If no anomaly is detected on the resource, an email won't be sent.", - "name": "InsightAlert" - } - ] - } - }, - "ScheduledActionListResult": { - "description": "Scheduled actions list result. It contains a list of scheduled actions.", - "type": "object", - "properties": { - "value": { - "description": "The list of scheduled actions.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/ScheduledAction" - } - }, - "nextLink": { - "description": "The link (url) to the next page of results.", - "type": "string", - "readOnly": true - } - } - }, - "ScheduledActionProperties": { - "type": "object", - "description": "The properties of the scheduled action.", - "required": [ - "displayName", - "notification", - "schedule", - "status", - "viewId" - ], - "properties": { - "displayName": { - "description": "Scheduled action name.", - "type": "string" - }, - "fileDestination": { - "description": "Destination format of the view data. This is optional.", - "$ref": "#/definitions/FileDestination" - }, - "notification": { - "description": "Notification properties based on scheduled action kind.", - "$ref": "#/definitions/NotificationProperties" - }, - "notificationEmail": { - "description": "Email address of the point of contact that should get the unsubscribe requests and notification emails.", - "$ref": "#/definitions/NotificationEmail" - }, - "schedule": { - "description": "Schedule of the scheduled action.", - "$ref": "#/definitions/ScheduleProperties" - }, - "scope": { - "description": "For private scheduled action(Create or Update), scope will be empty.
For shared scheduled action(Create or Update By Scope), Cost Management scope can be 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.", - "type": "string" - }, - "status": { - "$ref": "#/definitions/ScheduledActionStatus", - "description": "Status of the scheduled action." - }, - "viewId": { - "description": "Cost analysis viewId used for scheduled action. For example, '/providers/Microsoft.CostManagement/views/swaggerExample'", - "type": "string" - } - } - }, - "ScheduledActionStatus": { - "type": "string", - "description": "Status of the scheduled action.", - "enum": [ - "Enabled", - "Expired", - "Disabled" - ], - "x-ms-enum": { - "name": "ScheduledActionStatus", - "modelAsString": true, - "values": [ - { - "value": "Disabled", - "description": "Scheduled action is saved but will not be run.", - "name": "Disabled" - }, - { - "value": "Enabled", - "description": "Scheduled action is saved and will be run.", - "name": "Enabled" - }, - { - "value": "Expired", - "description": "Scheduled action is expired.", - "name": "Expired" - } - ] - } - }, - "ScheduleFrequency": { - "type": "string", - "description": "Frequency of the schedule.", - "enum": [ - "Daily", - "Weekly", - "Monthly" - ], - "x-ms-enum": { - "name": "ScheduleFrequency", - "modelAsString": true, - "values": [ - { - "value": "Daily", - "description": "Cost analysis data will be emailed every day.", - "name": "Daily" - }, - { - "value": "Weekly", - "description": "Cost analysis data will be emailed every week.", - "name": "Weekly" - }, - { - "value": "Monthly", - "description": "Cost analysis data will be emailed every month.", - "name": "Monthly" - } - ] - } - }, - "ScheduleProperties": { - "type": "object", - "description": "The properties of the schedule.", - "required": [ - "endDate", - "frequency", - "startDate" - ], - "properties": { - "frequency": { - "$ref": "#/definitions/ScheduleFrequency", - "description": "Frequency of the schedule." - }, - "hourOfDay": { - "type": "integer", - "description": "UTC time at which cost analysis data will be emailed.", - "format": "int32" - }, - "daysOfWeek": { - "description": "Day names in english on which cost analysis data will be emailed. This property is applicable when frequency is Weekly or Monthly.", - "type": "array", - "items": { - "$ref": "#/definitions/DaysOfWeek" - } - }, - "weeksOfMonth": { - "description": "Weeks in which cost analysis data will be emailed. This property is applicable when frequency is Monthly and used in combination with daysOfWeek.", - "type": "array", - "items": { - "$ref": "#/definitions/WeeksOfMonth" - } - }, - "dayOfMonth": { - "type": "integer", - "description": "UTC day on which cost analysis data will be emailed. Must be between 1 and 31. This property is applicable when frequency is Monthly and overrides weeksOfMonth or daysOfWeek.", - "format": "int32" - }, - "startDate": { - "description": "The start date and time of the scheduled action (UTC).", - "type": "string", - "format": "date-time" - }, - "endDate": { - "description": "The end date and time of the scheduled action (UTC).", - "type": "string", - "format": "date-time" - } - } - }, - "WeeksOfMonth": { - "type": "string", - "description": "Weeks of month.", - "enum": [ - "First", - "Second", - "Third", - "Fourth", - "Last" - ], - "x-ms-enum": { - "name": "WeeksOfMonth", - "modelAsString": true - } - } - }, - "parameters": { - "scopeParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope associated with scheduled action operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. Note: Insight Alerts are only available on subscription scope.", - "x-ms-parameter-location": "method" - }, - "scheduledActionNameParameter": { - "name": "name", - "in": "path", - "description": "Scheduled action name.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "IfMatchOptionalParameter": { - "name": "If-Match", - "in": "header", - "required": false, - "description": "ETag of the Entity. Not required when creating an entity. Optional when updating an entity and can be specified to achieve optimistic concurrency.", - "type": "string", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/settings.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/settings.json deleted file mode 100644 index 92243901b7bc..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/settings.json +++ /dev/null @@ -1,316 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "CostManagementClient", - "version": "2025-03-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/{scope}/providers/Microsoft.CostManagement/settings": { - "get": { - "tags": [ - "Settings" - ], - "operationId": "Settings_List", - "description": "List all cost management settings in the requested scope.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "SettingsList": { - "$ref": "./examples/settingsList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeSettingParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/SettingsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, - "/{scope}/providers/Microsoft.CostManagement/settings/{type}": { - "put": { - "tags": [ - "Settings" - ], - "operationId": "Settings_CreateOrUpdateByScope", - "description": "Create or update a setting within the given scope.", - "x-ms-examples": { - "CreateOrUpdateSettingByScope": { - "$ref": "./examples/settings-createOrUpdate.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeSettingParameter" - }, - { - "$ref": "#/parameters/settingTypeParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "setting", - "description": "Setting to be created or updated.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Setting" - } - } - ], - "responses": { - "201": { - "description": "Setting Created.", - "schema": { - "$ref": "#/definitions/Setting" - } - }, - "200": { - "description": "Setting Updated.", - "schema": { - "$ref": "#/definitions/Setting" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "tags": [ - "Settings" - ], - "operationId": "Settings_GetByScope", - "description": "Get the setting from the given scope by name.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "SettingByScope": { - "$ref": "./examples/setting-get.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeSettingParameter" - }, - { - "$ref": "#/parameters/settingTypeParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/Setting" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "Settings" - ], - "operationId": "Settings_DeleteByScope", - "description": "Delete a setting within the given scope.", - "externalDocs": { - "url": "https://docs.microsoft.com/rest/api/cost-management/" - }, - "x-ms-examples": { - "SettingDeleteByScope": { - "$ref": "./examples/setting-delete.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/scopeSettingParameter" - }, - { - "$ref": "#/parameters/settingTypeParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Setting deleted successfully." - }, - "204": { - "description": "Setting is already deleted or not found." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - } - }, - "definitions": { - "Setting": { - "description": "Setting definition.", - "discriminator": "kind", - "type": "object", - "x-ms-azure-resource": true, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "kind": { - "type": "string", - "description": "Specifies the kind of settings.", - "enum": [ - "taginheritance" - ], - "x-ms-enum": { - "name": "SettingsKind", - "modelAsString": true - } - } - }, - "required": [ - "kind" - ] - }, - "TagInheritanceSetting": { - "description": "Tag Inheritance Setting definition.", - "type": "object", - "x-ms-discriminator-value": "taginheritance", - "allOf": [ - { - "$ref": "#/definitions/Setting" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TagInheritanceProperties" - } - } - }, - "SettingsListResult": { - "description": "Setting list result. It contains a list of settings.", - "type": "object", - "properties": { - "value": { - "description": "The list of settings.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Setting" - }, - "x-ms-identifiers": [ - "id" - ] - } - } - }, - "TagInheritanceProperties": { - "type": "object", - "description": "The properties of the tag inheritance setting.", - "required": [ - "preferContainerTags" - ], - "properties": { - "preferContainerTags": { - "description": "This property defines the behavior when an inherited tag being applied matches a lower scope tag (Eg. Subscription tag matches the resource tag). If set to true - when tags match, the highest scope tags will be applied. Billing profile is the highest scope, followed by invoice sections, subscriptions and resource groups (allows overriding of lower scope tag values). If set to false - when tags match, the lowest scope tags will be applied. So, if a resource has the same tag as a subscription tag, the resource tag will be applied (does not allow overriding of lower scope tag values).", - "type": "boolean" - } - } - } - }, - "parameters": { - "scopeSettingParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope associated with this setting. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.", - "x-ms-parameter-location": "method" - }, - "settingTypeParameter": { - "name": "type", - "in": "path", - "description": "Setting type.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "enum": [ - "taginheritance" - ], - "x-ms-enum": { - "name": "SettingType", - "modelAsString": true, - "values": [ - { - "value": "taginheritance", - "description": "This setting applies billing profile, invoice section, subscription and resource group tags to current month's usage data of child resources.", - "name": "taginheritance" - } - ] - } - } - } -} From dd73c010635f4b56f95ad5cbdc61efa53433b90a Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 12 Sep 2025 12:46:12 +0800 Subject: [PATCH 04/45] Update tspconfig.yaml --- .../CostManagement.Management/tspconfig.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/specification/cost-management/CostManagement.Management/tspconfig.yaml b/specification/cost-management/CostManagement.Management/tspconfig.yaml index cee2515f3f8a..b75605aed69e 100644 --- a/specification/cost-management/CostManagement.Management/tspconfig.yaml +++ b/specification/cost-management/CostManagement.Management/tspconfig.yaml @@ -1,3 +1,6 @@ +parameters: + "service-dir": + default: "sdk/costmanagement" emit: - "@azure-tools/typespec-autorest" options: @@ -8,6 +11,45 @@ options: emit-lro-options: "all" examples-dir: "{project-root}/examples" arm-resource-flattening: true + "@azure-tools/typespec-csharp": + flavor: azure + package-dir: "Azure.ResourceManager.CostManagement" + clear-output-folder: true + model-namespace: true + namespace: "{package-dir}" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-costmanagement" + namespace: "azure.mgmt.costmanagement" + generate-test: true + generate-sample: true + flavor: "azure" + "@azure-tools/typespec-java": + package-dir: "azure-resourcemanager-costmanagement" + namespace: "com.azure.resourcemanager.costmanagement" + service-name: "CostManagement" # human-readable service name, whitespace allowed + flavor: azure + service-dir: "sdk/costmanagement" + premium: true + enable-sync-stack: false + "@azure-tools/typespec-ts": + package-dir: "arm-costmanagement" + flavor: azure + experimental-extensible-enums: true + package-details: + name: "@azure/arm-costmanagement" + "@azure-tools/typespec-go": + service-dir: "sdk/resourcemanager/costmanagement" + package-dir: "armcostmanagement" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}" + fix-const-stuttering: true + flavor: "azure" + generate-samples: true + generate-fakes: true + head-as-boolean: true + inject-spans: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" From fb3ae5ec4536c8d77e0824c59990fd52daf7d807 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 12 Sep 2025 13:23:42 +0800 Subject: [PATCH 05/45] Fix model validation errors and spellcheck errors --- .../examples/2025-03-01/BillingAccountAlerts.json | 8 ++++---- .../2025-03-01/BillingAccountDimensionsList.json | 6 +++--- .../BillingAccountDimensionsListExpandAndTop.json | 6 +++--- .../BillingAccountDimensionsListWithFilter.json | 4 ++-- .../examples/2025-03-01/BillingAccountForecast.json | 4 ++-- .../examples/2025-03-01/BillingAccountQuery.json | 4 ++-- .../2025-03-01/BillingAccountQueryGrouping.json | 4 ++-- .../examples/2025-03-01/BillingProfileAlerts.json | 8 ++++---- .../examples/2025-03-01/BillingProfileForecast.json | 4 ++-- .../Cost/CreateOrUpdate-Cost-Subscription-Budget.json | 6 +++--- ...BillingAccountEA-AlertRule-ReservationIdFilter.json | 6 +++--- ...AccountEA-AlertRule-ReservedResourceTypeFilter.json | 6 +++--- .../EA/BillingAccountEA-AlertRule.json | 6 +++--- .../BillingProfile-AlertRule-ReservationIdFilter.json | 6 +++--- ...ngProfile-AlertRule-ReservedResourceTypeFilter.json | 6 +++--- .../MCA/BillingProfile-AlertRule.json | 6 +++--- .../MCA/Customer-AlertRule-ReservationIdFilter.json | 6 +++--- .../Customer-AlertRule-ReservedResourceTypeFilter.json | 6 +++--- .../ReservationUtilization/MCA/Customer-AlertRule.json | 6 +++--- .../2025-03-01/Budgets/Delete/DeleteBudget.json | 2 +- .../2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json | 4 ++-- .../Get-ReservationUtilization-AlertRule.json | 4 ++-- ...illingAccountBudgetsList-EA-CategoryTypeFilter.json | 4 ++-- .../Budgets/List/EA/BillingAccountBudgetsList-EA.json | 8 ++++---- .../Budgets/List/EA/DepartmentBudgetsList.json | 6 +++--- .../Budgets/List/EA/EnrollmentAccountBudgetsList.json | 6 +++--- ...llingAccountBudgetsList-MCA-CategoryTypeFilter.json | 4 ++-- .../List/MCA/BillingAccountBudgetsList-MCA.json | 8 ++++---- .../BillingProfileBudgetsList-CategoryTypeFilter.json | 6 +++--- .../Budgets/List/MCA/BillingProfileBudgetsList.json | 10 +++++----- .../MCA/CustomerBudgetsList-CategoryTypeFilter.json | 6 +++--- .../Budgets/List/MCA/CustomerBudgetsList.json | 10 +++++----- .../Budgets/List/MCA/InvoiceSectionBudgetsList.json | 6 +++--- .../Budgets/List/RBAC/ManagementGroupBudgetsList.json | 6 +++--- .../Budgets/List/RBAC/ResourceGroupBudgetsList.json | 6 +++--- .../Budgets/List/RBAC/SubscriptionBudgetsList.json | 8 ++++---- .../examples/2025-03-01/CostAllocationRuleCreate.json | 4 ++-- .../2025-03-01/CostAllocationRuleCreateTag.json | 4 ++-- .../examples/2025-03-01/CostAllocationRuleGet.json | 2 +- .../examples/2025-03-01/CostAllocationRulesList.json | 6 +++--- ...CostDetailsOperationResultsBySubscriptionScope.json | 4 ++-- .../examples/2025-03-01/DepartmentAlerts.json | 6 +++--- .../examples/2025-03-01/DepartmentDimensionsList.json | 6 +++--- .../DepartmentDimensionsListExpandAndTop.json | 6 +++--- .../2025-03-01/DepartmentDimensionsListWithFilter.json | 4 ++-- .../examples/2025-03-01/DepartmentForecast.json | 4 ++-- .../examples/2025-03-01/DepartmentQuery.json | 4 ++-- .../examples/2025-03-01/DepartmentQueryGrouping.json | 4 ++-- .../2025-03-01/DismissResourceGroupAlerts.json | 4 ++-- .../examples/2025-03-01/DismissSubscriptionAlerts.json | 4 ++-- .../examples/2025-03-01/EnrollmentAccountAlerts.json | 6 +++--- .../2025-03-01/EnrollmentAccountDimensionsList.json | 6 +++--- .../EnrollmentAccountDimensionsListExpandAndTop.json | 6 +++--- .../EnrollmentAccountDimensionsListWithFilter.json | 4 ++-- .../examples/2025-03-01/EnrollmentAccountForecast.json | 4 ++-- .../examples/2025-03-01/EnrollmentAccountQuery.json | 4 ++-- .../2025-03-01/EnrollmentAccountQueryGrouping.json | 4 ++-- .../ExportCreateOrUpdateByBillingAccount.json | 6 +++--- .../ExportCreateOrUpdateByBillingAccountCustom.json | 6 +++--- .../ExportCreateOrUpdateByBillingAccountMonthly.json | 6 +++--- ...ExportCreateOrUpdateByBillingAccountPricesheet.json | 6 +++--- ...eateOrUpdateByBillingAccountReservationDetails.json | 6 +++--- ...pdateByBillingAccountReservationRecommendation.json | 6 +++--- ...rUpdateByBillingAccountReservationTransactions.json | 6 +++--- .../2025-03-01/ExportCreateOrUpdateByDepartment.json | 6 +++--- .../ExportCreateOrUpdateByEnrollmentAccount.json | 6 +++--- .../ExportCreateOrUpdateByManagementGroup.json | 6 +++--- .../ExportCreateOrUpdateByResourceGroup.json | 6 +++--- .../2025-03-01/ExportCreateOrUpdateBySubscription.json | 6 +++--- .../2025-03-01/ExportDeleteByBillingAccount.json | 2 +- .../examples/2025-03-01/ExportDeleteByDepartment.json | 2 +- .../2025-03-01/ExportDeleteByEnrollmentAccount.json | 2 +- .../2025-03-01/ExportDeleteByManagementGroup.json | 2 +- .../2025-03-01/ExportDeleteByResourceGroup.json | 2 +- .../2025-03-01/ExportDeleteBySubscription.json | 2 +- .../examples/2025-03-01/ExportGetByBillingAccount.json | 4 ++-- .../examples/2025-03-01/ExportGetByDepartment.json | 4 ++-- .../2025-03-01/ExportGetByEnrollmentAccount.json | 4 ++-- .../2025-03-01/ExportGetByManagementGroup.json | 4 ++-- .../examples/2025-03-01/ExportGetByResourceGroup.json | 4 ++-- .../examples/2025-03-01/ExportGetBySubscription.json | 4 ++-- .../examples/2025-03-01/ExportRunByBillingAccount.json | 2 +- ...portRunByBillingAccountWithOptionalRequestBody.json | 2 +- .../examples/2025-03-01/ExportRunByDepartment.json | 2 +- .../2025-03-01/ExportRunByEnrollmentAccount.json | 2 +- .../2025-03-01/ExportRunByManagementGroup.json | 2 +- .../examples/2025-03-01/ExportRunByResourceGroup.json | 2 +- .../examples/2025-03-01/ExportRunBySubscription.json | 2 +- .../ExportRunHistoryGetByBillingAccount.json | 6 +++--- .../2025-03-01/ExportRunHistoryGetByDepartment.json | 6 +++--- .../ExportRunHistoryGetByEnrollmentAccount.json | 6 +++--- .../ExportRunHistoryGetByManagementGroup.json | 6 +++--- .../2025-03-01/ExportRunHistoryGetByResourceGroup.json | 6 +++--- .../2025-03-01/ExportRunHistoryGetBySubscription.json | 6 +++--- .../2025-03-01/ExportsGetByBillingAccount.json | 6 +++--- .../examples/2025-03-01/ExportsGetByDepartment.json | 6 +++--- .../2025-03-01/ExportsGetByEnrollmentAccount.json | 6 +++--- .../2025-03-01/ExportsGetByManagementGroup.json | 6 +++--- .../examples/2025-03-01/ExportsGetByResourceGroup.json | 6 +++--- .../examples/2025-03-01/ExportsGetBySubscription.json | 6 +++--- .../2025-03-01/ExternalBillingAccountAlerts.json | 4 ++-- .../2025-03-01/ExternalBillingAccountForecast.json | 2 +- .../2025-03-01/ExternalBillingAccountsDimensions.json | 4 ++-- .../2025-03-01/ExternalBillingAccountsQuery.json | 2 +- .../2025-03-01/ExternalSubscriptionAlerts.json | 4 ++-- .../2025-03-01/ExternalSubscriptionForecast.json | 2 +- .../2025-03-01/ExternalSubscriptionsDimensions.json | 4 ++-- .../2025-03-01/ExternalSubscriptionsQuery.json | 2 +- ...untEnterpriseAgreementCustomerAndBillingPeriod.json | 4 ++-- ...eCostDetailsReportByBillingProfileAndInvoiceId.json | 4 ++-- ...eportByBillingProfileAndInvoiceIdAndCustomerId.json | 4 ++-- ...nerateCostDetailsReportByCustomerAndTimePeriod.json | 4 ++-- ...ateCostDetailsReportByDepartmentsAndTimePeriod.json | 4 ++-- ...DetailsReportByEnrollmentAccountsAndTimePeriod.json | 4 ++-- ...teCostDetailsReportBySubscriptionAndTimePeriod.json | 4 ++-- ...stReportByBillingAccountLegacyAndBillingPeriod.json | 4 ++-- ...DetailedCostReportByBillingProfileAndInvoiceId.json | 4 ++-- ...eportByBillingProfileAndInvoiceIdAndCustomerId.json | 4 ++-- ...erateDetailedCostReportByCustomerAndTimePeriod.json | 4 ++-- ...eDetailedCostReportBySubscriptionAndTimePeriod.json | 4 ++-- ...dCostReportOperationResultsBySubscriptionScope.json | 4 ++-- ...edCostReportOperationStatusBySubscriptionScope.json | 4 ++-- .../examples/2025-03-01/InvoiceSectionAlerts.json | 6 +++--- .../examples/2025-03-01/InvoiceSectionForecast.json | 4 ++-- .../2025-03-01/MCABillingAccountDimensionsList.json | 6 +++--- .../MCABillingAccountDimensionsListExpandAndTop.json | 6 +++--- .../MCABillingAccountDimensionsListWithFilter.json | 4 ++-- .../examples/2025-03-01/MCABillingAccountQuery.json | 4 ++-- .../2025-03-01/MCABillingAccountQueryGrouping.json | 4 ++-- .../2025-03-01/MCABillingProfileDimensionsList.json | 6 +++--- .../MCABillingProfileDimensionsListExpandAndTop.json | 6 +++--- .../MCABillingProfileDimensionsListWithFilter.json | 4 ++-- .../examples/2025-03-01/MCABillingProfileQuery.json | 4 ++-- .../2025-03-01/MCABillingProfileQueryGrouping.json | 4 ++-- .../examples/2025-03-01/MCACustomerDimensionsList.json | 6 +++--- .../MCACustomerDimensionsListExpandAndTop.json | 6 +++--- .../MCACustomerDimensionsListWithFilter.json | 4 ++-- .../examples/2025-03-01/MCACustomerQuery.json | 4 ++-- .../examples/2025-03-01/MCACustomerQueryGrouping.json | 4 ++-- .../2025-03-01/MCAInvoiceSectionDimensionsList.json | 6 +++--- .../MCAInvoiceSectionDimensionsListExpandAndTop.json | 6 +++--- .../MCAInvoiceSectionDimensionsListWithFilter.json | 4 ++-- .../examples/2025-03-01/MCAInvoiceSectionQuery.json | 4 ++-- .../2025-03-01/MCAInvoiceSectionQueryGrouping.json | 4 ++-- .../2025-03-01/ManagementGroupDimensionsList.json | 6 +++--- .../ManagementGroupDimensionsListExpandAndTop.json | 6 +++--- .../ManagementGroupDimensionsListWithFilter.json | 4 ++-- .../examples/2025-03-01/ManagementGroupQuery.json | 4 ++-- .../2025-03-01/ManagementGroupQueryGrouping.json | 4 ++-- .../examples/2025-03-01/ResourceGroupAlerts.json | 6 +++--- .../2025-03-01/ResourceGroupDimensionsList.json | 6 +++--- .../examples/2025-03-01/ResourceGroupForecast.json | 4 ++-- .../examples/2025-03-01/ResourceGroupQuery.json | 4 ++-- .../2025-03-01/ResourceGroupQueryGrouping.json | 4 ++-- .../examples/2025-03-01/SingleResourceGroupAlert.json | 4 ++-- .../examples/2025-03-01/SingleSubscriptionAlert.json | 4 ++-- .../examples/2025-03-01/SubscriptionAlerts.json | 6 +++--- .../2025-03-01/SubscriptionDimensionsList.json | 6 +++--- .../examples/2025-03-01/SubscriptionForecast.json | 4 ++-- .../examples/2025-03-01/SubscriptionQuery.json | 4 ++-- .../examples/2025-03-01/SubscriptionQueryGrouping.json | 4 ++-- .../examples/2025-03-01/ViewByResourceGroup.json | 2 +- .../2025-03-01/ViewCreateOrUpdateByResourceGroup.json | 2 +- .../examples/2025-03-01/ViewDeleteByResourceGroup.json | 2 +- .../examples/2025-03-01/ViewListByResourceGroup.json | 2 +- .../checkNameAvailability-shared-scheduledAction.json | 2 +- .../scheduledAction-createOrUpdate-private.json | 4 ++-- .../scheduledAction-createOrUpdate-shared.json | 10 +++++----- .../scheduledAction-delete-shared.json | 2 +- .../scheduledActions/scheduledAction-get-private.json | 2 +- .../scheduledActions/scheduledAction-get-shared.json | 6 +++--- ...duledAction-insightAlert-createOrUpdate-shared.json | 10 +++++----- .../scheduledAction-sendNow-shared.json | 2 +- .../scheduledActions-list-private.json | 4 ++-- .../scheduledActions/scheduledActions-list-shared.json | 10 +++++----- .../scheduledActions-listWithFilter-private.json | 4 ++-- .../scheduledActions-listWithFilter-shared.json | 10 +++++----- .../examples/2025-03-01/setting-delete.json | 2 +- .../examples/2025-03-01/setting-get.json | 2 +- .../examples/2025-03-01/settings-createOrUpdate.json | 2 +- .../examples/2025-03-01/settingsList.json | 2 +- .../CostManagement.Management/tspconfig.yaml | 3 --- specification/cost-management/cspell.yaml | 1 + .../2025-03-01/examples/BillingAccountAlerts.json | 8 ++++---- .../examples/BillingAccountDimensionsList.json | 6 +++--- .../BillingAccountDimensionsListExpandAndTop.json | 6 +++--- .../BillingAccountDimensionsListWithFilter.json | 4 ++-- .../2025-03-01/examples/BillingAccountForecast.json | 4 ++-- .../2025-03-01/examples/BillingAccountQuery.json | 4 ++-- .../examples/BillingAccountQueryGrouping.json | 4 ++-- .../2025-03-01/examples/BillingProfileAlerts.json | 8 ++++---- .../2025-03-01/examples/BillingProfileForecast.json | 4 ++-- .../Cost/CreateOrUpdate-Cost-Subscription-Budget.json | 6 +++--- ...BillingAccountEA-AlertRule-ReservationIdFilter.json | 6 +++--- ...AccountEA-AlertRule-ReservedResourceTypeFilter.json | 6 +++--- .../EA/BillingAccountEA-AlertRule.json | 6 +++--- .../BillingProfile-AlertRule-ReservationIdFilter.json | 6 +++--- ...ngProfile-AlertRule-ReservedResourceTypeFilter.json | 6 +++--- .../MCA/BillingProfile-AlertRule.json | 6 +++--- .../MCA/Customer-AlertRule-ReservationIdFilter.json | 6 +++--- .../Customer-AlertRule-ReservedResourceTypeFilter.json | 6 +++--- .../ReservationUtilization/MCA/Customer-AlertRule.json | 6 +++--- .../examples/Budgets/Delete/DeleteBudget.json | 2 +- .../examples/Budgets/Get/Cost/Get-Cost-Budget.json | 4 ++-- .../Get-ReservationUtilization-AlertRule.json | 4 ++-- ...illingAccountBudgetsList-EA-CategoryTypeFilter.json | 4 ++-- .../Budgets/List/EA/BillingAccountBudgetsList-EA.json | 8 ++++---- .../Budgets/List/EA/DepartmentBudgetsList.json | 6 +++--- .../Budgets/List/EA/EnrollmentAccountBudgetsList.json | 6 +++--- ...llingAccountBudgetsList-MCA-CategoryTypeFilter.json | 4 ++-- .../List/MCA/BillingAccountBudgetsList-MCA.json | 8 ++++---- .../BillingProfileBudgetsList-CategoryTypeFilter.json | 6 +++--- .../Budgets/List/MCA/BillingProfileBudgetsList.json | 10 +++++----- .../MCA/CustomerBudgetsList-CategoryTypeFilter.json | 6 +++--- .../examples/Budgets/List/MCA/CustomerBudgetsList.json | 10 +++++----- .../Budgets/List/MCA/InvoiceSectionBudgetsList.json | 6 +++--- .../Budgets/List/RBAC/ManagementGroupBudgetsList.json | 6 +++--- .../Budgets/List/RBAC/ResourceGroupBudgetsList.json | 6 +++--- .../Budgets/List/RBAC/SubscriptionBudgetsList.json | 8 ++++---- .../2025-03-01/examples/CostAllocationRuleCreate.json | 4 ++-- .../examples/CostAllocationRuleCreateTag.json | 4 ++-- .../2025-03-01/examples/CostAllocationRuleGet.json | 2 +- .../2025-03-01/examples/CostAllocationRulesList.json | 6 +++--- ...CostDetailsOperationResultsBySubscriptionScope.json | 4 ++-- .../stable/2025-03-01/examples/DepartmentAlerts.json | 6 +++--- .../2025-03-01/examples/DepartmentDimensionsList.json | 6 +++--- .../examples/DepartmentDimensionsListExpandAndTop.json | 6 +++--- .../examples/DepartmentDimensionsListWithFilter.json | 4 ++-- .../stable/2025-03-01/examples/DepartmentForecast.json | 4 ++-- .../stable/2025-03-01/examples/DepartmentQuery.json | 4 ++-- .../2025-03-01/examples/DepartmentQueryGrouping.json | 4 ++-- .../examples/DismissResourceGroupAlerts.json | 4 ++-- .../2025-03-01/examples/DismissSubscriptionAlerts.json | 4 ++-- .../2025-03-01/examples/EnrollmentAccountAlerts.json | 6 +++--- .../examples/EnrollmentAccountDimensionsList.json | 6 +++--- .../EnrollmentAccountDimensionsListExpandAndTop.json | 6 +++--- .../EnrollmentAccountDimensionsListWithFilter.json | 4 ++-- .../2025-03-01/examples/EnrollmentAccountForecast.json | 4 ++-- .../2025-03-01/examples/EnrollmentAccountQuery.json | 4 ++-- .../examples/EnrollmentAccountQueryGrouping.json | 4 ++-- .../examples/ExportCreateOrUpdateByBillingAccount.json | 6 +++--- .../ExportCreateOrUpdateByBillingAccountCustom.json | 6 +++--- .../ExportCreateOrUpdateByBillingAccountMonthly.json | 6 +++--- ...ExportCreateOrUpdateByBillingAccountPricesheet.json | 6 +++--- ...eateOrUpdateByBillingAccountReservationDetails.json | 6 +++--- ...pdateByBillingAccountReservationRecommendation.json | 6 +++--- ...rUpdateByBillingAccountReservationTransactions.json | 6 +++--- .../examples/ExportCreateOrUpdateByDepartment.json | 6 +++--- .../ExportCreateOrUpdateByEnrollmentAccount.json | 6 +++--- .../ExportCreateOrUpdateByManagementGroup.json | 6 +++--- .../examples/ExportCreateOrUpdateByResourceGroup.json | 6 +++--- .../examples/ExportCreateOrUpdateBySubscription.json | 6 +++--- .../examples/ExportDeleteByBillingAccount.json | 2 +- .../2025-03-01/examples/ExportDeleteByDepartment.json | 2 +- .../examples/ExportDeleteByEnrollmentAccount.json | 2 +- .../examples/ExportDeleteByManagementGroup.json | 2 +- .../examples/ExportDeleteByResourceGroup.json | 2 +- .../examples/ExportDeleteBySubscription.json | 2 +- .../2025-03-01/examples/ExportGetByBillingAccount.json | 4 ++-- .../2025-03-01/examples/ExportGetByDepartment.json | 4 ++-- .../examples/ExportGetByEnrollmentAccount.json | 4 ++-- .../examples/ExportGetByManagementGroup.json | 4 ++-- .../2025-03-01/examples/ExportGetByResourceGroup.json | 4 ++-- .../2025-03-01/examples/ExportGetBySubscription.json | 4 ++-- .../2025-03-01/examples/ExportRunByBillingAccount.json | 2 +- ...portRunByBillingAccountWithOptionalRequestBody.json | 2 +- .../2025-03-01/examples/ExportRunByDepartment.json | 2 +- .../examples/ExportRunByEnrollmentAccount.json | 2 +- .../examples/ExportRunByManagementGroup.json | 2 +- .../2025-03-01/examples/ExportRunByResourceGroup.json | 2 +- .../2025-03-01/examples/ExportRunBySubscription.json | 2 +- .../examples/ExportRunHistoryGetByBillingAccount.json | 6 +++--- .../examples/ExportRunHistoryGetByDepartment.json | 6 +++--- .../ExportRunHistoryGetByEnrollmentAccount.json | 6 +++--- .../examples/ExportRunHistoryGetByManagementGroup.json | 6 +++--- .../examples/ExportRunHistoryGetByResourceGroup.json | 6 +++--- .../examples/ExportRunHistoryGetBySubscription.json | 6 +++--- .../examples/ExportsGetByBillingAccount.json | 6 +++--- .../2025-03-01/examples/ExportsGetByDepartment.json | 6 +++--- .../examples/ExportsGetByEnrollmentAccount.json | 6 +++--- .../examples/ExportsGetByManagementGroup.json | 6 +++--- .../2025-03-01/examples/ExportsGetByResourceGroup.json | 6 +++--- .../2025-03-01/examples/ExportsGetBySubscription.json | 6 +++--- .../examples/ExternalBillingAccountAlerts.json | 4 ++-- .../examples/ExternalBillingAccountForecast.json | 2 +- .../examples/ExternalBillingAccountsDimensions.json | 4 ++-- .../examples/ExternalBillingAccountsQuery.json | 2 +- .../examples/ExternalSubscriptionAlerts.json | 4 ++-- .../examples/ExternalSubscriptionForecast.json | 2 +- .../examples/ExternalSubscriptionsDimensions.json | 4 ++-- .../examples/ExternalSubscriptionsQuery.json | 2 +- ...untEnterpriseAgreementCustomerAndBillingPeriod.json | 4 ++-- ...eCostDetailsReportByBillingProfileAndInvoiceId.json | 4 ++-- ...eportByBillingProfileAndInvoiceIdAndCustomerId.json | 4 ++-- ...nerateCostDetailsReportByCustomerAndTimePeriod.json | 4 ++-- ...ateCostDetailsReportByDepartmentsAndTimePeriod.json | 4 ++-- ...DetailsReportByEnrollmentAccountsAndTimePeriod.json | 4 ++-- ...teCostDetailsReportBySubscriptionAndTimePeriod.json | 4 ++-- ...stReportByBillingAccountLegacyAndBillingPeriod.json | 4 ++-- ...DetailedCostReportByBillingProfileAndInvoiceId.json | 4 ++-- ...eportByBillingProfileAndInvoiceIdAndCustomerId.json | 4 ++-- ...erateDetailedCostReportByCustomerAndTimePeriod.json | 4 ++-- ...eDetailedCostReportBySubscriptionAndTimePeriod.json | 4 ++-- ...dCostReportOperationResultsBySubscriptionScope.json | 4 ++-- ...edCostReportOperationStatusBySubscriptionScope.json | 4 ++-- .../2025-03-01/examples/InvoiceSectionAlerts.json | 6 +++--- .../2025-03-01/examples/InvoiceSectionForecast.json | 4 ++-- .../examples/MCABillingAccountDimensionsList.json | 6 +++--- .../MCABillingAccountDimensionsListExpandAndTop.json | 6 +++--- .../MCABillingAccountDimensionsListWithFilter.json | 4 ++-- .../2025-03-01/examples/MCABillingAccountQuery.json | 4 ++-- .../examples/MCABillingAccountQueryGrouping.json | 4 ++-- .../examples/MCABillingProfileDimensionsList.json | 6 +++--- .../MCABillingProfileDimensionsListExpandAndTop.json | 6 +++--- .../MCABillingProfileDimensionsListWithFilter.json | 4 ++-- .../2025-03-01/examples/MCABillingProfileQuery.json | 4 ++-- .../examples/MCABillingProfileQueryGrouping.json | 4 ++-- .../2025-03-01/examples/MCACustomerDimensionsList.json | 6 +++--- .../MCACustomerDimensionsListExpandAndTop.json | 6 +++--- .../examples/MCACustomerDimensionsListWithFilter.json | 4 ++-- .../stable/2025-03-01/examples/MCACustomerQuery.json | 4 ++-- .../2025-03-01/examples/MCACustomerQueryGrouping.json | 4 ++-- .../examples/MCAInvoiceSectionDimensionsList.json | 6 +++--- .../MCAInvoiceSectionDimensionsListExpandAndTop.json | 6 +++--- .../MCAInvoiceSectionDimensionsListWithFilter.json | 4 ++-- .../2025-03-01/examples/MCAInvoiceSectionQuery.json | 4 ++-- .../examples/MCAInvoiceSectionQueryGrouping.json | 4 ++-- .../examples/ManagementGroupDimensionsList.json | 6 +++--- .../ManagementGroupDimensionsListExpandAndTop.json | 6 +++--- .../ManagementGroupDimensionsListWithFilter.json | 4 ++-- .../2025-03-01/examples/ManagementGroupQuery.json | 4 ++-- .../examples/ManagementGroupQueryGrouping.json | 4 ++-- .../2025-03-01/examples/ResourceGroupAlerts.json | 6 +++--- .../examples/ResourceGroupDimensionsList.json | 6 +++--- .../2025-03-01/examples/ResourceGroupForecast.json | 4 ++-- .../stable/2025-03-01/examples/ResourceGroupQuery.json | 4 ++-- .../examples/ResourceGroupQueryGrouping.json | 4 ++-- .../2025-03-01/examples/SingleResourceGroupAlert.json | 4 ++-- .../2025-03-01/examples/SingleSubscriptionAlert.json | 4 ++-- .../stable/2025-03-01/examples/SubscriptionAlerts.json | 6 +++--- .../examples/SubscriptionDimensionsList.json | 6 +++--- .../2025-03-01/examples/SubscriptionForecast.json | 4 ++-- .../stable/2025-03-01/examples/SubscriptionQuery.json | 4 ++-- .../2025-03-01/examples/SubscriptionQueryGrouping.json | 4 ++-- .../2025-03-01/examples/ViewByResourceGroup.json | 2 +- .../examples/ViewCreateOrUpdateByResourceGroup.json | 2 +- .../2025-03-01/examples/ViewDeleteByResourceGroup.json | 2 +- .../2025-03-01/examples/ViewListByResourceGroup.json | 2 +- .../checkNameAvailability-shared-scheduledAction.json | 2 +- .../scheduledAction-createOrUpdate-private.json | 4 ++-- .../scheduledAction-createOrUpdate-shared.json | 10 +++++----- .../scheduledAction-delete-shared.json | 2 +- .../scheduledActions/scheduledAction-get-private.json | 2 +- .../scheduledActions/scheduledAction-get-shared.json | 6 +++--- ...duledAction-insightAlert-createOrUpdate-shared.json | 10 +++++----- .../scheduledAction-sendNow-shared.json | 2 +- .../scheduledActions-list-private.json | 4 ++-- .../scheduledActions/scheduledActions-list-shared.json | 10 +++++----- .../scheduledActions-listWithFilter-private.json | 4 ++-- .../scheduledActions-listWithFilter-shared.json | 10 +++++----- .../stable/2025-03-01/examples/setting-delete.json | 2 +- .../stable/2025-03-01/examples/setting-get.json | 2 +- .../2025-03-01/examples/settings-createOrUpdate.json | 2 +- .../stable/2025-03-01/examples/settingsList.json | 2 +- 364 files changed, 851 insertions(+), 853 deletions(-) diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json index fe57eea9a207..29ec159f1c4c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json @@ -1,8 +1,8 @@ { "parameters": { "api-version": "2025-03-01", - "billingAccountId": "12345:6789", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "billingAccountId": "12345-6789", + "scope": "/providers/Microsoft.Billing/billingAccounts/12345-6789" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345-6789/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -53,7 +53,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.Billing/billingAccounts/12345-6789/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json index 2b549c85858a..122d125a8a84 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "providers/Microsoft.Billing/billingAccounts/100" + "scope": "/providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { @@ -11,7 +11,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -32,7 +32,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json index 30f3f086e9f3..1779c2a131a2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "providers/Microsoft.Billing/billingAccounts/100" + "scope": "/providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -34,7 +34,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json index b849974ddcfd..af9afe24ba79 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "providers/Microsoft.Billing/billingAccounts/100" + "scope": "/providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json index 054069935218..695266d0cd07 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json @@ -58,14 +58,14 @@ }, "timeframe": "Custom" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json index 1dbfbafa04c5..b03d5e691dfe 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json @@ -46,14 +46,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/70664866" + "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", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json index cec7ec3fbf9e..d5501fdfec44 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json @@ -21,14 +21,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/70664866" + "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", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json index 7c5ec360c702..6a56a4f08214 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2025-03-01", - "billingAccountId": "12345:6789", + "billingAccountId": "12345-6789", "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345-6789/billingProfiles/13579" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345-6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -54,7 +54,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.Billing/billingAccounts/12345-6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json index d8ef0e532274..5b9adf4e9682 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json @@ -59,14 +59,14 @@ }, "timeframe": "Custom" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json index a2b0ba86455a..4159aa385acc 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json @@ -69,7 +69,7 @@ } }, "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -78,7 +78,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 100.65, "category": "Cost", @@ -153,7 +153,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 100.65, "category": "Cost", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json index 1dcd0d28b74e..cb36abb6666b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json @@ -38,7 +38,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -46,7 +46,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -86,7 +86,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json index 329da7703436..e1bc199c3cb1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json @@ -38,7 +38,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -46,7 +46,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -86,7 +86,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json index 808131e96590..35ca6d0d871c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json @@ -28,7 +28,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -36,7 +36,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -66,7 +66,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json index fecb98c8caff..2a75ea93796e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { @@ -47,7 +47,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -87,7 +87,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json index 888c6806fbce..b6e7a20dfe26 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { @@ -47,7 +47,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -87,7 +87,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json index 69bff72937bf..536c3acd7d50 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json @@ -29,7 +29,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { @@ -37,7 +37,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -67,7 +67,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json index 255cdd53bd79..9b7eb5a078b3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { @@ -47,7 +47,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -87,7 +87,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json index 80c2496bdcfe..8f053c622920 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { @@ -47,7 +47,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -87,7 +87,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json index e5575f475461..71f2a6e01aa2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json @@ -29,7 +29,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { @@ -37,7 +37,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -67,7 +67,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json index 1b47afe55ec4..a524600826e0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "budgetName": "TestBudget", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json index 02ddeeceda67..20308530f867 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "budgetName": "TestBudget", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -12,7 +12,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 100.65, "category": "Cost", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json index 19c909857ed1..21679c968663 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json @@ -4,7 +4,7 @@ "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "KKKK-LLLL-MMM-NNN", "budgetName": "TestAlertRule", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { @@ -12,7 +12,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json index 3da75cf04bea..529728e56992 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json @@ -3,7 +3,7 @@ "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json index 5b5bf0cbfee2..df71b77eb6ae 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -12,7 +12,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 10000, "category": "Cost", @@ -43,7 +43,7 @@ "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { "amount": 15000, "category": "Cost", @@ -74,7 +74,7 @@ "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json index 23f69dcb1c44..7a261bb0e50d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "departmentId": "789101", - "scope": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456/departments/789101" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "DepartmentBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157e\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget1", "properties": { "amount": 5000, "category": "Cost", @@ -44,7 +44,7 @@ "name": "DepartmentBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget2", "properties": { "amount": 8000, "category": "Cost", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json index a3978b470b9f..bd807a0f87b4 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "enrollmentAccountId": "473845", - "scope": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "EnrollmentAccountBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157e\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget1", "properties": { "amount": 5000, "category": "Cost", @@ -44,7 +44,7 @@ "name": "EnrollmentAccountBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget2", "properties": { "amount": 8000, "category": "Cost", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json index 68622e82aad6..aa650896ec18 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json @@ -3,7 +3,7 @@ "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json index 52b91916f8d9..a0d875a7202b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" }, "responses": { "200": { @@ -12,7 +12,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 10000, "category": "Cost", @@ -43,7 +43,7 @@ "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { "amount": 15000, "category": "Cost", @@ -74,7 +74,7 @@ "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json index 521a768625bb..2b4fd07eb225 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json @@ -4,7 +4,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" }, "responses": { "200": { @@ -14,7 +14,7 @@ "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -42,7 +42,7 @@ "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json index bd55d57fa3e5..a07c8e1dca5b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 200, "category": "Cost", @@ -44,7 +44,7 @@ "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { "amount": 600, "category": "Cost", @@ -75,7 +75,7 @@ "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -103,7 +103,7 @@ "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json index b238b35dca25..1dc8a53b63c4 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json @@ -4,7 +4,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "customerId": "000000-1111-2222-3333-444444444444", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { @@ -14,7 +14,7 @@ "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -42,7 +42,7 @@ "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json index 181f6618f527..e0f1f11cbaa6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "customerId": "000000-1111-2222-3333-444444444444", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444", "properties": { "amount": 200, "category": "Cost", @@ -44,7 +44,7 @@ "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { "amount": 600, "category": "Cost", @@ -75,7 +75,7 @@ "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -103,7 +103,7 @@ "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json index af8362c1e33d..e0948d930f6c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json @@ -4,7 +4,7 @@ "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", "invoiceSectionId": "AAAA-BBBB-CCC-DDD", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD" }, "responses": { "200": { @@ -14,7 +14,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 20, "category": "Cost", @@ -45,7 +45,7 @@ "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { "amount": 60, "category": "Cost", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json index 5a4c1dd21f69..77cdc6ce22a6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json @@ -43,7 +43,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 600.65, "category": "Cost", @@ -82,7 +82,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 100.65, "category": "Cost", @@ -167,7 +167,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 200.65, "category": "Cost", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json index 0e12dc5387d2..166660b4e40b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -13,7 +13,7 @@ "name": "TestBudget0", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget0", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget0", "properties": { "amount": 100.65, "category": "Cost", @@ -98,7 +98,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 200.65, "category": "Cost", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json index 2fee9e28a062..9ece24a50d35 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -12,7 +12,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 600.65, "category": "Cost", @@ -51,7 +51,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 100.65, "category": "Cost", @@ -136,7 +136,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 200.65, "category": "Cost", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json index b36a1756b289..aa2e7e9e4964 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreate.json @@ -44,7 +44,7 @@ "body": { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", @@ -85,7 +85,7 @@ "body": { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json index cf6229584866..1316efffee8f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleCreateTag.json @@ -47,7 +47,7 @@ "body": { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", @@ -88,7 +88,7 @@ "body": { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json index 8355f0894b61..6b606e4e630f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRuleGet.json @@ -9,7 +9,7 @@ "body": { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json index a3a46d928cec..1b299794ca3a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostAllocationRulesList.json @@ -11,7 +11,7 @@ { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", @@ -50,7 +50,7 @@ { "name": "testRule2", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule2", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule2", "properties": { "description": "This is a second test Rule", "createdDate": "2020-06-18T22:21:51.1287144Z", @@ -85,7 +85,7 @@ { "name": "testRule3", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule3", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule3", "properties": { "description": "This is a third test Rule", "createdDate": "2020-06-18T22:21:51.1287144Z", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json index 45a983204b5c..1724ca662ca6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json @@ -2,13 +2,13 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json index 9e8e94635068..997d9694f4fd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "departmentId": "123", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -54,7 +54,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json index 965ad40bb5cf..ced6247c2fef 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -33,7 +33,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json index 4b55ce08b7cf..d96a4f16c84c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -35,7 +35,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json index ac3504f3344c..d67bddfe2179 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { @@ -15,7 +15,7 @@ { "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json index af812fdb3499..465a67ce7413 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json @@ -59,14 +59,14 @@ }, "timeframe": "Custom" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json index 89aa11f60d60..bd587da8da7d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json @@ -47,14 +47,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json index 521ae4475ec8..f04d48827dc8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json @@ -22,14 +22,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json index 9ec81ed7cb93..0925556abb80 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json @@ -8,7 +8,7 @@ } }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -16,7 +16,7 @@ "body": { "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json index 99b6dc15b820..e7e07ec2ca5e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json @@ -7,7 +7,7 @@ "status": "Dismissed" } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -15,7 +15,7 @@ "body": { "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json index 8f22e590bde7..d9162cc62370 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -54,7 +54,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json index 5d7a9a1127f7..2270a5a18332 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -27,7 +27,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json index 1ed8d2e9fe46..848846393f27 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -35,7 +35,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json index 45779413fa7f..03a1787019b0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -15,7 +15,7 @@ { "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json index 1883eea1b5f3..c2307637f8dd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json @@ -59,14 +59,14 @@ }, "timeframe": "Custom" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json index 024e9d3d8136..65e445078bf6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json @@ -47,14 +47,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json index f91c4cb53f86..e1efa0f97e36 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json @@ -22,14 +22,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json index 09b2860061ef..8b2871060db6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json @@ -42,7 +42,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -97,7 +97,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json index 4e79fde2c3db..b5234f39eefc 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json @@ -41,7 +41,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -49,7 +49,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -95,7 +95,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json index 58cb0fd2824f..ccc8b5938ef5 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json @@ -42,7 +42,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -97,7 +97,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json index ea39a164e8a4..28cc133ff15d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json @@ -42,7 +42,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -97,7 +97,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json index 6f4b5a9a9232..329464d8e566 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json @@ -42,7 +42,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -99,7 +99,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json index 8c2b0a4539a6..2bfafc42f194 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json @@ -55,7 +55,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -63,7 +63,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -125,7 +125,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json index a7cd5b3a9b0e..d25144153625 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json @@ -41,7 +41,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -49,7 +49,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -98,7 +98,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json index 7f90a2632e2a..a1b042ef77d6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json @@ -43,7 +43,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { @@ -51,7 +51,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -98,7 +98,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json index f2fd51fffc2e..586ae0484938 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json @@ -43,7 +43,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -51,7 +51,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -98,7 +98,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json index 3bb1bd82066c..4bec3d8bc756 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json @@ -42,7 +42,7 @@ } } }, - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -97,7 +97,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json index c005fb8b2af1..c42a7fdfb34f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json @@ -42,7 +42,7 @@ } }, "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -51,7 +51,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -98,7 +98,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json index 8915e221e5ae..29eefcc6aad6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json @@ -41,7 +41,7 @@ } } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -97,7 +97,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json index 68620fd7e88d..1068aa3bb1b6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json index 37ed28910456..6dffeb9cf9a4 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json index 661c01691200..fc4526f3a570 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json index 804ba311eed7..65bbf9b4a868 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json index 6a825e1a6b9d..5e9672c60e1a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json index 2eac873a6ee6..c97c74a61abb 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json index d6bc5f8c3ffe..efadb557aff1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -11,7 +11,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json index 204beaef0892..b0a34c9b27ef 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { @@ -12,7 +12,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json index 2a564c396f73..0db4460ba30e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -12,7 +12,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json index c56d77053358..82aca549e8e2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { @@ -11,7 +11,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json index 6a00d66c4722..81c71a32bdf5 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -12,7 +12,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json index 43fe01268ce2..8cede3cf7ee9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -11,7 +11,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json index 12ddb952cc91..d13773259e06 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json index 7a0f00b0baea..f0b2a049009f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json @@ -9,7 +9,7 @@ "to": "2023-12-31T00:00:00.000Z" } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json index 157a354bbb41..6d1f0a02cfbc 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json index 6594094184c2..75cc5321ac09 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json index 0759e67eb5d9..9f2523fafd3b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json index 325bd21eef83..124c3067802f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json index e0e5a286f772..0644256505cb 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json index 063cab663112..a1103ea37355 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json @@ -3,14 +3,14 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -53,7 +53,7 @@ } }, { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json index b49e57c7bee1..04ded942ac01 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json @@ -4,14 +4,14 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -54,7 +54,7 @@ } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json index d938fe3f38dd..4c751c40c7fc 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json @@ -4,14 +4,14 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -54,7 +54,7 @@ } }, { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json index e5535b643304..bf457d97f6c6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json @@ -3,14 +3,14 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -53,7 +53,7 @@ } }, { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json index caebb29d013d..92043cc7c498 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -11,7 +11,7 @@ "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -54,7 +54,7 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json index ff7326b3caa3..dac3df9d2871 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -53,7 +53,7 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json index 899e074da06d..a7680f28be2d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -11,7 +11,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -50,7 +50,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json index a357ea5446df..6c3c7d688048 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12", "departmentId": "1234", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/123" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -51,7 +51,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json index bb3e3b8ccf97..058b2cbd7c9e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -51,7 +51,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json index e9484aee24ee..a7cdab787950 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { @@ -11,7 +11,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -50,7 +50,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json index 0cec6c74d7eb..75df187a443f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -12,7 +12,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -51,7 +51,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json index 0d7f9859c6e5..58d80458b60f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -11,7 +11,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -50,7 +50,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json index 8a0f673d2bbc..3f17e2817793 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountAlerts.json @@ -12,7 +12,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -53,7 +53,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json index 0ba95411f479..51472ba6a1dd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountForecast.json @@ -63,7 +63,7 @@ "body": { "name": "6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json index 949e1e27b675..42097259c48f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsDimensions.json @@ -11,7 +11,7 @@ { "name": "dimensions_ResourceType_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceType_2019-12-01_2019-12-31", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceType_2019-12-01_2019-12-31", "properties": { "description": "Resource type", "category": "ResourceType", @@ -32,7 +32,7 @@ { "name": "dimensions_ResourceId_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceId_2019-12-01_2019-12-31", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceId_2019-12-01_2019-12-31", "properties": { "description": "Resource ID", "category": "ResourceId", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json index db02af315b0a..27088513dbe1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalBillingAccountsQuery.json @@ -53,7 +53,7 @@ "body": { "name": "6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json index 4a75ec6e43c5..5aa2c4476ab6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionAlerts.json @@ -12,7 +12,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -53,7 +53,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json index 5d4dbb6aae55..4aa83bbbd370 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionForecast.json @@ -63,7 +63,7 @@ "body": { "name": "d99477af-7510-40ee-aca2-e59bdca0d10d", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json index 5a7395245113..fe865e2a9b3d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsDimensions.json @@ -11,7 +11,7 @@ { "name": "dimensions_ResourceType_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceType_2019-12-01_2019-12-31", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceType_2019-12-01_2019-12-31", "properties": { "description": "Resource type", "category": "ResourceType", @@ -32,7 +32,7 @@ { "name": "dimensions_ResourceId_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceId_2019-12-01_2019-12-31", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceId_2019-12-01_2019-12-31", "properties": { "description": "Resource ID", "category": "ResourceId", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json index 7f674e9e8ea1..d45465bd5742 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExternalSubscriptionsQuery.json @@ -53,7 +53,7 @@ "body": { "name": "d99477af-7510-40ee-aca2-e59bdca0d10d", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json index 93b5eae41a30..2662d5666c23 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json @@ -5,13 +5,13 @@ "billingPeriod": "202205", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json index 7769b36bbb5f..c1604747946d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json @@ -5,13 +5,13 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json index cb228d9492f7..f94f41ce6959 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -5,13 +5,13 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json index 79148dcf89e3..46f0160e1e44 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json @@ -8,13 +8,13 @@ "start": "2020-03-01" } }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json index 0f0e17e635bd..7976811275d2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json @@ -8,13 +8,13 @@ "start": "2020-03-01" } }, - "scope": "providers/Microsoft.Billing/departments/12345" + "scope": "/providers/Microsoft.Billing/departments/12345" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/departments/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/departments/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json index 73f4b7424fb3..dc842fdab39a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json @@ -8,13 +8,13 @@ "start": "2020-03-01" } }, - "scope": "providers/Microsoft.Billing/enrollmentAccounts/1234" + "scope": "/providers/Microsoft.Billing/enrollmentAccounts/1234" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/enrollmentAccounts/1234/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/enrollmentAccounts/1234/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json index 1589105ace6a..bc2d5d158519 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json @@ -8,13 +8,13 @@ "start": "2020-03-01" } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json index b30e7c80bbb1..9eaaaf1220a8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json @@ -5,14 +5,14 @@ "billingPeriod": "202008", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json index c150c1d7c471..fea8f4df915b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json @@ -5,14 +5,14 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json index 6580c6ba45c4..3b704280653b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -6,14 +6,14 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json index 85d6e1b247ae..736ec8c993d3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json @@ -8,14 +8,14 @@ "start": "2020-03-01" } }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json index beeb7cf381c3..9656d0d862b6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json @@ -8,14 +8,14 @@ "start": "2020-03-01" } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json index ef53caae82c2..a194d3384e01 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json @@ -2,14 +2,14 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json index 757357feceb1..a2a90c648428 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json @@ -2,7 +2,7 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -13,7 +13,7 @@ "code": "0", "message": null }, - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationStatus/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationStatus/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json index 396cb327c1fb..3a634b7427e9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json @@ -4,7 +4,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -55,7 +55,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json index 2e9d3bd3c4d0..4484978ef76c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json @@ -60,14 +60,14 @@ }, "timeframe": "Custom" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json index 2594908a7256..a8e25a25ee83 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { @@ -11,7 +11,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -26,7 +26,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json index ffa0a0df57f7..49ae52b54243 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -34,7 +34,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json index efe05863f972..055e5eda1d82 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json index cf995b961f6a..90cad0367561 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json @@ -46,14 +46,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json index 90914657d5cb..09e89554a9c2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json @@ -21,14 +21,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json index ff98c2c44a80..d53cbb0cbb73 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -27,7 +27,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json index 91973f2b9d6e..1522b40ba8f7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -35,7 +35,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json index 33d4a17485f0..35dcc490e71b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { @@ -15,7 +15,7 @@ { "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json index f0a1e7492c03..5c17680721c7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json @@ -47,14 +47,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json index a3ed14f20b29..fff9492fe8f5 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json @@ -22,14 +22,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json index 22b5086dee93..bc704959837d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "5678", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -27,7 +27,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json index a0edd01d1349..fb987b6a3506 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "5678", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -35,7 +35,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json index 7e8dffd701ba..1cf4cfa22c35 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { @@ -15,7 +15,7 @@ { "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json index d9890eb15cef..eb15d676934c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json @@ -47,14 +47,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json index 9ce382adc688..5d1758c60766 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json @@ -22,14 +22,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json index db8df077557f..e0f4357d8dda 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json @@ -4,7 +4,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -28,7 +28,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json index eb3421e991ca..154981e58ad3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json @@ -6,7 +6,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { @@ -15,7 +15,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -36,7 +36,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json index cd9ecd081e0b..8465b9cfaf3f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json @@ -7,7 +7,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { @@ -16,7 +16,7 @@ { "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json index fa285a7b63d4..306965a26ef0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json @@ -48,14 +48,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json index 265e4fe22ea7..d4643d9e4740 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json @@ -23,14 +23,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json index dfb289df3041..d582b46b7a83 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { @@ -11,7 +11,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -26,7 +26,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json index 1e189e461bb7..70f4e29273d2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -34,7 +34,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json index fb4f26d7bee4..8d7dd3ceb4b6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json index 43ac3c0b14ba..12bfc9c24b18 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json @@ -46,14 +46,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json index e8c771aef5e0..13cc4495ad15 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json @@ -21,14 +21,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json index 2235ad7eabe7..1e9eac128385 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -13,7 +13,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -54,7 +54,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json index 478318e187b7..af5be415e39c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "resourceGroupName": "system.orlando", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", @@ -31,7 +31,7 @@ { "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json index df9adee7d1c0..db62837f6627 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json @@ -58,7 +58,7 @@ "timeframe": "Custom" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -66,7 +66,7 @@ "body": { "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "Microsoft.CostManagement/query", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json index d33c9f453ebd..d81004498b27 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json @@ -46,7 +46,7 @@ "timeframe": "MonthToDate" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481" }, "responses": { @@ -54,7 +54,7 @@ "body": { "name": "9af9459d-441d-4055-9ed0-83d4c4a363fb", "type": "microsoft.costmanagement/Query", - "id": "subscriptions/55312978-ba1b-415c-9304-c4b9c43c0481/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", + "id": "/subscriptions/55312978-ba1b-415c-9304-c4b9c43c0481/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json index 47e5927372d1..3f7e1f4d3d68 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json @@ -21,7 +21,7 @@ "timeframe": "TheLastMonth" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -29,7 +29,7 @@ "body": { "name": "9af9459d-441d-4055-9ed0-83d4c4a363fb", "type": "microsoft.costmanagement/Query", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json index 4892faf53b80..e2b1238f4f80 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json @@ -3,7 +3,7 @@ "alertId": "22222222-2222-2222-2222-222222222222", "api-version": "2025-03-01", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -11,7 +11,7 @@ "body": { "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json index 2c6595bc2f8c..07510bf09e49 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json @@ -2,7 +2,7 @@ "parameters": { "alertId": "22222222-2222-2222-2222-222222222222", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -10,7 +10,7 @@ "body": { "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json index 7612ded878e8..f0fa12c3853f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -12,7 +12,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -53,7 +53,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json index cf4d5ecba580..06db8ef750a9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json @@ -3,7 +3,7 @@ "$expand": "properties/data", "$top": 5, "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -13,7 +13,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -34,7 +34,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json index fd2af044f319..3cb617cc6ef7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json @@ -57,7 +57,7 @@ }, "timeframe": "Custom" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -65,7 +65,7 @@ "body": { "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "Microsoft.CostManagement/query", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json index 5d6cda84ef49..a974c0e57953 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json @@ -45,7 +45,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -53,7 +53,7 @@ "body": { "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "microsoft.costmanagement/Query", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json index f0775487364d..e8003bbfda15 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json @@ -20,7 +20,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -28,7 +28,7 @@ "body": { "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "microsoft.costmanagement/Query", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", "properties": { "columns": [ { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json index 52b9474147fd..8abf2ad8f89b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "swaggerExample" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json index bceff92723f8..011afd4eff19 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json @@ -56,7 +56,7 @@ } } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "swaggerExample" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json index d42216abe104..03a18438f7e9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "TestView" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json index 953b8129449d..1f4390872cb1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json index 0142bce2aa83..1afe3db54f44 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json @@ -5,7 +5,7 @@ "name": "testName", "type": "Microsoft.CostManagement/ScheduledActions" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json index b055a942de6c..8455b591e0fd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-private.json @@ -38,7 +38,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -83,7 +83,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json index 5f52b090cead..f4eb19de2681 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json @@ -36,7 +36,7 @@ "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -44,7 +44,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -68,7 +68,7 @@ "Third" ] }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, @@ -87,7 +87,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -116,7 +116,7 @@ "Third" ] }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json index b58965e6b22f..c3d8ef1b80bd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json index 6df6b6a8d7e8..94e9bba45d45 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-private.json @@ -9,7 +9,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json index 49d56e2b7005..b8ecc11b0c49 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -10,7 +10,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -34,7 +34,7 @@ "Third" ] }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json index b124605d71f3..ac1992daa5d9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json @@ -23,7 +23,7 @@ "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -31,7 +31,7 @@ "name": "dailyAnomalyByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", "kind": "InsightAlert", "properties": { "displayName": "Daily anomaly by resource", @@ -50,7 +50,7 @@ "frequency": "Daily", "startDate": "2020-06-19T22:21:51.1287144Z" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, @@ -69,7 +69,7 @@ "name": "dailyAnomalyByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", "kind": "InsightAlert", "properties": { "displayName": "Daily anomaly by resource", @@ -88,7 +88,7 @@ "frequency": "Daily", "startDate": "2020-06-19T22:21:51.1287144Z" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json index 0bf9ac7dd58b..4a8055b5a647 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json index 0d4f55f3f65f..5c5fc7996b77 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-private.json @@ -11,7 +11,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -52,7 +52,7 @@ "name": "dailyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d15\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", "kind": "Email", "properties": { "displayName": "Daily Cost By Resource", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json index 5536274a9844..3ddcfd5915c7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json @@ -1,14 +1,14 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "kind": "Email", @@ -23,7 +23,7 @@ }, "properties": { "displayName": "Monthly Cost By Resource", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { @@ -49,7 +49,7 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", "name": "dailyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "kind": "Email", @@ -64,7 +64,7 @@ }, "properties": { "displayName": "Daily Cost By Resource", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Disabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json index 08222beb3930..00bd7ca2e9c8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-private.json @@ -12,7 +12,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -53,7 +53,7 @@ "name": "dailyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d15\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", "kind": "Email", "properties": { "displayName": "Daily Cost By Resource", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json index e594fd6d23dd..a0fb87c0843c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "$filter": "properties/viewId eq '/providers/Microsoft.CostManagement/views/swaggerExample'" }, "responses": { @@ -9,7 +9,7 @@ "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "kind": "Email", @@ -24,7 +24,7 @@ }, "properties": { "displayName": "Monthly Cost By Resource", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { @@ -50,7 +50,7 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", "name": "dailyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "kind": "Email", @@ -65,7 +65,7 @@ }, "properties": { "displayName": "Daily Cost By Resource", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Disabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json index 58ed1b269af9..14f7d7e08549 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json index e4cea79dd5fe..92764b91db46 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json index e2ed25e1f11b..cb37f73c2de1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "setting": { "kind": "taginheritance", "properties": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json index f59ce3fd2377..79b353a49ab4 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/tspconfig.yaml b/specification/cost-management/CostManagement.Management/tspconfig.yaml index b75605aed69e..d6aca4efbcd0 100644 --- a/specification/cost-management/CostManagement.Management/tspconfig.yaml +++ b/specification/cost-management/CostManagement.Management/tspconfig.yaml @@ -50,6 +50,3 @@ options: linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" -linter: - extends: - - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/cost-management/cspell.yaml b/specification/cost-management/cspell.yaml index 30a9ee4d6120..e838c4a53a17 100644 --- a/specification/cost-management/cspell.yaml +++ b/specification/cost-management/cspell.yaml @@ -11,6 +11,7 @@ words: - bokmål - kpis - subscripiton + - Unitof overrides: - filename: >- **/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2018-12-01-preview/costmanagement.json diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json index fe57eea9a207..29ec159f1c4c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json @@ -1,8 +1,8 @@ { "parameters": { "api-version": "2025-03-01", - "billingAccountId": "12345:6789", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "billingAccountId": "12345-6789", + "scope": "/providers/Microsoft.Billing/billingAccounts/12345-6789" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345-6789/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -53,7 +53,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.Billing/billingAccounts/12345-6789/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json index 2b549c85858a..122d125a8a84 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "providers/Microsoft.Billing/billingAccounts/100" + "scope": "/providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { @@ -11,7 +11,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -32,7 +32,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json index 30f3f086e9f3..1779c2a131a2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "providers/Microsoft.Billing/billingAccounts/100" + "scope": "/providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -34,7 +34,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json index b849974ddcfd..af9afe24ba79 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "providers/Microsoft.Billing/billingAccounts/100" + "scope": "/providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json index 054069935218..695266d0cd07 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json @@ -58,14 +58,14 @@ }, "timeframe": "Custom" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json index 1dbfbafa04c5..b03d5e691dfe 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json @@ -46,14 +46,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/70664866" + "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", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json index cec7ec3fbf9e..d5501fdfec44 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json @@ -21,14 +21,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/70664866" + "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", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json index 7c5ec360c702..6a56a4f08214 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2025-03-01", - "billingAccountId": "12345:6789", + "billingAccountId": "12345-6789", "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345-6789/billingProfiles/13579" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345-6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -54,7 +54,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.Billing/billingAccounts/12345-6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json index d8ef0e532274..5b9adf4e9682 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json @@ -59,14 +59,14 @@ }, "timeframe": "Custom" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json index a2b0ba86455a..4159aa385acc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json @@ -69,7 +69,7 @@ } }, "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -78,7 +78,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 100.65, "category": "Cost", @@ -153,7 +153,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 100.65, "category": "Cost", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json index 1dcd0d28b74e..cb36abb6666b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json @@ -38,7 +38,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -46,7 +46,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -86,7 +86,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json index 329da7703436..e1bc199c3cb1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json @@ -38,7 +38,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -46,7 +46,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -86,7 +86,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json index 808131e96590..35ca6d0d871c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json @@ -28,7 +28,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -36,7 +36,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -66,7 +66,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json index fecb98c8caff..2a75ea93796e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { @@ -47,7 +47,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -87,7 +87,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json index 888c6806fbce..b6e7a20dfe26 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { @@ -47,7 +47,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -87,7 +87,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json index 69bff72937bf..536c3acd7d50 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json @@ -29,7 +29,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { @@ -37,7 +37,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -67,7 +67,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json index 255cdd53bd79..9b7eb5a078b3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { @@ -47,7 +47,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -87,7 +87,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json index 80c2496bdcfe..8f053c622920 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { @@ -47,7 +47,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { @@ -87,7 +87,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json index e5575f475461..71f2a6e01aa2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json @@ -29,7 +29,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { @@ -37,7 +37,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -67,7 +67,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json index 1b47afe55ec4..a524600826e0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "budgetName": "TestBudget", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json index 02ddeeceda67..20308530f867 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "budgetName": "TestBudget", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -12,7 +12,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 100.65, "category": "Cost", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json index 19c909857ed1..21679c968663 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json @@ -4,7 +4,7 @@ "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "KKKK-LLLL-MMM-NNN", "budgetName": "TestAlertRule", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { @@ -12,7 +12,7 @@ "name": "TestAlertRule", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestAlertRule", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json index 3da75cf04bea..529728e56992 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json @@ -3,7 +3,7 @@ "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json index 5b5bf0cbfee2..df71b77eb6ae 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -12,7 +12,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 10000, "category": "Cost", @@ -43,7 +43,7 @@ "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { "amount": 15000, "category": "Cost", @@ -74,7 +74,7 @@ "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json index 23f69dcb1c44..7a261bb0e50d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "departmentId": "789101", - "scope": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456/departments/789101" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "DepartmentBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157e\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget1", "properties": { "amount": 5000, "category": "Cost", @@ -44,7 +44,7 @@ "name": "DepartmentBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/departments/789101/providers/Microsoft.CostManagement/budgets/DepartmentBudget2", "properties": { "amount": 8000, "category": "Cost", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json index a3978b470b9f..bd807a0f87b4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "enrollmentAccountId": "473845", - "scope": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "EnrollmentAccountBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157e\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget1", "properties": { "amount": 5000, "category": "Cost", @@ -44,7 +44,7 @@ "name": "EnrollmentAccountBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845/providers/Microsoft.CostManagement/budgets/EnrollmentAccountBudget2", "properties": { "amount": 8000, "category": "Cost", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json index 68622e82aad6..aa650896ec18 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json @@ -3,7 +3,7 @@ "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json index 52b91916f8d9..a0d875a7202b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" }, "responses": { "200": { @@ -12,7 +12,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 10000, "category": "Cost", @@ -43,7 +43,7 @@ "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { "amount": 15000, "category": "Cost", @@ -74,7 +74,7 @@ "name": "TestRUAlert", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN/providers/Microsoft.CostManagement/budgets/TestRUAlert", "properties": { "category": "ReservationUtilization", "filter": {}, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json index 521a768625bb..2b4fd07eb225 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json @@ -4,7 +4,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" }, "responses": { "200": { @@ -14,7 +14,7 @@ "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -42,7 +42,7 @@ "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json index bd55d57fa3e5..a07c8e1dca5b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 200, "category": "Cost", @@ -44,7 +44,7 @@ "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { "amount": 600, "category": "Cost", @@ -75,7 +75,7 @@ "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -103,7 +103,7 @@ "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json index b238b35dca25..1dc8a53b63c4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json @@ -4,7 +4,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "customerId": "000000-1111-2222-3333-444444444444", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { @@ -14,7 +14,7 @@ "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -42,7 +42,7 @@ "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json index 181f6618f527..e0f1f11cbaa6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "customerId": "000000-1111-2222-3333-444444444444", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { @@ -13,7 +13,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444", "properties": { "amount": 200, "category": "Cost", @@ -44,7 +44,7 @@ "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { "amount": 600, "category": "Cost", @@ -75,7 +75,7 @@ "name": "TestRUAlert1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert1", "properties": { "category": "ReservationUtilization", "filter": {}, @@ -103,7 +103,7 @@ "name": "TestRUAlert2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444/providers/Microsoft.CostManagement/budgets/TestRUAlert2", "properties": { "category": "ReservationUtilization", "filter": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json index af8362c1e33d..e0948d930f6c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json @@ -4,7 +4,7 @@ "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", "invoiceSectionId": "AAAA-BBBB-CCC-DDD", - "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD" + "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD" }, "responses": { "200": { @@ -14,7 +14,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157c\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 20, "category": "Cost", @@ -45,7 +45,7 @@ "name": "TestBudget2", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157d\"", - "id": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget2", + "id": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD/providers/Microsoft.CostManagement/budgets/TestBudget2", "properties": { "amount": 60, "category": "Cost", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json index 5a4c1dd21f69..77cdc6ce22a6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json @@ -43,7 +43,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 600.65, "category": "Cost", @@ -82,7 +82,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 100.65, "category": "Cost", @@ -167,7 +167,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 200.65, "category": "Cost", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json index 0e12dc5387d2..166660b4e40b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -13,7 +13,7 @@ "name": "TestBudget0", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget0", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget0", "properties": { "amount": 100.65, "category": "Cost", @@ -98,7 +98,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 200.65, "category": "Cost", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json index 2fee9e28a062..9ece24a50d35 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -12,7 +12,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 600.65, "category": "Cost", @@ -51,7 +51,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 100.65, "category": "Cost", @@ -136,7 +136,7 @@ "name": "TestBudget1", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/budgets/TestBudget1", "properties": { "amount": 200.65, "category": "Cost", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreate.json index b36a1756b289..aa2e7e9e4964 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreate.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreate.json @@ -44,7 +44,7 @@ "body": { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", @@ -85,7 +85,7 @@ "body": { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreateTag.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreateTag.json index cf6229584866..1316efffee8f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreateTag.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleCreateTag.json @@ -47,7 +47,7 @@ "body": { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", @@ -88,7 +88,7 @@ "body": { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleGet.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleGet.json index 8355f0894b61..6b606e4e630f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleGet.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRuleGet.json @@ -9,7 +9,7 @@ "body": { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRulesList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRulesList.json index a3a46d928cec..1b299794ca3a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRulesList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostAllocationRulesList.json @@ -11,7 +11,7 @@ { "name": "testRule", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule", "properties": { "description": "This is a testRule", "createdDate": "2020-06-18T22:21:51.1287144Z", @@ -50,7 +50,7 @@ { "name": "testRule2", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule2", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule2", "properties": { "description": "This is a second test Rule", "createdDate": "2020-06-18T22:21:51.1287144Z", @@ -85,7 +85,7 @@ { "name": "testRule3", "type": "Microsoft.CostManagement/costAllocationRules", - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule3", + "id": "/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/costAllocationRules/testRule3", "properties": { "description": "This is a third test Rule", "createdDate": "2020-06-18T22:21:51.1287144Z", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json index 45a983204b5c..1724ca662ca6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json @@ -2,13 +2,13 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json index 9e8e94635068..997d9694f4fd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "departmentId": "123", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -54,7 +54,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json index 965ad40bb5cf..ced6247c2fef 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -33,7 +33,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json index 4b55ce08b7cf..d96a4f16c84c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -35,7 +35,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json index ac3504f3344c..d67bddfe2179 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { @@ -15,7 +15,7 @@ { "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json index af812fdb3499..465a67ce7413 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json @@ -59,14 +59,14 @@ }, "timeframe": "Custom" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json index 89aa11f60d60..bd587da8da7d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json @@ -47,14 +47,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json index 521ae4475ec8..f04d48827dc8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json @@ -22,14 +22,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json index 9ec81ed7cb93..0925556abb80 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json @@ -8,7 +8,7 @@ } }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -16,7 +16,7 @@ "body": { "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json index 99b6dc15b820..e7e07ec2ca5e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json @@ -7,7 +7,7 @@ "status": "Dismissed" } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -15,7 +15,7 @@ "body": { "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json index 8f22e590bde7..d9162cc62370 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -54,7 +54,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json index 5d7a9a1127f7..2270a5a18332 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -27,7 +27,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json index 1ed8d2e9fe46..848846393f27 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -35,7 +35,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json index 45779413fa7f..03a1787019b0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -15,7 +15,7 @@ { "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json index 1883eea1b5f3..c2307637f8dd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json @@ -59,14 +59,14 @@ }, "timeframe": "Custom" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json index 024e9d3d8136..65e445078bf6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json @@ -47,14 +47,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json index f91c4cb53f86..e1efa0f97e36 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json @@ -22,14 +22,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json index 09b2860061ef..8b2871060db6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json @@ -42,7 +42,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -97,7 +97,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json index 4e79fde2c3db..b5234f39eefc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json @@ -41,7 +41,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -49,7 +49,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -95,7 +95,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json index 58cb0fd2824f..ccc8b5938ef5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json @@ -42,7 +42,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -97,7 +97,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json index ea39a164e8a4..28cc133ff15d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json @@ -42,7 +42,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -97,7 +97,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json index 6f4b5a9a9232..329464d8e566 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json @@ -42,7 +42,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -99,7 +99,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json index 8c2b0a4539a6..2bfafc42f194 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json @@ -55,7 +55,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -63,7 +63,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -125,7 +125,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json index a7cd5b3a9b0e..d25144153625 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json @@ -41,7 +41,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -49,7 +49,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -98,7 +98,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json index 7f90a2632e2a..a1b042ef77d6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json @@ -43,7 +43,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { @@ -51,7 +51,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -98,7 +98,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json index f2fd51fffc2e..586ae0484938 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json @@ -43,7 +43,7 @@ } } }, - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -51,7 +51,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -98,7 +98,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json index 3bb1bd82066c..4bec3d8bc756 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json @@ -42,7 +42,7 @@ } } }, - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -97,7 +97,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json index c005fb8b2af1..c42a7fdfb34f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json @@ -42,7 +42,7 @@ } }, "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -51,7 +51,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -98,7 +98,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json index 8915e221e5ae..29eefcc6aad6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json @@ -41,7 +41,7 @@ } } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -50,7 +50,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -97,7 +97,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json index 68620fd7e88d..1068aa3bb1b6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json index 37ed28910456..6dffeb9cf9a4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json index 661c01691200..fc4526f3a570 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json index 804ba311eed7..65bbf9b4a868 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json index 6a825e1a6b9d..5e9672c60e1a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json index 2eac873a6ee6..c97c74a61abb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json index d6bc5f8c3ffe..efadb557aff1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -11,7 +11,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json index 204beaef0892..b0a34c9b27ef 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { @@ -12,7 +12,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json index 2a564c396f73..0db4460ba30e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -12,7 +12,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json index c56d77053358..82aca549e8e2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { @@ -11,7 +11,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json index 6a00d66c4722..81c71a32bdf5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -12,7 +12,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json index 43fe01268ce2..8cede3cf7ee9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -11,7 +11,7 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json index 12ddb952cc91..d13773259e06 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json index 7a0f00b0baea..f0b2a049009f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json @@ -9,7 +9,7 @@ "to": "2023-12-31T00:00:00.000Z" } }, - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json index 157a354bbb41..6d1f0a02cfbc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json index 6594094184c2..75cc5321ac09 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json index 0759e67eb5d9..9f2523fafd3b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json index 325bd21eef83..124c3067802f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json index e0e5a286f772..0644256505cb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json index 063cab663112..a1103ea37355 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json @@ -3,14 +3,14 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -53,7 +53,7 @@ } }, { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json index b49e57c7bee1..04ded942ac01 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json @@ -4,14 +4,14 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -54,7 +54,7 @@ } }, { - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json index d938fe3f38dd..4c751c40c7fc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json @@ -4,14 +4,14 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -54,7 +54,7 @@ } }, { - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json index e5535b643304..bf457d97f6c6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json @@ -3,14 +3,14 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -53,7 +53,7 @@ } }, { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json index caebb29d013d..92043cc7c498 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -11,7 +11,7 @@ "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -54,7 +54,7 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json index ff7326b3caa3..dac3df9d2871 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "OnDemand", @@ -53,7 +53,7 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "endDate": "2020-06-30T00:00:00Z", "executionType": "Scheduled", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json index 899e074da06d..a7680f28be2d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456" + "scope": "/providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { @@ -11,7 +11,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -50,7 +50,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json index a357ea5446df..6c3c7d688048 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12", "departmentId": "1234", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/123" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/123" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -51,7 +51,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json index bb3e3b8ccf97..058b2cbd7c9e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -51,7 +51,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json index e9484aee24ee..a7cdab787950 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG" + "scope": "/providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { @@ -11,7 +11,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -50,7 +50,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json index 0cec6c74d7eb..75df187a443f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -12,7 +12,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -51,7 +51,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json index 0d7f9859c6e5..58d80458b60f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -11,7 +11,7 @@ { "name": "TestExport1", "type": "Microsoft.CostManagement/exports", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport1", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", @@ -50,7 +50,7 @@ { "name": "TestExport2", "type": "Microsoft.CostManagement/exports", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport2", "identity": { "type": "SystemAssigned", "principalId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountAlerts.json index 8a0f673d2bbc..3f17e2817793 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountAlerts.json @@ -12,7 +12,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -53,7 +53,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountForecast.json index 0ba95411f479..51472ba6a1dd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountForecast.json @@ -63,7 +63,7 @@ "body": { "name": "6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsDimensions.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsDimensions.json index 949e1e27b675..42097259c48f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsDimensions.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsDimensions.json @@ -11,7 +11,7 @@ { "name": "dimensions_ResourceType_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceType_2019-12-01_2019-12-31", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceType_2019-12-01_2019-12-31", "properties": { "description": "Resource type", "category": "ResourceType", @@ -32,7 +32,7 @@ { "name": "dimensions_ResourceId_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceId_2019-12-01_2019-12-31", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceId_2019-12-01_2019-12-31", "properties": { "description": "Resource ID", "category": "ResourceId", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsQuery.json index db02af315b0a..27088513dbe1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalBillingAccountsQuery.json @@ -53,7 +53,7 @@ "body": { "name": "6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", + "id": "/providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionAlerts.json index 4a75ec6e43c5..5aa2c4476ab6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionAlerts.json @@ -12,7 +12,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -53,7 +53,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionForecast.json index 5d4dbb6aae55..4aa83bbbd370 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionForecast.json @@ -63,7 +63,7 @@ "body": { "name": "d99477af-7510-40ee-aca2-e59bdca0d10d", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsDimensions.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsDimensions.json index 5a7395245113..fe865e2a9b3d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsDimensions.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsDimensions.json @@ -11,7 +11,7 @@ { "name": "dimensions_ResourceType_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceType_2019-12-01_2019-12-31", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceType_2019-12-01_2019-12-31", "properties": { "description": "Resource type", "category": "ResourceType", @@ -32,7 +32,7 @@ { "name": "dimensions_ResourceId_2019-12-01_2019-12-31", "type": "microsoft.consumption/dimensions", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceId_2019-12-01_2019-12-31", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceId_2019-12-01_2019-12-31", "properties": { "description": "Resource ID", "category": "ResourceId", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsQuery.json index 7f674e9e8ea1..d45465bd5742 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExternalSubscriptionsQuery.json @@ -53,7 +53,7 @@ "body": { "name": "d99477af-7510-40ee-aca2-e59bdca0d10d", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", + "id": "/providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json index 93b5eae41a30..2662d5666c23 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json @@ -5,13 +5,13 @@ "billingPeriod": "202205", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json index 7769b36bbb5f..c1604747946d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json @@ -5,13 +5,13 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json index cb228d9492f7..f94f41ce6959 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -5,13 +5,13 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json index 79148dcf89e3..46f0160e1e44 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json @@ -8,13 +8,13 @@ "start": "2020-03-01" } }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json index 0f0e17e635bd..7976811275d2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json @@ -8,13 +8,13 @@ "start": "2020-03-01" } }, - "scope": "providers/Microsoft.Billing/departments/12345" + "scope": "/providers/Microsoft.Billing/departments/12345" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/departments/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/departments/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json index 73f4b7424fb3..dc842fdab39a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json @@ -8,13 +8,13 @@ "start": "2020-03-01" } }, - "scope": "providers/Microsoft.Billing/enrollmentAccounts/1234" + "scope": "/providers/Microsoft.Billing/enrollmentAccounts/1234" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "providers/Microsoft.Billing/enrollmentAccounts/1234/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/enrollmentAccounts/1234/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json index 1589105ace6a..bc2d5d158519 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json @@ -8,13 +8,13 @@ "start": "2020-03-01" } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000", "manifest": { "blobCount": 1, "blobs": [ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json index b30e7c80bbb1..9eaaaf1220a8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json @@ -5,14 +5,14 @@ "billingPeriod": "202008", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json index c150c1d7c471..fea8f4df915b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json @@ -5,14 +5,14 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json index 6580c6ba45c4..3b704280653b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -6,14 +6,14 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json index 85d6e1b247ae..736ec8c993d3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json @@ -8,14 +8,14 @@ "start": "2020-03-01" } }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json index beeb7cf381c3..9656d0d862b6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json @@ -8,14 +8,14 @@ "start": "2020-03-01" } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json index ef53caae82c2..a194d3384e01 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json @@ -2,14 +2,14 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.Consumption/operationResult", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationResults/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json index 757357feceb1..a2a90c648428 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json @@ -2,7 +2,7 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -13,7 +13,7 @@ "code": "0", "message": null }, - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationStatus/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/operationStatus/00000000-0000-0000-0000-000000000000", "properties": { "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json index 396cb327c1fb..3a634b7427e9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json @@ -4,7 +4,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -55,7 +55,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json index 2e9d3bd3c4d0..4484978ef76c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json @@ -60,14 +60,14 @@ }, "timeframe": "Custom" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "Microsoft.CostManagement/query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json index 2594908a7256..a8e25a25ee83 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { @@ -11,7 +11,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -26,7 +26,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json index ffa0a0df57f7..49ae52b54243 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -34,7 +34,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json index efe05863f972..055e5eda1d82 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json index cf995b961f6a..90cad0367561 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json @@ -46,14 +46,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json index 90914657d5cb..09e89554a9c2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json @@ -21,14 +21,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json index ff98c2c44a80..d53cbb0cbb73 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -27,7 +27,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json index 91973f2b9d6e..1522b40ba8f7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -35,7 +35,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json index 33d4a17485f0..35dcc490e71b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { @@ -15,7 +15,7 @@ { "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json index f0a1e7492c03..5c17680721c7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json @@ -47,14 +47,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json index a3ed14f20b29..fff9492fe8f5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json @@ -22,14 +22,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json index 22b5086dee93..bc704959837d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "5678", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { @@ -12,7 +12,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -27,7 +27,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json index a0edd01d1349..fb987b6a3506 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "5678", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -35,7 +35,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json index 7e8dffd701ba..1cf4cfa22c35 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { @@ -15,7 +15,7 @@ { "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json index d9890eb15cef..eb15d676934c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json @@ -47,14 +47,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json index 9ce382adc688..5d1758c60766 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json @@ -22,14 +22,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json index db8df077557f..e0f4357d8dda 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json @@ -4,7 +4,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -28,7 +28,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json index eb3421e991ca..154981e58ad3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json @@ -6,7 +6,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { @@ -15,7 +15,7 @@ { "name": "dimensions_ResourceGroup_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -36,7 +36,7 @@ { "name": "dimensions_ResourceType_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json index cd9ecd081e0b..8465b9cfaf3f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json @@ -7,7 +7,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { @@ -16,7 +16,7 @@ { "name": "dimensions_ResourceId_2019-10-01_2019-10-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json index fa285a7b63d4..306965a26ef0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json @@ -48,14 +48,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json index 265e4fe22ea7..d4643d9e4740 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json @@ -23,14 +23,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json index dfb289df3041..d582b46b7a83 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { @@ -11,7 +11,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -26,7 +26,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json index 1e189e461bb7..70f4e29273d2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { @@ -13,7 +13,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -34,7 +34,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json index fb4f26d7bee4..8d7dd3ceb4b6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json index 43ac3c0b14ba..12bfc9c24b18 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json @@ -46,14 +46,14 @@ }, "timeframe": "MonthToDate" }, - "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json index e8c771aef5e0..13cc4495ad15 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json @@ -21,14 +21,14 @@ }, "timeframe": "TheLastMonth" }, - "scope": "providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { "body": { "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "type": "microsoft.costmanagement/Query", - "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "id": "/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json index 2235ad7eabe7..1e9eac128385 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -13,7 +13,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -54,7 +54,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json index 478318e187b7..af5be415e39c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "resourceGroupName": "system.orlando", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -14,7 +14,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", @@ -31,7 +31,7 @@ { "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", "properties": { "description": "Resource Id", "category": "ResourceId", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json index df9adee7d1c0..db62837f6627 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json @@ -58,7 +58,7 @@ "timeframe": "Custom" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -66,7 +66,7 @@ "body": { "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "Microsoft.CostManagement/query", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json index d33c9f453ebd..d81004498b27 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json @@ -46,7 +46,7 @@ "timeframe": "MonthToDate" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481" }, "responses": { @@ -54,7 +54,7 @@ "body": { "name": "9af9459d-441d-4055-9ed0-83d4c4a363fb", "type": "microsoft.costmanagement/Query", - "id": "subscriptions/55312978-ba1b-415c-9304-c4b9c43c0481/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", + "id": "/subscriptions/55312978-ba1b-415c-9304-c4b9c43c0481/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json index 47e5927372d1..3f7e1f4d3d68 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json @@ -21,7 +21,7 @@ "timeframe": "TheLastMonth" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -29,7 +29,7 @@ "body": { "name": "9af9459d-441d-4055-9ed0-83d4c4a363fb", "type": "microsoft.costmanagement/Query", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json index 4892faf53b80..e2b1238f4f80 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json @@ -3,7 +3,7 @@ "alertId": "22222222-2222-2222-2222-222222222222", "api-version": "2025-03-01", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -11,7 +11,7 @@ "body": { "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json index 2c6595bc2f8c..07510bf09e49 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json @@ -2,7 +2,7 @@ "parameters": { "alertId": "22222222-2222-2222-2222-222222222222", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -10,7 +10,7 @@ "body": { "name": "22222222-2222-2222-2222-222222222222", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json index 7612ded878e8..f0fa12c3853f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -12,7 +12,7 @@ { "name": "00000000-0000-0000-0000-000000000000", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", @@ -53,7 +53,7 @@ { "name": "11111111-1111-1111-111111111111", "type": "Microsoft.CostManagement/alerts", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", "properties": { "description": "", "closeTime": "0001-01-01T00:00:00", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json index cf4d5ecba580..06db8ef750a9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json @@ -3,7 +3,7 @@ "$expand": "properties/data", "$top": 5, "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -13,7 +13,7 @@ { "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", "properties": { "description": "Resource group", "category": "ResourceGroup", @@ -34,7 +34,7 @@ { "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", "type": "microsoft.CostManagement/dimensions", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", "properties": { "description": "Resource type", "category": "ResourceType", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json index fd2af044f319..3cb617cc6ef7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json @@ -57,7 +57,7 @@ }, "timeframe": "Custom" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -65,7 +65,7 @@ "body": { "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "Microsoft.CostManagement/query", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json index 5d6cda84ef49..a974c0e57953 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json @@ -45,7 +45,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -53,7 +53,7 @@ "body": { "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "microsoft.costmanagement/Query", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json index f0775487364d..e8003bbfda15 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json @@ -20,7 +20,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -28,7 +28,7 @@ "body": { "name": "55312978-ba1b-415c-9304-cfd9c43c0481", "type": "microsoft.costmanagement/Query", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000", "properties": { "columns": [ { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json index 52b9474147fd..8abf2ad8f89b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "swaggerExample" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json index bceff92723f8..011afd4eff19 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json @@ -56,7 +56,7 @@ } } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "swaggerExample" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json index d42216abe104..03a18438f7e9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "TestView" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json index 953b8129449d..1f4390872cb1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json index 0142bce2aa83..1afe3db54f44 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json @@ -5,7 +5,7 @@ "name": "testName", "type": "Microsoft.CostManagement/ScheduledActions" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-private.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-private.json index b055a942de6c..8455b591e0fd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-private.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-private.json @@ -38,7 +38,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -83,7 +83,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json index 5f52b090cead..f4eb19de2681 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json @@ -36,7 +36,7 @@ "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -44,7 +44,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -68,7 +68,7 @@ "Third" ] }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, @@ -87,7 +87,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -116,7 +116,7 @@ "Third" ] }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json index b58965e6b22f..c3d8ef1b80bd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-private.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-private.json index 6df6b6a8d7e8..94e9bba45d45 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-private.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-private.json @@ -9,7 +9,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json index 49d56e2b7005..b8ecc11b0c49 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -10,7 +10,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -34,7 +34,7 @@ "Third" ] }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json index b124605d71f3..ac1992daa5d9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json @@ -23,7 +23,7 @@ "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" } }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -31,7 +31,7 @@ "name": "dailyAnomalyByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", "kind": "InsightAlert", "properties": { "displayName": "Daily anomaly by resource", @@ -50,7 +50,7 @@ "frequency": "Daily", "startDate": "2020-06-19T22:21:51.1287144Z" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, @@ -69,7 +69,7 @@ "name": "dailyAnomalyByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyAnomalyByResource", "kind": "InsightAlert", "properties": { "displayName": "Daily anomaly by resource", @@ -88,7 +88,7 @@ "frequency": "Daily", "startDate": "2020-06-19T22:21:51.1287144Z" }, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json index 0bf9ac7dd58b..4a8055b5a647 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-private.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-private.json index 0d4f55f3f65f..5c5fc7996b77 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-private.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-private.json @@ -11,7 +11,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -52,7 +52,7 @@ "name": "dailyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d15\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", "kind": "Email", "properties": { "displayName": "Daily Cost By Resource", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json index 5536274a9844..3ddcfd5915c7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json @@ -1,14 +1,14 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "kind": "Email", @@ -23,7 +23,7 @@ }, "properties": { "displayName": "Monthly Cost By Resource", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { @@ -49,7 +49,7 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", "name": "dailyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "kind": "Email", @@ -64,7 +64,7 @@ }, "properties": { "displayName": "Daily Cost By Resource", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Disabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-private.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-private.json index 08222beb3930..00bd7ca2e9c8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-private.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-private.json @@ -12,7 +12,7 @@ "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d10\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "kind": "Email", "properties": { "displayName": "Monthly Cost By Resource", @@ -53,7 +53,7 @@ "name": "dailyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "eTag": "\"1d4ff9fe66f1d15\"", - "id": "providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "id": "/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", "kind": "Email", "properties": { "displayName": "Daily Cost By Resource", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json index e594fd6d23dd..a0fb87c0843c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "$filter": "properties/viewId eq '/providers/Microsoft.CostManagement/views/swaggerExample'" }, "responses": { @@ -9,7 +9,7 @@ "body": { "value": [ { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource", "name": "monthlyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "kind": "Email", @@ -24,7 +24,7 @@ }, "properties": { "displayName": "Monthly Cost By Resource", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { @@ -50,7 +50,7 @@ } }, { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyCostByResource", "name": "dailyCostByResource", "type": "Microsoft.CostManagement/ScheduledActions", "kind": "Email", @@ -65,7 +65,7 @@ }, "properties": { "displayName": "Daily Cost By Resource", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Disabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json index 58ed1b269af9..14f7d7e08549 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json index e4cea79dd5fe..92764b91db46 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json index e2ed25e1f11b..cb37f73c2de1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "setting": { "kind": "taginheritance", "properties": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json index f59ce3fd2377..79b353a49ab4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { From 90e66bbc5f34da2769137708bbcbc066b5c9460a Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 12 Sep 2025 13:54:24 +0800 Subject: [PATCH 06/45] Update BillingAccountAlerts.json --- .../examples/2025-03-01/BillingAccountAlerts.json | 2 +- .../stable/2025-03-01/examples/BillingAccountAlerts.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json index 29ec159f1c4c..cc4717f9a569 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountAlerts.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "12345-6789", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345-6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345-6789" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json index 29ec159f1c4c..cc4717f9a569 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountAlerts.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "12345-6789", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345-6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345-6789" }, "responses": { "200": { From d065701e8356d301115356b4738a62e8ace9048a Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 12 Sep 2025 14:03:33 +0800 Subject: [PATCH 07/45] update example files --- .../examples/2025-03-01/BillingAccountDimensionsList.json | 2 +- .../2025-03-01/BillingAccountDimensionsListExpandAndTop.json | 2 +- .../2025-03-01/BillingAccountDimensionsListWithFilter.json | 2 +- .../examples/2025-03-01/BillingAccountForecast.json | 2 +- .../examples/2025-03-01/BillingAccountQuery.json | 2 +- .../examples/2025-03-01/BillingAccountQueryGrouping.json | 2 +- .../examples/2025-03-01/BillingProfileAlerts.json | 2 +- .../examples/2025-03-01/BillingProfileForecast.json | 2 +- .../EA/BillingAccountEA-AlertRule-ReservationIdFilter.json | 2 +- .../BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json | 2 +- .../ReservationUtilization/EA/BillingAccountEA-AlertRule.json | 2 +- .../MCA/BillingProfile-AlertRule-ReservationIdFilter.json | 2 +- .../BillingProfile-AlertRule-ReservedResourceTypeFilter.json | 2 +- .../ReservationUtilization/MCA/BillingProfile-AlertRule.json | 2 +- .../MCA/Customer-AlertRule-ReservationIdFilter.json | 2 +- .../MCA/Customer-AlertRule-ReservedResourceTypeFilter.json | 2 +- .../ReservationUtilization/MCA/Customer-AlertRule.json | 2 +- .../Get-ReservationUtilization-AlertRule.json | 2 +- .../EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json | 2 +- .../Budgets/List/EA/BillingAccountBudgetsList-EA.json | 2 +- .../2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json | 2 +- .../Budgets/List/EA/EnrollmentAccountBudgetsList.json | 2 +- .../MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json | 2 +- .../Budgets/List/MCA/BillingAccountBudgetsList-MCA.json | 2 +- .../List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json | 2 +- .../2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json | 2 +- .../List/MCA/CustomerBudgetsList-CategoryTypeFilter.json | 2 +- .../2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json | 2 +- .../2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json | 2 +- .../examples/2025-03-01/DepartmentAlerts.json | 2 +- .../examples/2025-03-01/DepartmentDimensionsList.json | 2 +- .../2025-03-01/DepartmentDimensionsListExpandAndTop.json | 2 +- .../examples/2025-03-01/DepartmentDimensionsListWithFilter.json | 2 +- .../examples/2025-03-01/DepartmentForecast.json | 2 +- .../examples/2025-03-01/DepartmentQuery.json | 2 +- .../examples/2025-03-01/DepartmentQueryGrouping.json | 2 +- .../examples/2025-03-01/EnrollmentAccountAlerts.json | 2 +- .../examples/2025-03-01/EnrollmentAccountDimensionsList.json | 2 +- .../2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json | 2 +- .../2025-03-01/EnrollmentAccountDimensionsListWithFilter.json | 2 +- .../examples/2025-03-01/EnrollmentAccountForecast.json | 2 +- .../examples/2025-03-01/EnrollmentAccountQuery.json | 2 +- .../examples/2025-03-01/EnrollmentAccountQueryGrouping.json | 2 +- .../2025-03-01/ExportCreateOrUpdateByBillingAccount.json | 2 +- .../2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json | 2 +- .../2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json | 2 +- .../ExportCreateOrUpdateByBillingAccountPricesheet.json | 2 +- .../ExportCreateOrUpdateByBillingAccountReservationDetails.json | 2 +- ...CreateOrUpdateByBillingAccountReservationRecommendation.json | 2 +- ...rtCreateOrUpdateByBillingAccountReservationTransactions.json | 2 +- .../examples/2025-03-01/ExportCreateOrUpdateByDepartment.json | 2 +- .../2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json | 2 +- .../2025-03-01/ExportCreateOrUpdateByManagementGroup.json | 2 +- .../examples/2025-03-01/ExportDeleteByBillingAccount.json | 2 +- .../examples/2025-03-01/ExportDeleteByDepartment.json | 2 +- .../examples/2025-03-01/ExportDeleteByEnrollmentAccount.json | 2 +- .../examples/2025-03-01/ExportDeleteByManagementGroup.json | 2 +- .../examples/2025-03-01/ExportGetByBillingAccount.json | 2 +- .../examples/2025-03-01/ExportGetByDepartment.json | 2 +- .../examples/2025-03-01/ExportGetByEnrollmentAccount.json | 2 +- .../examples/2025-03-01/ExportGetByManagementGroup.json | 2 +- .../examples/2025-03-01/ExportRunByBillingAccount.json | 2 +- .../ExportRunByBillingAccountWithOptionalRequestBody.json | 2 +- .../examples/2025-03-01/ExportRunByDepartment.json | 2 +- .../examples/2025-03-01/ExportRunByEnrollmentAccount.json | 2 +- .../examples/2025-03-01/ExportRunByManagementGroup.json | 2 +- .../2025-03-01/ExportRunHistoryGetByBillingAccount.json | 2 +- .../examples/2025-03-01/ExportRunHistoryGetByDepartment.json | 2 +- .../2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json | 2 +- .../2025-03-01/ExportRunHistoryGetByManagementGroup.json | 2 +- .../examples/2025-03-01/ExportsGetByBillingAccount.json | 2 +- .../examples/2025-03-01/ExportsGetByDepartment.json | 2 +- .../examples/2025-03-01/ExportsGetByEnrollmentAccount.json | 2 +- .../examples/2025-03-01/ExportsGetByManagementGroup.json | 2 +- ...llingAccountEnterpriseAgreementCustomerAndBillingPeriod.json | 2 +- .../GenerateCostDetailsReportByBillingProfileAndInvoiceId.json | 2 +- ...tDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json | 2 +- .../GenerateCostDetailsReportByCustomerAndTimePeriod.json | 2 +- .../GenerateCostDetailsReportByDepartmentsAndTimePeriod.json | 2 +- ...erateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json | 2 +- ...etailedCostReportByBillingAccountLegacyAndBillingPeriod.json | 2 +- .../GenerateDetailedCostReportByBillingProfileAndInvoiceId.json | 2 +- ...iledCostReportByBillingProfileAndInvoiceIdAndCustomerId.json | 2 +- .../GenerateDetailedCostReportByCustomerAndTimePeriod.json | 2 +- .../examples/2025-03-01/InvoiceSectionAlerts.json | 2 +- .../examples/2025-03-01/InvoiceSectionForecast.json | 2 +- .../examples/2025-03-01/MCABillingAccountDimensionsList.json | 2 +- .../2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json | 2 +- .../2025-03-01/MCABillingAccountDimensionsListWithFilter.json | 2 +- .../examples/2025-03-01/MCABillingAccountQuery.json | 2 +- .../examples/2025-03-01/MCABillingAccountQueryGrouping.json | 2 +- .../examples/2025-03-01/MCABillingProfileDimensionsList.json | 2 +- .../2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json | 2 +- .../2025-03-01/MCABillingProfileDimensionsListWithFilter.json | 2 +- .../examples/2025-03-01/MCABillingProfileQuery.json | 2 +- .../examples/2025-03-01/MCABillingProfileQueryGrouping.json | 2 +- .../examples/2025-03-01/MCACustomerDimensionsList.json | 2 +- .../2025-03-01/MCACustomerDimensionsListExpandAndTop.json | 2 +- .../2025-03-01/MCACustomerDimensionsListWithFilter.json | 2 +- .../examples/2025-03-01/MCACustomerQuery.json | 2 +- .../examples/2025-03-01/MCACustomerQueryGrouping.json | 2 +- .../examples/2025-03-01/MCAInvoiceSectionDimensionsList.json | 2 +- .../2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json | 2 +- .../2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json | 2 +- .../examples/2025-03-01/MCAInvoiceSectionQuery.json | 2 +- .../examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json | 2 +- .../examples/2025-03-01/ManagementGroupDimensionsList.json | 2 +- .../2025-03-01/ManagementGroupDimensionsListExpandAndTop.json | 2 +- .../2025-03-01/ManagementGroupDimensionsListWithFilter.json | 2 +- .../examples/2025-03-01/ManagementGroupQuery.json | 2 +- .../examples/2025-03-01/ManagementGroupQueryGrouping.json | 2 +- .../2025-03-01/examples/BillingAccountDimensionsList.json | 2 +- .../examples/BillingAccountDimensionsListExpandAndTop.json | 2 +- .../examples/BillingAccountDimensionsListWithFilter.json | 2 +- .../stable/2025-03-01/examples/BillingAccountForecast.json | 2 +- .../stable/2025-03-01/examples/BillingAccountQuery.json | 2 +- .../stable/2025-03-01/examples/BillingAccountQueryGrouping.json | 2 +- .../stable/2025-03-01/examples/BillingProfileAlerts.json | 2 +- .../stable/2025-03-01/examples/BillingProfileForecast.json | 2 +- .../EA/BillingAccountEA-AlertRule-ReservationIdFilter.json | 2 +- .../BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json | 2 +- .../ReservationUtilization/EA/BillingAccountEA-AlertRule.json | 2 +- .../MCA/BillingProfile-AlertRule-ReservationIdFilter.json | 2 +- .../BillingProfile-AlertRule-ReservedResourceTypeFilter.json | 2 +- .../ReservationUtilization/MCA/BillingProfile-AlertRule.json | 2 +- .../MCA/Customer-AlertRule-ReservationIdFilter.json | 2 +- .../MCA/Customer-AlertRule-ReservedResourceTypeFilter.json | 2 +- .../ReservationUtilization/MCA/Customer-AlertRule.json | 2 +- .../Get-ReservationUtilization-AlertRule.json | 2 +- .../EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json | 2 +- .../examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json | 2 +- .../examples/Budgets/List/EA/DepartmentBudgetsList.json | 2 +- .../examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json | 2 +- .../MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json | 2 +- .../Budgets/List/MCA/BillingAccountBudgetsList-MCA.json | 2 +- .../List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json | 2 +- .../examples/Budgets/List/MCA/BillingProfileBudgetsList.json | 2 +- .../List/MCA/CustomerBudgetsList-CategoryTypeFilter.json | 2 +- .../examples/Budgets/List/MCA/CustomerBudgetsList.json | 2 +- .../examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json | 2 +- .../stable/2025-03-01/examples/DepartmentAlerts.json | 2 +- .../stable/2025-03-01/examples/DepartmentDimensionsList.json | 2 +- .../examples/DepartmentDimensionsListExpandAndTop.json | 2 +- .../2025-03-01/examples/DepartmentDimensionsListWithFilter.json | 2 +- .../stable/2025-03-01/examples/DepartmentForecast.json | 2 +- .../stable/2025-03-01/examples/DepartmentQuery.json | 2 +- .../stable/2025-03-01/examples/DepartmentQueryGrouping.json | 2 +- .../stable/2025-03-01/examples/EnrollmentAccountAlerts.json | 2 +- .../2025-03-01/examples/EnrollmentAccountDimensionsList.json | 2 +- .../examples/EnrollmentAccountDimensionsListExpandAndTop.json | 2 +- .../examples/EnrollmentAccountDimensionsListWithFilter.json | 2 +- .../stable/2025-03-01/examples/EnrollmentAccountForecast.json | 2 +- .../stable/2025-03-01/examples/EnrollmentAccountQuery.json | 2 +- .../2025-03-01/examples/EnrollmentAccountQueryGrouping.json | 2 +- .../examples/ExportCreateOrUpdateByBillingAccount.json | 2 +- .../examples/ExportCreateOrUpdateByBillingAccountCustom.json | 2 +- .../examples/ExportCreateOrUpdateByBillingAccountMonthly.json | 2 +- .../ExportCreateOrUpdateByBillingAccountPricesheet.json | 2 +- .../ExportCreateOrUpdateByBillingAccountReservationDetails.json | 2 +- ...CreateOrUpdateByBillingAccountReservationRecommendation.json | 2 +- ...rtCreateOrUpdateByBillingAccountReservationTransactions.json | 2 +- .../2025-03-01/examples/ExportCreateOrUpdateByDepartment.json | 2 +- .../examples/ExportCreateOrUpdateByEnrollmentAccount.json | 2 +- .../examples/ExportCreateOrUpdateByManagementGroup.json | 2 +- .../2025-03-01/examples/ExportDeleteByBillingAccount.json | 2 +- .../stable/2025-03-01/examples/ExportDeleteByDepartment.json | 2 +- .../2025-03-01/examples/ExportDeleteByEnrollmentAccount.json | 2 +- .../2025-03-01/examples/ExportDeleteByManagementGroup.json | 2 +- .../stable/2025-03-01/examples/ExportGetByBillingAccount.json | 2 +- .../stable/2025-03-01/examples/ExportGetByDepartment.json | 2 +- .../2025-03-01/examples/ExportGetByEnrollmentAccount.json | 2 +- .../stable/2025-03-01/examples/ExportGetByManagementGroup.json | 2 +- .../stable/2025-03-01/examples/ExportRunByBillingAccount.json | 2 +- .../ExportRunByBillingAccountWithOptionalRequestBody.json | 2 +- .../stable/2025-03-01/examples/ExportRunByDepartment.json | 2 +- .../2025-03-01/examples/ExportRunByEnrollmentAccount.json | 2 +- .../stable/2025-03-01/examples/ExportRunByManagementGroup.json | 2 +- .../examples/ExportRunHistoryGetByBillingAccount.json | 2 +- .../2025-03-01/examples/ExportRunHistoryGetByDepartment.json | 2 +- .../examples/ExportRunHistoryGetByEnrollmentAccount.json | 2 +- .../examples/ExportRunHistoryGetByManagementGroup.json | 2 +- .../stable/2025-03-01/examples/ExportsGetByBillingAccount.json | 2 +- .../stable/2025-03-01/examples/ExportsGetByDepartment.json | 2 +- .../2025-03-01/examples/ExportsGetByEnrollmentAccount.json | 2 +- .../stable/2025-03-01/examples/ExportsGetByManagementGroup.json | 2 +- ...llingAccountEnterpriseAgreementCustomerAndBillingPeriod.json | 2 +- .../GenerateCostDetailsReportByBillingProfileAndInvoiceId.json | 2 +- ...tDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json | 2 +- .../GenerateCostDetailsReportByCustomerAndTimePeriod.json | 2 +- .../GenerateCostDetailsReportByDepartmentsAndTimePeriod.json | 2 +- ...erateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json | 2 +- ...etailedCostReportByBillingAccountLegacyAndBillingPeriod.json | 2 +- .../GenerateDetailedCostReportByBillingProfileAndInvoiceId.json | 2 +- ...iledCostReportByBillingProfileAndInvoiceIdAndCustomerId.json | 2 +- .../GenerateDetailedCostReportByCustomerAndTimePeriod.json | 2 +- .../stable/2025-03-01/examples/InvoiceSectionAlerts.json | 2 +- .../stable/2025-03-01/examples/InvoiceSectionForecast.json | 2 +- .../2025-03-01/examples/MCABillingAccountDimensionsList.json | 2 +- .../examples/MCABillingAccountDimensionsListExpandAndTop.json | 2 +- .../examples/MCABillingAccountDimensionsListWithFilter.json | 2 +- .../stable/2025-03-01/examples/MCABillingAccountQuery.json | 2 +- .../2025-03-01/examples/MCABillingAccountQueryGrouping.json | 2 +- .../2025-03-01/examples/MCABillingProfileDimensionsList.json | 2 +- .../examples/MCABillingProfileDimensionsListExpandAndTop.json | 2 +- .../examples/MCABillingProfileDimensionsListWithFilter.json | 2 +- .../stable/2025-03-01/examples/MCABillingProfileQuery.json | 2 +- .../2025-03-01/examples/MCABillingProfileQueryGrouping.json | 2 +- .../stable/2025-03-01/examples/MCACustomerDimensionsList.json | 2 +- .../examples/MCACustomerDimensionsListExpandAndTop.json | 2 +- .../examples/MCACustomerDimensionsListWithFilter.json | 2 +- .../stable/2025-03-01/examples/MCACustomerQuery.json | 2 +- .../stable/2025-03-01/examples/MCACustomerQueryGrouping.json | 2 +- .../2025-03-01/examples/MCAInvoiceSectionDimensionsList.json | 2 +- .../examples/MCAInvoiceSectionDimensionsListExpandAndTop.json | 2 +- .../examples/MCAInvoiceSectionDimensionsListWithFilter.json | 2 +- .../stable/2025-03-01/examples/MCAInvoiceSectionQuery.json | 2 +- .../2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json | 2 +- .../2025-03-01/examples/ManagementGroupDimensionsList.json | 2 +- .../examples/ManagementGroupDimensionsListExpandAndTop.json | 2 +- .../examples/ManagementGroupDimensionsListWithFilter.json | 2 +- .../stable/2025-03-01/examples/ManagementGroupQuery.json | 2 +- .../2025-03-01/examples/ManagementGroupQueryGrouping.json | 2 +- 222 files changed, 222 insertions(+), 222 deletions(-) diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json index 122d125a8a84..d294e1d84d54 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "/providers/Microsoft.Billing/billingAccounts/100" + "scope": "providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json index 1779c2a131a2..de01e5018f55 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "/providers/Microsoft.Billing/billingAccounts/100" + "scope": "providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json index af9afe24ba79..974c36bbf34c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "/providers/Microsoft.Billing/billingAccounts/100" + "scope": "providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json index 695266d0cd07..673b2507a4ec 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountForecast.json @@ -58,7 +58,7 @@ }, "timeframe": "Custom" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json index b03d5e691dfe..95abb5802322 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQuery.json @@ -46,7 +46,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/70664866" + "scope": "providers/Microsoft.Billing/billingAccounts/70664866" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json index d5501fdfec44..8a60ea7ede90 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingAccountQueryGrouping.json @@ -21,7 +21,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/70664866" + "scope": "providers/Microsoft.Billing/billingAccounts/70664866" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json index 6a56a4f08214..d5fe67fbd5d3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileAlerts.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345-6789", "billingProfileId": "13579", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345-6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345-6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json index 5b9adf4e9682..fba5b66f290b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/BillingProfileForecast.json @@ -59,7 +59,7 @@ }, "timeframe": "Custom" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json index cb36abb6666b..43802106ddf8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json @@ -38,7 +38,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json index e1bc199c3cb1..d030f2ba6111 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json @@ -38,7 +38,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json index 35ca6d0d871c..529f09fac6ae 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json @@ -28,7 +28,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json index 2a75ea93796e..0bde1231be0c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json index b6e7a20dfe26..b7cc90c26ab1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json index 536c3acd7d50..4435cdfe6f0a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json @@ -29,7 +29,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json index 9b7eb5a078b3..2d86b6d7e5f0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json index 8f053c622920..32eb6fe7c10e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json index 71f2a6e01aa2..8c57381ff50e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json @@ -29,7 +29,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json index 21679c968663..515296bff9af 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json @@ -4,7 +4,7 @@ "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "KKKK-LLLL-MMM-NNN", "budgetName": "TestAlertRule", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json index 529728e56992..87d02eae3e99 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json @@ -3,7 +3,7 @@ "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json index df71b77eb6ae..90883764c7b9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/BillingAccountBudgetsList-EA.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json index 7a261bb0e50d..056e7f35fc06 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/DepartmentBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "departmentId": "789101", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456/departments/789101" + "scope": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json index bd807a0f87b4..d8a3e906c5b0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/EA/EnrollmentAccountBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "enrollmentAccountId": "473845", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845" + "scope": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json index aa650896ec18..1426cb98c39a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json @@ -3,7 +3,7 @@ "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json index a0d875a7202b..cd4ee6effff2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json index 2b4fd07eb225..83a789e315ce 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json @@ -4,7 +4,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json index a07c8e1dca5b..2ca71c58ae07 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/BillingProfileBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json index 1dc8a53b63c4..4ff91720b0b7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json @@ -4,7 +4,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "customerId": "000000-1111-2222-3333-444444444444", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json index e0f1f11cbaa6..f13f583235b1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/CustomerBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "customerId": "000000-1111-2222-3333-444444444444", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json index e0948d930f6c..d7faaa20e016 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/MCA/InvoiceSectionBudgetsList.json @@ -4,7 +4,7 @@ "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", "invoiceSectionId": "AAAA-BBBB-CCC-DDD", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json index 997d9694f4fd..246208304420 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentAlerts.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "departmentId": "123", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json index ced6247c2fef..8d7a11eb6a70 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json index d96a4f16c84c..57550a666d2c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json index d67bddfe2179..07b84367e200 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json index 465a67ce7413..b26f0e21cee1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentForecast.json @@ -59,7 +59,7 @@ }, "timeframe": "Custom" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json index bd587da8da7d..b91f04d9fb7f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQuery.json @@ -47,7 +47,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json index f04d48827dc8..b0ee35674c1e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DepartmentQueryGrouping.json @@ -22,7 +22,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json index d9162cc62370..edf3b1e16b5a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountAlerts.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json index 2270a5a18332..78fbe03f6f6a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json index 848846393f27..2b7fe144534b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json index 03a1787019b0..d3500d1eebbb 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json index c2307637f8dd..c739bf7f85c0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountForecast.json @@ -59,7 +59,7 @@ }, "timeframe": "Custom" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json index 65e445078bf6..91f011463326 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQuery.json @@ -47,7 +47,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json index e1efa0f97e36..5fe790a3dfbd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EnrollmentAccountQueryGrouping.json @@ -22,7 +22,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json index 8b2871060db6..18a4c7e40ade 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccount.json @@ -42,7 +42,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json index b5234f39eefc..f73c7a7f5bbd 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountCustom.json @@ -41,7 +41,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json index ccc8b5938ef5..54b0da11c7f6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountMonthly.json @@ -42,7 +42,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json index 28cc133ff15d..e46e98534f11 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountPricesheet.json @@ -42,7 +42,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json index 329464d8e566..a6168c245276 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationDetails.json @@ -42,7 +42,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json index 2bfafc42f194..f536a04b6411 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json @@ -55,7 +55,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json index d25144153625..f5bfdbd19e0f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByBillingAccountReservationTransactions.json @@ -41,7 +41,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json index a1b042ef77d6..a3772d0e8c20 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByDepartment.json @@ -43,7 +43,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json index 586ae0484938..cda44651df30 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByEnrollmentAccount.json @@ -43,7 +43,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json index 4bec3d8bc756..da7535f5aaa8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByManagementGroup.json @@ -42,7 +42,7 @@ } } }, - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json index 1068aa3bb1b6..68620fd7e88d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json index 6dffeb9cf9a4..37ed28910456 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json index fc4526f3a570..661c01691200 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json index 65bbf9b4a868..804ba311eed7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json index efadb557aff1..4bdf7b545b9f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json index b0a34c9b27ef..6c1531d1557f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json index 0db4460ba30e..70149fd4ad01 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json index 82aca549e8e2..996503810e27 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json index d13773259e06..12ddb952cc91 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json index f0b2a049009f..7a0f00b0baea 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByBillingAccountWithOptionalRequestBody.json @@ -9,7 +9,7 @@ "to": "2023-12-31T00:00:00.000Z" } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json index 6d1f0a02cfbc..157a354bbb41 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json index 75cc5321ac09..6594094184c2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json index 9f2523fafd3b..0759e67eb5d9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json index a1103ea37355..5dd3d6bef307 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json index 04ded942ac01..36a439baaf27 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json index 4c751c40c7fc..fa7195608b58 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json index bf457d97f6c6..47a5205c2d09 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json index a7680f28be2d..6885e697d359 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByBillingAccount.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json index 6c3c7d688048..782cb74eb6d2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByDepartment.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12", "departmentId": "1234", - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json index 058b2cbd7c9e..cbb6d8b37515 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByEnrollmentAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json index a7cdab787950..0553c672736e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByManagementGroup.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "managementGroupId": "TestMG", - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json index 2662d5666c23..696d017784ab 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json @@ -5,7 +5,7 @@ "billingPeriod": "202205", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345" + "scope": "providers/Microsoft.Billing/billingAccounts/12345" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json index c1604747946d..92d17f0512fb 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json @@ -5,7 +5,7 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json index f94f41ce6959..3b04e313d4f1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -5,7 +5,7 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json index 46f0160e1e44..aa85991500e3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByCustomerAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json index 7976811275d2..1bf8f5af711b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/providers/Microsoft.Billing/departments/12345" + "scope": "providers/Microsoft.Billing/departments/12345" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json index dc842fdab39a..45de492986f4 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/providers/Microsoft.Billing/enrollmentAccounts/1234" + "scope": "providers/Microsoft.Billing/enrollmentAccounts/1234" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json index 9eaaaf1220a8..a15e4195b84e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json @@ -5,7 +5,7 @@ "billingPeriod": "202008", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345" + "scope": "providers/Microsoft.Billing/billingAccounts/12345" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json index fea8f4df915b..10444fed51bf 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json @@ -5,7 +5,7 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json index 3b704280653b..08ff4ecf1f7c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -6,7 +6,7 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json index 736ec8c993d3..703cc6d3f3a6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportByCustomerAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json index 3a634b7427e9..0afd232f3c7d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionAlerts.json @@ -4,7 +4,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json index 4484978ef76c..d9b22b111bb2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/InvoiceSectionForecast.json @@ -60,7 +60,7 @@ }, "timeframe": "Custom" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json index a8e25a25ee83..120d93d89506 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json index 49ae52b54243..627dcfb2e214 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json index 055e5eda1d82..537fa5d9b565 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json index 90cad0367561..fe392f70d889 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQuery.json @@ -46,7 +46,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json index 09e89554a9c2..398f03d4ac81 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingAccountQueryGrouping.json @@ -21,7 +21,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json index d53cbb0cbb73..79489c4dc236 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json index 1522b40ba8f7..e1057e5c1b32 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json index 35dcc490e71b..1c33525244e7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json index 5c17680721c7..06b65795172a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQuery.json @@ -47,7 +47,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json index fff9492fe8f5..f8665fcb799b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCABillingProfileQueryGrouping.json @@ -22,7 +22,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json index bc704959837d..fcec34a4b793 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "5678", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json index fb987b6a3506..49c24b189f62 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "5678", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json index 1cf4cfa22c35..0f8a72cc4bf5 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "13579", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json index eb15d676934c..8c41f16f4073 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQuery.json @@ -47,7 +47,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json index 5d1758c60766..323958965b5a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCACustomerQueryGrouping.json @@ -22,7 +22,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json index e0f4357d8dda..3c8a901cc668 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsList.json @@ -4,7 +4,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json index 154981e58ad3..5211f494b0e8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListExpandAndTop.json @@ -6,7 +6,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json index 8465b9cfaf3f..b9c7e43ee039 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionDimensionsListWithFilter.json @@ -7,7 +7,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json index 306965a26ef0..bc001067ccf3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQuery.json @@ -48,7 +48,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json index d4643d9e4740..f4337cd3786e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/MCAInvoiceSectionQueryGrouping.json @@ -23,7 +23,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json index d582b46b7a83..a939f3e82006 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json index 70f4e29273d2..4f9edc2c24e0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json index 8d7dd3ceb4b6..922052bfdd30 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json index 12bfc9c24b18..47b38a83c8da 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQuery.json @@ -46,7 +46,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json index 13cc4495ad15..900ed7fc8094 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ManagementGroupQueryGrouping.json @@ -21,7 +21,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json index 122d125a8a84..d294e1d84d54 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "/providers/Microsoft.Billing/billingAccounts/100" + "scope": "providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json index 1779c2a131a2..de01e5018f55 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "/providers/Microsoft.Billing/billingAccounts/100" + "scope": "providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json index af9afe24ba79..974c36bbf34c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "100", - "scope": "/providers/Microsoft.Billing/billingAccounts/100" + "scope": "providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json index 695266d0cd07..673b2507a4ec 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountForecast.json @@ -58,7 +58,7 @@ }, "timeframe": "Custom" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json index b03d5e691dfe..95abb5802322 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQuery.json @@ -46,7 +46,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/70664866" + "scope": "providers/Microsoft.Billing/billingAccounts/70664866" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json index d5501fdfec44..8a60ea7ede90 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingAccountQueryGrouping.json @@ -21,7 +21,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/70664866" + "scope": "providers/Microsoft.Billing/billingAccounts/70664866" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json index 6a56a4f08214..d5fe67fbd5d3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345-6789", "billingProfileId": "13579", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345-6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345-6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json index 5b9adf4e9682..fba5b66f290b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileForecast.json @@ -59,7 +59,7 @@ }, "timeframe": "Custom" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json index cb36abb6666b..43802106ddf8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservationIdFilter.json @@ -38,7 +38,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json index e1bc199c3cb1..d030f2ba6111 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json @@ -38,7 +38,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json index 35ca6d0d871c..529f09fac6ae 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/EA/BillingAccountEA-AlertRule.json @@ -28,7 +28,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json index 2a75ea93796e..0bde1231be0c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservationIdFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json index b6e7a20dfe26..b7cc90c26ab1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule-ReservedResourceTypeFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json index 536c3acd7d50..4435cdfe6f0a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/BillingProfile-AlertRule.json @@ -29,7 +29,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json index 9b7eb5a078b3..2d86b6d7e5f0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservationIdFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json index 8f053c622920..32eb6fe7c10e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json @@ -39,7 +39,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json index 71f2a6e01aa2..8c57381ff50e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule.json @@ -29,7 +29,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json index 21679c968663..515296bff9af 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/ReservationUtilization/Get-ReservationUtilization-AlertRule.json @@ -4,7 +4,7 @@ "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "KKKK-LLLL-MMM-NNN", "budgetName": "TestAlertRule", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/KKKK-LLLL-MMM-NNN" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json index 529728e56992..87d02eae3e99 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA-CategoryTypeFilter.json @@ -3,7 +3,7 @@ "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json index df71b77eb6ae..90883764c7b9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/BillingAccountBudgetsList-EA.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json index 7a261bb0e50d..056e7f35fc06 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/DepartmentBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "departmentId": "789101", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456/departments/789101" + "scope": "providers/Microsoft.Billing/billingAccounts/123456/departments/789101" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json index bd807a0f87b4..d8a3e906c5b0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/EA/EnrollmentAccountBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "enrollmentAccountId": "473845", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845" + "scope": "providers/Microsoft.Billing/billingAccounts/123456/enrollmentAccounts/473845" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json index aa650896ec18..1426cb98c39a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA-CategoryTypeFilter.json @@ -3,7 +3,7 @@ "$filter": "properties/category eq 'ReservationUtilization'", "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json index a0d875a7202b..cd4ee6effff2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingAccountBudgetsList-MCA.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json index 2b4fd07eb225..83a789e315ce 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList-CategoryTypeFilter.json @@ -4,7 +4,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json index a07c8e1dca5b..2ca71c58ae07 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/BillingProfileBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json index 1dc8a53b63c4..4ff91720b0b7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList-CategoryTypeFilter.json @@ -4,7 +4,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "customerId": "000000-1111-2222-3333-444444444444", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json index e0f1f11cbaa6..f13f583235b1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/CustomerBudgetsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "customerId": "000000-1111-2222-3333-444444444444", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/customers/000000-1111-2222-3333-444444444444" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json index e0948d930f6c..d7faaa20e016 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/MCA/InvoiceSectionBudgetsList.json @@ -4,7 +4,7 @@ "billingAccountId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01", "billingProfileId": "MYDEVTESTBP", "invoiceSectionId": "AAAA-BBBB-CCC-DDD", - "scope": "/providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD" + "scope": "providers/Microsoft.Billing/billingAccounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee:ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj_2023-04-01/billingProfiles/MYDEVTESTBP/invoiceSections/AAAA-BBBB-CCC-DDD" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json index 997d9694f4fd..246208304420 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentAlerts.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "departmentId": "123", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json index ced6247c2fef..8d7a11eb6a70 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json index d96a4f16c84c..57550a666d2c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json index d67bddfe2179..07b84367e200 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "departmentId": "123", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json index 465a67ce7413..b26f0e21cee1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentForecast.json @@ -59,7 +59,7 @@ }, "timeframe": "Custom" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json index bd587da8da7d..b91f04d9fb7f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQuery.json @@ -47,7 +47,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json index f04d48827dc8..b0ee35674c1e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DepartmentQueryGrouping.json @@ -22,7 +22,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json index d9162cc62370..edf3b1e16b5a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountAlerts.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json index 2270a5a18332..78fbe03f6f6a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json index 848846393f27..2b7fe144534b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json index 03a1787019b0..d3500d1eebbb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json index c2307637f8dd..c739bf7f85c0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountForecast.json @@ -59,7 +59,7 @@ }, "timeframe": "Custom" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json index 65e445078bf6..91f011463326 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQuery.json @@ -47,7 +47,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json index e1efa0f97e36..5fe790a3dfbd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EnrollmentAccountQueryGrouping.json @@ -22,7 +22,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json index 8b2871060db6..18a4c7e40ade 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccount.json @@ -42,7 +42,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json index b5234f39eefc..f73c7a7f5bbd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json @@ -41,7 +41,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json index ccc8b5938ef5..54b0da11c7f6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json @@ -42,7 +42,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json index 28cc133ff15d..e46e98534f11 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountPricesheet.json @@ -42,7 +42,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json index 329464d8e566..a6168c245276 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationDetails.json @@ -42,7 +42,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json index 2bfafc42f194..f536a04b6411 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationRecommendation.json @@ -55,7 +55,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json index d25144153625..f5bfdbd19e0f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountReservationTransactions.json @@ -41,7 +41,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json index a1b042ef77d6..a3772d0e8c20 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByDepartment.json @@ -43,7 +43,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json index 586ae0484938..cda44651df30 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json @@ -43,7 +43,7 @@ } } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json index 4bec3d8bc756..da7535f5aaa8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByManagementGroup.json @@ -42,7 +42,7 @@ } } }, - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json index 1068aa3bb1b6..68620fd7e88d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json index 6dffeb9cf9a4..37ed28910456 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json index fc4526f3a570..661c01691200 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json index 65bbf9b4a868..804ba311eed7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json index efadb557aff1..4bdf7b545b9f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json index b0a34c9b27ef..6c1531d1557f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json index 0db4460ba30e..70149fd4ad01 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json index 82aca549e8e2..996503810e27 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json index d13773259e06..12ddb952cc91 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json index f0b2a049009f..7a0f00b0baea 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByBillingAccountWithOptionalRequestBody.json @@ -9,7 +9,7 @@ "to": "2023-12-31T00:00:00.000Z" } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json index 6d1f0a02cfbc..157a354bbb41 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json index 75cc5321ac09..6594094184c2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json index 9f2523fafd3b..0759e67eb5d9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json index a1103ea37355..5dd3d6bef307 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json index 04ded942ac01..36a439baaf27 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "12", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json index 4c751c40c7fc..fa7195608b58 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json index bf457d97f6c6..47a5205c2d09 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByManagementGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "managementGroupId": "TestMG", - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json index a7680f28be2d..6885e697d359 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByBillingAccount.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", - "scope": "/providers/Microsoft.Billing/billingAccounts/123456" + "scope": "providers/Microsoft.Billing/billingAccounts/123456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json index 6c3c7d688048..782cb74eb6d2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByDepartment.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12", "departmentId": "1234", - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json index 058b2cbd7c9e..cbb6d8b37515 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByEnrollmentAccount.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json index a7cdab787950..0553c672736e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByManagementGroup.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "managementGroupId": "TestMG", - "scope": "/providers/Microsoft.Management/managementGroups/TestMG" + "scope": "providers/Microsoft.Management/managementGroups/TestMG" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json index 2662d5666c23..696d017784ab 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json @@ -5,7 +5,7 @@ "billingPeriod": "202205", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345" + "scope": "providers/Microsoft.Billing/billingAccounts/12345" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json index c1604747946d..92d17f0512fb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json @@ -5,7 +5,7 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json index f94f41ce6959..3b04e313d4f1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -5,7 +5,7 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json index 46f0160e1e44..aa85991500e3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json index 7976811275d2..1bf8f5af711b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/providers/Microsoft.Billing/departments/12345" + "scope": "providers/Microsoft.Billing/departments/12345" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json index dc842fdab39a..45de492986f4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/providers/Microsoft.Billing/enrollmentAccounts/1234" + "scope": "providers/Microsoft.Billing/enrollmentAccounts/1234" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json index 9eaaaf1220a8..a15e4195b84e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingAccountLegacyAndBillingPeriod.json @@ -5,7 +5,7 @@ "billingPeriod": "202008", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345" + "scope": "providers/Microsoft.Billing/billingAccounts/12345" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json index fea8f4df915b..10444fed51bf 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceId.json @@ -5,7 +5,7 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json index 3b704280653b..08ff4ecf1f7c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -6,7 +6,7 @@ "invoiceId": "M1234567", "metric": "ActualCost" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json index 736ec8c993d3..703cc6d3f3a6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportByCustomerAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json index 3a634b7427e9..0afd232f3c7d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionAlerts.json @@ -4,7 +4,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json index 4484978ef76c..d9b22b111bb2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/InvoiceSectionForecast.json @@ -60,7 +60,7 @@ }, "timeframe": "Custom" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json index a8e25a25ee83..120d93d89506 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json index 49ae52b54243..627dcfb2e214 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json index 055e5eda1d82..537fa5d9b565 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "billingAccountId": "12345:6789", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json index 90cad0367561..fe392f70d889 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQuery.json @@ -46,7 +46,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json index 09e89554a9c2..398f03d4ac81 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingAccountQueryGrouping.json @@ -21,7 +21,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json index d53cbb0cbb73..79489c4dc236 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json index 1522b40ba8f7..e1057e5c1b32 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json index 35dcc490e71b..1c33525244e7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "billingProfileId": "13579", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json index 5c17680721c7..06b65795172a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQuery.json @@ -47,7 +47,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json index fff9492fe8f5..f8665fcb799b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCABillingProfileQueryGrouping.json @@ -22,7 +22,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json index bc704959837d..fcec34a4b793 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "5678", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json index fb987b6a3506..49c24b189f62 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "5678", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json index 1cf4cfa22c35..0f8a72cc4bf5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "api-version": "2025-03-01", "billingAccountId": "12345:6789", "customerId": "13579", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json index eb15d676934c..8c41f16f4073 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQuery.json @@ -47,7 +47,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json index 5d1758c60766..323958965b5a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCACustomerQueryGrouping.json @@ -22,7 +22,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json index e0f4357d8dda..3c8a901cc668 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsList.json @@ -4,7 +4,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json index 154981e58ad3..5211f494b0e8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json @@ -6,7 +6,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json index 8465b9cfaf3f..b9c7e43ee039 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json @@ -7,7 +7,7 @@ "billingAccountId": "12345:6789", "billingProfileId": "13579", "invoiceSectionId": "9876", - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json index 306965a26ef0..bc001067ccf3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQuery.json @@ -48,7 +48,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json index d4643d9e4740..f4337cd3786e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/MCAInvoiceSectionQueryGrouping.json @@ -23,7 +23,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" + "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json index d582b46b7a83..a939f3e82006 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json index 70f4e29273d2..4f9edc2c24e0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json index 8d7dd3ceb4b6..922052bfdd30 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$top": 5, "api-version": "2025-03-01", "managementGroupId": "MyMgId", - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json index 12bfc9c24b18..47b38a83c8da 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQuery.json @@ -46,7 +46,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json index 13cc4495ad15..900ed7fc8094 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ManagementGroupQueryGrouping.json @@ -21,7 +21,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { From 0b7e4739390878f718b840db689049b8c841ba3c Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 12 Sep 2025 14:17:02 +0800 Subject: [PATCH 08/45] update example files --- .../Cost/CreateOrUpdate-Cost-Subscription-Budget.json | 2 +- .../examples/2025-03-01/Budgets/Delete/DeleteBudget.json | 2 +- .../2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json | 2 +- .../Budgets/List/RBAC/ManagementGroupBudgetsList.json | 2 +- .../Budgets/List/RBAC/ResourceGroupBudgetsList.json | 2 +- .../Budgets/List/RBAC/SubscriptionBudgetsList.json | 2 +- .../CostDetailsOperationResultsBySubscriptionScope.json | 2 +- .../examples/2025-03-01/DismissResourceGroupAlerts.json | 2 +- .../examples/2025-03-01/DismissSubscriptionAlerts.json | 2 +- .../2025-03-01/ExportCreateOrUpdateByResourceGroup.json | 2 +- .../2025-03-01/ExportCreateOrUpdateBySubscription.json | 2 +- .../examples/2025-03-01/ExportDeleteByResourceGroup.json | 2 +- .../examples/2025-03-01/ExportDeleteBySubscription.json | 2 +- .../examples/2025-03-01/ExportGetByResourceGroup.json | 2 +- .../examples/2025-03-01/ExportGetBySubscription.json | 2 +- .../examples/2025-03-01/ExportRunByResourceGroup.json | 2 +- .../examples/2025-03-01/ExportRunBySubscription.json | 2 +- .../2025-03-01/ExportRunHistoryGetByResourceGroup.json | 2 +- .../2025-03-01/ExportRunHistoryGetBySubscription.json | 2 +- .../examples/2025-03-01/ExportsGetByResourceGroup.json | 2 +- .../examples/2025-03-01/ExportsGetBySubscription.json | 2 +- ...enerateCostDetailsReportBySubscriptionAndTimePeriod.json | 2 +- ...nerateDetailedCostReportBySubscriptionAndTimePeriod.json | 2 +- ...tailedCostReportOperationResultsBySubscriptionScope.json | 2 +- ...etailedCostReportOperationStatusBySubscriptionScope.json | 2 +- .../examples/2025-03-01/ResourceGroupAlerts.json | 2 +- .../examples/2025-03-01/ResourceGroupDimensionsList.json | 2 +- .../examples/2025-03-01/ResourceGroupForecast.json | 2 +- .../examples/2025-03-01/ResourceGroupQuery.json | 2 +- .../examples/2025-03-01/ResourceGroupQueryGrouping.json | 2 +- .../examples/2025-03-01/SingleResourceGroupAlert.json | 2 +- .../examples/2025-03-01/SingleSubscriptionAlert.json | 2 +- .../examples/2025-03-01/SubscriptionAlerts.json | 2 +- .../examples/2025-03-01/SubscriptionDimensionsList.json | 2 +- .../examples/2025-03-01/SubscriptionForecast.json | 2 +- .../examples/2025-03-01/SubscriptionQuery.json | 2 +- .../examples/2025-03-01/SubscriptionQueryGrouping.json | 2 +- .../examples/2025-03-01/ViewByResourceGroup.json | 4 ++-- .../2025-03-01/ViewCreateOrUpdateByResourceGroup.json | 6 +++--- .../examples/2025-03-01/ViewDeleteByResourceGroup.json | 2 +- .../examples/2025-03-01/ViewListByResourceGroup.json | 6 +++--- .../checkNameAvailability-shared-scheduledAction.json | 2 +- .../scheduledAction-createOrUpdate-shared.json | 6 +++--- .../scheduledActions/scheduledAction-delete-shared.json | 2 +- .../scheduledActions/scheduledAction-get-shared.json | 4 ++-- .../scheduledAction-insightAlert-createOrUpdate-shared.json | 6 +++--- .../scheduledActions/scheduledAction-sendNow-shared.json | 2 +- .../scheduledActions/scheduledActions-list-shared.json | 6 +++--- .../scheduledActions-listWithFilter-shared.json | 6 +++--- .../examples/2025-03-01/setting-delete.json | 2 +- .../examples/2025-03-01/setting-get.json | 2 +- .../examples/2025-03-01/settings-createOrUpdate.json | 2 +- .../examples/2025-03-01/settingsList.json | 2 +- .../Cost/CreateOrUpdate-Cost-Subscription-Budget.json | 2 +- .../2025-03-01/examples/Budgets/Delete/DeleteBudget.json | 2 +- .../examples/Budgets/Get/Cost/Get-Cost-Budget.json | 2 +- .../Budgets/List/RBAC/ManagementGroupBudgetsList.json | 2 +- .../Budgets/List/RBAC/ResourceGroupBudgetsList.json | 2 +- .../examples/Budgets/List/RBAC/SubscriptionBudgetsList.json | 2 +- .../CostDetailsOperationResultsBySubscriptionScope.json | 2 +- .../2025-03-01/examples/DismissResourceGroupAlerts.json | 2 +- .../2025-03-01/examples/DismissSubscriptionAlerts.json | 2 +- .../examples/ExportCreateOrUpdateByResourceGroup.json | 2 +- .../examples/ExportCreateOrUpdateBySubscription.json | 2 +- .../2025-03-01/examples/ExportDeleteByResourceGroup.json | 2 +- .../2025-03-01/examples/ExportDeleteBySubscription.json | 2 +- .../2025-03-01/examples/ExportGetByResourceGroup.json | 2 +- .../stable/2025-03-01/examples/ExportGetBySubscription.json | 2 +- .../2025-03-01/examples/ExportRunByResourceGroup.json | 2 +- .../stable/2025-03-01/examples/ExportRunBySubscription.json | 2 +- .../examples/ExportRunHistoryGetByResourceGroup.json | 2 +- .../examples/ExportRunHistoryGetBySubscription.json | 2 +- .../2025-03-01/examples/ExportsGetByResourceGroup.json | 2 +- .../2025-03-01/examples/ExportsGetBySubscription.json | 2 +- ...enerateCostDetailsReportBySubscriptionAndTimePeriod.json | 2 +- ...nerateDetailedCostReportBySubscriptionAndTimePeriod.json | 2 +- ...tailedCostReportOperationResultsBySubscriptionScope.json | 2 +- ...etailedCostReportOperationStatusBySubscriptionScope.json | 2 +- .../stable/2025-03-01/examples/ResourceGroupAlerts.json | 2 +- .../2025-03-01/examples/ResourceGroupDimensionsList.json | 2 +- .../stable/2025-03-01/examples/ResourceGroupForecast.json | 2 +- .../stable/2025-03-01/examples/ResourceGroupQuery.json | 2 +- .../2025-03-01/examples/ResourceGroupQueryGrouping.json | 2 +- .../2025-03-01/examples/SingleResourceGroupAlert.json | 2 +- .../stable/2025-03-01/examples/SingleSubscriptionAlert.json | 2 +- .../stable/2025-03-01/examples/SubscriptionAlerts.json | 2 +- .../2025-03-01/examples/SubscriptionDimensionsList.json | 2 +- .../stable/2025-03-01/examples/SubscriptionForecast.json | 2 +- .../stable/2025-03-01/examples/SubscriptionQuery.json | 2 +- .../2025-03-01/examples/SubscriptionQueryGrouping.json | 2 +- .../stable/2025-03-01/examples/ViewByResourceGroup.json | 4 ++-- .../examples/ViewCreateOrUpdateByResourceGroup.json | 6 +++--- .../2025-03-01/examples/ViewDeleteByResourceGroup.json | 2 +- .../stable/2025-03-01/examples/ViewListByResourceGroup.json | 6 +++--- .../checkNameAvailability-shared-scheduledAction.json | 2 +- .../scheduledAction-createOrUpdate-shared.json | 6 +++--- .../scheduledActions/scheduledAction-delete-shared.json | 2 +- .../scheduledActions/scheduledAction-get-shared.json | 4 ++-- .../scheduledAction-insightAlert-createOrUpdate-shared.json | 6 +++--- .../scheduledActions/scheduledAction-sendNow-shared.json | 2 +- .../scheduledActions/scheduledActions-list-shared.json | 6 +++--- .../scheduledActions-listWithFilter-shared.json | 6 +++--- .../stable/2025-03-01/examples/setting-delete.json | 2 +- .../stable/2025-03-01/examples/setting-get.json | 2 +- .../stable/2025-03-01/examples/settings-createOrUpdate.json | 2 +- .../stable/2025-03-01/examples/settingsList.json | 2 +- 106 files changed, 134 insertions(+), 134 deletions(-) diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json index 4159aa385acc..dcd0e65bff44 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json @@ -69,7 +69,7 @@ } }, "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json index a524600826e0..1b47afe55ec4 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Delete/DeleteBudget.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "budgetName": "TestBudget", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json index 20308530f867..7c4e859c698d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/Get/Cost/Get-Cost-Budget.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "budgetName": "TestBudget", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json index 77cdc6ce22a6..760d08da8d34 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ManagementGroupBudgetsList.json @@ -12,7 +12,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "Microsoft.Management/managementGroups/MYDEVTESTMG/Microsoft.CostManagement/budgets/TestBudget", + "id": "/providers/Microsoft.Management/managementGroups/MYDEVTESTMG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 10000, "category": "Cost", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json index 166660b4e40b..93661c384e36 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/ResourceGroupBudgetsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json index 9ece24a50d35..fd4b7da4b177 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/Budgets/List/RBAC/SubscriptionBudgetsList.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json index 1724ca662ca6..04cecf827f37 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/CostDetailsOperationResultsBySubscriptionScope.json @@ -2,7 +2,7 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json index 0925556abb80..b40297584616 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissResourceGroupAlerts.json @@ -8,7 +8,7 @@ } }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json index e7e07ec2ca5e..1bd02f64c98b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/DismissSubscriptionAlerts.json @@ -7,7 +7,7 @@ "status": "Dismissed" } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json index c42a7fdfb34f..4e251c440f6e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateByResourceGroup.json @@ -42,7 +42,7 @@ } }, "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json index 29eefcc6aad6..6994ba94a112 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportCreateOrUpdateBySubscription.json @@ -41,7 +41,7 @@ } } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json index 5e9672c60e1a..6a825e1a6b9d 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json index c97c74a61abb..2eac873a6ee6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportDeleteBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json index 81c71a32bdf5..16bcdc3e1b4b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json index 8cede3cf7ee9..09b8f355512f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportGetBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json index 124c3067802f..325bd21eef83 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json index 0644256505cb..e0e5a286f772 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json index 92043cc7c498..13b58f3461d2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json index dac3df9d2871..3a6b11e8d7a3 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportRunHistoryGetBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json index 75df187a443f..df4b1d5942c5 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json index 58d80458b60f..96aac6905443 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ExportsGetBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json index bc2d5d158519..3f454ffc3319 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json index 9656d0d862b6..9122133cb07b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json index a194d3384e01..a4f2b416030e 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json @@ -2,7 +2,7 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json index a2a90c648428..5445598ea66a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json @@ -2,7 +2,7 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json index 1e9eac128385..bc87167a4c52 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupAlerts.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json index af5be415e39c..f3429a873503 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupDimensionsList.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "resourceGroupName": "system.orlando", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json index db62837f6627..e14c8a8dfe61 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupForecast.json @@ -58,7 +58,7 @@ "timeframe": "Custom" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json index d81004498b27..0afe919888f0 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQuery.json @@ -46,7 +46,7 @@ "timeframe": "MonthToDate" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json index 3f7e1f4d3d68..c7e3a47659d1 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ResourceGroupQueryGrouping.json @@ -21,7 +21,7 @@ "timeframe": "TheLastMonth" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json index e2b1238f4f80..b54eb542ddf7 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleResourceGroupAlert.json @@ -3,7 +3,7 @@ "alertId": "22222222-2222-2222-2222-222222222222", "api-version": "2025-03-01", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json index 07510bf09e49..2980a69ecb27 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SingleSubscriptionAlert.json @@ -2,7 +2,7 @@ "parameters": { "alertId": "22222222-2222-2222-2222-222222222222", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json index f0fa12c3853f..efa696816277 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionAlerts.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json index 06db8ef750a9..766cce45284f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionDimensionsList.json @@ -3,7 +3,7 @@ "$expand": "properties/data", "$top": 5, "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json index 3cb617cc6ef7..2f8717565a64 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionForecast.json @@ -57,7 +57,7 @@ }, "timeframe": "Custom" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json index a974c0e57953..510b4ccacfe6 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQuery.json @@ -45,7 +45,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json index e8003bbfda15..6b3672181d99 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/SubscriptionQueryGrouping.json @@ -20,7 +20,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json index 8abf2ad8f89b..a29498f439cc 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "swaggerExample" }, "responses": { @@ -62,7 +62,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" } } } diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json index 011afd4eff19..f4a025cb74f8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewCreateOrUpdateByResourceGroup.json @@ -56,7 +56,7 @@ } } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "swaggerExample" }, "responses": { @@ -117,7 +117,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" } } }, @@ -178,7 +178,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" } } } diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json index 03a18438f7e9..d42216abe104 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewDeleteByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "TestView" }, "responses": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json index 1f4390872cb1..083410a792a2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/ViewListByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" }, "responses": { "200": { @@ -14,7 +14,7 @@ "eTag": "\"1d4ff9fe66f1d10\"", "properties": { "displayName": "swagger Example", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "query": { "type": "Usage", "timeframe": "MonthToDate", @@ -73,7 +73,7 @@ "eTag": "\"1d4ffa5a9c2430c\"", "properties": { "displayName": "swagger Example 2", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "query": { "type": "Usage", "timeframe": "LastMonthToDate", diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json index 1afe3db54f44..0142bce2aa83 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/checkNameAvailability-shared-scheduledAction.json @@ -5,7 +5,7 @@ "name": "testName", "type": "Microsoft.CostManagement/ScheduledActions" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json index f4eb19de2681..8907ec730eb2 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-createOrUpdate-shared.json @@ -36,7 +36,7 @@ "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -68,7 +68,7 @@ "Third" ] }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, @@ -116,7 +116,7 @@ "Third" ] }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json index c3d8ef1b80bd..b58965e6b22f 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-delete-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json index b8ecc11b0c49..f5247adf2375 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-get-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -34,7 +34,7 @@ "Third" ] }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json index ac1992daa5d9..f39baba5ab1c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json @@ -23,7 +23,7 @@ "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -50,7 +50,7 @@ "frequency": "Daily", "startDate": "2020-06-19T22:21:51.1287144Z" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, @@ -88,7 +88,7 @@ "frequency": "Daily", "startDate": "2020-06-19T22:21:51.1287144Z" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json index 4a8055b5a647..0bf9ac7dd58b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledAction-sendNow-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {} diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json index 3ddcfd5915c7..33616467254a 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-list-shared.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -23,7 +23,7 @@ }, "properties": { "displayName": "Monthly Cost By Resource", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { @@ -64,7 +64,7 @@ }, "properties": { "displayName": "Daily Cost By Resource", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Disabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json index a0fb87c0843c..e13be2c9ffa8 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/scheduledActions/scheduledActions-listWithFilter-shared.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "$filter": "properties/viewId eq '/providers/Microsoft.CostManagement/views/swaggerExample'" }, "responses": { @@ -24,7 +24,7 @@ }, "properties": { "displayName": "Monthly Cost By Resource", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { @@ -65,7 +65,7 @@ }, "properties": { "displayName": "Daily Cost By Resource", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Disabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json index 14f7d7e08549..58ed1b269af9 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-delete.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json index 92764b91db46..e4cea79dd5fe 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/setting-get.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json index cb37f73c2de1..e2ed25e1f11b 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settings-createOrUpdate.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "setting": { "kind": "taginheritance", "properties": { diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json index 79b353a49ab4..f59ce3fd2377 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/settingsList.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json index 4159aa385acc..dcd0e65bff44 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/CreateOrUpdate/Cost/CreateOrUpdate-Cost-Subscription-Budget.json @@ -69,7 +69,7 @@ } }, "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json index a524600826e0..1b47afe55ec4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Delete/DeleteBudget.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "budgetName": "TestBudget", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json index 20308530f867..7c4e859c698d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/Get/Cost/Get-Cost-Budget.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "budgetName": "TestBudget", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json index 77cdc6ce22a6..760d08da8d34 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ManagementGroupBudgetsList.json @@ -12,7 +12,7 @@ "name": "TestBudget", "type": "Microsoft.CostManagement/budgets", "eTag": "\"1d34d012214157f\"", - "id": "Microsoft.Management/managementGroups/MYDEVTESTMG/Microsoft.CostManagement/budgets/TestBudget", + "id": "/providers/Microsoft.Management/managementGroups/MYDEVTESTMG/providers/Microsoft.CostManagement/budgets/TestBudget", "properties": { "amount": 10000, "category": "Cost", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json index 166660b4e40b..93661c384e36 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/ResourceGroupBudgetsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json index 9ece24a50d35..fd4b7da4b177 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/Budgets/List/RBAC/SubscriptionBudgetsList.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json index 1724ca662ca6..04cecf827f37 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/CostDetailsOperationResultsBySubscriptionScope.json @@ -2,7 +2,7 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json index 0925556abb80..b40297584616 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissResourceGroupAlerts.json @@ -8,7 +8,7 @@ } }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json index e7e07ec2ca5e..1bd02f64c98b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/DismissSubscriptionAlerts.json @@ -7,7 +7,7 @@ "status": "Dismissed" } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json index c42a7fdfb34f..4e251c440f6e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByResourceGroup.json @@ -42,7 +42,7 @@ } }, "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json index 29eefcc6aad6..6994ba94a112 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateBySubscription.json @@ -41,7 +41,7 @@ } } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json index 5e9672c60e1a..6a825e1a6b9d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json index c97c74a61abb..2eac873a6ee6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportDeleteBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json index 81c71a32bdf5..16bcdc3e1b4b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json index 8cede3cf7ee9..09b8f355512f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportGetBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json index 124c3067802f..325bd21eef83 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json index 0644256505cb..e0e5a286f772 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json index 92043cc7c498..13b58f3461d2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetByResourceGroup.json @@ -3,7 +3,7 @@ "api-version": "2025-03-01", "exportName": "TestExport", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json index dac3df9d2871..3a6b11e8d7a3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportRunHistoryGetBySubscription.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "exportName": "TestExport", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json index 75df187a443f..df4b1d5942c5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json index 58d80458b60f..96aac6905443 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportsGetBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json index bc2d5d158519..3f454ffc3319 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json index 9656d0d862b6..9122133cb07b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportBySubscriptionAndTimePeriod.json @@ -8,7 +8,7 @@ "start": "2020-03-01" } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json index a194d3384e01..a4f2b416030e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json @@ -2,7 +2,7 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json index a2a90c648428..5445598ea66a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json @@ -2,7 +2,7 @@ "parameters": { "operationId": "00000000-0000-0000-0000-000000000000", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json index 1e9eac128385..bc87167a4c52 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupAlerts.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2025-03-01", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json index af5be415e39c..f3429a873503 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupDimensionsList.json @@ -4,7 +4,7 @@ "$top": 5, "api-version": "2025-03-01", "resourceGroupName": "system.orlando", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json index db62837f6627..e14c8a8dfe61 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupForecast.json @@ -58,7 +58,7 @@ "timeframe": "Custom" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json index d81004498b27..0afe919888f0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQuery.json @@ -46,7 +46,7 @@ "timeframe": "MonthToDate" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json index 3f7e1f4d3d68..c7e3a47659d1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ResourceGroupQueryGrouping.json @@ -21,7 +21,7 @@ "timeframe": "TheLastMonth" }, "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json index e2b1238f4f80..b54eb542ddf7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleResourceGroupAlert.json @@ -3,7 +3,7 @@ "alertId": "22222222-2222-2222-2222-222222222222", "api-version": "2025-03-01", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json index 07510bf09e49..2980a69ecb27 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SingleSubscriptionAlert.json @@ -2,7 +2,7 @@ "parameters": { "alertId": "22222222-2222-2222-2222-222222222222", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json index f0fa12c3853f..efa696816277 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionAlerts.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json index 06db8ef750a9..766cce45284f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionDimensionsList.json @@ -3,7 +3,7 @@ "$expand": "properties/data", "$top": 5, "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json index 3cb617cc6ef7..2f8717565a64 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionForecast.json @@ -57,7 +57,7 @@ }, "timeframe": "Custom" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json index a974c0e57953..510b4ccacfe6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQuery.json @@ -45,7 +45,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json index e8003bbfda15..6b3672181d99 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/SubscriptionQueryGrouping.json @@ -20,7 +20,7 @@ }, "timeframe": "TheLastMonth" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json index 8abf2ad8f89b..a29498f439cc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "swaggerExample" }, "responses": { @@ -62,7 +62,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" } } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json index 011afd4eff19..f4a025cb74f8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewCreateOrUpdateByResourceGroup.json @@ -56,7 +56,7 @@ } } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "swaggerExample" }, "responses": { @@ -117,7 +117,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" } } }, @@ -178,7 +178,7 @@ }, "timeframe": "MonthToDate" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" } } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json index 03a18438f7e9..d42216abe104 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewDeleteByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "viewName": "TestView" }, "responses": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json index 1f4390872cb1..083410a792a2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ViewListByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" }, "responses": { "200": { @@ -14,7 +14,7 @@ "eTag": "\"1d4ff9fe66f1d10\"", "properties": { "displayName": "swagger Example", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "query": { "type": "Usage", "timeframe": "MonthToDate", @@ -73,7 +73,7 @@ "eTag": "\"1d4ffa5a9c2430c\"", "properties": { "displayName": "swagger Example 2", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", "query": { "type": "Usage", "timeframe": "LastMonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json index 1afe3db54f44..0142bce2aa83 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json @@ -5,7 +5,7 @@ "name": "testName", "type": "Microsoft.CostManagement/ScheduledActions" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json index f4eb19de2681..8907ec730eb2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json @@ -36,7 +36,7 @@ "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -68,7 +68,7 @@ "Third" ] }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, @@ -116,7 +116,7 @@ "Third" ] }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json index c3d8ef1b80bd..b58965e6b22f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-delete-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json index b8ecc11b0c49..f5247adf2375 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-get-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -34,7 +34,7 @@ "Third" ] }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json index ac1992daa5d9..f39baba5ab1c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json @@ -23,7 +23,7 @@ "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" } }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -50,7 +50,7 @@ "frequency": "Daily", "startDate": "2020-06-19T22:21:51.1287144Z" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, @@ -88,7 +88,7 @@ "frequency": "Daily", "startDate": "2020-06-19T22:21:51.1287144Z" }, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample" }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json index 4a8055b5a647..0bf9ac7dd58b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledAction-sendNow-shared.json @@ -2,7 +2,7 @@ "parameters": { "name": "monthlyCostByResource", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json index 3ddcfd5915c7..33616467254a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-list-shared.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -23,7 +23,7 @@ }, "properties": { "displayName": "Monthly Cost By Resource", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { @@ -64,7 +64,7 @@ }, "properties": { "displayName": "Daily Cost By Resource", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Disabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json index a0fb87c0843c..e13be2c9ffa8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/scheduledActions/scheduledActions-listWithFilter-shared.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "$filter": "properties/viewId eq '/providers/Microsoft.CostManagement/views/swaggerExample'" }, "responses": { @@ -24,7 +24,7 @@ }, "properties": { "displayName": "Monthly Cost By Resource", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Enabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { @@ -65,7 +65,7 @@ }, "properties": { "displayName": "Daily Cost By Resource", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "status": "Disabled", "viewId": "/providers/Microsoft.CostManagement/views/swaggerExample", "schedule": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json index 14f7d7e08549..58ed1b269af9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-delete.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json index 92764b91db46..e4cea79dd5fe 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/setting-get.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json index cb37f73c2de1..e2ed25e1f11b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settings-createOrUpdate.json @@ -2,7 +2,7 @@ "parameters": { "type": "taginheritance", "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "setting": { "kind": "taginheritance", "properties": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json index 79b353a49ab4..f59ce3fd2377 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/settingsList.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2025-03-01", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { From 706792f17df0d4f896410afb35ef0b98e059ed8b Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 12 Sep 2025 15:00:50 +0800 Subject: [PATCH 09/45] update example files --- .../examples/2025-03-01/EAPriceSheetForBillingPeriod.json | 4 ++-- ...eDetailedCostReportOperationStatusBySubscriptionScope.json | 4 +++- .../2025-03-01/examples/EAPriceSheetForBillingPeriod.json | 4 ++-- ...eDetailedCostReportOperationStatusBySubscriptionScope.json | 4 +++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json index 67ba742f4fd5..deebadbb6b2c 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/EAPriceSheetForBillingPeriod.json @@ -8,8 +8,8 @@ "200": { "body": { "properties": { - "downloadUrl": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", - "validTill": "2023-09-30T17:32:28Z" + "reportUrl": "https://myaccount.blob.core.windows.net/reportfile.csv?sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", + "validUntil": "2023-09-30T17:32:28Z" }, "status": "Completed" } diff --git a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json index 5445598ea66a..ff936acad223 100644 --- a/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json +++ b/specification/cost-management/CostManagement.Management/examples/2025-03-01/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json @@ -18,7 +18,9 @@ "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" }, - "status": "Completed" + "status": { + "status": "Completed" + } } } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EAPriceSheetForBillingPeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EAPriceSheetForBillingPeriod.json index 67ba742f4fd5..deebadbb6b2c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EAPriceSheetForBillingPeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/EAPriceSheetForBillingPeriod.json @@ -8,8 +8,8 @@ "200": { "body": { "properties": { - "downloadUrl": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", - "validTill": "2023-09-30T17:32:28Z" + "reportUrl": "https://myaccount.blob.core.windows.net/reportfile.csv?sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B", + "validUntil": "2023-09-30T17:32:28Z" }, "status": "Completed" } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json index 5445598ea66a..ff936acad223 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json @@ -18,7 +18,9 @@ "downloadUrl": "https://ccmreportstorageeastus.blob.core.windows.net/armreports/20201207/00000000-0000-0000-0000-000000000000?sv=2020-05-31&sr=b&sig=abcd", "validTill": "2020-12-08T05:55:59.4394737Z" }, - "status": "Completed" + "status": { + "status": "Completed" + } } } }, From 5274165477b85eb723431e89102a4b97628d6843 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 12 Sep 2025 15:10:30 +0800 Subject: [PATCH 10/45] Remove operationId Decorator --- .../CostAllocationRuleDefinition.tsp | 8 -------- .../CostManagement.Management/ScheduledAction.tsp | 10 ---------- .../cost-management/CostManagement.Management/View.tsp | 4 ---- 3 files changed, 22 deletions(-) diff --git a/specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp b/specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp index 542355c3c0a5..3d44ddbe6957 100644 --- a/specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp +++ b/specification/cost-management/CostManagement.Management/CostAllocationRuleDefinition.tsp @@ -62,8 +62,6 @@ interface CostAllocationRuleDefinitions { /** * Get a cost allocation rule by rule name and billing account or enterprise enrollment. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("CostAllocationRules_Get") get is CostAllocationRuleDefinitionsOps.Read< CostAllocationRuleDefinition, ErrorType = ErrorResponse @@ -72,8 +70,6 @@ interface CostAllocationRuleDefinitions { /** * Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("CostAllocationRules_CreateOrUpdate") createOrUpdate is CostAllocationRuleDefinitionsOps.CreateOrUpdateSync< CostAllocationRuleDefinition, ErrorType = ErrorResponse @@ -82,8 +78,6 @@ interface CostAllocationRuleDefinitions { /** * Delete cost allocation rule for billing account or enterprise enrollment. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("CostAllocationRules_Delete") delete is CostAllocationRuleDefinitionsOps.DeleteSync< CostAllocationRuleDefinition, ErrorType = ErrorResponse @@ -92,8 +86,6 @@ interface CostAllocationRuleDefinitions { /** * Get the list of all cost allocation rules for a billing account or enterprise enrollment. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("CostAllocationRules_List") list is CostAllocationRuleDefinitionsOps.List< CostAllocationRuleDefinition, Response = ArmResponse, diff --git a/specification/cost-management/CostManagement.Management/ScheduledAction.tsp b/specification/cost-management/CostManagement.Management/ScheduledAction.tsp index fc646e09a682..7e3303de86a3 100644 --- a/specification/cost-management/CostManagement.Management/ScheduledAction.tsp +++ b/specification/cost-management/CostManagement.Management/ScheduledAction.tsp @@ -157,8 +157,6 @@ interface ScheduledActionOperationGroup { * Get the shared scheduled action from the given scope by name. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("ScheduledActions_GetByScope") @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") getByScope is ScheduledActionOperationGroupOps.Read< ScheduledAction, @@ -168,8 +166,6 @@ interface ScheduledActionOperationGroup { /** * Create or update a shared scheduled action within the given scope. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("ScheduledActions_CreateOrUpdateByScope") createOrUpdateByScope is ScheduledActionOperationGroupOps.CreateOrUpdateSync< ScheduledAction, Parameters = { @@ -187,8 +183,6 @@ interface ScheduledActionOperationGroup { * Delete a scheduled action within the given scope. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("ScheduledActions_DeleteByScope") @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") deleteByScope is ScheduledActionOperationGroupOps.DeleteSync< ScheduledAction, @@ -199,8 +193,6 @@ interface ScheduledActionOperationGroup { * List all private scheduled actions. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("ScheduledActions_ListByScope") @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") listByScope is ScheduledActionOperationGroupOps.List< ScheduledAction, @@ -218,8 +210,6 @@ interface ScheduledActionOperationGroup { /** * Runs a shared scheduled action within the given scope. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("ScheduledActions_RunByScope") @action("execute") runByScope is ScheduledActionOperationGroupOps.ActionSync< ScheduledAction, diff --git a/specification/cost-management/CostManagement.Management/View.tsp b/specification/cost-management/CostManagement.Management/View.tsp index 8184cd78864a..2d1a514dcea1 100644 --- a/specification/cost-management/CostManagement.Management/View.tsp +++ b/specification/cost-management/CostManagement.Management/View.tsp @@ -119,7 +119,6 @@ interface ViewOperationGroup { * Gets the view for the defined scope by view name. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Views_GetByScope") @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") getByScope is ViewOperationGroupOps.Read; @@ -127,7 +126,6 @@ interface ViewOperationGroup { * The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Views_CreateOrUpdateByScope") @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") createOrUpdateByScope is ViewOperationGroupOps.CreateOrUpdateSync< View, @@ -138,7 +136,6 @@ interface ViewOperationGroup { * The operation to delete a view. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Views_DeleteByScope") @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") deleteByScope is ViewOperationGroupOps.DeleteSync< View, @@ -149,7 +146,6 @@ interface ViewOperationGroup { * Lists all views by tenant and object. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Views_ListByScope") @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") listByScope is ViewOperationGroupOps.List< View, From 3d1a24f647b919f73da245a39ac7acfadb4d3c58 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 12 Sep 2025 16:48:42 +0800 Subject: [PATCH 11/45] Update tspconfig.yaml --- .../CostManagement.Management/tspconfig.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/specification/cost-management/CostManagement.Management/tspconfig.yaml b/specification/cost-management/CostManagement.Management/tspconfig.yaml index d6aca4efbcd0..e8e3431a41af 100644 --- a/specification/cost-management/CostManagement.Management/tspconfig.yaml +++ b/specification/cost-management/CostManagement.Management/tspconfig.yaml @@ -11,12 +11,6 @@ options: emit-lro-options: "all" examples-dir: "{project-root}/examples" arm-resource-flattening: true - "@azure-tools/typespec-csharp": - flavor: azure - package-dir: "Azure.ResourceManager.CostManagement" - clear-output-folder: true - model-namespace: true - namespace: "{package-dir}" "@azure-tools/typespec-python": package-dir: "azure-mgmt-costmanagement" namespace: "azure.mgmt.costmanagement" @@ -39,8 +33,8 @@ options: name: "@azure/arm-costmanagement" "@azure-tools/typespec-go": service-dir: "sdk/resourcemanager/costmanagement" - package-dir: "armcostmanagement" - module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}" + emitter-output-dir: "{output-dir}/{service-dir}/armcostmanagement" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/armcostmanagement" fix-const-stuttering: true flavor: "azure" generate-samples: true From 9cac238101087ce188699a7de644c6ad48ddf25e Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 17 Oct 2025 16:43:13 +0800 Subject: [PATCH 12/45] Add x-ms-long-running-operation to GET operation --- .../CostDetailsOperationResults.tsp | 6 ++++- ...erateDetailedCostReportOperationResult.tsp | 5 +++- .../ScheduledAction.tsp | 5 +++- .../CostManagement.Management/View.tsp | 2 +- .../CostManagement.Management/main.tsp | 2 -- .../stable/2025-03-01/openapi.json | 26 +++++++++++-------- 6 files changed, 29 insertions(+), 17 deletions(-) diff --git a/specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp b/specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp index d1bb25f8599b..002d9e16b5e5 100644 --- a/specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp +++ b/specification/cost-management/CostManagement.Management/CostDetailsOperationResults.tsp @@ -54,10 +54,14 @@ interface GenerateCostDetailsReport { /** * Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header. */ + #suppress "@azure-tools/typespec-client-generator-core/mark-as-lro-ineffective" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @Azure.ClientGenerator.Core.Legacy.markAsLro getOperationResults is Extension.Read< Extension.ScopeParameter, CostDetailsOperationResults, - Response = ArmResponse | ArmAcceptedLroResponse>, + Response = ArmResponse | ArmAcceptedResponse, Error = ErrorResponse >; } diff --git a/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp b/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp index be8260be4df9..d69805ac6c53 100644 --- a/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp +++ b/specification/cost-management/CostManagement.Management/GenerateDetailedCostReportOperationResult.tsp @@ -28,10 +28,13 @@ interface GenerateDetailedCostReportOperationResults { /** * Gets the result of the specified operation. The link with this operationId is provided as a response header of the initial request. */ + #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @Azure.ClientGenerator.Core.Legacy.markAsLro get is Extension.Read< Extension.ScopeParameter, GenerateDetailedCostReportOperationResult, - Response = ArmResponse | ArmAcceptedLroResponse>, + Response = ArmResponse | ArmAcceptedResponse, Error = ErrorResponse >; } diff --git a/specification/cost-management/CostManagement.Management/ScheduledAction.tsp b/specification/cost-management/CostManagement.Management/ScheduledAction.tsp index 7e3303de86a3..208df2a7fbb2 100644 --- a/specification/cost-management/CostManagement.Management/ScheduledAction.tsp +++ b/specification/cost-management/CostManagement.Management/ScheduledAction.tsp @@ -96,6 +96,9 @@ interface ScheduledActions { ErrorType = ErrorResponseWithNestedDetails >; + /** + * List all private scheduled actions. + */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") list is ScheduledActionOps.List< @@ -190,7 +193,7 @@ interface ScheduledActionOperationGroup { >; /** - * List all private scheduled actions. + * List all shared scheduled actions within the given scope. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @externalDocs("https://docs.microsoft.com/rest/api/cost-management/") diff --git a/specification/cost-management/CostManagement.Management/View.tsp b/specification/cost-management/CostManagement.Management/View.tsp index 2d1a514dcea1..f6c93152c9c2 100644 --- a/specification/cost-management/CostManagement.Management/View.tsp +++ b/specification/cost-management/CostManagement.Management/View.tsp @@ -143,7 +143,7 @@ interface ViewOperationGroup { >; /** - * Lists all views by tenant and object. + * Lists all views at the given scope. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") diff --git a/specification/cost-management/CostManagement.Management/main.tsp b/specification/cost-management/CostManagement.Management/main.tsp index c0e5b8cb796a..7e91f5ca0d1e 100644 --- a/specification/cost-management/CostManagement.Management/main.tsp +++ b/specification/cost-management/CostManagement.Management/main.tsp @@ -47,8 +47,6 @@ enum Versions { /** * The 2025-03-01 API version. */ - @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) - @useDependency(Azure.Core.Versions.v1_0_Preview_1) v2025_03_01: "2025-03-01", } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json index 6811ef0723f8..e90348daf380 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json @@ -700,9 +700,10 @@ "202": { "description": "Resource operation accepted.", "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." } } }, @@ -717,7 +718,8 @@ "Get details of the operation result": { "$ref": "./examples/CostDetailsOperationResultsBySubscriptionScope.json" } - } + }, + "x-ms-long-running-operation": true } }, "/{scope}/providers/Microsoft.CostManagement/dimensions": { @@ -1596,9 +1598,10 @@ "202": { "description": "Resource operation accepted.", "headers": { - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." } } }, @@ -1613,7 +1616,8 @@ "Get details of the operation result": { "$ref": "./examples/GenerateDetailedCostReportOperationResultsBySubscriptionScope.json" } - } + }, + "x-ms-long-running-operation": true } }, "/{scope}/providers/Microsoft.CostManagement/operationStatus/{operationId}": { @@ -1780,7 +1784,7 @@ "tags": [ "ScheduledActionOperationGroup" ], - "description": "List all private scheduled actions.", + "description": "List all shared scheduled actions within the given scope.", "externalDocs": { "url": "https://docs.microsoft.com/rest/api/cost-management/" }, @@ -2291,7 +2295,7 @@ "tags": [ "ViewOperationGroup" ], - "description": "Lists all views by tenant and object.", + "description": "Lists all views at the given scope.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, @@ -2904,7 +2908,7 @@ "tags": [ "ScheduledActions" ], - "description": "List a ScheduledAction", + "description": "List all private scheduled actions.", "externalDocs": { "url": "https://docs.microsoft.com/rest/api/cost-management/" }, From 85c73f9e574d3adc0babed22298a65c2610f39e8 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 17 Oct 2025 17:32:04 +0800 Subject: [PATCH 13/45] Remove unnecessary properties --- .../CostManagement.Management/Setting.tsp | 9 ++------- .../stable/2025-03-01/openapi.json | 11 +++++------ 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/specification/cost-management/CostManagement.Management/Setting.tsp b/specification/cost-management/CostManagement.Management/Setting.tsp index 9bc92128cdea..73a97efdd46c 100644 --- a/specification/cost-management/CostManagement.Management/Setting.tsp +++ b/specification/cost-management/CostManagement.Management/Setting.tsp @@ -15,7 +15,8 @@ namespace Microsoft.CostManagement; * Setting definition. */ @discriminator("kind") -model Setting is Azure.ResourceManager.ExtensionResource<{}> { +model Setting + is Azure.ResourceManager.Legacy.DiscriminatedProxyResource { ...ResourceNameParameter< Resource = Setting, KeyName = "type", @@ -23,12 +24,6 @@ model Setting is Azure.ResourceManager.ExtensionResource<{}> { NamePattern = "", Type = SettingType >; - - /** - * Specifies the kind of settings. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - kind: SettingsKind; } @armResourceOperations diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json index e90348daf380..aac3fb6c9abb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/openapi.json @@ -9825,14 +9825,13 @@ "type": "object", "description": "Setting definition.", "properties": { - "properties": { - "type": "object", - "description": "The resource-specific properties for this resource.", - "x-ms-client-flatten": true - }, "kind": { "$ref": "#/definitions/SettingsKind", - "description": "Specifies the kind of settings." + "description": "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", + "x-ms-mutability": [ + "read", + "create" + ] } }, "discriminator": "kind", From 91bc07f5ad2f4912f2277172b4ce4a4d843b377b Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Mon, 20 Oct 2025 16:14:38 +0800 Subject: [PATCH 14/45] Update tspconfig.yaml --- .../CostManagement.Management/tspconfig.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/cost-management/CostManagement.Management/tspconfig.yaml b/specification/cost-management/CostManagement.Management/tspconfig.yaml index e8e3431a41af..4d6e62042009 100644 --- a/specification/cost-management/CostManagement.Management/tspconfig.yaml +++ b/specification/cost-management/CostManagement.Management/tspconfig.yaml @@ -11,14 +11,22 @@ options: emit-lro-options: "all" examples-dir: "{project-root}/examples" arm-resource-flattening: true + "@azure-tools/typespec-csharp": + emitter-output-dir: "{output-dir}/{service-dir}/Azure.ResourceManager.CostManagement" + clear-output-folder: true + model-namespace: false + namespace: "Azure.ResourceManager.CostManagement" + flavor: azure "@azure-tools/typespec-python": package-dir: "azure-mgmt-costmanagement" + emitter-output-dir: "{output-dir}/{service-dir}/azure-mgmt-costmanagement" namespace: "azure.mgmt.costmanagement" generate-test: true generate-sample: true flavor: "azure" "@azure-tools/typespec-java": package-dir: "azure-resourcemanager-costmanagement" + emitter-output-dir: "{output-dir}/{service-dir}/azure-resourcemanager-costmanagement" namespace: "com.azure.resourcemanager.costmanagement" service-name: "CostManagement" # human-readable service name, whitespace allowed flavor: azure @@ -27,6 +35,7 @@ options: enable-sync-stack: false "@azure-tools/typespec-ts": package-dir: "arm-costmanagement" + emitter-output-dir: "{output-dir}/{service-dir}/arm-costmanagement" flavor: azure experimental-extensible-enums: true package-details: From ad7d1fd6c7244e2cf76a6acf58043c2896359dc6 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Tue, 4 Nov 2025 13:54:39 +0800 Subject: [PATCH 15/45] run tsp compile --- .../examples/BillingProfileAlerts.json | 89 ------------ ...tCreateOrUpdateByBillingAccountCustom.json | 133 ----------------- ...CreateOrUpdateByBillingAccountMonthly.json | 136 ------------------ 3 files changed, 358 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json index 237e7f767da5..d5fe67fbd5d3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json @@ -1,20 +1,13 @@ { "parameters": { "api-version": "2025-03-01", -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json "billingAccountId": "12345-6789", "billingProfileId": "13579", "scope": "providers/Microsoft.Billing/billingAccounts/12345-6789/billingProfiles/13579" -======= - "billingAccountId": "12345:6789", - "billingProfileId": "13579", - "scope": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579" ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json }, "responses": { "200": { "body": { -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json "nextLink": null, "value": [ { @@ -26,20 +19,11 @@ "closeTime": "0001-01-01T00:00:00", "costEntityId": "budget1", "creationTime": "2020-04-27T11:07:52.7143901Z", -======= - "value": [ - { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "type": "Microsoft.CostManagement/alerts", - "properties": { ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json "modificationTime": "2020-04-28T11:06:02.8999373Z", "source": "Preset", "status": "Active", @@ -47,29 +31,11 @@ "statusModificationUserName": null, "details": { "amount": 200000, -======= - "description": "", - "source": "Preset", - "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "00000000-0000-0000-0000-000000000000_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 161000.12, ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json "currentSpend": 161000.12, "meterFilter": [], "operator": "GreaterThan", @@ -94,30 +60,11 @@ "closeTime": "0001-01-01T00:00:00", "costEntityId": "budget1", "creationTime": "2019-06-24T05:51:52.8713179Z", -======= - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2020-04-27T11:07:52.7143901Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2020-04-28T11:06:02.8999373Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" - } - }, - { - "id": "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111", - "name": "11111111-1111-1111-111111111111", - "type": "Microsoft.CostManagement/alerts", - "properties": { ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json "definition": { "type": "Budget", "category": "Cost", "criteria": "CostThresholdExceeded" }, -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json "modificationTime": "2019-08-31T17:51:55.1808807Z", "source": "Preset", "status": "Active", @@ -125,29 +72,11 @@ "statusModificationUserName": null, "details": { "amount": 200000, -======= - "description": "", - "source": "Preset", - "details": { - "timeGrainType": "Quarterly", - "periodStartDate": "2020-03-01T00:00:00Z", - "triggeredBy": "11111111-1111-1111-111111111111_1_01", - "resourceGroupFilter": [], - "resourceFilter": [], - "meterFilter": [], - "tagFilter": {}, - "threshold": 0.8, - "operator": "GreaterThan", - "amount": 200000.0, - "unit": "USD", - "currentSpend": 171000.32, ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json "contactEmails": [ "1234@contoso.com" ], "contactGroups": [], "contactRoles": [], -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json "currentSpend": 171000.32, "meterFilter": [], "operator": "GreaterThan", @@ -169,22 +98,4 @@ }, "operationId": "Alerts_List", "title": "BillingProfileAlerts" -======= - "overridingAlert": null - }, - "costEntityId": "budget1", - "status": "Active", - "creationTime": "2019-06-24T05:51:52.8713179Z", - "closeTime": "0001-01-01T00:00:00", - "modificationTime": "2019-08-31T17:51:55.1808807Z", - "statusModificationUserName": null, - "statusModificationTime": "0001-01-01T00:00:00" - } - } - ], - "nextLink": null - } - } - } ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/BillingProfileAlerts.json } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json index a0947c988c82..f73c7a7f5bbd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json @@ -2,10 +2,6 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json -======= - "scope": "providers/Microsoft.Billing/billingAccounts/123456", ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json "exportName": "TestExport", "parameters": { "identity": { @@ -13,7 +9,6 @@ }, "location": "centralus", "properties": { -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json "format": "Csv", "compressionMode": "gzip", "dataOverwriteBehavior": "OverwritePreviousReport", @@ -25,28 +20,10 @@ }, "granularity": "Daily" }, -======= - "schedule": { - "status": "Inactive" - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "Custom", ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json "timePeriod": { "from": "2025-04-03T00:00:00.000Z", "to": "2025-04-03T00:00:00.000Z" }, -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json "timeframe": "Custom" }, "deliveryInfo": { @@ -162,114 +139,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByBillingAccountCustom" -======= - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - }, - "responses": { - "201": { - "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "identity": { - "type": "SystemAssigned", - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "location": "centralus", - "properties": { - "schedule": { - "status": "Inactive", - "recurrence": "None" - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "Custom", - "timePeriod": { - "from": "2025-04-03T00:00:00Z", - "to": "2025-04-03T00:00:00Z" - }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - }, - "200": { - "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "identity": { - "type": "SystemAssigned", - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "location": "centralus", - "properties": { - "schedule": { - "status": "Inactive", - "recurrence": "None" - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "Custom", - "timePeriod": { - "from": "2025-04-03T00:00:00Z", - "to": "2025-04-03T00:00:00Z" - }, - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - } - } ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountCustom.json } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json index f74c81db8393..54b0da11c7f6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json @@ -2,10 +2,6 @@ "parameters": { "api-version": "2025-03-01", "billingAccountId": "123456", -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json -======= - "scope": "providers/Microsoft.Billing/billingAccounts/123456", ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json "exportName": "TestExport", "parameters": { "identity": { @@ -13,7 +9,6 @@ }, "location": "centralus", "properties": { -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json "format": "Csv", "compressionMode": "gzip", "dataOverwriteBehavior": "OverwritePreviousReport", @@ -38,15 +33,10 @@ "exportDescription": "This is a test export.", "partitionData": true, "schedule": { -======= - "schedule": { - "status": "Active", ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json "recurrence": "Monthly", "recurrencePeriod": { "from": "2020-06-05T00:00:00Z", "to": "2030-06-30T00:00:00Z" -<<<<<<< HEAD:specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json }, "status": "Active" } @@ -152,130 +142,4 @@ }, "operationId": "Exports_CreateOrUpdate", "title": "ExportCreateOrUpdateByBillingAccountMonthly" -======= - } - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "type": "AzureBlob", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "TheLastMonth", - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - }, - "responses": { - "201": { - "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "identity": { - "type": "SystemAssigned", - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "location": "centralus", - "properties": { - "schedule": { - "status": "Active", - "recurrence": "Monthly", - "recurrencePeriod": { - "from": "2020-06-05T00:00:00Z", - "to": "2030-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-05T23:00:00Z", - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "TheLastMonth", - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - }, - "200": { - "body": { - "id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "eTag": "\"00000000-0000-0000-0000-000000000000\"", - "identity": { - "type": "SystemAssigned", - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "location": "centralus", - "properties": { - "schedule": { - "status": "Active", - "recurrence": "Monthly", - "recurrencePeriod": { - "from": "2020-06-05T00:00:00Z", - "to": "2030-06-30T00:00:00Z" - } - }, - "nextRunTimeEstimate": "2020-06-05T23:00:00Z", - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "ActualCost", - "timeframe": "TheLastMonth", - "dataSet": { - "granularity": "Daily", - "configuration": { - "dataVersion": "2023-05-01" - } - } - }, - "partitionData": true, - "dataOverwriteBehavior": "OverwritePreviousReport", - "compressionMode": "gzip", - "exportDescription": "This is a test export." - } - } - } - } ->>>>>>> upstream/main:specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/examples/ExportCreateOrUpdateByBillingAccountMonthly.json } From 923a4828693eba709a6d656512e2cdfda3f3ba11 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Mon, 10 Nov 2025 17:36:54 +0800 Subject: [PATCH 16/45] Add visibility --- .../CostManagement/back-compatible.tsp | 7 +++++++ .../CostManagement/stable/2025-03-01/openapi.json | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/back-compatible.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/back-compatible.tsp index a730f63ef8e1..f1ed1d017c4a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/back-compatible.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/back-compatible.tsp @@ -226,3 +226,10 @@ using Microsoft.CostManagement; @@clientName(SingleScopeBenefitRecommendationProperties, "singleScopeBenefitRecommendationProperties" ); +@@visibility(Setting.kind, + Lifecycle.Create, + Lifecycle.Read, + Lifecycle.Update, + Lifecycle.Delete, + Lifecycle.Query +); diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json index ab1b806785d2..ece5c841536b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json @@ -9827,11 +9827,7 @@ "properties": { "kind": { "$ref": "#/definitions/SettingsKind", - "description": "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.", - "x-ms-mutability": [ - "read", - "create" - ] + "description": "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value." } }, "discriminator": "kind", From 6633322d33290a47bfae64965998b8470c66b782 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Tue, 11 Nov 2025 09:54:46 +0800 Subject: [PATCH 17/45] Update cspell.yaml --- specification/cost-management/cspell.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/cost-management/cspell.yaml b/specification/cost-management/cspell.yaml index 4c806ec7f4bd..8a166aa1af4f 100644 --- a/specification/cost-management/cspell.yaml +++ b/specification/cost-management/cspell.yaml @@ -11,7 +11,6 @@ words: - bokmål - kpis - subscripiton - - Unitof overrides: - filename: >- **/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/preview/2018-12-01-preview/costmanagement.json @@ -34,7 +33,7 @@ overrides: words: - unitof - filename: >- - **/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/costmanagement.pricesheets.json + **/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json words: - unitofmeasure - unitof From 95bc708e14635e45ac538f376c116dab6a2042ef Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Tue, 11 Nov 2025 10:11:52 +0800 Subject: [PATCH 18/45] Update cspell.yaml --- specification/cost-management/cspell.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/cost-management/cspell.yaml b/specification/cost-management/cspell.yaml index 8a166aa1af4f..74906332872f 100644 --- a/specification/cost-management/cspell.yaml +++ b/specification/cost-management/cspell.yaml @@ -37,4 +37,5 @@ overrides: words: - unitofmeasure - unitof + - Unitof From 718193ea9a7560433ea080f5e029b8b6169fba6b Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Tue, 11 Nov 2025 10:15:22 +0800 Subject: [PATCH 19/45] Update cspell.yaml --- specification/cost-management/cspell.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/specification/cost-management/cspell.yaml b/specification/cost-management/cspell.yaml index 74906332872f..33f1e98b4a84 100644 --- a/specification/cost-management/cspell.yaml +++ b/specification/cost-management/cspell.yaml @@ -38,4 +38,9 @@ overrides: - unitofmeasure - unitof - Unitof - + - filename: >- + **/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/model.tsp + words: + - unitofmeasure + - unitof + - Unitof From 291070fd585da32e31c872dff66ae6ec1fe5c69d Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Tue, 11 Nov 2025 10:26:07 +0800 Subject: [PATCH 20/45] Update cspell.yaml --- specification/cost-management/cspell.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/specification/cost-management/cspell.yaml b/specification/cost-management/cspell.yaml index 33f1e98b4a84..526bdab890f1 100644 --- a/specification/cost-management/cspell.yaml +++ b/specification/cost-management/cspell.yaml @@ -11,6 +11,7 @@ words: - bokmål - kpis - subscripiton + - Unitof overrides: - filename: >- **/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/preview/2018-12-01-preview/costmanagement.json @@ -37,10 +38,3 @@ overrides: words: - unitofmeasure - unitof - - Unitof - - filename: >- - **/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/model.tsp - words: - - unitofmeasure - - unitof - - Unitof From 0ef798938b7cdc34f31de1ab89b5994f61f9f271 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Tue, 11 Nov 2025 10:38:40 +0800 Subject: [PATCH 21/45] Update cspell.yaml --- specification/cost-management/cspell.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/specification/cost-management/cspell.yaml b/specification/cost-management/cspell.yaml index 526bdab890f1..814db779eaf0 100644 --- a/specification/cost-management/cspell.yaml +++ b/specification/cost-management/cspell.yaml @@ -11,7 +11,6 @@ words: - bokmål - kpis - subscripiton - - Unitof overrides: - filename: >- **/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/preview/2018-12-01-preview/costmanagement.json @@ -38,3 +37,10 @@ overrides: words: - unitofmeasure - unitof + - Unitof + - filename: >- + **/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp + words: + - unitofmeasure + - unitof + - Unitof From 29d599b5a32e2ff41a4a5c67463aeb864984d363 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:08:40 +0800 Subject: [PATCH 22/45] Update tspconfig.yaml --- .../CostManagement/tspconfig.yaml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml index aadc7a07e262..570dbb6b31ef 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml @@ -12,32 +12,21 @@ options: emit-lro-options: "all" examples-dir: "{project-root}/examples" arm-resource-flattening: true - "@azure-tools/typespec-csharp": - emitter-output-dir: "{output-dir}/{service-dir}/Azure.ResourceManager.CostManagement" - clear-output-folder: true - model-namespace: false - namespace: "Azure.ResourceManager.CostManagement" - flavor: azure - "@azure-tools/typespec-python": - package-dir: "azure-mgmt-costmanagement" + "@azure-tools/typespec-python": emitter-output-dir: "{output-dir}/{service-dir}/azure-mgmt-costmanagement" namespace: "azure.mgmt.costmanagement" generate-test: true generate-sample: true flavor: "azure" "@azure-tools/typespec-java": - package-dir: "azure-resourcemanager-costmanagement" emitter-output-dir: "{output-dir}/{service-dir}/azure-resourcemanager-costmanagement" namespace: "com.azure.resourcemanager.costmanagement" service-name: "CostManagement" # human-readable service name, whitespace allowed flavor: azure - service-dir: "sdk/costmanagement" - premium: true - enable-sync-stack: false "@azure-tools/typespec-ts": - package-dir: "arm-costmanagement" emitter-output-dir: "{output-dir}/{service-dir}/arm-costmanagement" - flavor: azure + is-modular-library: true + flavor: "azure" experimental-extensible-enums: true package-details: name: "@azure/arm-costmanagement" @@ -53,4 +42,4 @@ options: inject-spans: true linter: extends: - - "@azure-tools/typespec-azure-rulesets/resource-manager" + - "@azure-tools/typespec-azure-rulesets/resource-manager" \ No newline at end of file From 4251312731c05db56bb8c83ceb5002218029e30b Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:19:10 +0800 Subject: [PATCH 23/45] format tspconfig.yaml --- .../Microsoft.CostManagement/CostManagement/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml index 570dbb6b31ef..27ffe56602c8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml @@ -12,7 +12,7 @@ options: emit-lro-options: "all" examples-dir: "{project-root}/examples" arm-resource-flattening: true - "@azure-tools/typespec-python": + "@azure-tools/typespec-python": emitter-output-dir: "{output-dir}/{service-dir}/azure-mgmt-costmanagement" namespace: "azure.mgmt.costmanagement" generate-test: true From f02cc39b546467e7e617599c68176a94ae8b04dc Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Wed, 12 Nov 2025 11:22:33 +0800 Subject: [PATCH 24/45] tsp format --- .../Microsoft.CostManagement/CostManagement/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml index 27ffe56602c8..944d315ca0a7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml @@ -42,4 +42,4 @@ options: inject-spans: true linter: extends: - - "@azure-tools/typespec-azure-rulesets/resource-manager" \ No newline at end of file + - "@azure-tools/typespec-azure-rulesets/resource-manager" From 6ccd9c99f5472c94caac8d738bdad6b9eaeec36a Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 12 Nov 2025 11:50:56 +0800 Subject: [PATCH 25/45] Add client.tsp with Java breaking change mitigations --- .../CostManagement/client.tsp | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp new file mode 100644 index 000000000000..104f53569cf9 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp @@ -0,0 +1,29 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.CostManagement; + +// Java-specific customizations to mitigate breaking changes + +// Rename PivotTypeType back to PivotType for Java +@@clientName(PivotTypeType, "PivotType", "java"); + +// Rename KpiTypeType back to KpiType for Java +@@clientName(KpiTypeType, "KpiType", "java"); + +// Rename DownloadURL back to DownloadUrl for Java +@@clientName(DownloadURL, "DownloadUrl", "java"); + +// Rename statusModificationUserName back to statusModificationUsername for Java +@@clientName(AlertPropertiesDetails.statusModificationUserName, + "statusModificationUsername", + "java" +); +@@clientName(DismissAlertPayload.statusModificationUserName, + "statusModificationUsername", + "java" +); + +// Keep tagFilter as Object instead of Map for Java +@@alternateType(AlertPropertiesDetails.tagFilter, unknown, "java"); From 308c28dec2799a1e93b0e2cb8f6cf9c9b221a9af Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 12 Nov 2025 11:55:40 +0800 Subject: [PATCH 26/45] rename in java --- .../Microsoft.CostManagement/CostManagement/client.tsp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp index 104f53569cf9..19bfb9b49147 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp @@ -4,8 +4,6 @@ import "@azure-tools/typespec-client-generator-core"; using Azure.ClientGenerator.Core; using Microsoft.CostManagement; -// Java-specific customizations to mitigate breaking changes - // Rename PivotTypeType back to PivotType for Java @@clientName(PivotTypeType, "PivotType", "java"); @@ -16,11 +14,7 @@ using Microsoft.CostManagement; @@clientName(DownloadURL, "DownloadUrl", "java"); // Rename statusModificationUserName back to statusModificationUsername for Java -@@clientName(AlertPropertiesDetails.statusModificationUserName, - "statusModificationUsername", - "java" -); -@@clientName(DismissAlertPayload.statusModificationUserName, +@@clientName(AlertProperties.statusModificationUserName, "statusModificationUsername", "java" ); From 5a97dfd08c10611382acac4def22c98f7457cc1a Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 12 Nov 2025 12:09:19 +0800 Subject: [PATCH 27/45] Update client.tsp and tspconfig.yaml with additional breaking change mitigations --- .../Microsoft.CostManagement/CostManagement/client.tsp | 9 ++++++++- .../CostManagement/tspconfig.yaml | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp index 19bfb9b49147..44c742b10620 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp @@ -19,5 +19,12 @@ using Microsoft.CostManagement; "java" ); -// Keep tagFilter as Object instead of Map for Java @@alternateType(AlertPropertiesDetails.tagFilter, unknown, "java"); + +// Rename eTag back to etag for Java (backward compatibility) +@@clientName(CostManagementProxyResource.eTag, "etag", "java"); +@@clientName(CostManagementResource.eTag, "etag", "java"); +@@clientName(View.eTag, "etag", "java"); +@@clientName(ScheduledAction.eTag, "etag", "java"); +@@clientName(Export.eTag, "etag", "java"); +@@clientName(Alert.eTag, "etag", "java"); diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml index 944d315ca0a7..e14bf3f83494 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml @@ -23,6 +23,7 @@ options: namespace: "com.azure.resourcemanager.costmanagement" service-name: "CostManagement" # human-readable service name, whitespace allowed flavor: azure + use-object-for-unknown: true "@azure-tools/typespec-ts": emitter-output-dir: "{output-dir}/{service-dir}/arm-costmanagement" is-modular-library: true From 73f09e10d7e0f7bcea02d22838491375766cd514 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 12 Nov 2025 12:10:08 +0800 Subject: [PATCH 28/45] more java rename --- .../Microsoft.CostManagement/CostManagement/client.tsp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp index 44c742b10620..3f9b1e54fd00 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp @@ -13,6 +13,9 @@ using Microsoft.CostManagement; // Rename DownloadURL back to DownloadUrl for Java @@clientName(DownloadURL, "DownloadUrl", "java"); +// Rename ReportURL back to ReportUrl for Java +@@clientName(ReportURL, "ReportUrl", "java"); + // Rename statusModificationUserName back to statusModificationUsername for Java @@clientName(AlertProperties.statusModificationUserName, "statusModificationUsername", From 58a7ea31277ec2c814a21ae6ed35a5c7dae907b3 Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 14 Nov 2025 13:36:57 +0800 Subject: [PATCH 29/45] Update specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml --- .../Microsoft.CostManagement/CostManagement/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml index e14bf3f83494..0f03db1a599e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml @@ -25,7 +25,7 @@ options: flavor: azure use-object-for-unknown: true "@azure-tools/typespec-ts": - emitter-output-dir: "{output-dir}/{service-dir}/arm-costmanagement" + emitter-output-dir: "{output-dir}/cost-management/arm-costmanagement" is-modular-library: true flavor: "azure" experimental-extensible-enums: true From 546549c7f03b82bc93766bc9537d81ba176e038d Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 14 Nov 2025 14:22:23 +0800 Subject: [PATCH 30/45] Update specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml --- .../Microsoft.CostManagement/CostManagement/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml index 0f03db1a599e..c8c8e2da5db1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml @@ -25,7 +25,7 @@ options: flavor: azure use-object-for-unknown: true "@azure-tools/typespec-ts": - emitter-output-dir: "{output-dir}/cost-management/arm-costmanagement" + emitter-output-dir: "{output-dir}/sdk/cost-management/arm-costmanagement" is-modular-library: true flavor: "azure" experimental-extensible-enums: true From cf50ba40317ae52e832cf6e4098dbfb8dbbc1dac Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 14 Nov 2025 14:57:13 +0800 Subject: [PATCH 31/45] update --- .../CostAllocationRuleDefinition.tsp | 57 ++++++------------- 1 file changed, 18 insertions(+), 39 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/CostAllocationRuleDefinition.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/CostAllocationRuleDefinition.tsp index 3d44ddbe6957..c6b79dd5bc6c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/CostAllocationRuleDefinition.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/CostAllocationRuleDefinition.tsp @@ -24,37 +24,12 @@ model CostAllocationRuleDefinition >; } -alias CostAllocationRuleDefinitionsOps = Azure.ResourceManager.Legacy.ExtensionOperations< - { - ...ApiVersionParameter; - - /** the provider namespace */ - @path - @segment("providers") - @key - providerNamespace: "microsoft.Billing"; - - /** - * BillingAccount ID - */ - @path - @segment("billingAccounts") - billingAccountId: string; - }, - { - ...Azure.ResourceManager.Legacy.Provider; - }, - { - ...Azure.ResourceManager.Legacy.Provider; - - /** - * Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters. - */ - @path - @segment("costAllocationRules") - @pattern("[A-Za-z0-9\\-_]+") - ruleName: string; - } +alias CostAllocationRuleDefinitionsOps = Extension.ExternalResource< + "microsoft.Billing", + "billingAccounts", + "billingAccountId", + Description = "BillingAccount ID", + ParentType = "Tenant" >; @armResourceOperations @@ -62,34 +37,38 @@ interface CostAllocationRuleDefinitions { /** * Get a cost allocation rule by rule name and billing account or enterprise enrollment. */ - get is CostAllocationRuleDefinitionsOps.Read< + get is Extension.Read< + CostAllocationRuleDefinitionsOps, CostAllocationRuleDefinition, - ErrorType = ErrorResponse + Error = ErrorResponse >; /** * Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment. */ - createOrUpdate is CostAllocationRuleDefinitionsOps.CreateOrUpdateSync< + createOrUpdate is Extension.CreateOrReplaceSync< + CostAllocationRuleDefinitionsOps, CostAllocationRuleDefinition, - ErrorType = ErrorResponse + Error = ErrorResponse >; /** * Delete cost allocation rule for billing account or enterprise enrollment. */ - delete is CostAllocationRuleDefinitionsOps.DeleteSync< + delete is Extension.DeleteSync< + CostAllocationRuleDefinitionsOps, CostAllocationRuleDefinition, - ErrorType = ErrorResponse + Error = ErrorResponse >; /** * Get the list of all cost allocation rules for a billing account or enterprise enrollment. */ - list is CostAllocationRuleDefinitionsOps.List< + list is Extension.ListByTarget< + CostAllocationRuleDefinitionsOps, CostAllocationRuleDefinition, Response = ArmResponse, - ErrorType = ErrorResponse + Error = ErrorResponse >; } From 1c0467d7681eccefd8a1bb3bc3d5599cced453fb Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Thu, 27 Nov 2025 11:18:49 +0800 Subject: [PATCH 32/45] update tagFilter --- .../Microsoft.CostManagement/CostManagement/models.tsp | 4 ++-- .../CostManagement/stable/2025-03-01/openapi.json | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp index 0b72817c4917..03adb4cf0279 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp @@ -3191,8 +3191,8 @@ model AlertPropertiesDetails { * tags to filter by */ #suppress "@azure-tools/typespec-client-generator-core/property-name-conflict" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - tagFilter?: Record; + #suppress "@azure-tools/typespec-azure-core/no-unknown" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + tagFilter?: unknown; /** * notification threshold percentage as a decimal which activated this alert diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json index ece5c841536b..57b7dccf3b2b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json @@ -4961,9 +4961,7 @@ "x-ms-identifiers": [] }, "tagFilter": { - "type": "object", - "description": "tags to filter by", - "additionalProperties": {} + "description": "tags to filter by" }, "threshold": { "type": "number", From a75992b2ae92de53c43579c429646df944860746 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Thu, 27 Nov 2025 13:44:10 +0800 Subject: [PATCH 33/45] update OperationStatusType --- .../Microsoft.CostManagement/CostManagement/models.tsp | 2 +- .../CostManagement/stable/2025-03-01/openapi.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp index 03adb4cf0279..1f7b986107c2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp @@ -222,7 +222,7 @@ union OperationStatusType { #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Running: "Running", #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - Complete: "Complete", + Completed: "Completed", #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Failed: "Failed", } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json index 57b7dccf3b2b..914adc491bcb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json @@ -8495,7 +8495,7 @@ "description": "Enum representing the status of an async operation.", "enum": [ "Running", - "Complete", + "Completed", "Failed" ], "x-ms-enum": { @@ -8507,8 +8507,8 @@ "value": "Running" }, { - "name": "Complete", - "value": "Complete" + "name": "Completed", + "value": "Completed" }, { "name": "Failed", From 53d58aa3f5826961431dd05e3a4134d3bac0e54c Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Thu, 27 Nov 2025 15:12:49 +0800 Subject: [PATCH 34/45] Remove and Replace Deprecated or Disabled Decorators --- .../CostManagement/models.tsp | 53 +++++++++---------- .../stable/2025-03-01/openapi.json | 22 +++----- .../CostManagement/tspconfig.yaml | 1 - 3 files changed, 30 insertions(+), 46 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp index 1f7b986107c2..2e9ee3bc7651 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp @@ -1305,7 +1305,7 @@ model CostAllocationRuleList { * The list of cost allocation rules. */ @pageItems - @OpenAPI.extension("x-ms-identifiers", #["id"]) + @identifiers(#["id"]) value?: CostAllocationRuleDefinition[]; /** @@ -1357,13 +1357,13 @@ model CostAllocationRuleDetails { /** * Source resources for cost allocation. At this time, this list can contain no more than one element. */ - @OpenAPI.extension("x-ms-identifiers", #["name"]) + @identifiers(#["name"]) sourceResources?: SourceCostAllocationResource[]; /** * Target resources for cost allocation. At this time, this list can contain no more than one element. */ - @OpenAPI.extension("x-ms-identifiers", #["name"]) + @identifiers(#["name"]) targetResources?: TargetCostAllocationResource[]; } @@ -1375,7 +1375,6 @@ model SourceCostAllocationResource extends CostAllocationResource { /** * Source Resources for cost allocation. This list cannot contain more than 25 values. */ - @OpenAPI.extension("x-ms-identifiers", #["name"]) values: string[]; } @@ -1402,7 +1401,7 @@ model TargetCostAllocationResource extends CostAllocationResource { /** * Target resources for cost allocation. This list cannot contain more than 25 values. */ - @OpenAPI.extension("x-ms-identifiers", #["name"]) + @identifiers(#["name"]) values: CostAllocationProportion[]; /** @@ -1645,7 +1644,7 @@ model AllSavingsList { * The list of benefit recommendations with the recommendation details.. */ @visibility(Lifecycle.Read) - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) value?: AllSavingsBenefitDetails[]; /** @@ -1898,7 +1897,7 @@ model BudgetFilter { * * Supported for CategoryType(s): Cost. */ - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) @minItems(0) and?: BudgetFilterProperties[]; @@ -2357,7 +2356,7 @@ model ExportDatasetConfiguration { /** * Filters associated with the data sets. */ - @OpenAPI.extension("x-ms-identifiers", #["name"]) + @identifiers(#["name"]) filters?: FilterItems[]; } @@ -2593,7 +2592,7 @@ model ReportManifest { /** * List of blob information generated by this operation. */ - @OpenAPI.extension("x-ms-identifiers", #["blobLink"]) + @identifiers(#["blobLink"]) blobs?: BlobInfo[]; } @@ -2820,7 +2819,7 @@ model ViewProperties { /** * Configuration of 3 sub-views in the Cost Analysis UI. */ - @OpenAPI.extension("x-ms-identifiers", #["name"]) + @identifiers(#["name"]) pivots?: PivotProperties[]; } @@ -2889,20 +2888,19 @@ model ReportConfigDataset { * Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @OpenAPI.extension("x-ms-identifiers", #["name"]) aggregation?: Record; /** * Array of group by expression to use in the report. Report can have up to 2 group by clauses. */ - @OpenAPI.extension("x-ms-identifiers", #["name", "type"]) + @identifiers(#["name", "type"]) @maxItems(2) grouping?: ReportConfigGrouping[]; /** * Array of order by expression to use in the report. */ - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) sorting?: ReportConfigSorting[]; /** @@ -2973,14 +2971,14 @@ model ReportConfigFilter { /** * The logical "AND" expression. Must have at least 2 items. */ - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) @minItems(2) and?: ReportConfigFilter[]; /** * The logical "OR" expression. Must have at least 2 items. */ - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) @minItems(2) or?: ReportConfigFilter[]; @@ -3172,19 +3170,16 @@ model AlertPropertiesDetails { /** * array of resourceGroups to filter by */ - @OpenAPI.extension("x-ms-identifiers", #[]) resourceGroupFilter?: unknown[]; /** * array of resources to filter by */ - @OpenAPI.extension("x-ms-identifiers", #[]) resourceFilter?: unknown[]; /** * array of meters to filter by */ - @OpenAPI.extension("x-ms-identifiers", #[]) meterFilter?: unknown[]; /** @@ -3394,14 +3389,14 @@ model ForecastFilter { /** * The logical "AND" expression. Must have at least 2 items. */ - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) @minItems(2) and?: ForecastFilter[]; /** * The logical "OR" expression. Must have at least 2 items. */ - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) @minItems(2) or?: ForecastFilter[]; @@ -3460,13 +3455,13 @@ model ForecastProperties { /** * Array of columns */ - @OpenAPI.extension("x-ms-identifiers", #["name"]) + @identifiers(#["name"]) columns?: ForecastColumn[]; /** * Array of rows */ - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) rows?: unknown[][]; } @@ -3687,7 +3682,7 @@ model QueryDataset { /** * Array of group by expression to use in the query. Query can have up to 2 group by clauses. */ - @OpenAPI.extension("x-ms-identifiers", #["name", "type"]) + @identifiers(#["name", "type"]) @maxItems(2) grouping?: QueryGrouping[]; @@ -3744,14 +3739,14 @@ model QueryFilter { /** * The logical "AND" expression. Must have at least 2 items. */ - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) @minItems(2) and?: QueryFilter[]; /** * The logical "OR" expression. Must have at least 2 items. */ - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) @minItems(2) or?: QueryFilter[]; @@ -3810,13 +3805,13 @@ model QueryProperties { /** * Array of columns */ - @OpenAPI.extension("x-ms-identifiers", #["name"]) + @identifiers(#["name"]) columns?: QueryColumn[]; /** * Array of rows */ - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) rows?: unknown[][]; } @@ -4436,7 +4431,7 @@ model ErrorDetailsWithNestedDetails extends ErrorDetails { * The additional details of the error. */ @visibility(Lifecycle.Read) - @OpenAPI.extension("x-ms-identifiers", #[]) + @identifiers(#[]) details?: ErrorDetailsWithNestedDetails[]; } @@ -4448,7 +4443,7 @@ model SettingsListResult { * The list of settings. */ @visibility(Lifecycle.Read) - @OpenAPI.extension("x-ms-identifiers", #["id"]) + @identifiers(#["id"]) @pageItems value?: Setting[]; } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json index 914adc491bcb..7294c26d2298 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json @@ -4945,20 +4945,17 @@ "resourceGroupFilter": { "type": "array", "description": "array of resourceGroups to filter by", - "items": {}, - "x-ms-identifiers": [] + "items": {} }, "resourceFilter": { "type": "array", "description": "array of resources to filter by", - "items": {}, - "x-ms-identifiers": [] + "items": {} }, "meterFilter": { "type": "array", "description": "array of meters to filter by", - "items": {}, - "x-ms-identifiers": [] + "items": {} }, "tagFilter": { "description": "tags to filter by" @@ -5987,8 +5984,7 @@ "properties": { "properties": { "$ref": "#/definitions/CostAllocationRuleProperties", - "description": "Cost allocation rule properties", - "x-ms-client-flatten": true + "description": "Cost allocation rule properties" } }, "allOf": [ @@ -9035,10 +9031,7 @@ "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.", "additionalProperties": { "$ref": "#/definitions/ReportConfigAggregation" - }, - "x-ms-identifiers": [ - "name" - ] + } }, "grouping": { "type": "array", @@ -9898,10 +9891,7 @@ "description": "Source Resources for cost allocation. This list cannot contain more than 25 values.", "items": { "type": "string" - }, - "x-ms-identifiers": [ - "name" - ] + } } }, "required": [ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml index c8c8e2da5db1..96c0862091bb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml @@ -11,7 +11,6 @@ options: arm-types-dir: "{project-root}/../../../../common-types/resource-management" emit-lro-options: "all" examples-dir: "{project-root}/examples" - arm-resource-flattening: true "@azure-tools/typespec-python": emitter-output-dir: "{output-dir}/{service-dir}/azure-mgmt-costmanagement" namespace: "azure.mgmt.costmanagement" From 11dbb8e631129ede216d4f0a840547b341d1d806 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Thu, 27 Nov 2025 15:56:36 +0800 Subject: [PATCH 35/45] Update tspconfig.yaml --- .../Microsoft.CostManagement/CostManagement/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml index 96c0862091bb..b84b26941b6f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml @@ -24,7 +24,7 @@ options: flavor: azure use-object-for-unknown: true "@azure-tools/typespec-ts": - emitter-output-dir: "{output-dir}/sdk/cost-management/arm-costmanagement" + emitter-output-dir: "{output-dir}/{service-dir}/arm-costmanagement" is-modular-library: true flavor: "azure" experimental-extensible-enums: true From b642e04d5e3b39bac7aa4af9714dc7f0ebe52d4e Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 28 Nov 2025 10:48:26 +0800 Subject: [PATCH 36/45] Update specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml --- .../Microsoft.CostManagement/CostManagement/tspconfig.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml index b84b26941b6f..24aa95b6e550 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/tspconfig.yaml @@ -24,6 +24,7 @@ options: flavor: azure use-object-for-unknown: true "@azure-tools/typespec-ts": + service-dir: "sdk/cost-management" emitter-output-dir: "{output-dir}/{service-dir}/arm-costmanagement" is-modular-library: true flavor: "azure" From 58c580170498477737cfaad18f58641d0b56c23c Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 28 Nov 2025 14:30:42 +0800 Subject: [PATCH 37/45] Add client overrides --- .../CostManagement/client.tsp | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp index 3f9b1e54fd00..4a14e6659e4b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp @@ -1,6 +1,7 @@ import "./main.tsp"; import "@azure-tools/typespec-client-generator-core"; +using Http; using Azure.ClientGenerator.Core; using Microsoft.CostManagement; @@ -31,3 +32,54 @@ using Microsoft.CostManagement; @@clientName(ScheduledAction.eTag, "etag", "java"); @@clientName(Export.eTag, "etag", "java"); @@clientName(Alert.eTag, "etag", "java"); + +#suppress "@azure-tools/typespec-azure-core/casing-style" "customization" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "customization" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "override" +op GetGenerateDetailedCostReportOperationResultCustomized( + #suppress "@azure-tools/typespec-azure-core/documentation-required" "override" + @path + extensionProvider: "Microsoft.CostManagement", + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "override" + @query("api-version") + apiVersion: string, + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "override" + @path("operationId") + operationId: string, + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "override" + @path(#{ allowReserved: true }) + scope: string, +): GenerateDetailedCostReportOperationResult; + +#suppress "@azure-tools/typespec-azure-core/casing-style" "customization" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "customization" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "override" +op GetGenerateDetailedCostReportOperationStatusCustomized( + #suppress "@azure-tools/typespec-azure-core/documentation-required" "override" + @path + extensionProvider: "Microsoft.CostManagement", + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "override" + @query("api-version") + apiVersion: string, + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "override" + @path("operationId") + operationId: string, + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "override" + @path(#{ allowReserved: true }) + scope: string, +): GenerateDetailedCostReportOperationStatus; + +@@override(GenerateDetailedCostReportOperationResults.get, + GetGenerateDetailedCostReportOperationResultCustomized, + "python,go,java,javascript" +); +@@override(GenerateDetailedCostReportOperationStatus.get, + GetGenerateDetailedCostReportOperationStatusCustomized, + "python,go,java,javascript" +); From 77dab6c5d5ec198c5aa37f79885c8e84352d9f00 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Fri, 28 Nov 2025 17:47:45 +0800 Subject: [PATCH 38/45] Update client.tsp --- .../Microsoft.CostManagement/CostManagement/client.tsp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp index 4a14e6659e4b..810af843b557 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp @@ -33,6 +33,14 @@ using Microsoft.CostManagement; @@clientName(Export.eTag, "etag", "java"); @@clientName(Alert.eTag, "etag", "java"); +@@clientName(Microsoft.CostManagement, "CostManagementClient", "python"); +@@clientName(Azure.ResourceManager.CommonTypes.ErrorResponse, + "ArmErrorResponse", + "python" +); +@@clientName(Term.`P1Y`, "P1_Y", "python"); +@@clientName(Term.`P3Y`, "P3_Y", "python"); + #suppress "@azure-tools/typespec-azure-core/casing-style" "customization" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "customization" #suppress "@azure-tools/typespec-azure-core/documentation-required" "override" From 1d9a7d2d12637c7ffc491b18566a73a9f0be225c Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Fri, 28 Nov 2025 17:53:36 +0800 Subject: [PATCH 39/45] Update client.tsp --- .../Microsoft.CostManagement/CostManagement/client.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp index 810af843b557..c934833be4a7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp @@ -38,8 +38,8 @@ using Microsoft.CostManagement; "ArmErrorResponse", "python" ); -@@clientName(Term.`P1Y`, "P1_Y", "python"); -@@clientName(Term.`P3Y`, "P3_Y", "python"); +@@clientName(Term.P1Y, "P1_Y", "python"); +@@clientName(Term.P3Y, "P3_Y", "python"); #suppress "@azure-tools/typespec-azure-core/casing-style" "customization" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "customization" From c12e03172df2391b2ca152a9cb5a3b007f7c0f89 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Mon, 1 Dec 2025 15:51:17 +0800 Subject: [PATCH 40/45] update operation name for JavaScript --- .../Microsoft.CostManagement/CostManagement/client.tsp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp index c934833be4a7..d0b875c46bc4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp @@ -91,3 +91,7 @@ op GetGenerateDetailedCostReportOperationStatusCustomized( GetGenerateDetailedCostReportOperationStatusCustomized, "python,go,java,javascript" ); +@@clientName(DimensionsOperationGroup.byExternalCloudProviderType, + "listByExternalCloudProviderType", + "javascript" +); From 991d3e1efca511fe7ddea0e039a9014fd7a3fd3a Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:34:21 +0800 Subject: [PATCH 41/45] Update CostDetailsOperationResults to be a non-resource model --- .../CostDetailsOperationResults.tsp | 69 ------------------- .../CostManagement/main.tsp | 1 - .../CostManagement/models.tsp | 45 ++++++++++++ .../CostManagement/routes.tsp | 29 ++++++++ .../stable/2025-03-01/openapi.json | 27 +++++--- 5 files changed, 91 insertions(+), 80 deletions(-) delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/CostDetailsOperationResults.tsp diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/CostDetailsOperationResults.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/CostDetailsOperationResults.tsp deleted file mode 100644 index 002d9e16b5e5..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/CostDetailsOperationResults.tsp +++ /dev/null @@ -1,69 +0,0 @@ -import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-azure-resource-manager"; -import "@typespec/openapi"; -import "@typespec/rest"; -import "./models.tsp"; - -using TypeSpec.Rest; -using Azure.ResourceManager; -using TypeSpec.Http; -using TypeSpec.OpenAPI; - -namespace Microsoft.CostManagement; -// FIXME: CostDetailsOperationResults has no properties property -/** - * The result of the long running operation for cost details Api. - */ -model CostDetailsOperationResults - is Azure.ResourceManager.ExtensionResource { - ...ResourceNameParameter< - Resource = CostDetailsOperationResults, - KeyName = "operationId", - SegmentName = "costDetailsOperationResults", - NamePattern = "" - >; - - /** - * The status of the cost details operation - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - status?: CostDetailsStatusType; - - /** - * The manifest of the report generated by the operation. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - manifest?: ReportManifest; - - /** - * The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z. - */ - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - validTill?: utcDateTime; - - /** - * The details of the error. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - error?: ErrorDetails; -} - -@armResourceOperations -interface GenerateCostDetailsReport { - /** - * Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header. - */ - #suppress "@azure-tools/typespec-client-generator-core/mark-as-lro-ineffective" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - #suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @Azure.ClientGenerator.Core.Legacy.markAsLro - getOperationResults is Extension.Read< - Extension.ScopeParameter, - CostDetailsOperationResults, - Response = ArmResponse | ArmAcceptedResponse, - Error = ErrorResponse - >; -} - -@@doc(CostDetailsOperationResults.name, "The target operation Id."); diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/main.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/main.tsp index 7e91f5ca0d1e..b51464c977c1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/main.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/main.tsp @@ -16,7 +16,6 @@ import "./back-compatible.tsp"; import "./CostAllocationRuleDefinition.tsp"; import "./Budget.tsp"; import "./Export.tsp"; -import "./CostDetailsOperationResults.tsp"; import "./GenerateDetailedCostReportOperationResult.tsp"; import "./GenerateDetailedCostReportOperationStatuses.tsp"; import "./View.tsp"; diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp index 2e9ee3bc7651..9e83012cf64e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/models.tsp @@ -4735,3 +4735,48 @@ model OperationListResult { @visibility(Lifecycle.Read) nextLink?: string; } + +/** + * The result of the long running operation for cost details Api. + */ +model CostDetailsOperationResults { + /** + * The id of the long running operation. + */ + id?: string; + + /** + * The name of the long running operation. + */ + name?: string; + + /** + * The type of the long running operation. + */ + type?: string; + + /** + * The status of the cost details operation + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + status?: CostDetailsStatusType; + + /** + * The manifest of the report generated by the operation. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + manifest?: ReportManifest; + + /** + * The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + validTill?: utcDateTime; + + /** + * The details of the error. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + error?: ErrorDetails; +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/routes.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/routes.tsp index 5ea2306280a9..0421b8cf59cb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/routes.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/routes.tsp @@ -1124,3 +1124,32 @@ interface ScheduledActionsOperationGroup { checkNameAvailabilityRequest: Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest, ): ArmResponse | ErrorResponseWithNestedDetails; } + +@armResourceOperations +interface GenerateCostDetailsReport { + /** + * Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header. + */ + #suppress "@azure-tools/typespec-client-generator-core/mark-as-lro-ineffective" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @Azure.ClientGenerator.Core.Legacy.markAsLro + getOperationResults( + ...ApiVersionParameter, + + /** + * The ARM Resource ID for subscription, billing account, or other billing scopes.Currently Resource Group and Management Group are not supported. For details, see https://aka.ms/costmgmt/scopes. + */ + @path(#{ allowReserved: true }) + scope: string, + + ...Azure.ResourceManager.Legacy.Provider, + + /** + * The target operation Id. + */ + @path + @segment("costDetailsOperationResults") + operationId: string, + ): ArmResponse | ArmAcceptedResponse | ErrorResponse; +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json index 7294c26d2298..8e9cb74887ae 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json @@ -51,9 +51,6 @@ { "name": "Exports" }, - { - "name": "GenerateCostDetailsReport" - }, { "name": "GenerateDetailedCostReportOperationResults" }, @@ -77,6 +74,9 @@ }, { "name": "Settings" + }, + { + "name": "GenerateCostDetailsReport" } ], "paths": { @@ -677,7 +677,7 @@ { "name": "scope", "in": "path", - "description": "The fully qualified Azure Resource manager identifier of the resource.", + "description": "The ARM Resource ID for subscription, billing account, or other billing scopes.Currently Resource Group and Management Group are not supported. For details, see https://aka.ms/costmgmt/scopes.", "required": true, "type": "string", "x-ms-skip-url-encoding": true @@ -6119,6 +6119,18 @@ "type": "object", "description": "The result of the long running operation for cost details Api.", "properties": { + "id": { + "type": "string", + "description": "The id of the long running operation." + }, + "name": { + "type": "string", + "description": "The name of the long running operation." + }, + "type": { + "type": "string", + "description": "The type of the long running operation." + }, "status": { "$ref": "#/definitions/CostDetailsStatusType", "description": "The status of the cost details operation" @@ -6137,12 +6149,7 @@ "$ref": "#/definitions/ErrorDetails", "description": "The details of the error." } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" - } - ] + } }, "CostDetailsStatusType": { "type": "string", From c5b4124da46b099fef32f006becbf2453ef6b10c Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Wed, 3 Dec 2025 14:54:30 +0800 Subject: [PATCH 42/45] Replace some list operation templates with ListSinglePage --- .../CostManagement/Alert.tsp | 21 ++++++++++++++++--- .../CostManagement/Export.tsp | 21 ++++++++++++++++--- .../stable/2025-03-01/openapi.json | 4 ++-- 3 files changed, 38 insertions(+), 8 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/Alert.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/Alert.tsp index 69708900f8b4..1c1ec3e64287 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/Alert.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/Alert.tsp @@ -28,6 +28,22 @@ model Alert is Azure.ResourceManager.ExtensionResource { eTag?: Azure.Core.eTag; } +@armResourceOperations +interface AlertsOps + extends Azure.ResourceManager.Legacy.ExtensionOperations< + { + ...ApiVersionParameter, + + /** The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. */ + @path(#{ allowReserved: true }) + scope: string, + + ...Azure.ResourceManager.Legacy.Provider, + }, + {}, + {} + > {} + @armResourceOperations interface Alerts { /** @@ -55,11 +71,10 @@ interface Alerts { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") - list is Extension.ListByTarget< - Extension.ScopeParameter, + list is AlertsOps.ListSinglePage< Alert, Response = ArmResponse, - Error = ErrorResponse + ErrorType = ErrorResponse >; } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/Export.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/Export.tsp index d676103b095d..db9f44dd1c99 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/Export.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/Export.tsp @@ -41,6 +41,22 @@ model Export is Azure.ResourceManager.ExtensionResource { eTag?: Azure.Core.eTag; } +@armResourceOperations +interface ExportsOps + extends Azure.ResourceManager.Legacy.ExtensionOperations< + { + ...ApiVersionParameter, + + /** The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. */ + @path(#{ allowReserved: true }) + scope: string, + + ...Azure.ResourceManager.Legacy.Provider, + }, + {}, + {} + > {} + @armResourceOperations interface Exports { /** @@ -90,8 +106,7 @@ interface Exports { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @externalDocs("https://docs.microsoft.com/en-us/rest/api/costmanagement/") - list is Extension.ListByTarget< - Extension.ScopeParameter, + list is ExportsOps.ListSinglePage< Export, Parameters = { /** @@ -101,7 +116,7 @@ interface Exports { $expand?: string; }, Response = ArmResponse, - Error = ErrorResponse + ErrorType = ErrorResponse >; /** diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json index 8e9cb74887ae..763770106da9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/stable/2025-03-01/openapi.json @@ -97,7 +97,7 @@ { "name": "scope", "in": "path", - "description": "The fully qualified Azure Resource manager identifier of the resource.", + "description": "The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", "required": true, "type": "string", "x-ms-skip-url-encoding": true @@ -892,7 +892,7 @@ { "name": "scope", "in": "path", - "description": "The fully qualified Azure Resource manager identifier of the resource.", + "description": "The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.", "required": true, "type": "string", "x-ms-skip-url-encoding": true From fe33147085c13e4c554a1c4514fc0b30b99a79c4 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Wed, 3 Dec 2025 16:35:09 +0800 Subject: [PATCH 43/45] Update readme.md --- .../Microsoft.CostManagement/CostManagement/readme.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/readme.md b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/readme.md index a253d5236403..f16a042fa845 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/readme.md +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/readme.md @@ -567,15 +567,6 @@ input-file: - preview/2018-12-01-preview/costmanagement.json ``` -### Tag: package-2019-01 - -These settings apply only when `--tag=package-2019-01` is specified on the command line. - -``` yaml $(tag) == 'package-2019-01' -input-file: -- stable/2019-01-01/costmanagement.json -``` - --- # Code Generation From c8270dba2ecc7ff8b68a52e0fece074aef053c74 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 4 Dec 2025 16:56:18 +0800 Subject: [PATCH 44/45] Update client.tsp --- .../Microsoft.CostManagement/CostManagement/client.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp index d0b875c46bc4..8ebf43de47bf 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp @@ -6,10 +6,10 @@ using Azure.ClientGenerator.Core; using Microsoft.CostManagement; // Rename PivotTypeType back to PivotType for Java -@@clientName(PivotTypeType, "PivotType", "java"); +@@clientName(PivotTypeType, "PivotType", "java,javascript"); // Rename KpiTypeType back to KpiType for Java -@@clientName(KpiTypeType, "KpiType", "java"); +@@clientName(KpiTypeType, "KpiType", "java,javascript"); // Rename DownloadURL back to DownloadUrl for Java @@clientName(DownloadURL, "DownloadUrl", "java"); From 3d0d17f8a5e0d6e79f0b2d40138c348c577529ac Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 5 Dec 2025 11:05:41 +0800 Subject: [PATCH 45/45] Update client.tsp --- .../Microsoft.CostManagement/CostManagement/client.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp index 8ebf43de47bf..fdcb8a02413b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/CostManagement/client.tsp @@ -36,7 +36,7 @@ using Microsoft.CostManagement; @@clientName(Microsoft.CostManagement, "CostManagementClient", "python"); @@clientName(Azure.ResourceManager.CommonTypes.ErrorResponse, "ArmErrorResponse", - "python" + "python,javascript" ); @@clientName(Term.P1Y, "P1_Y", "python"); @@clientName(Term.P3Y, "P3_Y", "python");