From b323842de31307bd141c96f64f2d155ffe36e6e1 Mon Sep 17 00:00:00 2001 From: Michael Cianciarulo Date: Thu, 10 Jan 2019 14:58:41 -0800 Subject: [PATCH 1/2] Copied previous preview version of reports API I copied over the previous preview version of the reports API in order to have a started place for changing the API to exports --- .../2019-01-01-preview/costmanagement.json | 3920 +++++++++++++++++ .../2019-01-01-preview/examples/Alert.json | 39 + .../examples/AlertList.json | 65 + .../BillingAccountDimensionsList.json | 38 + ...lingAccountDimensionsListExpandAndTop.json | 52 + ...illingAccountDimensionsListWithFilter.json | 36 + .../examples/BillingAccountQuery.json | 109 + .../examples/ConnectorDelete.json | 13 + .../examples/ConnectorGet.json | 38 + .../examples/ConnectorList.json | 45 + .../examples/ConnectorPatch.json | 33 + .../examples/ConnectorPut.json | 55 + .../2019-01-01-preview/examples/Report.json | 87 + .../examples/ReportByBillingAccount.json | 86 + .../examples/ReportByDepartment.json | 86 + .../examples/ReportCreateOrUpdate.json | 287 ++ .../ReportCreateOrUpdateByBillingAccount.json | 286 ++ .../ReportCreateOrUpdateByDepartment.json | 286 ++ .../examples/ReportDelete.json | 12 + .../ReportDeleteByBillingAccount.json | 11 + .../examples/ReportDeleteByDepartment.json | 11 + .../examples/ReportExecution.json | 12 + .../ReportExecutionByBillingAccount.json | 11 + .../examples/ReportExecutionByDepartment.json | 11 + .../examples/ReportExecutionList.json | 198 + .../ReportExecutionListByBillingAccount.json | 197 + .../ReportExecutionListByDepartment.json | 197 + .../examples/ReportList.json | 174 + .../examples/ReportListByBillingAccount.json | 173 + .../examples/ReportListByDepartment.json | 173 + .../examples/ResourceGroupDimensionsList.json | 49 + .../examples/ResourceGroupQuery.json | 100 + .../examples/SubscriptionDimensionsList.json | 51 + .../examples/SubscriptionQuery.json | 109 + 34 files changed, 7050 insertions(+) create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/costmanagement.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Alert.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/AlertList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListWithFilter.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountQuery.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorDelete.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorGet.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPatch.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPut.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Report.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByBillingAccount.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByDepartment.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdate.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByBillingAccount.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByDepartment.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDelete.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByBillingAccount.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByDepartment.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecution.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByBillingAccount.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByDepartment.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByBillingAccount.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByDepartment.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByBillingAccount.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByDepartment.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupDimensionsList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupQuery.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionDimensionsList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionQuery.json diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/costmanagement.json new file mode 100644 index 000000000000..5303e371095c --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/costmanagement.json @@ -0,0 +1,3920 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-08-01-preview", + "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": { + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_List", + "description": "Lists all reports for a subscription.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ReportList": { + "$ref": "./examples/ReportList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_ListByResourceGroupName", + "description": "Lists all reports for a resource group under a subscription.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ReportList": { + "$ref": "./examples/ReportList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_ListByBillingAccount", + "description": "Lists all reports for a billing account.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ReportList": { + "$ref": "./examples/ReportListByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_ListByDepartment", + "description": "Lists all reports for a department.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ReportList": { + "$ref": "./examples/ReportListByDepartment.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/departmentIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_Get", + "description": "Gets the report for a subscription by report name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Report": { + "$ref": "./examples/Report.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Reports" + ], + "operationId": "Reports_CreateOrUpdate", + "description": "The operation to create or update a report. Update operation requires latest eTag to be set in the request mandatorily. 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": { + "CreateOrUpdateReport": { + "$ref": "./examples/ReportCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Report" + }, + "description": "Parameters supplied to the CreateOrUpdate Report operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "201": { + "description": "Created.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Reports" + ], + "operationId": "Reports_Delete", + "description": "The operation to delete a report.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "DeleteReport": { + "$ref": "./examples/ReportDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_GetByResourceGroupName", + "description": "Gets the report for a resource group under a subscription by report name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Report": { + "$ref": "./examples/Report.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Reports" + ], + "operationId": "Reports_CreateOrUpdateByResourceGroupName", + "description": "The operation to create or update a report. Update operation requires latest eTag to be set in the request mandatorily. 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": { + "CreateOrUpdateReport": { + "$ref": "./examples/ReportCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Report" + }, + "description": "Parameters supplied to the CreateOrUpdate Report operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "201": { + "description": "Created.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Reports" + ], + "operationId": "Reports_DeleteByResourceGroupName", + "description": "The operation to delete a report.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "DeleteReport": { + "$ref": "./examples/ReportDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_GetByBillingAccount", + "description": "Gets the report for a billing account by report name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Report": { + "$ref": "./examples/ReportByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Reports" + ], + "operationId": "Reports_CreateOrUpdateByBillingAccount", + "description": "The operation to create or update a report for billingAccount. Update operation requires latest eTag to be set in the request mandatorily. 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": { + "CreateOrUpdateReport": { + "$ref": "./examples/ReportCreateOrUpdateByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Report" + }, + "description": "Parameters supplied to the CreateOrUpdate Report operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "201": { + "description": "Created.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Reports" + ], + "operationId": "Reports_DeleteByBillingAccount", + "description": "The operation to delete a report for billing account.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "DeleteReport": { + "$ref": "./examples/ReportDeleteByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_GetByDepartment", + "description": "Gets the report for a department by report name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Report": { + "$ref": "./examples/ReportByDepartment.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/departmentIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Reports" + ], + "operationId": "Reports_CreateOrUpdateByDepartment", + "description": "The operation to create or update a report for department. Update operation requires latest eTag to be set in the request mandatorily. 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": { + "CreateOrUpdateReport": { + "$ref": "./examples/ReportCreateOrUpdateByDepartment.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/departmentIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Report" + }, + "description": "Parameters supplied to the CreateOrUpdate Report operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "201": { + "description": "Created.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Reports" + ], + "operationId": "Reports_DeleteByDepartment", + "description": "The operation to delete a report for department.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "DeleteReport": { + "$ref": "./examples/ReportDeleteByDepartment.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/departmentIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}/run": { + "post": { + "tags": [ + "Reports" + ], + "operationId": "Reports_Execute", + "description": "The operation to execute a report.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ExecuteReport": { + "$ref": "./examples/ReportExecution.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}/run": { + "post": { + "tags": [ + "Reports" + ], + "operationId": "Reports_ExecuteByResourceGroupName", + "description": "The operation to execute a report.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ExecuteReport": { + "$ref": "./examples/ReportExecution.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}/run": { + "post": { + "tags": [ + "Reports" + ], + "operationId": "Reports_ExecuteByBillingAccount", + "description": "The operation to execute a report by billing account.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ExecuteReport": { + "$ref": "./examples/ReportExecutionByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}/run": { + "post": { + "tags": [ + "Reports" + ], + "operationId": "Reports_ExecuteByDepartment", + "description": "The operation to execute a report by department.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ExecuteReport": { + "$ref": "./examples/ReportExecutionByDepartment.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/departmentIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_GetExecutionHistory", + "description": "Gets the execution history of a report for a subscription by report name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ExecutionHistoryReport": { + "$ref": "./examples/ReportExecutionList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportExecutionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_GetExecutionHistoryByResourceGroupName", + "description": "Gets the execution history of a report for a resource group by report name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ExecutionHistoryReport": { + "$ref": "./examples/ReportExecutionList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportExecutionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_GetExecutionHistoryByBillingAccount", + "description": "Gets the execution history of a report for a billing account by report name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ExecutionHistoryReport": { + "$ref": "./examples/ReportExecutionListByBillingAccount.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportExecutionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "Reports_GetExecutionHistoryByDepartment", + "description": "Gets the execution history of a report for a department by report name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ExecutionHistoryReport": { + "$ref": "./examples/ReportExecutionListByDepartment.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/departmentIdParameter" + }, + { + "$ref": "#/parameters/reportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportExecutionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/dimensions": { + "get": { + "tags": [ + "Dimensions" + ], + "x-ms-odata": "#/definitions/Dimension", + "operationId": "BillingAccountDimensions_List", + "description": "Lists the dimensions by billingAccount Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "BillingAccountDimensionsList": { + "$ref": "./examples/BillingAccountDimensionsList.json" + }, + "BillingAccountDimensionsListExpandAndTop": { + "$ref": "./examples/BillingAccountDimensionsListExpandAndTop.json" + }, + "BillingAccountDimensionsListWithFilter": { + "$ref": "./examples/BillingAccountDimensionsListWithFilter.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "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 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/dimensions": { + "get": { + "tags": [ + "Dimensions" + ], + "x-ms-odata": "#/definitions/Dimension", + "operationId": "SubscriptionDimensions_List", + "description": "Lists the dimensions by subscription Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "SubscriptionDimensionsList": { + "$ref": "./examples/SubscriptionDimensionsList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "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 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/dimensions": { + "get": { + "tags": [ + "Dimensions" + ], + "x-ms-odata": "#/definitions/Dimension", + "operationId": "ResourceGroupDimensions_List", + "description": "Lists the dimensions by resource group Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ResourceGroupDimensionsList": { + "$ref": "./examples/ResourceGroupDimensionsList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "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 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/Query": { + "post": { + "tags": [ + "Query" + ], + "operationId": "QuerySubscription", + "description": "Lists the usage data for subscriptionId.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "SubscriptionQuery": { + "$ref": "./examples/SubscriptionQuery.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReportDefinition" + }, + "description": "Parameters supplied to the CreateOrUpdate Report operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/Query": { + "post": { + "tags": [ + "Query" + ], + "operationId": "QueryResourceGroup", + "description": "Lists the usage data for subscriptionId and resource group.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ResourceGroupQuery": { + "$ref": "./examples/ResourceGroupQuery.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReportDefinition" + }, + "description": "Parameters supplied to the CreateOrUpdate Report operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/Query": { + "post": { + "tags": [ + "Query" + ], + "operationId": "QueryBillingAccount", + "description": "Lists the usage data for billing account.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "BillingAccountQuery": { + "$ref": "./examples/BillingAccountQuery.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReportDefinition" + }, + "description": "Parameters supplied to the CreateOrUpdate Report operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/connectors": { + "get": { + "tags": [ + "Connectors" + ], + "operationId": "Connector_List", + "description": "List all connector definitions for a subscription", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Connector_List": { + "$ref": "./examples/ConnectorList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ConnectorDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors": { + "get": { + "tags": [ + "Connectors" + ], + "operationId": "Connector_ListByResourceGroupName", + "description": "List all connector definitions for a resource group under a subscription.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Connector_List": { + "$ref": "./examples/ConnectorList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ConnectorDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName}": { + "get": { + "tags": [ + "Connectors" + ], + "operationId": "Connector_Get", + "description": "Get a connector definition", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Connector_Get": { + "$ref": "./examples/ConnectorGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/connectorNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ConnectorDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Connectors" + ], + "operationId": "Connector_CreateOrUpdate", + "description": "Create or update a connector definition", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Connector_Put": { + "$ref": "./examples/ConnectorPut.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/connectorNameParameter" + }, + { + "name": "connector", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectorDefinition" + }, + "description": "Connector details" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ConnectorDefinition" + } + }, + "201": { + "description": "Created.", + "schema": { + "$ref": "#/definitions/ConnectorDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Connectors" + ], + "operationId": "Connector_Delete", + "description": "Delete a connector definition", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Connector_Delete": { + "$ref": "./examples/ConnectorDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/connectorNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Connectors" + ], + "operationId": "Connector_Update", + "description": "Update a connector definition", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Connector_Patch": { + "$ref": "./examples/ConnectorPatch.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/connectorNameParameter" + }, + { + "name": "connector", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectorDefinition" + }, + "description": "Connector details" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ConnectorDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_List", + "description": "List all alerts for a subscription.", + "x-ms-examples": { + "Alert_List": { + "$ref": "./examples/AlertList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "name": "$filter", + "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "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 alerts.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AlertListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_ListByResourceGroupName", + "description": "List all alerts for a resource group under a subscription.", + "x-ms-examples": { + "Alert_List": { + "$ref": "./examples/AlertList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "$filter", + "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "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 alerts.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AlertListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/alerts": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_ListByEnrollment", + "description": "List all alerts for an enrollment.", + "x-ms-examples": { + "Alert_List": { + "$ref": "./examples/AlertList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "name": "$filter", + "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "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 alerts.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AlertListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_ListByDepartment", + "description": "List all alerts for a department.", + "x-ms-examples": { + "Alert_List": { + "$ref": "./examples/AlertList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/departmentIdParameter" + }, + { + "name": "$filter", + "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "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 alerts.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AlertListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_ListByAccount", + "description": "List all alerts for an account.", + "x-ms-examples": { + "Alert_List": { + "$ref": "./examples/AlertList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/enrollmentAccountIdParameter" + }, + { + "name": "$filter", + "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "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 alerts.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AlertListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/alerts": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_ListByManagementGroups", + "description": "List all alerts for Management Groups.", + "x-ms-examples": { + "Alert_List": { + "$ref": "./examples/AlertList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/managementGroupIdParameter" + }, + { + "name": "$filter", + "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "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 alerts.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AlertListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts/{alertId}": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_GetBySubscription", + "description": "Gets the alert for a subscription by alert ID.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$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": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts/{alertId}": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_GetByResourceGroupName", + "description": "Gets the alert for a resource group under a subscription by alert ID.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$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": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_GetByEnrollment", + "description": "Gets the alert for an enrollment by alert ID.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$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": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts/{alertId}": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_GetByDepartment", + "description": "Gets the alert for a department by alert ID.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/departmentIdParameter" + }, + { + "$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": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_GetByAccount", + "description": "Gets the alert for an account by alert ID.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/enrollmentAccountIdParameter" + }, + { + "$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": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/alerts/{alertId}": { + "get": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_GetAlertByManagementGroups", + "description": "Gets an alert for Management Groups by alert ID.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/managementGroupIdParameter" + }, + { + "$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": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus": { + "patch": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_UpdateSubscriptionAlertStatus", + "description": "Update alerts status for a subscription.", + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/alertIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Alert" + }, + "description": "Parameters supplied to the update alerts status operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Alert" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus": { + "patch": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_UpdateResourceGroupNameAlertStatus", + "description": "Update alerts status for a resource group under a subscription.", + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/alertIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Alert" + }, + "description": "Parameters supplied to the update alerts status operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Alert" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus": { + "patch": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_UpdateBillingAccountAlertStatus", + "description": "Update alerts status for billing account.", + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/alertIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Alert" + }, + "description": "Parameters supplied to the update alerts status operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Alert" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus": { + "patch": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_UpdateDepartmentsAlertStatus", + "description": "Update alerts status for a department.", + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/departmentIdParameter" + }, + { + "$ref": "#/parameters/alertIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Alert" + }, + "description": "Parameters supplied to the update alerts status operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Alert" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus": { + "patch": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_UpdateEnrollmentAccountAlertStatus", + "description": "Update alerts status for an enrollment account.", + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/enrollmentAccountIdParameter" + }, + { + "$ref": "#/parameters/alertIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Alert" + }, + "description": "Parameters supplied to the update alerts status operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Alert" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/alerts/{alertId}/UpdateStatus": { + "patch": { + "tags": [ + "Alerts" + ], + "operationId": "Alerts_UpdateManagementGroupAlertStatus", + "description": "Update alerts status for management group.", + "x-ms-examples": { + "Alert": { + "$ref": "./examples/Alert.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/managementGroupIdParameter" + }, + { + "$ref": "#/parameters/alertIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Alert" + }, + "description": "Parameters supplied to the update alerts status operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Alert" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.CostManagement/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available cost management REST API operations.", + "parameters": [ + { + "$ref": "#/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": { + "Operation": { + "description": "A Cost Management REST API operation.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string", + "readOnly": true + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.CostManagement.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Resource on which the operation is performed: UsageDetail, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "OperationListResult": { + "description": "Result of listing CostManagement operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of CostManagement operations supported by the Microsoft.CostManagement resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "ErrorBase": { + "description": "The details of the error.", + "properties": { + "code": { + "type": "string", + "description": "A machine readable error code.", + "readOnly": true + }, + "message": { + "type": "string", + "description": "A human readable error message.", + "readOnly": true + }, + "target": { + "type": "string", + "description": "Indicates which property in the request is responsible for the error.", + "readOnly": true + } + } + }, + "ErrorDetails": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "A machine readable error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "A human readable error message.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Indicates which property in the request is responsible for the error.", + "type": "string" + }, + "details": { + "description": "error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorBase" + } + } + } + }, + "ErrorResponse": { + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "error": { + "description": "The details of the error.", + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "Resource": { + "description": "The Resource model definition.", + "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." + }, + "tags": { + "readOnly": true, + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "x-ms-azure-resource": true + }, + "ReportListResult": { + "description": "Result of listing reports. It contains a list of available reports in the scope provided.", + "properties": { + "value": { + "description": "The list of reports.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Report" + } + } + } + }, + "Report": { + "description": "A report resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReportProperties", + "title": "Report properties" + } + } + }, + "ReportProperties": { + "description": "The properties of the report.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CommonReportProperties" + } + ], + "properties": { + "schedule": { + "description": "Has schedule information for the report.", + "$ref": "#/definitions/ReportSchedule" + } + } + }, + "CommonReportProperties": { + "description": "The common properties of the report.", + "properties": { + "format": { + "description": "The format of the report being delivered.", + "type": "string", + "enum": [ + "Csv" + ], + "x-ms-enum": { + "name": "FormatType", + "modelAsString": true + } + }, + "deliveryInfo": { + "description": "Has delivery information for the report.", + "$ref": "#/definitions/ReportDeliveryInfo" + }, + "definition": { + "description": "Has definition for the report.", + "$ref": "#/definitions/ReportDefinition" + } + }, + "required": [ + "deliveryInfo", + "definition" + ] + }, + "ReportSchedule": { + "description": "The schedule associated with a report.", + "properties": { + "status": { + "description": "The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.", + "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/ReportRecurrencePeriod" + } + }, + "required": [ + "recurrence" + ] + }, + "ReportDeliveryInfo": { + "description": "The delivery information associated with a report.", + "properties": { + "destination": { + "description": "Has destination for the report being delivered.", + "$ref": "#/definitions/ReportDeliveryDestination" + } + }, + "required": [ + "destination" + ] + }, + "ReportDefinition": { + "description": "The definition of a report.", + "properties": { + "type": { + "description": "The type of the report.", + "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", + "Custom" + ], + "x-ms-enum": { + "name": "TimeframeType", + "modelAsString": true + } + }, + "timePeriod": { + "description": "Has time period for pulling data for the report.", + "$ref": "#/definitions/ReportTimePeriod" + }, + "dataset": { + "description": "Has definition for data in this report.", + "$ref": "#/definitions/ReportDataset" + } + }, + "required": [ + "type", + "timeframe" + ] + }, + "ReportRecurrencePeriod": { + "description": "The start and end date for recurrence schedule.", + "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" + ] + }, + "ReportDeliveryDestination": { + "description": "The destination information for the delivery of the report.", + "properties": { + "resourceId": { + "description": "The resource id of the storage account where reports will be delivered.", + "type": "string" + }, + "container": { + "description": "The name of the container where reports will be uploaded.", + "type": "string" + }, + "rootFolderPath": { + "description": "The name of the directory where reports will be uploaded.", + "type": "string" + } + }, + "required": [ + "resourceId", + "container" + ] + }, + "ReportTimePeriod": { + "description": "The start and end date for pulling data for the report.", + "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" + ] + }, + "ReportDataset": { + "description": "The definition of data present in the report.", + "properties": { + "granularity": { + "description": "The granularity of rows in the report.", + "type": "string", + "enum": [ + "Daily" + ], + "x-ms-enum": { + "name": "GranularityType", + "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/ReportDatasetConfiguration" + }, + "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": { + "type": "object", + "$ref": "#/definitions/ReportAggregation" + }, + "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/ReportGrouping" + }, + "maxItems": 2 + }, + "filter": { + "type": "object", + "description": "Has filter expression to use in the report.", + "$ref": "#/definitions/ReportFilter" + } + } + }, + "ReportDatasetConfiguration": { + "description": "The configuration of dataset in the report.", + "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" + } + } + } + }, + "ReportAggregation": { + "description": "The aggregation expression to be used in the report.", + "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" + ] + }, + "ReportGrouping": { + "description": "The group by expression to be used in the report.", + "properties": { + "type": { + "description": "Has type of the column to group.", + "$ref": "#/definitions/ReportColumnType" + }, + "name": { + "description": "The name of the column to group.", + "type": "string" + } + }, + "required": [ + "type", + "name" + ] + }, + "ReportFilter": { + "description": "The filter expression to be used in the report.", + "properties": { + "and": { + "description": "The logical \"AND\" expression. Must have at least 2 items.", + "type": "array", + "items": { + "$ref": "#/definitions/ReportFilter" + }, + "minItems": 2 + }, + "or": { + "description": "The logical \"OR\" expression. Must have at least 2 items.", + "type": "array", + "items": { + "$ref": "#/definitions/ReportFilter" + }, + "minItems": 2 + }, + "not": { + "description": "The logical \"NOT\" expression.", + "$ref": "#/definitions/ReportFilter" + }, + "dimension": { + "description": "Has comparison expression for a dimension", + "$ref": "#/definitions/ReportComparisonExpression" + }, + "tag": { + "description": "Has comparison expression for a tag", + "$ref": "#/definitions/ReportComparisonExpression" + } + } + }, + "ReportColumnType": { + "description": "The type of the column in the report.", + "type": "string", + "enum": [ + "Tag", + "Dimension" + ], + "x-ms-enum": { + "name": "ReportColumnType", + "modelAsString": true + } + }, + "ReportComparisonExpression": { + "description": "The comparison expression to be used in the report.", + "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": "OperatorType", + "modelAsString": true + } + }, + "values": { + "description": "Array of values to use for comparison", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1 + } + }, + "required": [ + "name", + "operator", + "values" + ] + }, + "ReportExecutionListResult": { + "description": "Result of listing reports execution history of a report by name", + "properties": { + "value": { + "description": "The list of report executions.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ReportExecution" + } + } + } + }, + "ReportExecution" : { + "description": "A report execution.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReportExecutionProperties", + "title": "Report execution properties" + } + } + }, + "ReportExecutionProperties": { + "description": "The properties of the report execution.", + "properties": { + "executionType": { + "description": "The type of the report execution.", + "type": "string", + "enum": [ + "OnDemand", + "Scheduled" + ], + "x-ms-enum": { + "name": "ExecutionType", + "modelAsString": true + } + }, + "status": { + "description": "The status of the report execution.", + "type": "string", + "enum": [ + "Queud", + "InProgress", + "Completed", + "Failed", + "Timeout" + ], + "x-ms-enum": { + "name": "ExecutionStatus", + "modelAsString": true + } + }, + "submittedBy": { + "description": "The identifier for the entity that executed the report. For OnDemand executions, it is the email id. For Scheduled executions, it is the constant value - System.", + "type": "string" + }, + "submittedTime": { + "description": "The time when report was queued to be executed.", + "type": "string", + "format": "date-time" + }, + "processingStartTime": { + "description": "The time when report was picked up to be executed.", + "type": "string", + "format": "date-time" + }, + "processingEndTime": { + "description": "The time when report execution finished.", + "type": "string", + "format": "date-time" + }, + "fileName": { + "description": "The name of the file report got written to.", + "type": "string" + }, + "reportSettings": { + "$ref": "#/definitions/CommonReportProperties" + } + } + }, + "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": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DimensionProperties", + "title": "Dimension properties" + } + } + }, + "DimensionProperties": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "string" + } + }, + "total": { + "format": "int32", + "type": "integer" + }, + "category": { + "type": "string" + }, + "usageStart": { + "format": "date-time", + "type": "string" + }, + "usageEnd": { + "format": "date-time", + "type": "string" + }, + "nextLink": { + "type": "string" + } + } + }, + "QueryResult": { + "description": "Result of query. It contains all columns listed under groupings and aggregation.", + "type": "object", + "properties": { + "value": { + "description": "The list of usage data.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Query" + } + } + } + }, + "Query": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/QueryProperties", + "title": "Query properties" + } + } + }, + "QueryProperties": { + "type": "object", + "properties": { + "nextLink": { + "type": "string" + }, + "columns": { + "description": "Array of columns", + "type": "array", + "items": { + "$ref": "#/definitions/QueryColumn" + } + }, + "rows": { + "type": "array", + "items": { + "type": "array", + "items": {} + } + } + } + }, + "QueryColumn": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "ConnectorDefinitionListResult": { + "description": "Result of listing connector definitions. It contains a list of available connector definitions in the scope provided.", + "properties": { + "value": { + "description": "The list of connector definitions.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ConnectorDefinition" + } + } + } + }, + "ConnectorDefinition": { + "type": "object", + "description": "The Connector model definition", + "properties": { + "kind": { + "type": "string", + "description": "Connector kind (eg aws)" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Connector id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Connector name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Connector type" + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "Connector location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ConnectorProperties", + "description": "Connector properties" + } + }, + "x-ms-azure-resource": true + }, + "ConnectorProperties": { + "type": "object", + "description": "The properties of a Connector", + "properties": { + "displayName": { + "type": "string", + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Connector DisplayName (defaults to Name)" + }, + "providerAccountId": { + "type": "string", + "x-ms-mutability": [ + "read" + ], + "description": "Connector providerAccountId (determined from credentials)", + "readOnly": true + }, + "credentialsKey": { + "type": "string", + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Credentials authentication key (eg AWS ARN)" + }, + "credentialsSecret": { + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ], + "description": "Credentials secret (eg AWS ExternalId)" + }, + "reportId": { + "type": "string", + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)" + }, + "createdOn": { + "format": "date-time", + "type": "string", + "x-ms-mutability": [ + "read" + ], + "description": "Connector definition creation datetime", + "readOnly": true + }, + "modifiedOn": { + "format": "date-time", + "type": "string", + "x-ms-mutability": [ + "read" + ], + "description": "Connector last modified datetime", + "readOnly": true + }, + "status": { + "enum": [ + "active", + "error", + "suspended" + ], + "x-ms-enum": { + "name": "ConnectorStatus", + "modelAsString": true + }, + "type": "string", + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Connector status" + }, + "collection": { + "$ref": "#/definitions/ConnectorCollectionInfo", + "description": "Collection information", + "readOnly": true + } + } + }, + "ConnectorCollectionInfo": { + "type": "object", + "description": "Collection and ingestion information", + "properties": { + "lastRun": { + "format": "date-time", + "type": "string", + "x-ms-mutability": [ + "read" + ], + "description": "Last time the data acquisition process completed (even if no new data was found)", + "readOnly": true + }, + "sourceLastUpdated": { + "format": "date-time", + "type": "string", + "x-ms-mutability": [ + "read" + ], + "description": "Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)", + "readOnly": true + }, + "lastUpdated": { + "format": "date-time", + "type": "string", + "x-ms-mutability": [ + "read" + ], + "description": "Last time the external data was updated into Azure", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/ConnectorCollectionErrorInfo", + "description": "Error information of last collection" + } + } + }, + "ConnectorCollectionErrorInfo": { + "type": "object", + "description": "Details of any error encountered on last collection attempt", + "properties": { + "errorMessage": { + "type": "string", + "description": "Detailed error message", + "readOnly": true + }, + "errorCode": { + "type": "string", + "description": "Short error message", + "readOnly": true + }, + "errorStartTime": { + "format": "date-time", + "type": "string", + "description": "Time the error started occurring (Last time error occurred in lastRun)", + "readOnly": true + } + } + }, + "AlertListResult": { + "description": "Result of listing alerts. It contains a list of available alerts in the scope provided.", + "properties": { + "value": { + "description": "The list of alerts.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Alert" + } + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of Alerts.", + "readOnly": true + } + } + }, + "Alert": { + "type": "object", + "description": "The Alert model definition", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Alert id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Alert name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Alert type" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AlertProperties", + "description": "Alert properties" + } + } + }, + "AlertProperties": { + "description": "The properties of an Alert.", + "properties": { + "costEntityId": { + "description": "The id of the creating cost-entity (budget, invoice, credit).", + "type": "string", + "readOnly": true + }, + "definition": { + "description": "The definition (rule) of an Alert", + "$ref": "#/definitions/AlertDefinition", + "readOnly": true + }, + "description": { + "description": "Description of an alert.", + "type": "string", + "readOnly": true + }, + "scope": { + "description": "The scope of an alert.", + "type": "string", + "readOnly": true + }, + "source": { + "description": "The source of an Alert", + "type": "string", + "enum": [ + "Preset", + "User" + ], + "x-ms-enum": { + "name": "AlertSource", + "modelAsString": true + }, + "readOnly": true + }, + "details": { + "description": "Specific details of an alert - key-value dictionary.", + "x-ms-client-flatten": true, + "type": "object", + "additionalProperties": { + "type": "string" + }, + "readOnly": true + }, + "creationTime": { + "format": "date-time", + "description": "The time when the alert was created.", + "type": "string", + "readOnly": true + }, + "closeTime": { + "format": "date-time", + "description": "The time when the alert was closed (resolved / overridden).", + "type": "string", + "readOnly": true + }, + "status": { + "description": "The current status of the alert.", + "type": "string", + "enum": [ + "Active", + "Overridden", + "Resolved", + "Dismissed" + ], + "x-ms-enum": { + "name": "AlertStatus", + "modelAsString": true + } + }, + "statusModificationTime": { + "description": "The current status when alert status was modified.", + "format": "date-time", + "type": "string", + "readOnly": true + }, + "modificationTime": { + "description": "The current status when alert was modified.", + "format": "date-time", + "type": "string", + "readOnly": true + }, + "modificationUsername": { + "description": "The username who modified the alert.", + "type": "string", + "readOnly": true + } + } + }, + "AlertDefinition": { + "description": "The definition (rule) of an Alert", + "type": "object", + "readOnly": true, + "properties" : { + "category": { + "description": "Category of the alert.", + "type": "string", + "readOnly": true, + "enum": [ + "Cost", + "Usage", + "Billing" + ], + "x-ms-enum": { + "name": "AlertCategory", + "modelAsString": true + } + }, + "type": { + "description": "The type of cost-entity the alert is defined on.", + "type": "string", + "readOnly": true, + "enum": [ + "Budget", + "Invoice", + "Credit" + ], + "x-ms-enum": { + "name": "AlertType", + "modelAsString": true + } + }, + "criteria": { + "description": "Criteria (condition) of the alert.", + "type": "string", + "readOnly": true, + "enum": [ + "CostThresholdExceeded", + "UsageThresholdExceeded", + "CreditThresholdReached" + ], + "x-ms-enum": { + "name": "AlertCriteria", + "modelAsString": true + } + } + } + } + }, + "parameters": { + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2018-08-01-preview." + }, + "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" + }, + "billingAccountIdParameter": { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount 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" + }, + "managementGroupIdParameter": { + "name": "managementGroupId", + "in": "path", + "description": "Management Group 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" + }, + "reportNameParameter": { + "name": "reportName", + "in": "path", + "description": "Report Name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "connectorNameParameter": { + "name": "connectorName", + "in": "path", + "description": "Connector Name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "alertIdParameter": { + "name": "alertId", + "in": "path", + "description": "Alert ID.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Alert.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Alert.json new file mode 100644 index 000000000000..7b453b028762 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Alert.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", + "resourceGroupName": "rg1", + "alertId": "0e1d6ee7-0052-4996-89e2-023263106885" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/alerts/0e1d6ee7-0052-4996-89e2-023263106885", + "name": "0e1d6ee7-0052-4996-89e2-023263106885", + "type": "Microsoft.CostManagement/alerts", + "properties": { + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "description": "This is an example alert", + "source": "User", + "details": { + "amountDue": "500.0", + "billedAmount": "680.36" + }, + "costEntityId": "123", + "creationTime": "2018-09-03T11:21:43.3495582+03:00", + "status": "Active", + "closeTime": "2018-09-10T11:21:43.3495582+03:00", + "modificationTime": "2018-12-05T10:04:36.0321998Z", + "statusModificationUserName": "Ido Ben", + "statusModificationTime": "2018-12-05T10:04:36.0321998Z" + } + } + } + } + } + + \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/AlertList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/AlertList.json new file mode 100644 index 000000000000..a81a0565f8dd --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/AlertList.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/alerts/0e1d6ee7-0052-4996-89e2-023263106885", + "name": "0e1d6ee7-0052-4996-89e2-023263106885", + "type": "Microsoft.CostManagement/alerts", + "properties": { + "definition": { + "type": "Budget", + "category": "Cost", + "criteria": "CostThresholdExceeded" + }, + "description": "This is an example alert", + "source": "User", + "details": { + "amountDue": "500.0", + "billedAmount": "680.36" + }, + "costEntityId": "123", + "creationTime": "2018-09-03T11:21:43.3495582+03:00", + "status": "Resolved", + "closeTime": "2018-09-10T11:21:43.3495582+03:00", + "modificationTime": "2018-12-05T10:04:36.0321998Z", + "statusModificationUserName": "Ido Ben", + "statusModificationTime": "2018-12-05T10:04:36.0321998Z" + } + }, + { + "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/alerts/0e1d6ee7-0052-4996-89e2-023263106454", + "name": "0e1d6ee7-0052-4996-89e2-023263106454", + "type": "Microsoft.CostManagement/alerts", + "properties": { + "definition": { + "type": "Credit", + "category": "Billing", + "criteria": "CreditThresholdReached" + }, + "description": "This is another example alert", + "source": "Preset", + "details": { + "amountDue": "500.0", + "billedAmount": "680.36" + }, + "costEntityId": "abc", + "creationTime": "2018-09-03T11:21:43.3495582+03:00", + "status": "Active", + "closeTime": "1970-01-01T00:00:00.0000000+00:00", + "modificationTime": "2018-12-05T10:04:36.0321998Z", + "statusModificationUserName": "Ido Ben", + "statusModificationTime": "2018-12-05T10:04:36.0321998Z" + } + } + ] + } + } + } + } \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsList.json new file mode 100644 index 000000000000..a7a06a0a79d1 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsList.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "billingAccountId": "100" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [], + "total": 377, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00" + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [], + "total": 37, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..1d3b98e78173 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListExpandAndTop.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "billingAccountId": "100", + "$expand": "properties/data", + "$top": 5 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "total": 377, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00" + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "total": 37, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListWithFilter.json new file mode 100644 index 000000000000..e20085803ebe --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListWithFilter.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "billingAccountId": "100", + "$expand": "properties/data", + "$top": 5, + "$filter": "properties/category eq 'instanceId'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_InstanceId_2018-05-01_2018-05-31_5", + "name": "dimensions_InstanceId_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/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/39ae8bea-c3fd-4e24-8936-7c34974326ce/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": "InstanceId", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "nextLink": "http://management.azure.com/ccmapi/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.Consumption/Dimensions?$filter=properties/category eq 'instanceId'&$top=5&api-version=2018-05-31&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountQuery.json new file mode 100644 index 000000000000..4aee8d72ac2b --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountQuery.json @@ -0,0 +1,109 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "billingAccountId": "70664866", + "parameters":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "PreTaxCost", + "ResourceGroup", + "UsageDate" + ] + }, + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "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", + "properties": { + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2018-05-31&$skiptoken=AQAAAA%3D%3D", + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + } + ], + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331 + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331 + ], + [ + 20.359416562625452, + "VSTSHOL-1595322048000", + 20180331 + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331 + ] + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorDelete.json new file mode 100644 index 000000000000..da455d1b9697 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", + "resourceGroupName": "rg1", + "connectorName": "AWSBillingAccount" + }, + "responses": { + "200": { + } + } +} + diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorGet.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorGet.json new file mode 100644 index 000000000000..d75b65de49d2 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorGet.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", + "resourceGroupName": "rg1", + "connectorName": "AWSBillingAccount" + }, + "responses": { + "200": { + "body": { + "kind": "aws", + "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount", + "name": "AWSBillingAccount", + "type": "Microsoft.CostManagement/connectors", + "location": "westus", + "properties": { + "displayName": "AWS-Consolidated-1", + "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", + "reportId": "HourlyWithResources", + "createdOn": "2018-05-15T13:25:48Z", + "modifiedOn": "2018-05-23T09:21:11Z", + "status": "active", + "collection": { + "lastRun": "2018-06-15T03:21:08Z", + "sourceLastUpdated": "2018-06-12T16:41:28Z", + "lastUpdated": "2018-06-12T17:25:28Z", + "error": { + "errorMessage": "Insufficient access to assume role arn:aws:iam::123456789012:role/AzureCostManagementRole", + "errorCode": "AwsPermissionDenied", + "errorStartTime": "2018-06-12T21:41:03Z" + } + } + } + } + } + } +} + diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorList.json new file mode 100644 index 000000000000..33a7731545c1 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorList.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "kind": "aws", + "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount", + "name": "AWSBillingAccount", + "type": "Microsoft.CostManagement/connectors", + "location": "westus", + "properties": { + "displayName": "AWS-Consolidated-1", + "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", + "reportId": "HourlyWithResources", + "createdOn": "2018-05-15T13:25:48Z", + "modifiedOn": "2018-05-23T09:21:11Z", + "status": "active" + } + }, + { + "kind": "aws", + "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount2", + "name": "AWSBillingAccount2", + "type": "Microsoft.CostManagement/connectors", + "location": "westus", + "properties": { + "displayName": "AWSBillingAccount2", + "credentialsKey": "arn:aws:iam::000000000000:role/AzureCostManagementRole", + "reportId": "CURHourlyWithResources", + "createdOn": "2018-06-16T11:23:44Z", + "modifiedOn": "2018-06-21T17:33:28Z", + "status": "suspended" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPatch.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPatch.json new file mode 100644 index 000000000000..b51b8397f066 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPatch.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", + "resourceGroupName": "rg1", + "connectorName": "AWSBillingAccount", + "connector": { + "properties": { + "displayName": "AWS-Consolidated-2" + } + } + }, + "responses": { + "200": { + "body": { + "kind": "aws", + "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount", + "name": "AWSBillingAccount", + "type": "Microsoft.CostManagement/connectors", + "location": "westus", + "properties": { + "displayName": "AWS-Consolidated-2", + "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", + "reportId": "HourlyWithResources", + "createdOn": "2018-05-15T13:25:48Z", + "modifiedOn": "2018-05-23T09:21:11Z", + "status": "active" + } + } + } + } +} + diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPut.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPut.json new file mode 100644 index 000000000000..12eb0e165cca --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPut.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", + "resourceGroupName": "rg1", + "connectorName": "AWSBillingAccount", + "connector": { + "location": "westus", + "properties": { + "displayName": "AWS-Consolidated-1", + "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", + "credentialsSecret": "external-id", + "reportId": "HourlyWithResources", + "status": "active" + } + } + }, + "responses": { + "200": { + "body": { + "kind": "aws", + "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount", + "name": "AWSBillingAccount", + "type": "Microsoft.CostManagement/connectors", + "location": "westus", + "properties": { + "displayName": "AWS-Consolidated-1", + "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", + "reportId": "HourlyWithResources", + "createdOn": "2018-05-15T13:25:48Z", + "modifiedOn": "2018-05-23T09:21:11Z", + "status": "active" + } + } + }, + "201": { + "body": { + "kind": "aws", + "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount", + "name": "AWSBillingAccount", + "type": "Microsoft.CostManagement/connectors", + "location": "westus", + "properties": { + "displayName": "AWS-Consolidated-1", + "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", + "reportId": "HourlyWithResources", + "createdOn": "2018-05-15T13:25:48Z", + "modifiedOn": "2018-05-23T09:21:11Z", + "status": "active" + } + } + } + } +} + diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Report.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Report.json new file mode 100644 index 000000000000..f26608b34c6c --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Report.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "reportName": "TestReport" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/TestReport", + "name": "TestReport", + "type": "Microsoft.CostManagement/reports", + "properties": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "UsageDate", + "MeterId", + "InstanceId", + "ResourceLocation", + "UsageQuantity" + ] + }, + "aggregation": { + "usageSum": { + "name": "UsageQuantity", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "Contains", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByBillingAccount.json new file mode 100644 index 000000000000..2267381e937d --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByBillingAccount.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "billingAccountId": "123456", + "reportName": "TestReport" + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/reports/TestReport", + "name": "TestReport", + "type": "Microsoft.CostManagement/reports", + "properties": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "UsageDate", + "MeterId", + "InstanceId", + "ResourceLocation", + "UsageQuantity" + ] + }, + "aggregation": { + "usageSum": { + "name": "UsageQuantity", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "Contains", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByDepartment.json new file mode 100644 index 000000000000..7ee56072862b --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByDepartment.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "departmentId": "1234", + "reportName": "TestReport" + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.Billing/departments/{department-id}/providers/Microsoft.CostManagement/reports/TestReport", + "name": "TestReport", + "type": "Microsoft.CostManagement/reports", + "properties": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "UsageDate", + "MeterId", + "InstanceId", + "ResourceLocation", + "UsageQuantity" + ] + }, + "aggregation": { + "usageSum": { + "name": "UsageQuantity", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "Contains", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdate.json new file mode 100644 index 000000000000..2baf4bec33cf --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdate.json @@ -0,0 +1,287 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "reportName": "TestReport", + "parameters": { + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/TestReport", + "name": "TestReport", + "type": "Microsoft.CostManagement/reports", + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + }, + "200": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/TestReport", + "name": "TestReport", + "type": "Microsoft.CostManagement/reports", + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByBillingAccount.json new file mode 100644 index 000000000000..0dfa63dfc78f --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByBillingAccount.json @@ -0,0 +1,286 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "billingAccountId": "123456", + "reportName": "TestReport", + "parameters": { + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/reports/TestReport", + "name": "TestReport", + "type": "Microsoft.CostManagement/reports", + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + }, + "200": { + "body": { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/reports/TestReport", + "name": "TestReport", + "type": "Microsoft.CostManagement/reports", + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByDepartment.json new file mode 100644 index 000000000000..c99fcf648764 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByDepartment.json @@ -0,0 +1,286 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "departmentId": "1234", + "reportName": "TestReport", + "parameters": { + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "providers/Microsoft.Billing/departments/{department-id}/providers/Microsoft.CostManagement/reports/TestReport", + "name": "TestReport", + "type": "Microsoft.CostManagement/reports", + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + }, + "200": { + "body": { + "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/reports/TestReport", + "name": "TestReport", + "type": "Microsoft.CostManagement/reports", + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDelete.json new file mode 100644 index 000000000000..8a0a9bac45dc --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "reportName": "TestReport" + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByBillingAccount.json new file mode 100644 index 000000000000..3b458b6b2493 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByBillingAccount.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "billingAccountId": "123456", + "reportName": "TestReport" + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByDepartment.json new file mode 100644 index 000000000000..314878b7b21c --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByDepartment.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "departmentId": "1234", + "reportName": "TestReport" + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecution.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecution.json new file mode 100644 index 000000000000..2c7a3bf4e03b --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecution.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "reportName": "TestReport" + }, + "responses": { + "200": { + } + } + } \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByBillingAccount.json new file mode 100644 index 000000000000..d2e17535bcea --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByBillingAccount.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "billingAccountId": "123456", + "reportName": "TestReport" + }, + "responses": { + "200": { + } + } + } \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByDepartment.json new file mode 100644 index 000000000000..c1a7f5ea44aa --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByDepartment.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "departmentId": "1234", + "reportName": "TestReport" + }, + "responses": { + "200": { + } + } + } \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionList.json new file mode 100644 index 000000000000..913efdaba743 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionList.json @@ -0,0 +1,198 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "reportName": "TestReport" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/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", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "reportSettings": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ + { + "or": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + }, + { + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/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", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "reportSettings": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ + { + "or": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByBillingAccount.json new file mode 100644 index 000000000000..4b9d67e55fdc --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByBillingAccount.json @@ -0,0 +1,197 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "billingAccountId": "123456", + "reportName": "TestReport" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/reports/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", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "reportSettings": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ + { + "or": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/reports/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", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "reportSettings": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ + { + "or": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByDepartment.json new file mode 100644 index 000000000000..164474970149 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByDepartment.json @@ -0,0 +1,197 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "departmentId": "1234", + "reportName": "TestReport" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/reports/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", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "reportSettings": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ + { + "or": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + }, + { + "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/reports/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", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "reportSettings": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ + { + "or": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportList.json new file mode 100644 index 000000000000..e2411f79e956 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportList.json @@ -0,0 +1,174 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/TestReport1", + "name": "TestReport1", + "type": "Microsoft.CostManagement/reports", + "properties": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + }, + { + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/TestReport2", + "name": "TestReport2", + "type": "Microsoft.CostManagement/reports", + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "WeekToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "UsageQuantity" + ] + }, + "aggregation": { + "usageSum": { + "name": "UsageQuantity", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + } + } + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByBillingAccount.json new file mode 100644 index 000000000000..a18b6fc4b167 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByBillingAccount.json @@ -0,0 +1,173 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "billingAccountId": "123456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/reports/TestReport1", + "name": "TestReport1", + "type": "Microsoft.CostManagement/reports", + "properties": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/reports/TestReport2", + "name": "TestReport2", + "type": "Microsoft.CostManagement/reports", + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "WeekToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "UsageQuantity" + ] + }, + "aggregation": { + "usageSum": { + "name": "UsageQuantity", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + } + } + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByDepartment.json new file mode 100644 index 000000000000..7f3f2d19b822 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByDepartment.json @@ -0,0 +1,173 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "departmentId": "1234" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/reports/TestReport1", + "name": "TestReport1", + "type": "Microsoft.CostManagement/reports", + "properties": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + }, + { + "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/reports/TestReport2", + "name": "TestReport2", + "type": "Microsoft.CostManagement/reports", + "properties": { + "schedule":{ + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from":"2018-06-01T00:00:00Z", + "to":"2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition":{ + "type": "Usage", + "timeframe": "WeekToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "UsageQuantity" + ] + }, + "aggregation": { + "usageSum": { + "name": "UsageQuantity", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Tag", + "name": "Environment" + } + ], + "filter":{ + "and": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + } + } + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupDimensionsList.json new file mode 100644 index 000000000000..77e43e3091e4 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupDimensionsList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "39ae8bea-c3fd-4e24-8936-7c34974326ce", + "resourceGroupName": "system.orlando", + "$expand": "properties/data", + "$top": 5 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourceGroups/system.orlando/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "microsoft.storage/storageaccounts" + ], + "total": 1, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00" + } + }, + { + "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourceGroups/system.orlando/providers/microsoft.consumption/dimensions_InstanceId_2018-05-01_2018-05-31_5", + "name": "dimensions_InstanceId_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/authprod", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/systemevents", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/armadminprod", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/publicsystemportal" + ], + "total": 27, + "category": "InstanceId", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupQuery.json new file mode 100644 index 000000000000..b954cc947a93 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupQuery.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481", + "resourceGroupName": "ScreenSharingTest-peer", + "parameters":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "PreTaxCost", + "ResourceGroup", + "UsageDate" + ] + }, + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "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", + "properties": { + "nextLink": null, + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + } + ], + "rows": [ + [ + 2.10333307059661, + "ScreenSharingTest-peer", + 20180417 + ], + [ + 20.10333307059661, + "ScreenSharingTest-peer", + 20180418 + ] + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionDimensionsList.json new file mode 100644 index 000000000000..df827cb53161 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionDimensionsList.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "39ae8bea-c3fd-4e24-8936-7c34974326ce", + "$top": 5, + "$expand": "properties/data" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/providers/Microsoft.Consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "dcrg", + "rg", + "offlinegalleryrg", + "system.orlando.adminkeyvault", + "system.orlando.keyvault" + ], + "total": 68, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00" + } + }, + { + "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/providers/Microsoft.Consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "microsoft.storage/storageaccounts", + "microsoft.web.admin/role", + "microsoft.sql/servers", + "microsoft.compute/virtualmachines" + ], + "total": 4, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionQuery.json new file mode 100644 index 000000000000..5da1187f1a26 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionQuery.json @@ -0,0 +1,109 @@ +{ + "parameters": { + "api-version": "2018-08-01-preview", + "subscriptionId": "55312978-ba1b-415c-9304-c6b9c43c0481", + "parameters":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "PreTaxCost", + "ResourceGroup", + "UsageDate" + ] + }, + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/55312978-ba1b-415c-9304-c6b9c43c0481/providers/Microsoft.CostManagement/Query/55312978-ba1b-415c-9304-c6b9c43c0481", + "name": "55312978-ba1b-415c-9304-cfd9c43c0481", + "type": "microsoft.costmanagement/Query", + "properties": { + "nextLink": null, + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + } + ], + "rows": [ + [ + 2.10333307059661, + "ScreenSharingTest-peer", + 20180417 + ], + [ + 218.68795741935486, + "Ict_StratAndPlan_GoldSprova_Prod", + 20180331 + ], + [ + 0.14384913581657052, + "ssbciotelement01", + 20180331 + ], + [ + 0.009865586851323632, + "ict_stratandplan_goldsprova_prod", + 20180331 + ] + ] + } + } + ] + } + } + } +} \ No newline at end of file From 261c28346d702b3c316482a2467893d99c1e3183 Mon Sep 17 00:00:00 2001 From: Michael Cianciarulo Date: Thu, 10 Jan 2019 15:00:37 -0800 Subject: [PATCH 2/2] Updated reports API to exports I renamed everything from report to export and I deleted anything that wasn't for exports. --- .../2019-01-01-preview/costmanagement.json | 3466 ++++------------- .../2019-01-01-preview/examples/Alert.json | 39 - .../examples/AlertList.json | 65 - .../BillingAccountDimensionsList.json | 38 - ...lingAccountDimensionsListExpandAndTop.json | 52 - ...illingAccountDimensionsListWithFilter.json | 36 - .../examples/BillingAccountQuery.json | 109 - .../examples/ConnectorDelete.json | 13 - .../examples/ConnectorGet.json | 38 - .../examples/ConnectorList.json | 45 - .../examples/ConnectorPatch.json | 33 - .../examples/ConnectorPut.json | 55 - .../examples/{Report.json => Export.json} | 12 +- ...count.json => ExportByBillingAccount.json} | 12 +- ...epartment.json => ExportByDepartment.json} | 12 +- ...rUpdate.json => ExportCreateOrUpdate.json} | 22 +- ...ExportCreateOrUpdateByBillingAccount.json} | 22 +- ... => ExportCreateOrUpdateByDepartment.json} | 22 +- .../{ReportDelete.json => ExportDelete.json} | 4 +- ...json => ExportDeleteByBillingAccount.json} | 4 +- ...ent.json => ExportDeleteByDepartment.json} | 4 +- ...ortExecution.json => ExportExecution.json} | 4 +- ...n => ExportExecutionByBillingAccount.json} | 4 +- ....json => ExportExecutionByDepartment.json} | 4 +- ...tionList.json => ExportExecutionList.json} | 16 +- ... ExportExecutionListByBillingAccount.json} | 16 +- ...n => ExportExecutionListByDepartment.json} | 16 +- .../{ReportList.json => ExportList.json} | 18 +- ...t.json => ExportListByBillingAccount.json} | 18 +- ...tment.json => ExportListByDepartment.json} | 18 +- .../examples/ResourceGroupDimensionsList.json | 49 - .../examples/ResourceGroupQuery.json | 100 - .../examples/SubscriptionDimensionsList.json | 51 - .../examples/SubscriptionQuery.json | 109 - .../resource-manager/readme.go.md | 8 + .../resource-manager/readme.md | 23 + 36 files changed, 803 insertions(+), 3754 deletions(-) delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Alert.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/AlertList.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsList.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListExpandAndTop.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListWithFilter.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountQuery.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorDelete.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorGet.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorList.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPatch.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPut.json rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{Report.json => Export.json} (91%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportByBillingAccount.json => ExportByBillingAccount.json} (89%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportByDepartment.json => ExportByDepartment.json} (89%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportCreateOrUpdate.json => ExportCreateOrUpdate.json} (95%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportCreateOrUpdateByBillingAccount.json => ExportCreateOrUpdateByBillingAccount.json} (94%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportCreateOrUpdateByDepartment.json => ExportCreateOrUpdateByDepartment.json} (94%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportDelete.json => ExportDelete.json} (70%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportDeleteByBillingAccount.json => ExportDeleteByBillingAccount.json} (58%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportDeleteByDepartment.json => ExportDeleteByDepartment.json} (56%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportExecution.json => ExportExecution.json} (70%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportExecutionByBillingAccount.json => ExportExecutionByBillingAccount.json} (60%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportExecutionByDepartment.json => ExportExecutionByDepartment.json} (59%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportExecutionList.json => ExportExecutionList.json} (95%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportExecutionListByBillingAccount.json => ExportExecutionListByBillingAccount.json} (95%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportExecutionListByDepartment.json => ExportExecutionListByDepartment.json} (95%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportList.json => ExportList.json} (93%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportListByBillingAccount.json => ExportListByBillingAccount.json} (92%) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/{ReportListByDepartment.json => ExportListByDepartment.json} (92%) delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupDimensionsList.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupQuery.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionDimensionsList.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionQuery.json diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/costmanagement.json index 5303e371095c..e0cd23f1cebe 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/costmanagement.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2018-08-01-preview", + "version": "2019-01-01-preview", "title": "CostManagementClient" }, "host": "management.azure.com", @@ -33,19 +33,19 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports": { + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/exports": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_List", - "description": "Lists all reports for a subscription.", + "operationId": "Exports_List", + "description": "Lists all exports for a subscription.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ReportList": { - "$ref": "./examples/ReportList.json" + "ExportList": { + "$ref": "./examples/ExportList.json" } }, "parameters": [ @@ -60,7 +60,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/ReportListResult" + "$ref": "#/definitions/ExportListResult" } }, "default": { @@ -72,19 +72,19 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/exports": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_ListByResourceGroupName", - "description": "Lists all reports for a resource group under a subscription.", + "operationId": "Exports_ListByResourceGroupName", + "description": "Lists all exports for a resource group under a subscription.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ReportList": { - "$ref": "./examples/ReportList.json" + "ExportList": { + "$ref": "./examples/ExportList.json" } }, "parameters": [ @@ -102,7 +102,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/ReportListResult" + "$ref": "#/definitions/ExportListResult" } }, "default": { @@ -114,19 +114,19 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/exports": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_ListByBillingAccount", - "description": "Lists all reports for a billing account.", + "operationId": "Exports_ListByBillingAccount", + "description": "Lists all exports for a billing account.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ReportList": { - "$ref": "./examples/ReportListByBillingAccount.json" + "ExportList": { + "$ref": "./examples/ExportListByBillingAccount.json" } }, "parameters": [ @@ -141,7 +141,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/ReportListResult" + "$ref": "#/definitions/ExportListResult" } }, "default": { @@ -153,19 +153,19 @@ } } }, - "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports": { + "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/exports": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_ListByDepartment", - "description": "Lists all reports for a department.", + "operationId": "Exports_ListByDepartment", + "description": "Lists all exports for a department.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ReportList": { - "$ref": "./examples/ReportListByDepartment.json" + "ExportList": { + "$ref": "./examples/ExportListByDepartment.json" } }, "parameters": [ @@ -180,7 +180,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/ReportListResult" + "$ref": "#/definitions/ExportListResult" } }, "default": { @@ -192,19 +192,19 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}": { + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/exports/{exportName}": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_Get", - "description": "Gets the report for a subscription by report name.", + "operationId": "Exports_Get", + "description": "Gets the export for a subscription by export name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "Report": { - "$ref": "./examples/Report.json" + "Export": { + "$ref": "./examples/Export.json" } }, "parameters": [ @@ -215,14 +215,14 @@ "$ref": "#/parameters/subscriptionIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "default": { @@ -235,16 +235,16 @@ }, "put": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_CreateOrUpdate", - "description": "The operation to create or update a report. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", + "operationId": "Exports_CreateOrUpdate", + "description": "The operation to create or update a export. Update operation requires latest eTag to be set in the request mandatorily. 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": { - "CreateOrUpdateReport": { - "$ref": "./examples/ReportCreateOrUpdate.json" + "CreateOrUpdateExport": { + "$ref": "./examples/ExportCreateOrUpdate.json" } }, "parameters": [ @@ -255,29 +255,29 @@ "$ref": "#/parameters/subscriptionIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" }, - "description": "Parameters supplied to the CreateOrUpdate Report operation." + "description": "Parameters supplied to the CreateOrUpdate Export operation." } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "201": { "description": "Created.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "default": { @@ -290,16 +290,16 @@ }, "delete": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_Delete", - "description": "The operation to delete a report.", + "operationId": "Exports_Delete", + "description": "The operation to delete a export.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "DeleteReport": { - "$ref": "./examples/ReportDelete.json" + "DeleteExport": { + "$ref": "./examples/ExportDelete.json" } }, "parameters": [ @@ -310,7 +310,7 @@ "$ref": "#/parameters/subscriptionIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { @@ -326,19 +326,19 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/exports/{exportName}": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_GetByResourceGroupName", - "description": "Gets the report for a resource group under a subscription by report name.", + "operationId": "Exports_GetByResourceGroupName", + "description": "Gets the export for a resource group under a subscription by export name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "Report": { - "$ref": "./examples/Report.json" + "Export": { + "$ref": "./examples/Export.json" } }, "parameters": [ @@ -352,14 +352,14 @@ "$ref": "#/parameters/resourceGroupNameParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "default": { @@ -372,16 +372,16 @@ }, "put": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_CreateOrUpdateByResourceGroupName", - "description": "The operation to create or update a report. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", + "operationId": "Exports_CreateOrUpdateByResourceGroupName", + "description": "The operation to create or update a export. Update operation requires latest eTag to be set in the request mandatorily. 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": { - "CreateOrUpdateReport": { - "$ref": "./examples/ReportCreateOrUpdate.json" + "CreateOrUpdateExport": { + "$ref": "./examples/ExportCreateOrUpdate.json" } }, "parameters": [ @@ -395,29 +395,29 @@ "$ref": "#/parameters/resourceGroupNameParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" }, - "description": "Parameters supplied to the CreateOrUpdate Report operation." + "description": "Parameters supplied to the CreateOrUpdate Export operation." } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "201": { "description": "Created.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "default": { @@ -430,16 +430,16 @@ }, "delete": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_DeleteByResourceGroupName", - "description": "The operation to delete a report.", + "operationId": "Exports_DeleteByResourceGroupName", + "description": "The operation to delete a export.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "DeleteReport": { - "$ref": "./examples/ReportDelete.json" + "DeleteExport": { + "$ref": "./examples/ExportDelete.json" } }, "parameters": [ @@ -453,7 +453,7 @@ "$ref": "#/parameters/resourceGroupNameParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { @@ -469,19 +469,19 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/exports/{exportName}": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_GetByBillingAccount", - "description": "Gets the report for a billing account by report name.", + "operationId": "Exports_GetByBillingAccount", + "description": "Gets the export for a billing account by export name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "Report": { - "$ref": "./examples/ReportByBillingAccount.json" + "Export": { + "$ref": "./examples/ExportByBillingAccount.json" } }, "parameters": [ @@ -492,14 +492,14 @@ "$ref": "#/parameters/billingAccountIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "default": { @@ -512,16 +512,16 @@ }, "put": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_CreateOrUpdateByBillingAccount", - "description": "The operation to create or update a report for billingAccount. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", + "operationId": "Exports_CreateOrUpdateByBillingAccount", + "description": "The operation to create or update a export for billingAccount. Update operation requires latest eTag to be set in the request mandatorily. 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": { - "CreateOrUpdateReport": { - "$ref": "./examples/ReportCreateOrUpdateByBillingAccount.json" + "CreateOrUpdateExport": { + "$ref": "./examples/ExportCreateOrUpdateByBillingAccount.json" } }, "parameters": [ @@ -532,29 +532,29 @@ "$ref": "#/parameters/billingAccountIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" }, - "description": "Parameters supplied to the CreateOrUpdate Report operation." + "description": "Parameters supplied to the CreateOrUpdate Export operation." } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "201": { "description": "Created.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "default": { @@ -567,16 +567,16 @@ }, "delete": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_DeleteByBillingAccount", - "description": "The operation to delete a report for billing account.", + "operationId": "Exports_DeleteByBillingAccount", + "description": "The operation to delete a export for billing account.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "DeleteReport": { - "$ref": "./examples/ReportDeleteByBillingAccount.json" + "DeleteExport": { + "$ref": "./examples/ExportDeleteByBillingAccount.json" } }, "parameters": [ @@ -587,7 +587,7 @@ "$ref": "#/parameters/billingAccountIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { @@ -603,19 +603,19 @@ } } }, - "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}": { + "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/exports/{exportName}": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_GetByDepartment", - "description": "Gets the report for a department by report name.", + "operationId": "Exports_GetByDepartment", + "description": "Gets the export for a department by export name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "Report": { - "$ref": "./examples/ReportByDepartment.json" + "Export": { + "$ref": "./examples/ExportByDepartment.json" } }, "parameters": [ @@ -626,14 +626,14 @@ "$ref": "#/parameters/departmentIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "default": { @@ -646,16 +646,16 @@ }, "put": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_CreateOrUpdateByDepartment", - "description": "The operation to create or update a report for department. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", + "operationId": "Exports_CreateOrUpdateByDepartment", + "description": "The operation to create or update a export for department. Update operation requires latest eTag to be set in the request mandatorily. 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": { - "CreateOrUpdateReport": { - "$ref": "./examples/ReportCreateOrUpdateByDepartment.json" + "CreateOrUpdateExport": { + "$ref": "./examples/ExportCreateOrUpdateByDepartment.json" } }, "parameters": [ @@ -666,29 +666,29 @@ "$ref": "#/parameters/departmentIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" }, - "description": "Parameters supplied to the CreateOrUpdate Report operation." + "description": "Parameters supplied to the CreateOrUpdate Export operation." } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "201": { "description": "Created.", "schema": { - "$ref": "#/definitions/Report" + "$ref": "#/definitions/Export" } }, "default": { @@ -701,16 +701,16 @@ }, "delete": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_DeleteByDepartment", - "description": "The operation to delete a report for department.", + "operationId": "Exports_DeleteByDepartment", + "description": "The operation to delete a export for department.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "DeleteReport": { - "$ref": "./examples/ReportDeleteByDepartment.json" + "DeleteExport": { + "$ref": "./examples/ExportDeleteByDepartment.json" } }, "parameters": [ @@ -721,7 +721,7 @@ "$ref": "#/parameters/departmentIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { @@ -737,19 +737,19 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}/run": { + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/exports/{exportName}/run": { "post": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_Execute", - "description": "The operation to execute a report.", + "operationId": "Exports_Execute", + "description": "The operation to execute a export.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ExecuteReport": { - "$ref": "./examples/ReportExecution.json" + "ExecuteExport": { + "$ref": "./examples/ExportExecution.json" } }, "parameters": [ @@ -760,7 +760,7 @@ "$ref": "#/parameters/subscriptionIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { @@ -776,19 +776,19 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}/run": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/exports/{exportName}/run": { "post": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_ExecuteByResourceGroupName", - "description": "The operation to execute a report.", + "operationId": "Exports_ExecuteByResourceGroupName", + "description": "The operation to execute a export.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ExecuteReport": { - "$ref": "./examples/ReportExecution.json" + "ExecuteExport": { + "$ref": "./examples/ExportExecution.json" } }, "parameters": [ @@ -802,7 +802,7 @@ "$ref": "#/parameters/resourceGroupNameParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { @@ -818,19 +818,19 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}/run": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/exports/{exportName}/run": { "post": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_ExecuteByBillingAccount", - "description": "The operation to execute a report by billing account.", + "operationId": "Exports_ExecuteByBillingAccount", + "description": "The operation to execute a export by billing account.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ExecuteReport": { - "$ref": "./examples/ReportExecutionByBillingAccount.json" + "ExecuteExport": { + "$ref": "./examples/ExportExecutionByBillingAccount.json" } }, "parameters": [ @@ -841,7 +841,7 @@ "$ref": "#/parameters/billingAccountIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { @@ -857,19 +857,19 @@ } } }, - "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}/run": { + "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/exports/{exportName}/run": { "post": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_ExecuteByDepartment", - "description": "The operation to execute a report by department.", + "operationId": "Exports_ExecuteByDepartment", + "description": "The operation to execute a export by department.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ExecuteReport": { - "$ref": "./examples/ReportExecutionByDepartment.json" + "ExecuteExport": { + "$ref": "./examples/ExportExecutionByDepartment.json" } }, "parameters": [ @@ -880,7 +880,7 @@ "$ref": "#/parameters/departmentIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { @@ -896,19 +896,19 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory": { + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_GetExecutionHistory", - "description": "Gets the execution history of a report for a subscription by report name.", + "operationId": "Exports_GetExecutionHistory", + "description": "Gets the execution history of a export for a subscription by export name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ExecutionHistoryReport": { - "$ref": "./examples/ReportExecutionList.json" + "ExecutionHistoryExport": { + "$ref": "./examples/ExportExecutionList.json" } }, "parameters": [ @@ -919,14 +919,14 @@ "$ref": "#/parameters/subscriptionIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/ReportExecutionListResult" + "$ref": "#/definitions/ExportExecutionListResult" } }, "default": { @@ -938,19 +938,19 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_GetExecutionHistoryByResourceGroupName", - "description": "Gets the execution history of a report for a resource group by report name.", + "operationId": "Exports_GetExecutionHistoryByResourceGroupName", + "description": "Gets the execution history of a export for a resource group by export name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ExecutionHistoryReport": { - "$ref": "./examples/ReportExecutionList.json" + "ExecutionHistoryExport": { + "$ref": "./examples/ExportExecutionList.json" } }, "parameters": [ @@ -964,14 +964,14 @@ "$ref": "#/parameters/resourceGroupNameParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/ReportExecutionListResult" + "$ref": "#/definitions/ExportExecutionListResult" } }, "default": { @@ -983,19 +983,19 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory": { + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_GetExecutionHistoryByBillingAccount", - "description": "Gets the execution history of a report for a billing account by report name.", + "operationId": "Exports_GetExecutionHistoryByBillingAccount", + "description": "Gets the execution history of a export for a billing account by export name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ExecutionHistoryReport": { - "$ref": "./examples/ReportExecutionListByBillingAccount.json" + "ExecutionHistoryExport": { + "$ref": "./examples/ExportExecutionListByBillingAccount.json" } }, "parameters": [ @@ -1006,14 +1006,14 @@ "$ref": "#/parameters/billingAccountIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/ReportExecutionListResult" + "$ref": "#/definitions/ExportExecutionListResult" } }, "default": { @@ -1025,19 +1025,19 @@ } } }, - "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory": { + "/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory": { "get": { "tags": [ - "Reports" + "Exports" ], - "operationId": "Reports_GetExecutionHistoryByDepartment", - "description": "Gets the execution history of a report for a department by report name.", + "operationId": "Exports_GetExecutionHistoryByDepartment", + "description": "Gets the execution history of a export for a department by export name.", "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, "x-ms-examples": { - "ExecutionHistoryReport": { - "$ref": "./examples/ReportExecutionListByDepartment.json" + "ExecutionHistoryExport": { + "$ref": "./examples/ExportExecutionListByDepartment.json" } }, "parameters": [ @@ -1048,14 +1048,14 @@ "$ref": "#/parameters/departmentIdParameter" }, { - "$ref": "#/parameters/reportNameParameter" + "$ref": "#/parameters/exportNameParameter" } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/ReportExecutionListResult" + "$ref": "#/definitions/ExportExecutionListResult" } }, "default": { @@ -1067,220 +1067,23 @@ } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/dimensions": { - "get": { - "tags": [ - "Dimensions" - ], - "x-ms-odata": "#/definitions/Dimension", - "operationId": "BillingAccountDimensions_List", - "description": "Lists the dimensions by billingAccount Id.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "BillingAccountDimensionsList": { - "$ref": "./examples/BillingAccountDimensionsList.json" - }, - "BillingAccountDimensionsListExpandAndTop": { - "$ref": "./examples/BillingAccountDimensionsListExpandAndTop.json" - }, - "BillingAccountDimensionsListWithFilter": { - "$ref": "./examples/BillingAccountDimensionsListWithFilter.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "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 - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DimensionsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/dimensions": { - "get": { - "tags": [ - "Dimensions" - ], - "x-ms-odata": "#/definitions/Dimension", - "operationId": "SubscriptionDimensions_List", - "description": "Lists the dimensions by subscription Id.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionDimensionsList": { - "$ref": "./examples/SubscriptionDimensionsList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "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 - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DimensionsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/dimensions": { + "/providers/Microsoft.CostManagement/operations": { "get": { "tags": [ - "Dimensions" + "Operations" ], - "x-ms-odata": "#/definitions/Dimension", - "operationId": "ResourceGroupDimensions_List", - "description": "Lists the dimensions by resource group Id.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ResourceGroupDimensionsList": { - "$ref": "./examples/ResourceGroupDimensionsList.json" - } - }, + "operationId": "Operations_List", + "description": "Lists all of the available cost management REST API operations.", "parameters": [ { "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "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 } ], "responses": { "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/DimensionsListResult" + "$ref": "#/definitions/OperationListResult" } }, "default": { @@ -1291,2108 +1094,161 @@ } }, "x-ms-pageable": { - "nextLinkName": null + "nextLinkName": "nextLink" } } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/Query": { - "post": { - "tags": [ - "Query" - ], - "operationId": "QuerySubscription", - "description": "Lists the usage data for subscriptionId.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionQuery": { - "$ref": "./examples/SubscriptionQuery.json" - } + } + }, + "definitions": { + "Operation": { + "description": "A Cost Management REST API operation.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string", + "readOnly": true }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ReportDefinition" + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.CostManagement.", + "type": "string", + "readOnly": true }, - "description": "Parameters supplied to the CreateOrUpdate Report operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/QueryResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "resource": { + "description": "Resource on which the operation is performed: UsageDetail, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true } } - }, - "x-ms-pageable": { - "nextLinkName": null } } }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/Query": { - "post": { - "tags": [ - "Query" - ], - "operationId": "QueryResourceGroup", - "description": "Lists the usage data for subscriptionId and resource group.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ResourceGroupQuery": { - "$ref": "./examples/ResourceGroupQuery.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ReportDefinition" - }, - "description": "Parameters supplied to the CreateOrUpdate Report operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/QueryResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "OperationListResult": { + "description": "Result of listing CostManagement operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of CostManagement operations supported by the Microsoft.CostManagement resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" } }, - "x-ms-pageable": { - "nextLinkName": null + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true } } }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/Query": { - "post": { - "tags": [ - "Query" - ], - "operationId": "QueryBillingAccount", - "description": "Lists the usage data for billing account.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + "ErrorBase": { + "description": "The details of the error.", + "properties": { + "code": { + "type": "string", + "description": "A machine readable error code.", + "readOnly": true }, - "x-ms-examples": { - "BillingAccountQuery": { - "$ref": "./examples/BillingAccountQuery.json" - } + "message": { + "type": "string", + "description": "A human readable error message.", + "readOnly": true }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ReportDefinition" - }, - "description": "Parameters supplied to the CreateOrUpdate Report operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/QueryResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/connectors": { - "get": { - "tags": [ - "Connectors" - ], - "operationId": "Connector_List", - "description": "List all connector definitions for a subscription", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Connector_List": { - "$ref": "./examples/ConnectorList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ConnectorDefinitionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors": { - "get": { - "tags": [ - "Connectors" - ], - "operationId": "Connector_ListByResourceGroupName", - "description": "List all connector definitions for a resource group under a subscription.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Connector_List": { - "$ref": "./examples/ConnectorList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ConnectorDefinitionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName}": { - "get": { - "tags": [ - "Connectors" - ], - "operationId": "Connector_Get", - "description": "Get a connector definition", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Connector_Get": { - "$ref": "./examples/ConnectorGet.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/connectorNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ConnectorDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "tags": [ - "Connectors" - ], - "operationId": "Connector_CreateOrUpdate", - "description": "Create or update a connector definition", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Connector_Put": { - "$ref": "./examples/ConnectorPut.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/connectorNameParameter" - }, - { - "name": "connector", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ConnectorDefinition" - }, - "description": "Connector details" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ConnectorDefinition" - } - }, - "201": { - "description": "Created.", - "schema": { - "$ref": "#/definitions/ConnectorDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "Connectors" - ], - "operationId": "Connector_Delete", - "description": "Delete a connector definition", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Connector_Delete": { - "$ref": "./examples/ConnectorDelete.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/connectorNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "patch": { - "tags": [ - "Connectors" - ], - "operationId": "Connector_Update", - "description": "Update a connector definition", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Connector_Patch": { - "$ref": "./examples/ConnectorPatch.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/connectorNameParameter" - }, - { - "name": "connector", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ConnectorDefinition" - }, - "description": "Connector details" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ConnectorDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_List", - "description": "List all alerts for a subscription.", - "x-ms-examples": { - "Alert_List": { - "$ref": "./examples/AlertList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "name": "$filter", - "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", - "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 alerts.", - "in": "query", - "required": false, - "type": "integer", - "minimum": 1, - "maximum": 1000 - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AlertListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_ListByResourceGroupName", - "description": "List all alerts for a resource group under a subscription.", - "x-ms-examples": { - "Alert_List": { - "$ref": "./examples/AlertList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "$filter", - "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", - "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 alerts.", - "in": "query", - "required": false, - "type": "integer", - "minimum": 1, - "maximum": 1000 - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AlertListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/alerts": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_ListByEnrollment", - "description": "List all alerts for an enrollment.", - "x-ms-examples": { - "Alert_List": { - "$ref": "./examples/AlertList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "name": "$filter", - "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", - "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 alerts.", - "in": "query", - "required": false, - "type": "integer", - "minimum": 1, - "maximum": 1000 - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AlertListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_ListByDepartment", - "description": "List all alerts for a department.", - "x-ms-examples": { - "Alert_List": { - "$ref": "./examples/AlertList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/departmentIdParameter" - }, - { - "name": "$filter", - "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", - "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 alerts.", - "in": "query", - "required": false, - "type": "integer", - "minimum": 1, - "maximum": 1000 - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AlertListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_ListByAccount", - "description": "List all alerts for an account.", - "x-ms-examples": { - "Alert_List": { - "$ref": "./examples/AlertList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/enrollmentAccountIdParameter" - }, - { - "name": "$filter", - "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", - "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 alerts.", - "in": "query", - "required": false, - "type": "integer", - "minimum": 1, - "maximum": 1000 - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AlertListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/alerts": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_ListByManagementGroups", - "description": "List all alerts for Management Groups.", - "x-ms-examples": { - "Alert_List": { - "$ref": "./examples/AlertList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/managementGroupIdParameter" - }, - { - "name": "$filter", - "description": "May be used to filter alerts by properties/definition/type, properties/definition/category, properties/definition/criteria, properties/costEntityId, properties/creationTime, properties/closeTime, properties/status, properties/source. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", - "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 alerts.", - "in": "query", - "required": false, - "type": "integer", - "minimum": 1, - "maximum": 1000 - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AlertListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts/{alertId}": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_GetBySubscription", - "description": "Gets the alert for a subscription by alert ID.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$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": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts/{alertId}": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_GetByResourceGroupName", - "description": "Gets the alert for a resource group under a subscription by alert ID.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$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": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_GetByEnrollment", - "description": "Gets the alert for an enrollment by alert ID.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$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": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts/{alertId}": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_GetByDepartment", - "description": "Gets the alert for a department by alert ID.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/departmentIdParameter" - }, - { - "$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": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_GetByAccount", - "description": "Gets the alert for an account by alert ID.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/enrollmentAccountIdParameter" - }, - { - "$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": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/alerts/{alertId}": { - "get": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_GetAlertByManagementGroups", - "description": "Gets an alert for Management Groups by alert ID.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/managementGroupIdParameter" - }, - { - "$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": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus": { - "patch": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_UpdateSubscriptionAlertStatus", - "description": "Update alerts status for a subscription.", - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/alertIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Alert" - }, - "description": "Parameters supplied to the update alerts status operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Alert" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus": { - "patch": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_UpdateResourceGroupNameAlertStatus", - "description": "Update alerts status for a resource group under a subscription.", - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/alertIdParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Alert" - }, - "description": "Parameters supplied to the update alerts status operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Alert" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus": { - "patch": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_UpdateBillingAccountAlertStatus", - "description": "Update alerts status for billing account.", - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/alertIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Alert" - }, - "description": "Parameters supplied to the update alerts status operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Alert" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus": { - "patch": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_UpdateDepartmentsAlertStatus", - "description": "Update alerts status for a department.", - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/departmentIdParameter" - }, - { - "$ref": "#/parameters/alertIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Alert" - }, - "description": "Parameters supplied to the update alerts status operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Alert" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus": { - "patch": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_UpdateEnrollmentAccountAlertStatus", - "description": "Update alerts status for an enrollment account.", - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/billingAccountIdParameter" - }, - { - "$ref": "#/parameters/enrollmentAccountIdParameter" - }, - { - "$ref": "#/parameters/alertIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Alert" - }, - "description": "Parameters supplied to the update alerts status operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Alert" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/alerts/{alertId}/UpdateStatus": { - "patch": { - "tags": [ - "Alerts" - ], - "operationId": "Alerts_UpdateManagementGroupAlertStatus", - "description": "Update alerts status for management group.", - "x-ms-examples": { - "Alert": { - "$ref": "./examples/Alert.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/managementGroupIdParameter" - }, - { - "$ref": "#/parameters/alertIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Alert" - }, - "description": "Parameters supplied to the update alerts status operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Alert" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.CostManagement/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists all of the available cost management REST API operations.", - "parameters": [ - { - "$ref": "#/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": { - "Operation": { - "description": "A Cost Management REST API operation.", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}.", - "type": "string", - "readOnly": true - }, - "display": { - "description": "The object that represents the operation.", - "properties": { - "provider": { - "description": "Service provider: Microsoft.CostManagement.", - "type": "string", - "readOnly": true - }, - "resource": { - "description": "Resource on which the operation is performed: UsageDetail, etc.", - "type": "string", - "readOnly": true - }, - "operation": { - "description": "Operation type: Read, write, delete, etc.", - "type": "string", - "readOnly": true - } - } - } - } - }, - "OperationListResult": { - "description": "Result of listing CostManagement operations. It contains a list of operations and a URL link to get the next set of results.", - "properties": { - "value": { - "description": "List of CostManagement operations supported by the Microsoft.CostManagement resource provider.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Operation" - } - }, - "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "ErrorBase": { - "description": "The details of the error.", - "properties": { - "code": { - "type": "string", - "description": "A machine readable error code.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A human readable error message.", - "readOnly": true - }, - "target": { - "type": "string", - "description": "Indicates which property in the request is responsible for the error.", - "readOnly": true - } - } - }, - "ErrorDetails": { - "description": "The details of the error.", - "properties": { - "code": { - "description": "A machine readable error code.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "A human readable error message.", - "type": "string", - "readOnly": true - }, - "target": { - "description": "Indicates which property in the request is responsible for the error.", - "type": "string" - }, - "details": { - "description": "error details.", - "type": "array", - "items": { - "$ref": "#/definitions/ErrorBase" - } - } - } - }, - "ErrorResponse": { - "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", - "properties": { - "error": { - "description": "The details of the error.", - "$ref": "#/definitions/ErrorDetails" - } - } - }, - "Resource": { - "description": "The Resource model definition.", - "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." - }, - "tags": { - "readOnly": true, - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags." - } - }, - "x-ms-azure-resource": true - }, - "ReportListResult": { - "description": "Result of listing reports. It contains a list of available reports in the scope provided.", - "properties": { - "value": { - "description": "The list of reports.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Report" - } - } - } - }, - "Report": { - "description": "A report resource.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ReportProperties", - "title": "Report properties" - } - } - }, - "ReportProperties": { - "description": "The properties of the report.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/CommonReportProperties" - } - ], - "properties": { - "schedule": { - "description": "Has schedule information for the report.", - "$ref": "#/definitions/ReportSchedule" - } - } - }, - "CommonReportProperties": { - "description": "The common properties of the report.", - "properties": { - "format": { - "description": "The format of the report being delivered.", - "type": "string", - "enum": [ - "Csv" - ], - "x-ms-enum": { - "name": "FormatType", - "modelAsString": true - } - }, - "deliveryInfo": { - "description": "Has delivery information for the report.", - "$ref": "#/definitions/ReportDeliveryInfo" - }, - "definition": { - "description": "Has definition for the report.", - "$ref": "#/definitions/ReportDefinition" - } - }, - "required": [ - "deliveryInfo", - "definition" - ] - }, - "ReportSchedule": { - "description": "The schedule associated with a report.", - "properties": { - "status": { - "description": "The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.", - "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/ReportRecurrencePeriod" - } - }, - "required": [ - "recurrence" - ] - }, - "ReportDeliveryInfo": { - "description": "The delivery information associated with a report.", - "properties": { - "destination": { - "description": "Has destination for the report being delivered.", - "$ref": "#/definitions/ReportDeliveryDestination" - } - }, - "required": [ - "destination" - ] - }, - "ReportDefinition": { - "description": "The definition of a report.", - "properties": { - "type": { - "description": "The type of the report.", - "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", - "Custom" - ], - "x-ms-enum": { - "name": "TimeframeType", - "modelAsString": true - } - }, - "timePeriod": { - "description": "Has time period for pulling data for the report.", - "$ref": "#/definitions/ReportTimePeriod" - }, - "dataset": { - "description": "Has definition for data in this report.", - "$ref": "#/definitions/ReportDataset" - } - }, - "required": [ - "type", - "timeframe" - ] - }, - "ReportRecurrencePeriod": { - "description": "The start and end date for recurrence schedule.", - "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" - ] - }, - "ReportDeliveryDestination": { - "description": "The destination information for the delivery of the report.", - "properties": { - "resourceId": { - "description": "The resource id of the storage account where reports will be delivered.", - "type": "string" - }, - "container": { - "description": "The name of the container where reports will be uploaded.", - "type": "string" - }, - "rootFolderPath": { - "description": "The name of the directory where reports will be uploaded.", - "type": "string" - } - }, - "required": [ - "resourceId", - "container" - ] - }, - "ReportTimePeriod": { - "description": "The start and end date for pulling data for the report.", - "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" - ] - }, - "ReportDataset": { - "description": "The definition of data present in the report.", - "properties": { - "granularity": { - "description": "The granularity of rows in the report.", - "type": "string", - "enum": [ - "Daily" - ], - "x-ms-enum": { - "name": "GranularityType", - "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/ReportDatasetConfiguration" - }, - "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": { - "type": "object", - "$ref": "#/definitions/ReportAggregation" - }, - "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/ReportGrouping" - }, - "maxItems": 2 - }, - "filter": { - "type": "object", - "description": "Has filter expression to use in the report.", - "$ref": "#/definitions/ReportFilter" - } - } - }, - "ReportDatasetConfiguration": { - "description": "The configuration of dataset in the report.", - "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" - } - } - } - }, - "ReportAggregation": { - "description": "The aggregation expression to be used in the report.", - "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" - ] - }, - "ReportGrouping": { - "description": "The group by expression to be used in the report.", - "properties": { - "type": { - "description": "Has type of the column to group.", - "$ref": "#/definitions/ReportColumnType" - }, - "name": { - "description": "The name of the column to group.", - "type": "string" - } - }, - "required": [ - "type", - "name" - ] - }, - "ReportFilter": { - "description": "The filter expression to be used in the report.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. Must have at least 2 items.", - "type": "array", - "items": { - "$ref": "#/definitions/ReportFilter" - }, - "minItems": 2 - }, - "or": { - "description": "The logical \"OR\" expression. Must have at least 2 items.", - "type": "array", - "items": { - "$ref": "#/definitions/ReportFilter" - }, - "minItems": 2 - }, - "not": { - "description": "The logical \"NOT\" expression.", - "$ref": "#/definitions/ReportFilter" - }, - "dimension": { - "description": "Has comparison expression for a dimension", - "$ref": "#/definitions/ReportComparisonExpression" - }, - "tag": { - "description": "Has comparison expression for a tag", - "$ref": "#/definitions/ReportComparisonExpression" - } - } - }, - "ReportColumnType": { - "description": "The type of the column in the report.", - "type": "string", - "enum": [ - "Tag", - "Dimension" - ], - "x-ms-enum": { - "name": "ReportColumnType", - "modelAsString": true - } - }, - "ReportComparisonExpression": { - "description": "The comparison expression to be used in the report.", - "properties": { - "name": { - "description": "The name of the column to use in comparison.", - "type": "string" - }, - "operator": { - "description": "The operator to use for comparison.", + "target": { "type": "string", - "enum": [ - "In" - ], - "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" - ] - }, - "ReportExecutionListResult": { - "description": "Result of listing reports execution history of a report by name", - "properties": { - "value": { - "description": "The list of report executions.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/ReportExecution" - } - } - } - }, - "ReportExecution" : { - "description": "A report execution.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ReportExecutionProperties", - "title": "Report execution properties" + "description": "Indicates which property in the request is responsible for the error.", + "readOnly": true } - } - }, - "ReportExecutionProperties": { - "description": "The properties of the report execution.", - "properties": { - "executionType": { - "description": "The type of the report execution.", - "type": "string", - "enum": [ - "OnDemand", - "Scheduled" - ], - "x-ms-enum": { - "name": "ExecutionType", - "modelAsString": true - } - }, - "status": { - "description": "The status of the report execution.", - "type": "string", - "enum": [ - "Queud", - "InProgress", - "Completed", - "Failed", - "Timeout" - ], - "x-ms-enum": { - "name": "ExecutionStatus", - "modelAsString": true - } - }, - "submittedBy": { - "description": "The identifier for the entity that executed the report. For OnDemand executions, it is the email id. For Scheduled executions, it is the constant value - System.", - "type": "string" - }, - "submittedTime": { - "description": "The time when report was queued to be executed.", - "type": "string", - "format": "date-time" - }, - "processingStartTime": { - "description": "The time when report was picked up to be executed.", + } + }, + "ErrorDetails": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "A machine readable error code.", "type": "string", - "format": "date-time" + "readOnly": true }, - "processingEndTime": { - "description": "The time when report execution finished.", + "message": { + "description": "A human readable error message.", "type": "string", - "format": "date-time" + "readOnly": true }, - "fileName": { - "description": "The name of the file report got written to.", + "target": { + "description": "Indicates which property in the request is responsible for the error.", "type": "string" }, - "reportSettings": { - "$ref": "#/definitions/CommonReportProperties" - } - } - }, - "DimensionsListResult": { - "description": "Result of listing dimensions. It contains a list of available dimensions.", - "type": "object", - "properties": { - "value": { - "description": "The list of dimensions.", + "details": { + "description": "error details.", "type": "array", - "readOnly": true, "items": { - "$ref": "#/definitions/Dimension" + "$ref": "#/definitions/ErrorBase" } } } }, - "Dimension": { + "ErrorResponse": { + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DimensionProperties", - "title": "Dimension properties" + "error": { + "description": "The details of the error.", + "$ref": "#/definitions/ErrorDetails" } } }, - "DimensionProperties": { - "type": "object", + "Resource": { + "description": "The Resource model definition.", "properties": { - "data": { - "type": "array", - "items": { - "type": "string" - } - }, - "total": { - "format": "int32", - "type": "integer" - }, - "category": { - "type": "string" + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id." }, - "usageStart": { - "format": "date-time", - "type": "string" + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." }, - "usageEnd": { - "format": "date-time", - "type": "string" + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." }, - "nextLink": { - "type": "string" + "tags": { + "readOnly": true, + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." } - } + }, + "x-ms-azure-resource": true }, - "QueryResult": { - "description": "Result of query. It contains all columns listed under groupings and aggregation.", - "type": "object", + "ExportListResult": { + "description": "Result of listing exports. It contains a list of available exports in the scope provided.", "properties": { "value": { - "description": "The list of usage data.", + "description": "The list of exports.", "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/Query" + "$ref": "#/definitions/Export" } } } }, - "Query": { + "Export": { + "description": "A export resource.", "type": "object", "allOf": [ { @@ -3402,437 +1258,463 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/QueryProperties", - "title": "Query properties" + "$ref": "#/definitions/ExportProperties", + "title": "Export properties" } } }, - "QueryProperties": { + "ExportProperties": { + "description": "The properties of the export.", "type": "object", - "properties": { - "nextLink": { - "type": "string" - }, - "columns": { - "description": "Array of columns", - "type": "array", - "items": { - "$ref": "#/definitions/QueryColumn" - } - }, - "rows": { - "type": "array", - "items": { - "type": "array", - "items": {} - } + "allOf": [ + { + "$ref": "#/definitions/CommonExportProperties" } - } - }, - "QueryColumn": { - "type": "object", + ], "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" + "schedule": { + "description": "Has schedule information for the export.", + "$ref": "#/definitions/ExportSchedule" } } }, - "ConnectorDefinitionListResult": { - "description": "Result of listing connector definitions. It contains a list of available connector definitions in the scope provided.", + "CommonExportProperties": { + "description": "The common properties of the export.", "properties": { - "value": { - "description": "The list of connector definitions.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/ConnectorDefinition" + "format": { + "description": "The format of the export being delivered.", + "type": "string", + "enum": [ + "Csv" + ], + "x-ms-enum": { + "name": "FormatType", + "modelAsString": true } + }, + "deliveryInfo": { + "description": "Has delivery information for the export.", + "$ref": "#/definitions/ExportDeliveryInfo" + }, + "definition": { + "description": "Has definition for the export.", + "$ref": "#/definitions/ExportDefinition" } - } + }, + "required": [ + "deliveryInfo", + "definition" + ] }, - "ConnectorDefinition": { - "type": "object", - "description": "The Connector model definition", + "ExportSchedule": { + "description": "The schedule associated with a export.", "properties": { - "kind": { - "type": "string", - "description": "Connector kind (eg aws)" - }, - "id": { - "type": "string", - "readOnly": true, - "description": "Connector id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Connector name" - }, - "type": { + "status": { + "description": "The status of the schedule. Whether active or not. If inactive, the export's scheduled execution is paused.", "type": "string", - "readOnly": true, - "description": "Connector type" + "enum": [ + "Active", + "Inactive" + ], + "x-ms-enum": { + "name": "StatusType", + "modelAsString": true + } }, - "location": { + "recurrence": { + "description": "The schedule recurrence.", "type": "string", - "x-ms-mutability": [ - "read", - "create" - ], - "description": "Connector location" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" + "enum": [ + "Daily", + "Weekly", + "Monthly", + "Annually" ], - "description": "Resource tags." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ConnectorProperties", - "description": "Connector properties" + "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" } }, - "x-ms-azure-resource": true + "required": [ + "recurrence" + ] }, - "ConnectorProperties": { - "type": "object", - "description": "The properties of a Connector", + "ExportDeliveryInfo": { + "description": "The delivery information associated with a export.", + "properties": { + "destination": { + "description": "Has destination for the export being delivered.", + "$ref": "#/definitions/ExportDeliveryDestination" + } + }, + "required": [ + "destination" + ] + }, + "ExportDefinition": { + "description": "The definition of a export.", "properties": { - "displayName": { + "type": { + "description": "The type of the export.", "type": "string", - "x-ms-mutability": [ - "read", - "create", - "update" + "enum": [ + "Usage" ], - "description": "Connector DisplayName (defaults to Name)" + "x-ms-enum": { + "name": "ExportType", + "modelAsString": true + } }, - "providerAccountId": { + "timeframe": { + "description": "The time frame for pulling data for the export. If custom, then a specific time period must be provided.", "type": "string", - "x-ms-mutability": [ - "read" + "enum": [ + "WeekToDate", + "MonthToDate", + "Custom" ], - "description": "Connector providerAccountId (determined from credentials)", - "readOnly": true + "x-ms-enum": { + "name": "TimeframeType", + "modelAsString": true + } }, - "credentialsKey": { - "type": "string", - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Credentials authentication key (eg AWS ARN)" + "timePeriod": { + "description": "Has time period for pulling data for the export.", + "$ref": "#/definitions/ExportTimePeriod" }, - "credentialsSecret": { + "dataset": { + "description": "Has definition for data in this export.", + "$ref": "#/definitions/ExportDataset" + } + }, + "required": [ + "type", + "timeframe" + ] + }, + "ExportRecurrencePeriod": { + "description": "The start and end date for recurrence schedule.", + "properties": { + "from": { + "description": "The start date of recurrence.", "type": "string", - "x-ms-mutability": [ - "create", - "update" - ], - "description": "Credentials secret (eg AWS ExternalId)" + "format": "date-time" }, - "reportId": { + "to": { + "description": "The end date of recurrence.", "type": "string", - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)" + "format": "date-time" + } + }, + "required": [ + "from" + ] + }, + "ExportDeliveryDestination": { + "description": "The destination information for the delivery of the export.", + "properties": { + "resourceId": { + "description": "The resource id of the storage account where exports will be delivered.", + "type": "string" + }, + "container": { + "description": "The name of the container where exports will be uploaded.", + "type": "string" }, - "createdOn": { - "format": "date-time", + "rootFolderPath": { + "description": "The name of the directory where exports will be uploaded.", + "type": "string" + } + }, + "required": [ + "resourceId", + "container" + ] + }, + "ExportTimePeriod": { + "description": "The start and end date for pulling data for the export.", + "properties": { + "from": { + "description": "The start date to pull data from.", "type": "string", - "x-ms-mutability": [ - "read" - ], - "description": "Connector definition creation datetime", - "readOnly": true + "format": "date-time" }, - "modifiedOn": { - "format": "date-time", + "to": { + "description": "The end date to pull data to.", + "type": "string", + "format": "date-time" + } + }, + "required": [ + "from", + "to" + ] + }, + "ExportDataset": { + "description": "The definition of data present in the export.", + "properties": { + "granularity": { + "description": "The granularity of rows in the export.", "type": "string", - "x-ms-mutability": [ - "read" - ], - "description": "Connector last modified datetime", - "readOnly": true - }, - "status": { "enum": [ - "active", - "error", - "suspended" + "Daily", + "Hourly" ], "x-ms-enum": { - "name": "ConnectorStatus", + "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/ExportDatasetConfiguration" + }, + "aggregation": { + "type": "object", + "description": "Dictionary of aggregation expression to use in the export. The key of each item in the dictionary is the alias for the aggregated column. Export can have up to 2 aggregation clauses.", + "additionalProperties": { + "type": "object", + "$ref": "#/definitions/ExportAggregation" }, - "type": "string", - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Connector status" + "maxItems": 2 }, - "collection": { - "$ref": "#/definitions/ConnectorCollectionInfo", - "description": "Collection information", - "readOnly": true + "grouping": { + "description": "Array of group by expression to use in the export. Export can have up to 2 group by clauses.", + "type": "array", + "items": { + "$ref": "#/definitions/ExportGrouping" + }, + "maxItems": 2 + }, + "filter": { + "type": "object", + "description": "Has filter expression to use in the export.", + "$ref": "#/definitions/ExportFilter" } } }, - "ConnectorCollectionInfo": { - "type": "object", - "description": "Collection and ingestion information", + "ExportDatasetConfiguration": { + "description": "The configuration of dataset in the export.", "properties": { - "lastRun": { - "format": "date-time", - "type": "string", - "x-ms-mutability": [ - "read" - ], - "description": "Last time the data acquisition process completed (even if no new data was found)", - "readOnly": true + "columns": { + "description": "Array of column names to be included in the export. Any valid export column name is allowed. If not provided, then export includes all columns.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ExportAggregation": { + "description": "The aggregation expression to be used in the export.", + "properties": { + "name": { + "description": "The name of the column to aggregate.", + "type": "string" }, - "sourceLastUpdated": { - "format": "date-time", + "function": { + "description": "The name of the aggregation function to use.", "type": "string", - "x-ms-mutability": [ - "read" + "enum": [ + "Sum" ], - "description": "Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)", - "readOnly": true + "x-ms-enum": { + "name": "FunctionType", + "modelAsString": true + } + } + }, + "required": [ + "name", + "function" + ] + }, + "ExportGrouping": { + "description": "The group by expression to be used in the export.", + "properties": { + "type": { + "description": "Has type of the column to group.", + "$ref": "#/definitions/ExportColumnType" }, - "lastUpdated": { - "format": "date-time", - "type": "string", - "x-ms-mutability": [ - "read" - ], - "description": "Last time the external data was updated into Azure", - "readOnly": true + "name": { + "description": "The name of the column to group.", + "type": "string" + } + }, + "required": [ + "type", + "name" + ] + }, + "ExportFilter": { + "description": "The filter expression to be used in the export.", + "properties": { + "and": { + "description": "The logical \"AND\" expression. Must have at least 2 items.", + "type": "array", + "items": { + "$ref": "#/definitions/ExportFilter" + }, + "minItems": 2 }, - "error": { - "$ref": "#/definitions/ConnectorCollectionErrorInfo", - "description": "Error information of last collection" + "or": { + "description": "The logical \"OR\" expression. Must have at least 2 items.", + "type": "array", + "items": { + "$ref": "#/definitions/ExportFilter" + }, + "minItems": 2 + }, + "not": { + "description": "The logical \"NOT\" expression.", + "$ref": "#/definitions/ExportFilter" + }, + "dimension": { + "description": "Has comparison expression for a dimension", + "$ref": "#/definitions/ExportComparisonExpression" + }, + "tag": { + "description": "Has comparison expression for a tag", + "$ref": "#/definitions/ExportComparisonExpression" } } }, - "ConnectorCollectionErrorInfo": { - "type": "object", - "description": "Details of any error encountered on last collection attempt", + "ExportColumnType": { + "description": "The type of the column in the export.", + "type": "string", + "enum": [ + "Tag", + "Dimension" + ], + "x-ms-enum": { + "name": "ExportColumnType", + "modelAsString": true + } + }, + "ExportComparisonExpression": { + "description": "The comparison expression to be used in the export.", "properties": { - "errorMessage": { - "type": "string", - "description": "Detailed error message", - "readOnly": true + "name": { + "description": "The name of the column to use in comparison.", + "type": "string" }, - "errorCode": { + "operator": { + "description": "The operator to use for comparison.", "type": "string", - "description": "Short error message", - "readOnly": true + "enum": [ + "In" + ], + "x-ms-enum": { + "name": "OperatorType", + "modelAsString": true + } }, - "errorStartTime": { - "format": "date-time", - "type": "string", - "description": "Time the error started occurring (Last time error occurred in lastRun)", - "readOnly": true + "values": { + "description": "Array of values to use for comparison", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1 } - } + }, + "required": [ + "name", + "operator", + "values" + ] }, - "AlertListResult": { - "description": "Result of listing alerts. It contains a list of available alerts in the scope provided.", + "ExportExecutionListResult": { + "description": "Result of listing exports execution history of a export by name", "properties": { "value": { - "description": "The list of alerts.", + "description": "The list of export executions.", "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/Alert" + "$ref": "#/definitions/ExportExecution" } - }, - "nextLink": { - "type": "string", - "description": "The URI to fetch the next page of Alerts.", - "readOnly": true } } }, - "Alert": { + "ExportExecution": { + "description": "A export execution.", "type": "object", - "description": "The Alert model definition", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Alert id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Alert name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Alert type" - }, "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/AlertProperties", - "description": "Alert properties" + "$ref": "#/definitions/ExportExecutionProperties", + "title": "Export execution properties" } } }, - "AlertProperties": { - "description": "The properties of an Alert.", + "ExportExecutionProperties": { + "description": "The properties of the export execution.", "properties": { - "costEntityId": { - "description": "The id of the creating cost-entity (budget, invoice, credit).", - "type": "string", - "readOnly": true - }, - "definition": { - "description": "The definition (rule) of an Alert", - "$ref": "#/definitions/AlertDefinition", - "readOnly": true - }, - "description": { - "description": "Description of an alert.", - "type": "string", - "readOnly": true - }, - "scope": { - "description": "The scope of an alert.", - "type": "string", - "readOnly": true - }, - "source": { - "description": "The source of an Alert", + "executionType": { + "description": "The type of the export execution.", "type": "string", "enum": [ - "Preset", - "User" + "OnDemand", + "Scheduled" ], "x-ms-enum": { - "name": "AlertSource", + "name": "ExecutionType", "modelAsString": true - }, - "readOnly": true - }, - "details": { - "description": "Specific details of an alert - key-value dictionary.", - "x-ms-client-flatten": true, - "type": "object", - "additionalProperties": { - "type": "string" - }, - "readOnly": true - }, - "creationTime": { - "format": "date-time", - "description": "The time when the alert was created.", - "type": "string", - "readOnly": true - }, - "closeTime": { - "format": "date-time", - "description": "The time when the alert was closed (resolved / overridden).", - "type": "string", - "readOnly": true + } }, "status": { - "description": "The current status of the alert.", + "description": "The status of the export execution.", "type": "string", "enum": [ - "Active", - "Overridden", - "Resolved", - "Dismissed" + "Queued", + "InProgress", + "Completed", + "Failed", + "Timeout", + "NewDataNotAvailable", + "DataNotAvailable" ], "x-ms-enum": { - "name": "AlertStatus", + "name": "ExecutionStatus", "modelAsString": true } }, - "statusModificationTime": { - "description": "The current status when alert status was modified.", - "format": "date-time", - "type": "string", - "readOnly": true + "submittedBy": { + "description": "The identifier for the entity that executed the export. For OnDemand executions, it is the email id. For Scheduled executions, it is the constant value - System.", + "type": "string" }, - "modificationTime": { - "description": "The current status when alert was modified.", - "format": "date-time", + "submittedTime": { + "description": "The time when export was queued to be executed.", "type": "string", - "readOnly": true + "format": "date-time" }, - "modificationUsername": { - "description": "The username who modified the alert.", - "type": "string", - "readOnly": true - } - } - }, - "AlertDefinition": { - "description": "The definition (rule) of an Alert", - "type": "object", - "readOnly": true, - "properties" : { - "category": { - "description": "Category of the alert.", + "processingStartTime": { + "description": "The time when export was picked up to be executed.", "type": "string", - "readOnly": true, - "enum": [ - "Cost", - "Usage", - "Billing" - ], - "x-ms-enum": { - "name": "AlertCategory", - "modelAsString": true - } + "format": "date-time" }, - "type": { - "description": "The type of cost-entity the alert is defined on.", + "processingEndTime": { + "description": "The time when export execution finished.", "type": "string", - "readOnly": true, - "enum": [ - "Budget", - "Invoice", - "Credit" - ], - "x-ms-enum": { - "name": "AlertType", - "modelAsString": true - } + "format": "date-time" }, - "criteria": { - "description": "Criteria (condition) of the alert.", - "type": "string", - "readOnly": true, - "enum": [ - "CostThresholdExceeded", - "UsageThresholdExceeded", - "CreditThresholdReached" - ], - "x-ms-enum": { - "name": "AlertCriteria", - "modelAsString": true - } + "fileName": { + "description": "The name of the file export got written to.", + "type": "string" + }, + "runSettings": { + "$ref": "#/definitions/CommonExportProperties" } } } @@ -3843,7 +1725,7 @@ "in": "query", "required": true, "type": "string", - "description": "Version of the API to be used with the client request. The current version is 2018-08-01-preview." + "description": "Version of the API to be used with the client request. The current version is 2019-01-01-preview." }, "subscriptionIdParameter": { "name": "subscriptionId", @@ -3876,42 +1758,10 @@ "type": "string", "x-ms-parameter-location": "method" }, - "managementGroupIdParameter": { - "name": "managementGroupId", - "in": "path", - "description": "Management Group 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" - }, - "reportNameParameter": { - "name": "reportName", - "in": "path", - "description": "Report Name.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "connectorNameParameter": { - "name": "connectorName", - "in": "path", - "description": "Connector Name.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "alertIdParameter": { - "name": "alertId", + "exportNameParameter": { + "name": "exportName", "in": "path", - "description": "Alert ID.", + "description": "Export Name.", "required": true, "type": "string", "x-ms-parameter-location": "method" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Alert.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Alert.json deleted file mode 100644 index 7b453b028762..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Alert.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", - "resourceGroupName": "rg1", - "alertId": "0e1d6ee7-0052-4996-89e2-023263106885" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/alerts/0e1d6ee7-0052-4996-89e2-023263106885", - "name": "0e1d6ee7-0052-4996-89e2-023263106885", - "type": "Microsoft.CostManagement/alerts", - "properties": { - "definition": { - "type": "Budget", - "category": "Cost", - "criteria": "CostThresholdExceeded" - }, - "description": "This is an example alert", - "source": "User", - "details": { - "amountDue": "500.0", - "billedAmount": "680.36" - }, - "costEntityId": "123", - "creationTime": "2018-09-03T11:21:43.3495582+03:00", - "status": "Active", - "closeTime": "2018-09-10T11:21:43.3495582+03:00", - "modificationTime": "2018-12-05T10:04:36.0321998Z", - "statusModificationUserName": "Ido Ben", - "statusModificationTime": "2018-12-05T10:04:36.0321998Z" - } - } - } - } - } - - \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/AlertList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/AlertList.json deleted file mode 100644 index a81a0565f8dd..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/AlertList.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", - "resourceGroupName": "rg1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/alerts/0e1d6ee7-0052-4996-89e2-023263106885", - "name": "0e1d6ee7-0052-4996-89e2-023263106885", - "type": "Microsoft.CostManagement/alerts", - "properties": { - "definition": { - "type": "Budget", - "category": "Cost", - "criteria": "CostThresholdExceeded" - }, - "description": "This is an example alert", - "source": "User", - "details": { - "amountDue": "500.0", - "billedAmount": "680.36" - }, - "costEntityId": "123", - "creationTime": "2018-09-03T11:21:43.3495582+03:00", - "status": "Resolved", - "closeTime": "2018-09-10T11:21:43.3495582+03:00", - "modificationTime": "2018-12-05T10:04:36.0321998Z", - "statusModificationUserName": "Ido Ben", - "statusModificationTime": "2018-12-05T10:04:36.0321998Z" - } - }, - { - "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/alerts/0e1d6ee7-0052-4996-89e2-023263106454", - "name": "0e1d6ee7-0052-4996-89e2-023263106454", - "type": "Microsoft.CostManagement/alerts", - "properties": { - "definition": { - "type": "Credit", - "category": "Billing", - "criteria": "CreditThresholdReached" - }, - "description": "This is another example alert", - "source": "Preset", - "details": { - "amountDue": "500.0", - "billedAmount": "680.36" - }, - "costEntityId": "abc", - "creationTime": "2018-09-03T11:21:43.3495582+03:00", - "status": "Active", - "closeTime": "1970-01-01T00:00:00.0000000+00:00", - "modificationTime": "2018-12-05T10:04:36.0321998Z", - "statusModificationUserName": "Ido Ben", - "statusModificationTime": "2018-12-05T10:04:36.0321998Z" - } - } - ] - } - } - } - } \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsList.json deleted file mode 100644 index a7a06a0a79d1..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsList.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "billingAccountId": "100" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31", - "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", - "type": "microsoft.consumption/dimensions", - "properties": { - "data": [], - "total": 377, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00" - } - }, - { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31", - "name": "dimensions_ResourceType_2018-05-01_2018-05-31", - "type": "microsoft.consumption/dimensions", - "properties": { - "data": [], - "total": 37, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListExpandAndTop.json deleted file mode 100644 index 1d3b98e78173..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListExpandAndTop.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "billingAccountId": "100", - "$expand": "properties/data", - "$top": 5 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", - "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", - "type": "microsoft.consumption/dimensions", - "properties": { - "data": [ - "thoroetrg01", - "default-notificationhubs-westus", - "jedikeyvaultrg", - "contosocodeflow8d4a", - "noobaa" - ], - "total": 377, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00" - } - }, - { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", - "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", - "type": "microsoft.consumption/dimensions", - "properties": { - "data": [ - "microsoft.automation/automationaccounts", - "microsoft.databricks/workspaces", - "microsoft.dbformysql/servers", - "microsoft.containerregistry/registries", - "microsoft.search/searchservices" - ], - "total": 37, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListWithFilter.json deleted file mode 100644 index e20085803ebe..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountDimensionsListWithFilter.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "billingAccountId": "100", - "$expand": "properties/data", - "$top": 5, - "$filter": "properties/category eq 'instanceId'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_InstanceId_2018-05-01_2018-05-31_5", - "name": "dimensions_InstanceId_2018-05-01_2018-05-31_5", - "type": "microsoft.consumption/dimensions", - "properties": { - "data": [ - "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", - "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/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/39ae8bea-c3fd-4e24-8936-7c34974326ce/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": "InstanceId", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00", - "nextLink": "http://management.azure.com/ccmapi/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.Consumption/Dimensions?$filter=properties/category eq 'instanceId'&$top=5&api-version=2018-05-31&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountQuery.json deleted file mode 100644 index 4aee8d72ac2b..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/BillingAccountQuery.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "billingAccountId": "70664866", - "parameters":{ - "type": "Usage", - "timeframe": "MonthToDate", - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "PreTaxCost", - "ResourceGroup", - "UsageDate" - ] - }, - "filter":{ - "and": [ - { - "or":[ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "In", - "values": [ - "UAT", - "Prod" - ] - } - } - ] - }, - { - "dimension": { - "name": "ResourceGroup", - "operator": "In", - "values": [ - "API" - ] - } - } - ] - } - } - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "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", - "properties": { - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2018-05-31&$skiptoken=AQAAAA%3D%3D", - "columns": [ - { - "name": "PreTaxCost", - "type": "Number" - }, - { - "name": "ResourceGroup", - "type": "String" - }, - { - "name": "UsageDate", - "type": "Number" - } - ], - "rows": [ - [ - 19.545363672276512, - "JapanUnifia-Trial", - 20180331 - ], - [ - 173.41979241290323, - "RVIIOT-TRIAL", - 20180331 - ], - [ - 20.359416562625452, - "VSTSHOL-1595322048000", - 20180331 - ], - [ - 0.16677720329728665, - "gs-stms-dev", - 20180331 - ] - ] - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorDelete.json deleted file mode 100644 index da455d1b9697..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorDelete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", - "resourceGroupName": "rg1", - "connectorName": "AWSBillingAccount" - }, - "responses": { - "200": { - } - } -} - diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorGet.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorGet.json deleted file mode 100644 index d75b65de49d2..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorGet.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", - "resourceGroupName": "rg1", - "connectorName": "AWSBillingAccount" - }, - "responses": { - "200": { - "body": { - "kind": "aws", - "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount", - "name": "AWSBillingAccount", - "type": "Microsoft.CostManagement/connectors", - "location": "westus", - "properties": { - "displayName": "AWS-Consolidated-1", - "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", - "reportId": "HourlyWithResources", - "createdOn": "2018-05-15T13:25:48Z", - "modifiedOn": "2018-05-23T09:21:11Z", - "status": "active", - "collection": { - "lastRun": "2018-06-15T03:21:08Z", - "sourceLastUpdated": "2018-06-12T16:41:28Z", - "lastUpdated": "2018-06-12T17:25:28Z", - "error": { - "errorMessage": "Insufficient access to assume role arn:aws:iam::123456789012:role/AzureCostManagementRole", - "errorCode": "AwsPermissionDenied", - "errorStartTime": "2018-06-12T21:41:03Z" - } - } - } - } - } - } -} - diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorList.json deleted file mode 100644 index 33a7731545c1..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorList.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", - "resourceGroupName": "rg1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "kind": "aws", - "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount", - "name": "AWSBillingAccount", - "type": "Microsoft.CostManagement/connectors", - "location": "westus", - "properties": { - "displayName": "AWS-Consolidated-1", - "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", - "reportId": "HourlyWithResources", - "createdOn": "2018-05-15T13:25:48Z", - "modifiedOn": "2018-05-23T09:21:11Z", - "status": "active" - } - }, - { - "kind": "aws", - "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount2", - "name": "AWSBillingAccount2", - "type": "Microsoft.CostManagement/connectors", - "location": "westus", - "properties": { - "displayName": "AWSBillingAccount2", - "credentialsKey": "arn:aws:iam::000000000000:role/AzureCostManagementRole", - "reportId": "CURHourlyWithResources", - "createdOn": "2018-06-16T11:23:44Z", - "modifiedOn": "2018-06-21T17:33:28Z", - "status": "suspended" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPatch.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPatch.json deleted file mode 100644 index b51b8397f066..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPatch.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", - "resourceGroupName": "rg1", - "connectorName": "AWSBillingAccount", - "connector": { - "properties": { - "displayName": "AWS-Consolidated-2" - } - } - }, - "responses": { - "200": { - "body": { - "kind": "aws", - "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount", - "name": "AWSBillingAccount", - "type": "Microsoft.CostManagement/connectors", - "location": "westus", - "properties": { - "displayName": "AWS-Consolidated-2", - "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", - "reportId": "HourlyWithResources", - "createdOn": "2018-05-15T13:25:48Z", - "modifiedOn": "2018-05-23T09:21:11Z", - "status": "active" - } - } - } - } -} - diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPut.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPut.json deleted file mode 100644 index 12eb0e165cca..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ConnectorPut.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "subscriptionId": "01234567-89ab-cdef-0123-456789abcdef", - "resourceGroupName": "rg1", - "connectorName": "AWSBillingAccount", - "connector": { - "location": "westus", - "properties": { - "displayName": "AWS-Consolidated-1", - "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", - "credentialsSecret": "external-id", - "reportId": "HourlyWithResources", - "status": "active" - } - } - }, - "responses": { - "200": { - "body": { - "kind": "aws", - "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount", - "name": "AWSBillingAccount", - "type": "Microsoft.CostManagement/connectors", - "location": "westus", - "properties": { - "displayName": "AWS-Consolidated-1", - "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", - "reportId": "HourlyWithResources", - "createdOn": "2018-05-15T13:25:48Z", - "modifiedOn": "2018-05-23T09:21:11Z", - "status": "active" - } - } - }, - "201": { - "body": { - "kind": "aws", - "id": "/subscriptions/01234567-89ab-cdef-0123-456789abcdef/resourceGroups/rg1/providers/Microsoft.CostManagement/connectors/AWSBillingAccount", - "name": "AWSBillingAccount", - "type": "Microsoft.CostManagement/connectors", - "location": "westus", - "properties": { - "displayName": "AWS-Consolidated-1", - "credentialsKey": "arn:aws:iam::123456789012:role/AzureCostManagementRole", - "reportId": "HourlyWithResources", - "createdOn": "2018-05-15T13:25:48Z", - "modifiedOn": "2018-05-23T09:21:11Z", - "status": "active" - } - } - } - } -} - diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Report.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Export.json similarity index 91% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Report.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Export.json index f26608b34c6c..586e5cfd58be 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Report.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/Export.json @@ -1,22 +1,22 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { "body": { - "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/TestReport", - "name": "TestReport", - "type": "Microsoft.CostManagement/reports", + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", "properties": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportByBillingAccount.json similarity index 89% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByBillingAccount.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportByBillingAccount.json index 2267381e937d..40801c77fe7c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportByBillingAccount.json @@ -1,21 +1,21 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "billingAccountId": "123456", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/reports/TestReport", - "name": "TestReport", - "type": "Microsoft.CostManagement/reports", + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", "properties": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportByDepartment.json similarity index 89% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByDepartment.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportByDepartment.json index 7ee56072862b..7fe54073b883 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportByDepartment.json @@ -1,21 +1,21 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "departmentId": "1234", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { "body": { - "id": "providers/Microsoft.Billing/departments/{department-id}/providers/Microsoft.CostManagement/reports/TestReport", - "name": "TestReport", - "type": "Microsoft.CostManagement/reports", + "id": "providers/Microsoft.Billing/departments/{department-id}/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", "properties": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportCreateOrUpdate.json similarity index 95% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdate.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportCreateOrUpdate.json index 2baf4bec33cf..255eb9d28176 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdate.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportCreateOrUpdate.json @@ -1,9 +1,9 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "reportName": "TestReport", + "exportName": "TestExport", "parameters": { "properties": { "schedule":{ @@ -18,7 +18,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, @@ -97,9 +97,9 @@ "responses": { "201": { "body": { - "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/TestReport", - "name": "TestReport", - "type": "Microsoft.CostManagement/reports", + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", "properties": { "schedule":{ "status": "Active", @@ -113,7 +113,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, @@ -191,9 +191,9 @@ }, "200": { "body": { - "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/TestReport", - "name": "TestReport", - "type": "Microsoft.CostManagement/reports", + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", "properties": { "schedule":{ "status": "Active", @@ -207,7 +207,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportCreateOrUpdateByBillingAccount.json similarity index 94% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByBillingAccount.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportCreateOrUpdateByBillingAccount.json index 0dfa63dfc78f..380dc49a82b1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportCreateOrUpdateByBillingAccount.json @@ -1,8 +1,8 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "billingAccountId": "123456", - "reportName": "TestReport", + "exportName": "TestExport", "parameters": { "properties": { "schedule":{ @@ -17,7 +17,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, @@ -96,9 +96,9 @@ "responses": { "201": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/reports/TestReport", - "name": "TestReport", - "type": "Microsoft.CostManagement/reports", + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", "properties": { "schedule":{ "status": "Active", @@ -112,7 +112,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, @@ -190,9 +190,9 @@ }, "200": { "body": { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/reports/TestReport", - "name": "TestReport", - "type": "Microsoft.CostManagement/reports", + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", "properties": { "schedule":{ "status": "Active", @@ -206,7 +206,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportCreateOrUpdateByDepartment.json similarity index 94% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByDepartment.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportCreateOrUpdateByDepartment.json index c99fcf648764..97883bcb2db0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportCreateOrUpdateByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportCreateOrUpdateByDepartment.json @@ -1,8 +1,8 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "departmentId": "1234", - "reportName": "TestReport", + "exportName": "TestExport", "parameters": { "properties": { "schedule":{ @@ -17,7 +17,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, @@ -96,9 +96,9 @@ "responses": { "201": { "body": { - "id": "providers/Microsoft.Billing/departments/{department-id}/providers/Microsoft.CostManagement/reports/TestReport", - "name": "TestReport", - "type": "Microsoft.CostManagement/reports", + "id": "providers/Microsoft.Billing/departments/{department-id}/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", "properties": { "schedule":{ "status": "Active", @@ -112,7 +112,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, @@ -190,9 +190,9 @@ }, "200": { "body": { - "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/reports/TestReport", - "name": "TestReport", - "type": "Microsoft.CostManagement/reports", + "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", "properties": { "schedule":{ "status": "Active", @@ -206,7 +206,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportDelete.json similarity index 70% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDelete.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportDelete.json index 8a0a9bac45dc..36f5c8acf151 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDelete.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportDelete.json @@ -1,9 +1,9 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportDeleteByBillingAccount.json similarity index 58% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByBillingAccount.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportDeleteByBillingAccount.json index 3b458b6b2493..dc2932ccc254 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportDeleteByBillingAccount.json @@ -1,8 +1,8 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "billingAccountId": "123456", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportDeleteByDepartment.json similarity index 56% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByDepartment.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportDeleteByDepartment.json index 314878b7b21c..42ec6aae5108 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportDeleteByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportDeleteByDepartment.json @@ -1,8 +1,8 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "departmentId": "1234", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecution.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecution.json similarity index 70% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecution.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecution.json index 2c7a3bf4e03b..dbeaa6c7d7a9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecution.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecution.json @@ -1,9 +1,9 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionByBillingAccount.json similarity index 60% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByBillingAccount.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionByBillingAccount.json index d2e17535bcea..5d1d1603d82f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionByBillingAccount.json @@ -1,8 +1,8 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "billingAccountId": "123456", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionByDepartment.json similarity index 59% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByDepartment.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionByDepartment.json index c1a7f5ea44aa..29d561751512 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionByDepartment.json @@ -1,8 +1,8 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "departmentId": "1234", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionList.json similarity index 95% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionList.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionList.json index 913efdaba743..823cc810b48c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionList.json @@ -1,16 +1,16 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { "body": { "value": [ { - "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "executionType": "OnDemand", "status": "Completed", @@ -19,12 +19,12 @@ "processingStartTime": "2018-08-03T07:52:16.9123797Z", "processingEndTime": "2018-08-03T07:52:28.0373318Z", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", - "reportSettings": { + "runSettings": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ScheduledTestsForJohnDoe" } }, @@ -101,7 +101,7 @@ } }, { - "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "executionType": "Scheduled", "status": "Completed", @@ -110,12 +110,12 @@ "processingStartTime": "2018-08-03T09:03:58.5710244Z", "processingEndTime": "2018-08-03T09:04:19.7223808Z", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", - "reportSettings": { + "runSettings": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ScheduledTestsForJohnDoe" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionListByBillingAccount.json similarity index 95% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByBillingAccount.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionListByBillingAccount.json index 4b9d67e55fdc..cbeca9534662 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionListByBillingAccount.json @@ -1,15 +1,15 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "billingAccountId": "123456", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/reports/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": { "executionType": "OnDemand", "status": "Completed", @@ -18,12 +18,12 @@ "processingStartTime": "2018-08-03T07:52:16.9123797Z", "processingEndTime": "2018-08-03T07:52:28.0373318Z", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", - "reportSettings": { + "runSettings": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ScheduledTestsForJohnDoe" } }, @@ -100,7 +100,7 @@ } }, { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/reports/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": { "executionType": "Scheduled", "status": "Completed", @@ -109,12 +109,12 @@ "processingStartTime": "2018-08-03T09:03:58.5710244Z", "processingEndTime": "2018-08-03T09:04:19.7223808Z", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", - "reportSettings": { + "runSettings": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ScheduledTestsForJohnDoe" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionListByDepartment.json similarity index 95% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByDepartment.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionListByDepartment.json index 164474970149..c09b71d326ed 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportExecutionListByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportExecutionListByDepartment.json @@ -1,15 +1,15 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "departmentId": "1234", - "reportName": "TestReport" + "exportName": "TestExport" }, "responses": { "200": { "body": { "value": [ { - "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/reports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", "properties": { "executionType": "OnDemand", "status": "Completed", @@ -18,12 +18,12 @@ "processingStartTime": "2018-08-03T07:52:16.9123797Z", "processingEndTime": "2018-08-03T07:52:28.0373318Z", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", - "reportSettings": { + "runSettings": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ScheduledTestsForJohnDoe" } }, @@ -100,7 +100,7 @@ } }, { - "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/reports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", "properties": { "executionType": "Scheduled", "status": "Completed", @@ -109,12 +109,12 @@ "processingStartTime": "2018-08-03T09:03:58.5710244Z", "processingEndTime": "2018-08-03T09:04:19.7223808Z", "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", - "reportSettings": { + "runSettings": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ScheduledTestsForJohnDoe" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportList.json similarity index 93% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportList.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportList.json index e2411f79e956..f265da025872 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG" }, @@ -9,15 +9,15 @@ "body": { "value": [ { - "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/TestReport1", - "name": "TestReport1", - "type": "Microsoft.CostManagement/reports", + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/exports/TestExport1", + "name": "TestExport1", + "type": "Microsoft.CostManagement/exports", "properties": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, @@ -93,9 +93,9 @@ } }, { - "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/reports/TestReport2", - "name": "TestReport2", - "type": "Microsoft.CostManagement/reports", + "id": "subscriptions/{subscription-id}/providers/Microsoft.CostManagement/exports/TestExport2", + "name": "TestExport2", + "type": "Microsoft.CostManagement/exports", "properties": { "schedule":{ "status": "Active", @@ -109,7 +109,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportListByBillingAccount.json similarity index 92% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByBillingAccount.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportListByBillingAccount.json index a18b6fc4b167..be9a73da8ba1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportListByBillingAccount.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "billingAccountId": "123456" }, "responses": { @@ -8,15 +8,15 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/reports/TestReport1", - "name": "TestReport1", - "type": "Microsoft.CostManagement/reports", + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport1", + "name": "TestExport1", + "type": "Microsoft.CostManagement/exports", "properties": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, @@ -92,9 +92,9 @@ } }, { - "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/reports/TestReport2", - "name": "TestReport2", - "type": "Microsoft.CostManagement/reports", + "id": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport2", + "name": "TestExport2", + "type": "Microsoft.CostManagement/exports", "properties": { "schedule":{ "status": "Active", @@ -108,7 +108,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportListByDepartment.json similarity index 92% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByDepartment.json rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportListByDepartment.json index 7f3f2d19b822..383bda8fc4a6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ReportListByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ExportListByDepartment.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-08-01-preview", + "api-version": "2019-01-01-preview", "departmentId": "1234" }, "responses": { @@ -8,15 +8,15 @@ "body": { "value": [ { - "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/reports/TestReport1", - "name": "TestReport1", - "type": "Microsoft.CostManagement/reports", + "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/exports/TestExport1", + "name": "TestExport1", + "type": "Microsoft.CostManagement/exports", "properties": { "format": "Csv", "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, @@ -92,9 +92,9 @@ } }, { - "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/reports/TestReport2", - "name": "TestReport2", - "type": "Microsoft.CostManagement/reports", + "id": "providers/Microsoft.Billing/departments/{department-Id}/providers/Microsoft.CostManagement/exports/TestExport2", + "name": "TestExport2", + "type": "Microsoft.CostManagement/exports", "properties": { "schedule":{ "status": "Active", @@ -108,7 +108,7 @@ "deliveryInfo": { "destination": { "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", + "container": "exports", "rootFolderPath": "ad-hoc" } }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupDimensionsList.json deleted file mode 100644 index 77e43e3091e4..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupDimensionsList.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "subscriptionId": "39ae8bea-c3fd-4e24-8936-7c34974326ce", - "resourceGroupName": "system.orlando", - "$expand": "properties/data", - "$top": 5 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourceGroups/system.orlando/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", - "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", - "type": "microsoft.consumption/dimensions", - "properties": { - "data": [ - "microsoft.storage/storageaccounts" - ], - "total": 1, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00" - } - }, - { - "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourceGroups/system.orlando/providers/microsoft.consumption/dimensions_InstanceId_2018-05-01_2018-05-31_5", - "name": "dimensions_InstanceId_2018-05-01_2018-05-31_5", - "type": "microsoft.consumption/dimensions", - "properties": { - "data": [ - "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/authprod", - "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/systemevents", - "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/armadminprod", - "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", - "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/publicsystemportal" - ], - "total": 27, - "category": "InstanceId", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupQuery.json deleted file mode 100644 index b954cc947a93..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/ResourceGroupQuery.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481", - "resourceGroupName": "ScreenSharingTest-peer", - "parameters":{ - "type": "Usage", - "timeframe": "MonthToDate", - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "PreTaxCost", - "ResourceGroup", - "UsageDate" - ] - }, - "filter":{ - "and": [ - { - "or":[ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "In", - "values": [ - "UAT", - "Prod" - ] - } - } - ] - }, - { - "dimension": { - "name": "ResourceGroup", - "operator": "In", - "values": [ - "API" - ] - } - } - ] - } - } - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "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", - "properties": { - "nextLink": null, - "columns": [ - { - "name": "PreTaxCost", - "type": "Number" - }, - { - "name": "ResourceGroup", - "type": "String" - }, - { - "name": "UsageDate", - "type": "Number" - } - ], - "rows": [ - [ - 2.10333307059661, - "ScreenSharingTest-peer", - 20180417 - ], - [ - 20.10333307059661, - "ScreenSharingTest-peer", - 20180418 - ] - ] - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionDimensionsList.json deleted file mode 100644 index df827cb53161..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionDimensionsList.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "subscriptionId": "39ae8bea-c3fd-4e24-8936-7c34974326ce", - "$top": 5, - "$expand": "properties/data" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/providers/Microsoft.Consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", - "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", - "type": "microsoft.consumption/dimensions", - "properties": { - "data": [ - "dcrg", - "rg", - "offlinegalleryrg", - "system.orlando.adminkeyvault", - "system.orlando.keyvault" - ], - "total": 68, - "category": "ResourceGroup", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00" - } - }, - { - "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/providers/Microsoft.Consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", - "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", - "type": "microsoft.consumption/dimensions", - "properties": { - "data": [ - "microsoft.storage/storageaccounts", - "microsoft.web.admin/role", - "microsoft.sql/servers", - "microsoft.compute/virtualmachines" - ], - "total": 4, - "category": "ResourceType", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionQuery.json deleted file mode 100644 index 5da1187f1a26..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-01-01-preview/examples/SubscriptionQuery.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-01-preview", - "subscriptionId": "55312978-ba1b-415c-9304-c6b9c43c0481", - "parameters":{ - "type": "Usage", - "timeframe": "MonthToDate", - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "PreTaxCost", - "ResourceGroup", - "UsageDate" - ] - }, - "filter":{ - "and": [ - { - "or":[ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "In", - "values": [ - "UAT", - "Prod" - ] - } - } - ] - }, - { - "dimension": { - "name": "ResourceGroup", - "operator": "In", - "values": [ - "API" - ] - } - } - ] - } - } - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "subscriptions/55312978-ba1b-415c-9304-c6b9c43c0481/providers/Microsoft.CostManagement/Query/55312978-ba1b-415c-9304-c6b9c43c0481", - "name": "55312978-ba1b-415c-9304-cfd9c43c0481", - "type": "microsoft.costmanagement/Query", - "properties": { - "nextLink": null, - "columns": [ - { - "name": "PreTaxCost", - "type": "Number" - }, - { - "name": "ResourceGroup", - "type": "String" - }, - { - "name": "UsageDate", - "type": "Number" - } - ], - "rows": [ - [ - 2.10333307059661, - "ScreenSharingTest-peer", - 20180417 - ], - [ - 218.68795741935486, - "Ict_StratAndPlan_GoldSprova_Prod", - 20180331 - ], - [ - 0.14384913581657052, - "ssbciotelement01", - 20180331 - ], - [ - 0.009865586851323632, - "ict_stratandplan_goldsprova_prod", - 20180331 - ] - ] - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/readme.go.md b/specification/cost-management/resource-manager/readme.go.md index 59ea8adf67c9..13f1fad4f0d3 100644 --- a/specification/cost-management/resource-manager/readme.go.md +++ b/specification/cost-management/resource-manager/readme.go.md @@ -31,3 +31,11 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-01-01-preview/$(namespace) +``` diff --git a/specification/cost-management/resource-manager/readme.md b/specification/cost-management/resource-manager/readme.md index 2574976be824..1c01b0dfe1d2 100644 --- a/specification/cost-management/resource-manager/readme.md +++ b/specification/cost-management/resource-manager/readme.md @@ -65,6 +65,16 @@ input-file: ``` +### Tag: package-2019-01-preview + +These settings apply only when `--tag=package-2019-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2019-01-preview' +input-file: +- Microsoft.CostManagement/preview/2019-01-01-preview/costmanagement.json +``` + + --- # Code Generation @@ -188,4 +198,17 @@ java: output-folder: $(azure-libraries-for-java-folder)/costmanagement/resource-manager/v2018_12_01_preview regenerate-manager: true generate-interface: true +``` + +### Tag: package-2019-01-preview and java + +These settings apply only when `--tag=package-2019-01-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2019-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.costmanagement.v2019_01_01_preview + output-folder: $(azure-libraries-for-java-folder)/costmanagement/resource-manager/v2019_01_01_preview +regenerate-manager: true +generate-interface: true ``` \ No newline at end of file