diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/common-types.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/common-types.json index 02456849f797..a8d3cc6369ba 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/common-types.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/common-types.json @@ -87,7 +87,8 @@ "properties": { "code": { "description": "Error code.", - "type": "string", + "type": "integer", + "format": "int32", "readOnly": true }, "message": { @@ -111,7 +112,7 @@ "readOnly": true, "description": "The additional details of the error.", "items": { - "$ref": "#/definitions/ErrorDetails" + "$ref": "#/definitions/ErrorDetailsWithNestedDetails" }, "x-ms-identifiers": [] } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/costmanagement.generatecostdetailsreport.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/costmanagement.generatecostdetailsreport.json index 5d8ea3cb7643..9ebe8e113d00 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/costmanagement.generatecostdetailsreport.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/costmanagement.generatecostdetailsreport.json @@ -39,7 +39,7 @@ "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.", + "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/" }, @@ -108,6 +108,9 @@ } } }, + "204": { + "description": "No Content. The request has succeeded but returned no results." + }, "default": { "description": "Error response describing why the operation failed.", "schema": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/costmanagement.generatedetailedcostreport.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/costmanagement.generatedetailedcostreport.json index 2a8e162c6cad..ee983b5c4fe7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/costmanagement.generatedetailedcostreport.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/costmanagement.generatedetailedcostreport.json @@ -286,6 +286,14 @@ "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" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json index 531b6827c32c..7309017f50d7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingAccountEnterpriseAgreementCustomerAndBillingPeriod.json @@ -41,6 +41,7 @@ "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2023-03-01", "Retry-After": "60" } - } + }, + "204": {} } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json index 9c519824d13f..8241d4a83966 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceId.json @@ -41,6 +41,7 @@ "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2023-03-01", "Retry-After": "60" } - } + }, + "204": {} } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json index f07f6f821ec3..a6feb7e87839 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByBillingProfileAndInvoiceIdAndCustomerId.json @@ -41,6 +41,7 @@ "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2023-03-01", "Retry-After": "60" } - } + }, + "204": {} } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json index 4ebc3f9c4e20..41f35cabe9c2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByCustomerAndTimePeriod.json @@ -47,6 +47,7 @@ "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/13579/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2023-03-01", "Retry-After": "60" } - } + }, + "204": {} } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json index d1fdf7591e10..42be038cd5bd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByDepartmentsAndTimePeriod.json @@ -47,6 +47,7 @@ "Location": "https://management.azure.com/providers/Microsoft.Billing/departments/12345/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2023-03-01", "Retry-After": "60" } - } + }, + "204": {} } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json index 0e621f5b0cf0..3c7bfd085d3c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportByEnrollmentAccountsAndTimePeriod.json @@ -47,6 +47,7 @@ "Location": "https://management.azure.com/providers/Microsoft.Billing/enrollmentAccounts/1234/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2023-03-01", "Retry-After": "60" } - } + }, + "204": {} } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json index cbf2b4e028c7..3a171d15d83d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateCostDetailsReportBySubscriptionAndTimePeriod.json @@ -47,6 +47,7 @@ "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/costDetailsOperationResults/00000000-0000-0000-0000-000000000000?api-version=2023-03-01", "Retry-After": "60" } - } + }, + "204": {} } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json index 58a9a30abc8f..e3d60a751f14 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/examples/GenerateDetailedCostReportOperationStatusBySubscriptionScope.json @@ -16,7 +16,7 @@ "validTill": "2020-12-08T05:55:59.4394737Z" }, "error": { - "code": "0", + "code": 0, "message": null } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/scheduledActions.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/scheduledActions.json index 2c3d9af65d98..7419c2d09301 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/scheduledActions.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2023-03-01/scheduledActions.json @@ -924,8 +924,9 @@ "name": "If-Match", "in": "header", "required": false, - "description": "ETag of the Entity. Not required when creating an entity, but required when updating an entity.", - "type": "string" + "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" } } }