diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/costmanagement.json index 0db3de8c62ea..3a52625d8593 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/costmanagement.json @@ -1,1442 +1,1441 @@ { - "swagger": "2.0", - "info": { - "version": "2019-09-01", - "title": "CostManagementClient" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } + "swagger": "2.0", + "info": { + "version": "2019-09-01", + "title": "CostManagementClient" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" } - }, - "paths": { - "/{scope}/providers/Microsoft.CostManagement/dimensions": { - "get": { - "tags": [ - "Dimensions" - ], - "x-ms-odata": "#/definitions/Dimension", - "operationId": "Dimensions_ListBySubscription", - "description": "Lists the dimensions by the defined scope.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionDimensionsList": { - "$ref": "./examples/SubscriptionDimensionsList.json" - }, - "ResourceGroupDimensionsList": { - "$ref": "./examples/ResourceGroupDimensionsList.json" - }, - "ManagementGroupDimensionsList": { - "$ref": "./examples/ManagementGroupDimensionsList.json" - }, - "ManagementGroupDimensionsListExpandAndTop": { - "$ref": "./examples/ManagementGroupDimensionsListExpandAndTop.json" - }, - "ManagementGroupDimensionsListWithFilter": { - "$ref": "./examples/ManagementGroupDimensionsListWithFilter.json" - }, - "DepartmentDimensionsList": { - "$ref": "./examples/DepartmentDimensionsList.json" - }, - "DepartmentDimensionsListExpandAndTop": { - "$ref": "./examples/DepartmentDimensionsListExpandAndTop.json" - }, - "DepartmentDimensionsListWithFilter": { - "$ref": "./examples/DepartmentDimensionsListWithFilter.json" - }, - "EnrollmentAccountDimensionsList": { - "$ref": "./examples/EnrollmentAccountDimensionsList.json" - }, - "EnrollmentAccountDimensionsListExpandAndTop": { - "$ref": "./examples/EnrollmentAccountDimensionsListExpandAndTop.json" - }, - "EnrollmentAccountDimensionsListWithFilter": { - "$ref": "./examples/EnrollmentAccountDimensionsListWithFilter.json" - }, - "BillingAccountDimensionsList": { - "$ref": "./examples/BillingAccountDimensionsList.json" - }, - "BillingAccountDimensionsListExpandAndTop": { - "$ref": "./examples/BillingAccountDimensionsListExpandAndTop.json" - }, - "BillingAccountDimensionsListWithFilter": { - "$ref": "./examples/BillingAccountDimensionsListWithFilter.json" - } + } + }, + "paths": { + "/{scope}/providers/Microsoft.CostManagement/dimensions": { + "get": { + "tags": [ + "Dimensions" + ], + "x-ms-odata": "#/definitions/Dimension", + "operationId": "Dimensions_ListBySubscription", + "description": "Lists the dimensions by the defined scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "SubscriptionDimensionsList": { + "$ref": "./examples/SubscriptionDimensionsList.json" }, - "parameters": [ - { - "$ref": "#/parameters/scopeDimensionParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "$filter", - "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "$expand", - "description": "May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "$skiptoken", - "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "$top", - "description": "May be used to limit the number of results to the most recent N dimension data.", - "in": "query", - "required": false, - "type": "integer", - "minimum": 1, - "maximum": 1000 - } - ], - "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" - } - } + "ResourceGroupDimensionsList": { + "$ref": "./examples/ResourceGroupDimensionsList.json" + }, + "ManagementGroupDimensionsList": { + "$ref": "./examples/ManagementGroupDimensionsList.json" }, - "x-ms-pageable": { - "nextLinkName": null + "ManagementGroupDimensionsListExpandAndTop": { + "$ref": "./examples/ManagementGroupDimensionsListExpandAndTop.json" + }, + "ManagementGroupDimensionsListWithFilter": { + "$ref": "./examples/ManagementGroupDimensionsListWithFilter.json" + }, + "DepartmentDimensionsList": { + "$ref": "./examples/DepartmentDimensionsList.json" + }, + "DepartmentDimensionsListExpandAndTop": { + "$ref": "./examples/DepartmentDimensionsListExpandAndTop.json" + }, + "DepartmentDimensionsListWithFilter": { + "$ref": "./examples/DepartmentDimensionsListWithFilter.json" + }, + "EnrollmentAccountDimensionsList": { + "$ref": "./examples/EnrollmentAccountDimensionsList.json" + }, + "EnrollmentAccountDimensionsListExpandAndTop": { + "$ref": "./examples/EnrollmentAccountDimensionsListExpandAndTop.json" + }, + "EnrollmentAccountDimensionsListWithFilter": { + "$ref": "./examples/EnrollmentAccountDimensionsListWithFilter.json" + }, + "BillingAccountDimensionsList": { + "$ref": "./examples/BillingAccountDimensionsList.json" + }, + "BillingAccountDimensionsListExpandAndTop": { + "$ref": "./examples/BillingAccountDimensionsListExpandAndTop.json" + }, + "BillingAccountDimensionsListWithFilter": { + "$ref": "./examples/BillingAccountDimensionsListWithFilter.json" } - } - }, - "/{scope}/providers/Microsoft.CostManagement/query": { - "post": { - "tags": [ - "Query" - ], - "operationId": "Query_UsageByScope", - "description": "Query the usage data for scope defined.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionQuery": { - "$ref": "./examples/SubscriptionQuery.json" - }, - "SubscriptionQueryGrouping": { - "$ref": "./examples/SubscriptionQueryGrouping.json" - }, - "ResourceGroupQuery": { - "$ref": "./examples/ResourceGroupQuery.json" - }, - "ResourceGroupQueryGrouping": { - "$ref": "./examples/ResourceGroupQueryGrouping.json" - }, - "BillingAccountQuery": { - "$ref": "./examples/BillingAccountQuery.json" - }, - "BillingAccountQueryGrouping": { - "$ref": "./examples/BillingAccountQueryGrouping.json" - }, - "EnrollmentAccountQuery": { - "$ref": "./examples/EnrollmentAccountQuery.json" - }, - "EnrollmentAccountQueryGrouping": { - "$ref": "./examples/EnrollmentAccountQueryGrouping.json" - }, - "DepartmentQuery": { - "$ref": "./examples/DepartmentQuery.json" - }, - "DepartmentQueryGrouping": { - "$ref": "./examples/DepartmentQueryGrouping.json" - }, - "ManagementGroupQuery": { - "$ref": "./examples/ManagementGroupQuery.json" - }, - "ManagementGroupQueryGrouping": { - "$ref": "./examples/ManagementGroupQueryGrouping.json" - } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeDimensionParameter" }, - "parameters": [ - { - "$ref": "#/parameters/scopeQueryParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/QueryDefinition" - }, - "description": "Parameters supplied to the CreateOrUpdate Query Config operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/QueryResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "$filter", + "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "in": "query", + "required": false, + "type": "string" }, - "x-ms-pageable": { - "nextLinkName": null + { + "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 } - } - }, - "/{scope}/providers/Microsoft.CostManagement/exports": { - "get": { - "tags": [ - "Exports" - ], - "operationId": "Exports_List", - "description": "The operation to list all exports at the given scope.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionExportList": { - "$ref": "./examples/ExportListBySubscription.json" - }, - "ResourceGroupExportList": { - "$ref": "./examples/ExportListByResourceGroup.json" - }, - "BillingAccountExportList": { - "$ref": "./examples/ExportListByBillingAccount.json" - }, - "DepartmentExportList": { - "$ref": "./examples/ExportListByDepartment.json" - }, - "EnrollmentAccountExportList": { - "$ref": "./examples/ExportListByEnrollmentAccount.json" - }, - "ManagementGroupExportList": { - "$ref": "./examples/ExportListByManagementGroup.json" + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" } }, - "parameters": [ - { - "$ref": "#/parameters/scopeQueryParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ExportListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": null } - }, - "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}": { - "get": { - "tags": [ - "Exports" - ], - "operationId": "Exports_Get", - "description": "The operation to get the export for the defined scope by export name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionExport": { - "$ref": "./examples/ExportBySubscription.json" - }, - "ResourceGroupExport": { - "$ref": "./examples/ExportByResourceGroup.json" - }, - "BillingAccountExport": { - "$ref": "./examples/ExportByBillingAccount.json" - }, - "DepartmentExport": { - "$ref": "./examples/ExportByDepartment.json" - }, - "EnrollmentAccountExport": { - "$ref": "./examples/ExportByEnrollmentAccount.json" - }, - "ManagementGroupExport": { - "$ref": "./examples/ExportByManagementGroup.json" - } + } + }, + "/{scope}/providers/Microsoft.CostManagement/query": { + "post": { + "tags": [ + "Query" + ], + "operationId": "Query_UsageByScope", + "description": "Query the usage data for scope defined.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "SubscriptionQuery": { + "$ref": "./examples/SubscriptionQuery.json" }, - "parameters": [ - { - "$ref": "#/parameters/scopeQueryParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/exportNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Export" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } + "SubscriptionQueryGrouping": { + "$ref": "./examples/SubscriptionQueryGrouping.json" + }, + "ResourceGroupQuery": { + "$ref": "./examples/ResourceGroupQuery.json" + }, + "ResourceGroupQueryGrouping": { + "$ref": "./examples/ResourceGroupQueryGrouping.json" + }, + "BillingAccountQuery": { + "$ref": "./examples/BillingAccountQuery.json" + }, + "BillingAccountQueryGrouping": { + "$ref": "./examples/BillingAccountQueryGrouping.json" + }, + "EnrollmentAccountQuery": { + "$ref": "./examples/EnrollmentAccountQuery.json" + }, + "EnrollmentAccountQueryGrouping": { + "$ref": "./examples/EnrollmentAccountQueryGrouping.json" + }, + "DepartmentQuery": { + "$ref": "./examples/DepartmentQuery.json" + }, + "DepartmentQueryGrouping": { + "$ref": "./examples/DepartmentQueryGrouping.json" + }, + "ManagementGroupQuery": { + "$ref": "./examples/ManagementGroupQuery.json" + }, + "ManagementGroupQueryGrouping": { + "$ref": "./examples/ManagementGroupQueryGrouping.json" } }, - "put": { - "tags": [ - "Exports" - ], - "operationId": "Exports_CreateOrUpdate", - "description": "The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionCreateOrUpdateExport": { - "$ref": "./examples/ExportCreateOrUpdateBySubscription.json" - }, - "ResourceGroupCreateOrUpdateExport": { - "$ref": "./examples/ExportCreateOrUpdateByResourceGroup.json" - }, - "BillingAccountCreateOrUpdateExport": { - "$ref": "./examples/ExportCreateOrUpdateByBillingAccount.json" - }, - "DepartmentCreateOrUpdateExport": { - "$ref": "./examples/ExportCreateOrUpdateByDepartment.json" - }, - "EnrollmentAccountCreateOrUpdateExport": { - "$ref": "./examples/ExportCreateOrUpdateByEnrollmentAccount.json" - }, - "ManagementGroupCreateOrUpdateExport": { - "$ref": "./examples/ExportCreateOrUpdateByManagementGroup.json" - } + "parameters": [ + { + "$ref": "#/parameters/scopeQueryParameter" }, - "parameters": [ - { - "$ref": "#/parameters/scopeQueryParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/exportNameParameter" + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/QueryDefinition" }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Export" - }, - "description": "Parameters supplied to the CreateOrUpdate Export operation." + "description": "Parameters supplied to the CreateOrUpdate Query Config operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryResult" } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/Export" - } - }, - "201": { - "description": "Created.", - "schema": { - "$ref": "#/definitions/Export" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } }, - "delete": { - "tags": [ - "Exports" - ], - "operationId": "Exports_Delete", - "description": "The operation to delete a export.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionDeleteExport": { - "$ref": "./examples/ExportDeleteBySubscription.json" - }, - "ResourceGroupDeleteExport": { - "$ref": "./examples/ExportDeleteByResourceGroup.json" - }, - "BillingAccountDeleteExport": { - "$ref": "./examples/ExportDeleteByBillingAccount.json" - }, - "EnrollmentAccountDeleteExport": { - "$ref": "./examples/ExportDeleteByEnrollmentAccount.json" - }, - "DepartmentDeleteExport": { - "$ref": "./examples/ExportDeleteByDepartment.json" - }, - "ManagementGroupDeleteExport": { - "$ref": "./examples/ExportDeleteByManagementGroup.json" - } + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/{scope}/providers/Microsoft.CostManagement/exports": { + "get": { + "tags": [ + "Exports" + ], + "operationId": "Exports_List", + "description": "The operation to list all exports at the given scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "SubscriptionExportList": { + "$ref": "./examples/ExportListBySubscription.json" }, - "parameters": [ - { - "$ref": "#/parameters/scopeQueryParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/exportNameParameter" + "ResourceGroupExportList": { + "$ref": "./examples/ExportListByResourceGroup.json" + }, + "BillingAccountExportList": { + "$ref": "./examples/ExportListByBillingAccount.json" + }, + "DepartmentExportList": { + "$ref": "./examples/ExportListByDepartment.json" + }, + "EnrollmentAccountExportList": { + "$ref": "./examples/ExportListByEnrollmentAccount.json" + }, + "ManagementGroupExportList": { + "$ref": "./examples/ExportListByManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeQueryParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ExportListResult" } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } - }, - "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run": { - "post": { - "tags": [ - "Exports" - ], - "operationId": "Exports_Execute", - "description": "The operation to execute a export.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionExecuteExport": { - "$ref": "./examples/ExportExecutionBySubscription.json" - }, - "ResourceGroupExecuteExport": { - "$ref": "./examples/ExportExecutionByResourceGroup.json" - }, - "BillingAccountExecuteExport": { - "$ref": "./examples/ExportExecutionByBillingAccount.json" - }, - "DepartmentExecuteExport": { - "$ref": "./examples/ExportExecutionByDepartment.json" - }, - "EnrollmentAccountExecuteExport": { - "$ref": "./examples/ExportExecutionByEnrollmentAccount.json" - }, - "ManagementGroupExecuteExport": { - "$ref": "./examples/ExportExecutionByManagementGroup.json" - } + } + }, + "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}": { + "get": { + "tags": [ + "Exports" + ], + "operationId": "Exports_Get", + "description": "The operation to get the export for the defined scope by export name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "SubscriptionExport": { + "$ref": "./examples/ExportBySubscription.json" }, - "parameters": [ - { - "$ref": "#/parameters/scopeQueryParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/exportNameParameter" + "ResourceGroupExport": { + "$ref": "./examples/ExportByResourceGroup.json" + }, + "BillingAccountExport": { + "$ref": "./examples/ExportByBillingAccount.json" + }, + "DepartmentExport": { + "$ref": "./examples/ExportByDepartment.json" + }, + "EnrollmentAccountExport": { + "$ref": "./examples/ExportByEnrollmentAccount.json" + }, + "ManagementGroupExport": { + "$ref": "./examples/ExportByManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeQueryParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/exportNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Export" } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } }, - "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory": { - "get": { - "tags": [ - "Exports" - ], - "operationId": "Exports_GetExecutionHistory", - "description": "The operation to get the execution history of an export for the defined scope by export name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "SubscriptionExecutionHistoryExport": { - "$ref": "./examples/ExportExecutionListBySubscription.json" - }, - "ResourceGroupExecutionHistoryExport": { - "$ref": "./examples/ExportExecutionListByResourceGroup.json" - }, - "BillingAccountExecutionHistoryExport": { - "$ref": "./examples/ExportExecutionListByBillingAccount.json" - }, - "DepartmentExecutionHistoryExport": { - "$ref": "./examples/ExportExecutionListByDepartment.json" - }, - "EnrollmentAccountExecutionHistoryExport": { - "$ref": "./examples/ExportExecutionListByEnrollmentAccount.json" + "put": { + "tags": [ + "Exports" + ], + "operationId": "Exports_CreateOrUpdate", + "description": "The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "SubscriptionCreateOrUpdateExport": { + "$ref": "./examples/ExportCreateOrUpdateBySubscription.json" + }, + "ResourceGroupCreateOrUpdateExport": { + "$ref": "./examples/ExportCreateOrUpdateByResourceGroup.json" + }, + "BillingAccountCreateOrUpdateExport": { + "$ref": "./examples/ExportCreateOrUpdateByBillingAccount.json" + }, + "DepartmentCreateOrUpdateExport": { + "$ref": "./examples/ExportCreateOrUpdateByDepartment.json" + }, + "EnrollmentAccountCreateOrUpdateExport": { + "$ref": "./examples/ExportCreateOrUpdateByEnrollmentAccount.json" + }, + "ManagementGroupCreateOrUpdateExport": { + "$ref": "./examples/ExportCreateOrUpdateByManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeQueryParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/exportNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Export" }, - "ManagementGroupExecutionHistoryExport": { - "$ref": "./examples/ExportExecutionListByManagementGroup.json" + "description": "Parameters supplied to the CreateOrUpdate Export operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/Export" } }, - "parameters": [ - { - "$ref": "#/parameters/scopeQueryParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/exportNameParameter" + "201": { + "description": "Created.", + "schema": { + "$ref": "#/definitions/Export" } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ExportExecutionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } + }, + "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" - } - } + "delete": { + "tags": [ + "Exports" + ], + "operationId": "Exports_Delete", + "description": "The operation to delete a export.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "SubscriptionDeleteExport": { + "$ref": "./examples/ExportDeleteBySubscription.json" + }, + "ResourceGroupDeleteExport": { + "$ref": "./examples/ExportDeleteByResourceGroup.json" }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + "BillingAccountDeleteExport": { + "$ref": "./examples/ExportDeleteByBillingAccount.json" + }, + "EnrollmentAccountDeleteExport": { + "$ref": "./examples/ExportDeleteByEnrollmentAccount.json" + }, + "DepartmentDeleteExport": { + "$ref": "./examples/ExportDeleteByDepartment.json" + }, + "ManagementGroupDeleteExport": { + "$ref": "./examples/ExportDeleteByManagementGroup.json" } - } - } - }, - "definitions": { - "ErrorDetails": { - "description": "The details of the error.", - "properties": { - "code": { - "description": "Error code.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string", - "readOnly": true + }, + "parameters": [ + { + "$ref": "#/parameters/scopeQueryParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/exportNameParameter" } - } - }, - "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" + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } - }, - "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." - } + } + }, + "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run": { + "post": { + "tags": [ + "Exports" + ], + "operationId": "Exports_Execute", + "description": "The operation to execute a export.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" }, - "x-ms-azure-resource": true - }, - "DimensionsListResult": { - "description": "Result of listing dimensions. It contains a list of available dimensions.", - "type": "object", - "properties": { - "value": { - "description": "The list of dimensions.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Dimension" - } + "x-ms-examples": { + "SubscriptionExecuteExport": { + "$ref": "./examples/ExportExecutionBySubscription.json" + }, + "ResourceGroupExecuteExport": { + "$ref": "./examples/ExportExecutionByResourceGroup.json" + }, + "BillingAccountExecuteExport": { + "$ref": "./examples/ExportExecutionByBillingAccount.json" + }, + "DepartmentExecuteExport": { + "$ref": "./examples/ExportExecutionByDepartment.json" + }, + "EnrollmentAccountExecuteExport": { + "$ref": "./examples/ExportExecutionByEnrollmentAccount.json" + }, + "ManagementGroupExecuteExport": { + "$ref": "./examples/ExportExecutionByManagementGroup.json" } - } - }, - "Dimension": { - "type": "object", - "allOf": [ + }, + "parameters": [ + { + "$ref": "#/parameters/scopeQueryParameter" + }, { - "$ref": "#/definitions/Resource" + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/exportNameParameter" } ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DimensionProperties", - "title": "Dimension properties" + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } - }, - "DimensionProperties": { - "type": "object", - "properties": { - "description": { - "type": "string" + } + }, + "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory": { + "get": { + "tags": [ + "Exports" + ], + "operationId": "Exports_GetExecutionHistory", + "description": "The operation to get the execution history of an export for the defined scope by export name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "SubscriptionExecutionHistoryExport": { + "$ref": "./examples/ExportExecutionListBySubscription.json" }, - "filterEnabled": { - "type": "boolean" + "ResourceGroupExecutionHistoryExport": { + "$ref": "./examples/ExportExecutionListByResourceGroup.json" }, - "groupingEnabled": { - "type": "boolean" + "BillingAccountExecutionHistoryExport": { + "$ref": "./examples/ExportExecutionListByBillingAccount.json" }, - "data": { - "type": "array", - "items": { - "type": "string" - } + "DepartmentExecutionHistoryExport": { + "$ref": "./examples/ExportExecutionListByDepartment.json" }, - "total": { - "format": "int32", - "type": "integer" + "EnrollmentAccountExecutionHistoryExport": { + "$ref": "./examples/ExportExecutionListByEnrollmentAccount.json" }, - "category": { - "type": "string" - }, - "usageStart": { - "format": "date-time", - "type": "string" + "ManagementGroupExecutionHistoryExport": { + "$ref": "./examples/ExportExecutionListByManagementGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/scopeQueryParameter" }, - "usageEnd": { - "format": "date-time", - "type": "string" + { + "$ref": "#/parameters/apiVersionParameter" }, - "nextLink": { - "type": "string" + { + "$ref": "#/parameters/exportNameParameter" } - } - }, - "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" + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ExportExecutionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } } - }, - "Query": { - "type": "object", - "allOf": [ + } + }, + "/providers/Microsoft.CostManagement/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available cost management REST API operations.", + "parameters": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/parameters/apiVersionParameter" } ], - "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" + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" } }, - "rows": { - "type": "array", - "items": { - "type": "array", - "items": {} + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "QueryColumn": { - "type": "object", - "properties": { - "name": { + } + } + }, + "definitions": { + "ErrorDetails": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "Error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string", + "readOnly": true + } + } + }, + "ErrorResponse": { + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", + "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" }, - "type": { + "description": "Resource tags." + } + }, + "x-ms-azure-resource": true + }, + "DimensionsListResult": { + "description": "Result of listing dimensions. It contains a list of available dimensions.", + "type": "object", + "properties": { + "value": { + "description": "The list of dimensions.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Dimension" + } + } + } + }, + "Dimension": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DimensionProperties", + "title": "Dimension properties" + } + } + }, + "DimensionProperties": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "filterEnabled": { + "type": "boolean" + }, + "groupingEnabled": { + "type": "boolean" + }, + "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" } - }, - "OperationListResult": { - "description": "Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results.", - "properties": { - "value": { - "description": "List of cost management 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 + } + }, + "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" } } - }, - "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: Dimensions, Query.", - "type": "string", - "readOnly": true - }, - "operation": { - "description": "Operation type: Read, write, delete, etc.", - "type": "string", - "readOnly": true - } - } - } + } + }, + "Query": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" } - }, - "QueryDefinition": { - "description": "The definition of a query.", + ], + "properties": { "properties": { - "type": { - "description": "The type of the query.", - "type": "string", - "enum": [ - "Usage" - ], - "x-ms-enum": { - "name": "ExportType", - "modelAsString": true - } - }, - "timeframe": { - "description": "The time frame for pulling data for the query. If custom, then a specific time period must be provided.", - "type": "string", - "enum": [ - "WeekToDate", - "MonthToDate", - "YearToDate", - "TheLastWeek", - "TheLastMonth", - "TheLastYear", - "Custom" - ], - "x-ms-enum": { - "name": "TimeframeType", - "modelAsString": true - } - }, - "timePeriod": { - "description": "Has time period for pulling data for the query.", - "$ref": "#/definitions/QueryTimePeriod" - }, - "dataset": { - "description": "Has definition for data in this query.", - "$ref": "#/definitions/QueryDataset" - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/QueryProperties", + "title": "Query properties" + } + } + }, + "QueryProperties": { + "type": "object", + "properties": { + "nextLink": { + "type": "string" }, - "required": [ - "type", - "timeframe" - ] - }, - "QueryTimePeriod": { - "description": "The start and end date for pulling data for the query.", - "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" + "columns": { + "description": "Array of columns", + "type": "array", + "items": { + "$ref": "#/definitions/QueryColumn" } }, - "required": [ - "from", - "to" - ] - }, - "QueryDataset": { - "description": "The definition of data present in the query.", - "properties": { - "granularity": { - "description": "The granularity of rows in the query.", - "type": "string", - "enum": [ - "Daily", - "Hourly" - ], - "x-ms-enum": { - "name": "GranularityType", - "modelAsString": true - } - }, - "configuration": { - "description": "Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.", - "$ref": "#/definitions/QueryDatasetConfiguration" - }, - "aggregation": { - "type": "object", - "description": "Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.", - "additionalProperties": { - "type": "object", - "$ref": "#/definitions/QueryAggregation" - }, - "maxItems": 2 - }, - "grouping": { - "description": "Array of group by expression to use in the query. Query can have up to 2 group by clauses.", + "rows": { + "type": "array", + "items": { "type": "array", - "items": { - "$ref": "#/definitions/QueryGrouping" - }, - "maxItems": 2 - }, - "sorting": { - "type": "array", - "description": "Array of sorting by columns in query.", - "items": { - "$ref": "#/definitions/QuerySortingConfiguration" - } - }, - "filter": { - "type": "object", - "description": "Has filter expression to use in the query.", - "$ref": "#/definitions/QueryFilter" + "items": {} } } - }, - "QuerySortingConfiguration": { - "description": "The configuration for sorting in the query.", - "type": "object", - "properties": { - "querySortingDirection": { - "description": "The sorting direction", - "type": "string", - "enum": [ - "Ascending", - "Descending" - ], - "x-ms-enum": { - "name": "SortDirection", - "modelAsString": true - } - }, - "name": { - "description": "The name of the column to use in sorting.", - "type": "string" + } + }, + "QueryColumn": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "OperationListResult": { + "description": "Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of cost management 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 } - }, - "QueryDatasetConfiguration": { - "description": "The configuration of dataset in the query.", - "properties": { - "columns": { - "description": "Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.", - "type": "array", - "items": { - "type": "string" + } + }, + "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: Dimensions, Query.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true } } } - }, - "QueryAggregation": { - "description": "The aggregation expression to be used in the query.", - "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 - } + } + }, + "QueryDefinition": { + "description": "The definition of a query.", + "properties": { + "type": { + "description": "The type of the query.", + "type": "string", + "enum": [ + "Usage" + ], + "x-ms-enum": { + "name": "ExportType", + "modelAsString": true } }, - "required": [ - "name", - "function" - ] - }, - "QueryGrouping": { - "description": "The group by expression to be used in the query.", - "properties": { - "type": { - "description": "Has type of the column to group.", - "$ref": "#/definitions/QueryColumnType" - }, - "name": { - "description": "The name of the column to group.", - "type": "string" + "timeframe": { + "description": "The time frame for pulling data for the query. If custom, then a specific time period must be provided.", + "type": "string", + "enum": [ + "WeekToDate", + "MonthToDate", + "YearToDate", + "TheLastWeek", + "TheLastMonth", + "TheLastYear", + "Custom" + ], + "x-ms-enum": { + "name": "TimeframeType", + "modelAsString": true } }, - "required": [ - "type", - "name" - ] - }, - "QueryFilter": { - "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/QueryFilter" - }, - "minItems": 2 - }, - "or": { - "description": "The logical \"OR\" expression. Must have at least 2 items.", - "type": "array", - "items": { - "$ref": "#/definitions/QueryFilter" - }, - "minItems": 2 - }, - "not": { - "description": "The logical \"NOT\" expression.", - "$ref": "#/definitions/QueryFilter" - }, - "dimension": { - "description": "Has comparison expression for a dimension", - "$ref": "#/definitions/QueryComparisonExpression" - }, - "tag": { - "description": "Has comparison expression for a tag", - "$ref": "#/definitions/QueryComparisonExpression" - } + "timePeriod": { + "description": "Has time period for pulling data for the query.", + "$ref": "#/definitions/QueryTimePeriod" + }, + "dataset": { + "description": "Has definition for data in this query.", + "$ref": "#/definitions/QueryDataset" } }, - "QueryColumnType": { - "description": "The type of the column in the export.", - "type": "string", - "enum": [ - "Tag", - "Dimension" - ], - "x-ms-enum": { - "name": "QueryColumnType", - "modelAsString": true + "required": [ + "type", + "timeframe" + ] + }, + "QueryTimePeriod": { + "description": "The start and end date for pulling data for the query.", + "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" } }, - "QueryComparisonExpression": { - "description": "The comparison expression to be used in the query.", - "properties": { - "name": { - "description": "The name of the column to use in comparison.", - "type": "string" + "required": [ + "from", + "to" + ] + }, + "QueryDataset": { + "description": "The definition of data present in the query.", + "properties": { + "granularity": { + "description": "The granularity of rows in the query.", + "type": "string", + "enum": [ + "Daily", + "Hourly" + ], + "x-ms-enum": { + "name": "GranularityType", + "modelAsString": true + } + }, + "configuration": { + "description": "Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.", + "$ref": "#/definitions/QueryDatasetConfiguration" + }, + "aggregation": { + "type": "object", + "description": "Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.", + "additionalProperties": { + "type": "object", + "$ref": "#/definitions/QueryAggregation" }, - "operator": { - "description": "The operator to use for comparison.", - "type": "string", - "enum": [ - "In" - ], - "x-ms-enum": { - "name": "OperatorType", - "modelAsString": true - } + "maxItems": 2 + }, + "grouping": { + "description": "Array of group by expression to use in the query. Query can have up to 2 group by clauses.", + "type": "array", + "items": { + "$ref": "#/definitions/QueryGrouping" }, - "values": { - "description": "Array of values to use for comparison", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1 + "maxItems": 2 + }, + "sorting": { + "type": "array", + "description": "Array of sorting by columns in query.", + "items": { + "$ref": "#/definitions/QuerySortingConfiguration" } }, - "required": [ - "name", - "operator", - "values" - ] - }, - "ExportListResult": { - "description": "Result of listing exports. It contains a list of available exports in the scope provided.", - "properties": { - "value": { - "description": "The list of exports.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Export" - } + "filter": { + "type": "object", + "description": "Has filter expression to use in the query.", + "$ref": "#/definitions/QueryFilter" + } + } + }, + "QuerySortingConfiguration": { + "description": "The configuration for sorting in the query.", + "type": "object", + "properties": { + "querySortingDirection": { + "description": "The sorting direction", + "type": "string", + "enum": [ + "Ascending", + "Descending" + ], + "x-ms-enum": { + "name": "SortDirection", + "modelAsString": true } + }, + "name": { + "description": "The name of the column to use in sorting.", + "type": "string" } - }, - "Export": { - "description": "A export resource.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" + } + }, + "QueryDatasetConfiguration": { + "description": "The configuration of dataset in the query.", + "properties": { + "columns": { + "description": "Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.", + "type": "array", + "items": { + "type": "string" } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ExportProperties", - "title": "Export properties" + } + } + }, + "QueryAggregation": { + "description": "The aggregation expression to be used in the query.", + "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 } } }, - "ExportProperties": { - "description": "The properties of the export.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/CommonExportProperties" - } - ], - "properties": { - "schedule": { - "description": "Has schedule information for the export.", - "$ref": "#/definitions/ExportSchedule" - } + "required": [ + "name", + "function" + ] + }, + "QueryGrouping": { + "description": "The group by expression to be used in the query.", + "properties": { + "type": { + "description": "Has type of the column to group.", + "$ref": "#/definitions/QueryColumnType" + }, + "name": { + "description": "The name of the column to group.", + "type": "string" } }, - "CommonExportProperties": { - "description": "The common properties of the export.", - "properties": { - "format": { - "description": "The format of the export being delivered.", - "type": "string", - "enum": [ - "Csv" - ], - "x-ms-enum": { - "name": "FormatType", - "modelAsString": true - } + "required": [ + "type", + "name" + ] + }, + "QueryFilter": { + "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/QueryFilter" }, - "deliveryInfo": { - "description": "Has delivery information for the export.", - "$ref": "#/definitions/ExportDeliveryInfo" + "minItems": 2 + }, + "or": { + "description": "The logical \"OR\" expression. Must have at least 2 items.", + "type": "array", + "items": { + "$ref": "#/definitions/QueryFilter" }, - "definition": { - "description": "Has definition for the export.", - "$ref": "#/definitions/QueryDefinition" + "minItems": 2 + }, + "not": { + "description": "The logical \"NOT\" expression.", + "$ref": "#/definitions/QueryFilter" + }, + "dimension": { + "description": "Has comparison expression for a dimension", + "$ref": "#/definitions/QueryComparisonExpression" + }, + "tag": { + "description": "Has comparison expression for a tag", + "$ref": "#/definitions/QueryComparisonExpression" + } + } + }, + "QueryColumnType": { + "description": "The type of the column in the export.", + "type": "string", + "enum": [ + "Tag", + "Dimension" + ], + "x-ms-enum": { + "name": "QueryColumnType", + "modelAsString": true + } + }, + "QueryComparisonExpression": { + "description": "The comparison expression to be used in the query.", + "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 } }, - "required": [ - "deliveryInfo", - "definition" - ] + "values": { + "description": "Array of values to use for comparison", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1 + } }, - "ExportSchedule": { - "description": "The schedule associated with a export.", + "required": [ + "name", + "operator", + "values" + ] + }, + "ExportListResult": { + "description": "Result of listing exports. It contains a list of available exports in the scope provided.", + "properties": { + "value": { + "description": "The list of exports.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Export" + } + } + } + }, + "Export": { + "description": "A export resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { "properties": { - "status": { - "description": "The status of the schedule. Whether active or not. If inactive, the export'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/ExportRecurrencePeriod" + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExportProperties", + "title": "Export properties" + } + } + }, + "ExportProperties": { + "description": "The properties of the export.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/CommonExportProperties" + } + ], + "properties": { + "schedule": { + "description": "Has schedule information for the export.", + "$ref": "#/definitions/ExportSchedule" + } + } + }, + "CommonExportProperties": { + "description": "The common properties of the export.", + "properties": { + "format": { + "description": "The format of the export being delivered.", + "type": "string", + "enum": [ + "Csv" + ], + "x-ms-enum": { + "name": "FormatType", + "modelAsString": true } }, - "required": [ - "recurrence" - ] + "deliveryInfo": { + "description": "Has delivery information for the export.", + "$ref": "#/definitions/ExportDeliveryInfo" + }, + "definition": { + "description": "Has definition for the export.", + "$ref": "#/definitions/QueryDefinition" + } }, - "ExportDeliveryInfo": { - "description": "The delivery information associated with a export.", - "properties": { - "destination": { - "description": "Has destination for the export being delivered.", - "$ref": "#/definitions/ExportDeliveryDestination" + "required": [ + "deliveryInfo", + "definition" + ] + }, + "ExportSchedule": { + "description": "The schedule associated with a export.", + "properties": { + "status": { + "description": "The status of the schedule. Whether active or not. If inactive, the export's scheduled execution is paused.", + "type": "string", + "enum": [ + "Active", + "Inactive" + ], + "x-ms-enum": { + "name": "StatusType", + "modelAsString": true } }, - "required": [ - "destination" - ] - }, - "ExportRecurrencePeriod": { - "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" + "recurrence": { + "description": "The schedule recurrence.", + "type": "string", + "enum": [ + "Daily", + "Weekly", + "Monthly", + "Annually" + ], + "x-ms-enum": { + "name": "RecurrenceType", + "modelAsString": true } }, - "required": [ - "from" - ] + "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" + } }, - "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" - }, - "rootFolderPath": { - "description": "The name of the directory where exports will be uploaded.", - "type": "string" - } + "required": [ + "recurrence" + ] + }, + "ExportDeliveryInfo": { + "description": "The delivery information associated with a export.", + "properties": { + "destination": { + "description": "Has destination for the export being delivered.", + "$ref": "#/definitions/ExportDeliveryDestination" + } + }, + "required": [ + "destination" + ] + }, + "ExportRecurrencePeriod": { + "description": "The start and end date for recurrence schedule.", + "properties": { + "from": { + "description": "The start date of recurrence.", + "type": "string", + "format": "date-time" }, - "required": [ - "resourceId", - "container" - ] + "to": { + "description": "The end date of recurrence.", + "type": "string", + "format": "date-time" + } }, - "ExportExecutionListResult": { - "description": "Result of listing exports execution history of a export by name", - "properties": { - "value": { - "description": "The list of export executions.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/ExportExecution" - } - } + "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" + }, + "rootFolderPath": { + "description": "The name of the directory where exports will be uploaded.", + "type": "string" } }, - "ExportExecution": { - "description": "A export execution.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ExportExecutionProperties", - "title": "Export execution properties" + "required": [ + "resourceId", + "container" + ] + }, + "ExportExecutionListResult": { + "description": "Result of listing exports execution history of a export by name", + "properties": { + "value": { + "description": "The list of export executions.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ExportExecution" } } - }, - "ExportExecutionProperties": { - "description": "The properties of the export execution.", + } + }, + "ExportExecution": { + "description": "A export execution.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { "properties": { - "executionType": { - "description": "The type of the export execution.", - "type": "string", - "enum": [ - "OnDemand", - "Scheduled" - ], - "x-ms-enum": { - "name": "ExecutionType", - "modelAsString": true - } - }, - "status": { - "description": "The status of the export execution.", - "type": "string", - "enum": [ - "Queued", - "InProgress", - "Completed", - "Failed", - "Timeout", - "NewDataNotAvailable", - "DataNotAvailable" - ], - "x-ms-enum": { - "name": "ExecutionStatus", - "modelAsString": true - } - }, - "submittedBy": { - "description": "The identifier for the entity that executed the export. For OnDemand executions, it is the email id. For Scheduled executions, it is the constant value - System.", - "type": "string" - }, - "submittedTime": { - "description": "The time when export was queued to be executed.", - "type": "string", - "format": "date-time" - }, - "processingStartTime": { - "description": "The time when export was picked up to be executed.", - "type": "string", - "format": "date-time" - }, - "processingEndTime": { - "description": "The time when export execution finished.", - "type": "string", - "format": "date-time" - }, - "fileName": { - "description": "The name of the file export got written to.", - "type": "string" - }, - "runSettings": { - "$ref": "#/definitions/CommonExportProperties" - } + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExportExecutionProperties", + "title": "Export execution properties" } } }, - "parameters": { - "scopeDimensionParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope..", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "scopeQueryParameter": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope..", - "x-ms-parameter-location": "method", - "x-ms-skip-url-encoding": true - }, - "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-05-31." - }, - "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" - }, - "managementGroupIdParameter": { - "name": "managementGroupId", - "in": "path", - "description": "ManagementGroup ID", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "departmentIdParameter": { - "name": "departmentId", - "in": "path", - "description": "Department ID", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "enrollmentAccountIdParameter": { - "name": "enrollmentAccountId", - "in": "path", - "description": "Enrollment Account ID", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "exportNameParameter": { - "name": "exportName", - "in": "path", - "description": "Export Name.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" + "ExportExecutionProperties": { + "description": "The properties of the export execution.", + "properties": { + "executionType": { + "description": "The type of the export execution.", + "type": "string", + "enum": [ + "OnDemand", + "Scheduled" + ], + "x-ms-enum": { + "name": "ExecutionType", + "modelAsString": true + } + }, + "status": { + "description": "The status of the export execution.", + "type": "string", + "enum": [ + "Queued", + "InProgress", + "Completed", + "Failed", + "Timeout", + "NewDataNotAvailable", + "DataNotAvailable" + ], + "x-ms-enum": { + "name": "ExecutionStatus", + "modelAsString": true + } + }, + "submittedBy": { + "description": "The identifier for the entity that executed the export. For OnDemand executions, it is the email id. For Scheduled executions, it is the constant value - System.", + "type": "string" + }, + "submittedTime": { + "description": "The time when export was queued to be executed.", + "type": "string", + "format": "date-time" + }, + "processingStartTime": { + "description": "The time when export was picked up to be executed.", + "type": "string", + "format": "date-time" + }, + "processingEndTime": { + "description": "The time when export execution finished.", + "type": "string", + "format": "date-time" + }, + "fileName": { + "description": "The name of the file export got written to.", + "type": "string" + }, + "runSettings": { + "$ref": "#/definitions/CommonExportProperties" + } } } + }, + "parameters": { + "scopeDimensionParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope..", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "scopeQueryParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope..", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "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-05-31." + }, + "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" + }, + "managementGroupIdParameter": { + "name": "managementGroupId", + "in": "path", + "description": "ManagementGroup ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "departmentIdParameter": { + "name": "departmentId", + "in": "path", + "description": "Department ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "enrollmentAccountIdParameter": { + "name": "enrollmentAccountId", + "in": "path", + "description": "Enrollment Account ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "exportNameParameter": { + "name": "exportName", + "in": "path", + "description": "Export Name.", + "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/stable/2019-09-01/examples/BillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountDimensionsList.json index 6b30426a222f..51fcfe2be8a2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountDimensionsList.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountDimensionsListExpandAndTop.json index 429f923f42d4..24c5826dd516 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountDimensionsListExpandAndTop.json @@ -56,4 +56,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountDimensionsListWithFilter.json index 5705ded34cd0..f9bf9342e4c6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountDimensionsListWithFilter.json @@ -23,18 +23,18 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource Id", - "filterEnabled": true, - "groupingEnabled": true, - "nextLink": "http://management.azure.com/ccmapi/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-01-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "total": 1409, + "category": "ResourceId", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource Id", + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "http://management.azure.com/ccmapi/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-01-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" } - } + } ] } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountQuery.json index 84f7f41c58d1..121b568e961c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountQuery.json @@ -3,15 +3,15 @@ "api-version": "2019-09-01", "billingAccountId": "70664866", "scope": "providers/Microsoft.Billing/billingAccounts/70664866", - "parameters":{ + "parameters": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", - "filter":{ + "granularity": "Daily", + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -43,10 +43,10 @@ ] } } - ] + ] } - } - } + } + } }, "responses": { "200": { @@ -108,4 +108,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountQueryGrouping.json index c28db2051558..e52198cb60cc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/BillingAccountQueryGrouping.json @@ -3,25 +3,25 @@ "api-version": "2019-09-01", "billingAccountId": "70664866", "scope": "providers/Microsoft.Billing/billingAccounts/70664866", - "parameters":{ - "type": "Usage", - "timeframe": "TheLastMonth", - "dataset": { - "granularity": "None", - "aggregation": { - "totalCost": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ - { - "type": "Dimension", - "name": "ResourceGroup" - } - ] - } - } + "parameters": { + "type": "Usage", + "timeframe": "TheLastMonth", + "dataset": { + "granularity": "None", + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "ResourceGroup" + } + ] + } + } }, "responses": { "200": { @@ -50,17 +50,17 @@ "rows": [ [ 19.545363672276512, - "JapanUnifia-Trial", + "JapanUnifia-Trial", "USD" ], [ 173.41979241290323, - "RVIIOT-TRIAL", + "RVIIOT-TRIAL", "USD" ], [ 20.359416562625452, - "VSTSHOL-1595322048000", + "VSTSHOL-1595322048000", "USD" ] ] @@ -70,4 +70,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsList.json index f81caf7633c8..93a459a6a808 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsList.json @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsListExpandAndTop.json index 1ef01ed65465..057cb6479026 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsListExpandAndTop.json @@ -57,4 +57,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsListWithFilter.json index 70c1a6a8b2f9..54eb6585a6f4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentDimensionsListWithFilter.json @@ -24,18 +24,18 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource Id", - "filterEnabled": true, - "groupingEnabled": true, - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-01-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "total": 1409, + "category": "ResourceId", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource Id", + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-01-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" } - } + } ] } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentQuery.json index a88d88751fce..abccb85daee8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentQuery.json @@ -4,15 +4,15 @@ "billingAccountId": "70664866", "departmentId": "123", "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123", - "parameters":{ + "parameters": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", - "filter":{ + "granularity": "Daily", + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -44,10 +44,10 @@ ] } } - ] + ] } - } - } + } + } }, "responses": { "200": { @@ -109,4 +109,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentQueryGrouping.json index 2246c7a84784..8a39834e4dd7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/DepartmentQueryGrouping.json @@ -4,25 +4,25 @@ "billingAccountId": "70664866", "departmentId": "123", "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123", - "parameters":{ - "type": "Usage", - "timeframe": "TheLastMonth", - "dataset": { - "granularity": "None", - "aggregation": { - "totalCost": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ - { - "type": "Dimension", - "name": "ResourceGroup" - } - ] + "parameters": { + "type": "Usage", + "timeframe": "TheLastMonth", + "dataset": { + "granularity": "None", + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "ResourceGroup" + } + ] } - } + } }, "responses": { "200": { @@ -51,17 +51,17 @@ "rows": [ [ 19.545363672276512, - "JapanUnifia-Trial", + "JapanUnifia-Trial", "USD" ], [ 173.41979241290323, - "RVIIOT-TRIAL", + "RVIIOT-TRIAL", "USD" ], [ 20.359416562625452, - "VSTSHOL-1595322048000", + "VSTSHOL-1595322048000", "USD" ] ] @@ -71,4 +71,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsList.json index 3588cfc04958..b22b0f34384d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsList.json @@ -43,4 +43,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json index 754fb185a54b..e136c5c39c07 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json @@ -57,4 +57,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsListWithFilter.json index 659f10aa227b..22d8c2b2eb0b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountDimensionsListWithFilter.json @@ -24,18 +24,18 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource Id", - "filterEnabled": true, - "groupingEnabled": true, - "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-01-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "total": 1409, + "category": "ResourceId", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource Id", + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-01-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" } - } + } ] } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountQuery.json index ce49df4002f6..76be1a714dd3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountQuery.json @@ -109,4 +109,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountQueryGrouping.json index d486cbba538c..4c75f6678f89 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/EnrollmentAccountQueryGrouping.json @@ -4,30 +4,30 @@ "billingAccountId": "70664866", "enrollmentAccountId": "456", "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", - "parameters":{ - "type": "Usage", - "timeframe": "TheLastMonth", - "dataset": { - "granularity": "Daily", - "aggregation": { - "totalCost": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ - { - "type": "Dimension", - "name": "ResourceGroup" - } - ], - "sorting": [ - { - "name": "ResourceGroup" - } - ] + "parameters": { + "type": "Usage", + "timeframe": "TheLastMonth", + "dataset": { + "granularity": "Daily", + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "ResourceGroup" + } + ], + "sorting": [ + { + "name": "ResourceGroup" + } + ] } - } + } }, "responses": { "200": { @@ -83,4 +83,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByBillingAccount.json index a64eabb7d6e1..40e19ba8570e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByBillingAccount.json @@ -20,7 +20,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "Custom", "timePeriod": { @@ -54,7 +54,7 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { "dimension": { @@ -76,7 +76,7 @@ ] } } - ] + ] } } } @@ -84,4 +84,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByDepartment.json index 44939cd59259..5360d20adf6d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByDepartment.json @@ -21,7 +21,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "Custom", "timePeriod": { @@ -55,7 +55,7 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { "dimension": { @@ -77,7 +77,7 @@ ] } } - ] + ] } } } @@ -85,4 +85,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByEnrollmentAccount.json index 394622170728..829bb6275149 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByEnrollmentAccount.json @@ -21,7 +21,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "Custom", "timePeriod": { @@ -55,7 +55,7 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { "dimension": { @@ -77,7 +77,7 @@ ] } } - ] + ] } } } @@ -85,4 +85,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByManagementGroup.json index 17b1ca5e2914..7ab916768c19 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByManagementGroup.json @@ -1,87 +1,87 @@ { - "parameters": { - "api-version": "2019-09-01", - "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG", - "exportName": "TestExport" - }, - "responses": { - "200": { - "body": { - "id": "providers/Microsoft.Management/managementGroups/TestMG/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": "exports", - "rootFolderPath": "ad-hoc" - } + "parameters": { + "api-version": "2019-09-01", + "managementGroupId": "TestMG", + "scope": "providers/Microsoft.Management/managementGroups/TestMG", + "exportName": "TestExport" + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.Management/managementGroups/TestMG/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": "exports", + "rootFolderPath": "ad-hoc" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" }, - "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" + ] }, - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "UsageDate", - "MeterId", - "InstanceId", - "ResourceLocation", - "UsageQuantity" - ] - }, - "aggregation": { - "usageSum": { - "name": "UsageQuantity", - "function": "Sum" - } + "aggregation": { + "usageSum": { + "name": "UsageQuantity", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" }, - "grouping": [ + { + "type": "Tag", + "name": "Environment" + } + ], + "filter": { + "and": [ { - "type": "Dimension", - "name": "SubscriptionName" + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } }, { - "type": "Tag", - "name": "Environment" - } - ], - "filter":{ - "and": [ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "Contains", - "values": [ - "UAT", - "Prod" - ] - } + "tag": { + "name": "Environment", + "operator": "Contains", + "values": [ + "UAT", + "Prod" + ] } - ] - } + } + ] } } } } } } - } \ No newline at end of file + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByResourceGroup.json index 5f98bbc955f9..9ea602d53248 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportByResourceGroup.json @@ -1,88 +1,88 @@ { - "parameters": { - "api-version": "2019-09-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", - "exportName": "TestExport" - }, - "responses": { - "200": { - "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/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": "exports", - "rootFolderPath": "ad-hoc" - } + "parameters": { + "api-version": "2019-09-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "exportName": "TestExport" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/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": "exports", + "rootFolderPath": "ad-hoc" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" }, - "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" + ] }, - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "UsageDate", - "MeterId", - "InstanceId", - "ResourceLocation", - "UsageQuantity" - ] - }, - "aggregation": { - "usageSum": { - "name": "UsageQuantity", - "function": "Sum" - } + "aggregation": { + "usageSum": { + "name": "UsageQuantity", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" }, - "grouping": [ + { + "type": "Tag", + "name": "Environment" + } + ], + "filter": { + "and": [ { - "type": "Dimension", - "name": "SubscriptionName" + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } }, { - "type": "Tag", - "name": "Environment" - } - ], - "filter":{ - "and": [ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "Contains", - "values": [ - "UAT", - "Prod" - ] - } + "tag": { + "name": "Environment", + "operator": "Contains", + "values": [ + "UAT", + "Prod" + ] } - ] - } + } + ] } } } } } } - } \ No newline at end of file + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportBySubscription.json index 719857d3240c..5567587ceb6e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportBySubscription.json @@ -20,7 +20,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "Custom", "timePeriod": { @@ -54,7 +54,7 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { "dimension": { @@ -76,7 +76,7 @@ ] } } - ] + ] } } } @@ -84,4 +84,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByBillingAccount.json index fbc17900eee8..2e4cb987a0c2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByBillingAccount.json @@ -6,12 +6,12 @@ "exportName": "TestExport", "parameters": { "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -22,7 +22,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -52,10 +52,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -87,7 +87,7 @@ ] } } - ] + ] } } } @@ -101,12 +101,12 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -117,7 +117,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -147,10 +147,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -182,7 +182,7 @@ ] } } - ] + ] } } } @@ -195,12 +195,12 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -211,7 +211,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -241,10 +241,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -284,4 +284,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByDepartment.json index 695d32c38aa7..57d393b8f200 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByDepartment.json @@ -7,12 +7,12 @@ "exportName": "TestExport", "parameters": { "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -23,7 +23,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -53,10 +53,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -88,7 +88,7 @@ ] } } - ] + ] } } } @@ -102,12 +102,12 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -118,7 +118,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -148,10 +148,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -183,7 +183,7 @@ ] } } - ] + ] } } } @@ -196,12 +196,12 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -212,7 +212,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -242,10 +242,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -285,4 +285,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json index fdb44508161c..7cff10d761fb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json @@ -7,12 +7,12 @@ "exportName": "TestExport", "parameters": { "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -23,7 +23,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -53,10 +53,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -88,7 +88,7 @@ ] } } - ] + ] } } } @@ -102,12 +102,12 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -118,7 +118,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -148,10 +148,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -183,7 +183,7 @@ ] } } - ] + ] } } } @@ -196,12 +196,12 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -212,7 +212,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -242,10 +242,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -285,4 +285,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByManagementGroup.json index 8c73e244deb4..4513dcd73da8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByManagementGroup.json @@ -1,17 +1,112 @@ { + "parameters": { + "api-version": "2019-09-01", + "managementGroupId": "TestMG", + "scope": "providers/Microsoft.Management/managementGroups/TestMG", + "exportName": "TestExport", "parameters": { - "api-version": "2019-09-01", - "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG", - "exportName": "TestExport", - "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": "exports", + "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.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -22,7 +117,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -52,10 +147,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -87,201 +182,106 @@ ] } } - ] + ] } } } } } }, - "responses": { - "201": { - "body": { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "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": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition":{ - "type": "Usage", - "timeframe": "MonthToDate", - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } + "200": { + "body": { + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "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": "exports", + "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" }, - "grouping": [ - { - "type": "Dimension", - "name": "SubscriptionName" - }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter": { + "and": [ { - "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" - ] - } + "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.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "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": "exports", - "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" ] - }, - { - "dimension": { - "name": "ResourceGroup", - "operator": "In", - "values": [ - "API" - ] - } } - ] - } + } + ] } } } } } } - } \ No newline at end of file + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByResourceGroup.json index 7b35972c7170..16b182671683 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateByResourceGroup.json @@ -1,18 +1,113 @@ { + "parameters": { + "api-version": "2019-09-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "exportName": "TestExport", "parameters": { - "api-version": "2019-09-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", - "exportName": "TestExport", - "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": "exports", + "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/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -23,7 +118,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -53,10 +148,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -88,201 +183,106 @@ ] } } - ] + ] } } } } } }, - "responses": { - "201": { - "body": { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "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": "exports", - "rootFolderPath": "ad-hoc" - } - }, - "definition":{ - "type": "Usage", - "timeframe": "MonthToDate", - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } + "200": { + "body": { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", + "name": "TestExport", + "type": "Microsoft.CostManagement/exports", + "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": "exports", + "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" }, - "grouping": [ - { - "type": "Dimension", - "name": "SubscriptionName" - }, + { + "type": "Tag", + "name": "Environment" + } + ], + "filter": { + "and": [ { - "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" - ] - } + "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/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport", - "name": "TestExport", - "type": "Microsoft.CostManagement/exports", - "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": "exports", - "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" ] - }, - { - "dimension": { - "name": "ResourceGroup", - "operator": "In", - "values": [ - "API" - ] - } } - ] - } + } + ] } } } } } } - } \ No newline at end of file + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateBySubscription.json index 53aa0a79a755..1e8d37fb11d0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportCreateOrUpdateBySubscription.json @@ -6,12 +6,12 @@ "exportName": "TestExport", "parameters": { "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -22,7 +22,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -52,10 +52,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -87,7 +87,7 @@ ] } } - ] + ] } } } @@ -101,12 +101,12 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -117,7 +117,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -147,10 +147,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -182,7 +182,7 @@ ] } } - ] + ] } } } @@ -195,12 +195,12 @@ "name": "TestExport", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -211,7 +211,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { @@ -241,10 +241,10 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -284,4 +284,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByBillingAccount.json index 04825b120983..aa5cd7c3a025 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByBillingAccount.json @@ -6,7 +6,6 @@ "exportName": "TestExport" }, "responses": { - "200": { - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByDepartment.json index 28f67ca370e7..52c608bb1429 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByDepartment.json @@ -7,7 +7,6 @@ "exportName": "TestExport" }, "responses": { - "200": { - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByEnrollmentAccount.json index beaa6997dcff..311e610403b7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByEnrollmentAccount.json @@ -7,7 +7,6 @@ "exportName": "TestExport" }, "responses": { - "200": { - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByManagementGroup.json index 75781fcac8ab..baa32c6161e0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByManagementGroup.json @@ -1,12 +1,11 @@ { - "parameters": { - "api-version": "2019-09-01", - "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG", - "exportName": "TestExport" - }, - "responses": { - "200": { - } - } - } \ No newline at end of file + "parameters": { + "api-version": "2019-09-01", + "managementGroupId": "TestMG", + "scope": "providers/Microsoft.Management/managementGroups/TestMG", + "exportName": "TestExport" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByResourceGroup.json index bca0299a3e20..c8ee18cbdd67 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteByResourceGroup.json @@ -1,13 +1,12 @@ { - "parameters": { - "api-version": "2019-09-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", - "exportName": "TestExport" - }, - "responses": { - "200": { - } - } - } \ No newline at end of file + "parameters": { + "api-version": "2019-09-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "exportName": "TestExport" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteBySubscription.json index a6c395608a97..5f7dac51058d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportDeleteBySubscription.json @@ -6,7 +6,6 @@ "exportName": "TestExport" }, "responses": { - "200": { - } + "200": {} } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByBillingAccount.json index a26a170f49c8..aa5cd7c3a025 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByBillingAccount.json @@ -1,12 +1,11 @@ { - "parameters": { - "api-version": "2019-09-01", - "billingAccountId": "123456", - "scope": "providers/Microsoft.Billing/billingAccounts/123456", - "exportName": "TestExport" - }, - "responses": { - "200": { - } - } - } \ No newline at end of file + "parameters": { + "api-version": "2019-09-01", + "billingAccountId": "123456", + "scope": "providers/Microsoft.Billing/billingAccounts/123456", + "exportName": "TestExport" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByDepartment.json index 49808b32c506..52c608bb1429 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByDepartment.json @@ -1,13 +1,12 @@ { - "parameters": { - "api-version": "2019-09-01", - "billingAccountId": "12", - "departmentId": "1234", - "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234", - "exportName": "TestExport" - }, - "responses": { - "200": { - } - } - } \ No newline at end of file + "parameters": { + "api-version": "2019-09-01", + "billingAccountId": "12", + "departmentId": "1234", + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234", + "exportName": "TestExport" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByEnrollmentAccount.json index 7c585ce4a7a6..311e610403b7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByEnrollmentAccount.json @@ -1,13 +1,12 @@ { - "parameters": { - "api-version": "2019-09-01", - "billingAccountId": "100", - "enrollmentAccountId": "456", - "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", - "exportName": "TestExport" - }, - "responses": { - "200": { - } - } - } \ No newline at end of file + "parameters": { + "api-version": "2019-09-01", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", + "exportName": "TestExport" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByManagementGroup.json index 75781fcac8ab..baa32c6161e0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByManagementGroup.json @@ -1,12 +1,11 @@ { - "parameters": { - "api-version": "2019-09-01", - "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG", - "exportName": "TestExport" - }, - "responses": { - "200": { - } - } - } \ No newline at end of file + "parameters": { + "api-version": "2019-09-01", + "managementGroupId": "TestMG", + "scope": "providers/Microsoft.Management/managementGroups/TestMG", + "exportName": "TestExport" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByResourceGroup.json index bca0299a3e20..c8ee18cbdd67 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionByResourceGroup.json @@ -1,13 +1,12 @@ { - "parameters": { - "api-version": "2019-09-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", - "exportName": "TestExport" - }, - "responses": { - "200": { - } - } - } \ No newline at end of file + "parameters": { + "api-version": "2019-09-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "exportName": "TestExport" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionBySubscription.json index b76c4634f090..5f7dac51058d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionBySubscription.json @@ -1,12 +1,11 @@ { - "parameters": { - "api-version": "2019-09-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "exportName": "TestExport" - }, - "responses": { - "200": { - } - } - } \ No newline at end of file + "parameters": { + "api-version": "2019-09-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", + "exportName": "TestExport" + }, + "responses": { + "200": {} + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByBillingAccount.json index e442d98ebc27..46cb4c0948eb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByBillingAccount.json @@ -195,4 +195,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByDepartment.json index 3bc0dfd1d4a2..624b6ba266ea 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByDepartment.json @@ -196,4 +196,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByEnrollmentAccount.json index 7de01cd61dc9..8128b50e68b2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByEnrollmentAccount.json @@ -196,4 +196,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByManagementGroup.json index d78023d3574a..28596640d4bc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByManagementGroup.json @@ -1,198 +1,198 @@ { - "parameters": { - "api-version": "2019-09-01", - "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG", - "exportName": "TestExport" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", - "properties": { - "executionType": "OnDemand", - "status": "Completed", - "submittedBy": "john.doe@gmail.com", - "submittedTime": "2018-08-03T07:52:15.6016681Z", - "processingStartTime": "2018-08-03T07:52:16.9123797Z", - "processingEndTime": "2018-08-03T07:52:28.0373318Z", - "fileName": "ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", - "runSettings": { - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } + "parameters": { + "api-version": "2019-09-01", + "managementGroupId": "TestMG", + "scope": "providers/Microsoft.Management/managementGroups/TestMG", + "exportName": "TestExport" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "properties": { + "executionType": "OnDemand", + "status": "Completed", + "submittedBy": "john.doe@gmail.com", + "submittedTime": "2018-08-03T07:52:15.6016681Z", + "processingStartTime": "2018-08-03T07:52:16.9123797Z", + "processingEndTime": "2018-08-03T07:52:28.0373318Z", + "fileName": "ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv", + "runSettings": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "exports", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" }, - "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" + ] }, - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ { - "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" - ] - } + "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" - ] } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] } - ] - } + } + ] } } } } - }, - { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", - "properties": { - "executionType": "Scheduled", - "status": "Completed", - "submittedBy": "System", - "submittedTime": "2018-08-03T09:03:58.5710244Z", - "processingStartTime": "2018-08-03T09:03:58.5710244Z", - "processingEndTime": "2018-08-03T09:04:19.7223808Z", - "fileName": "ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", - "runSettings": { - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } + } + }, + { + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "properties": { + "executionType": "Scheduled", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "fileName": "ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "runSettings": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "exports", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" }, - "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" + ] }, - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ { - "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" - ] - } + "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" - ] } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] } - ] - } + } + ] } } } } } - ] - } + } + ] } } - } \ No newline at end of file + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByResourceGroup.json index c6dafbe2e355..915a0e0e8378 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListByResourceGroup.json @@ -1,199 +1,199 @@ { - "parameters": { - "api-version": "2019-09-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", - "exportName": "TestExport" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", - "properties": { - "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", - "runSettings": { - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } + "parameters": { + "api-version": "2019-09-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG", + "exportName": "TestExport" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100", + "properties": { + "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", + "runSettings": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "exports", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" }, - "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" + ] }, - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ { - "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" - ] - } + "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" - ] } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] } - ] - } + } + ] } } } } - }, - { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", - "properties": { - "executionType": "Scheduled", - "status": "Completed", - "submittedBy": "System", - "submittedTime": "2018-08-03T09:03:58.5710244Z", - "processingStartTime": "2018-08-03T09:03:58.5710244Z", - "processingEndTime": "2018-08-03T09:04:19.7223808Z", - "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", - "runSettings": { - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "exports", - "rootFolderPath": "ScheduledTestsForJohnDoe" - } + } + }, + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef", + "properties": { + "executionType": "Scheduled", + "status": "Completed", + "submittedBy": "System", + "submittedTime": "2018-08-03T09:03:58.5710244Z", + "processingStartTime": "2018-08-03T09:03:58.5710244Z", + "processingEndTime": "2018-08-03T09:04:19.7223808Z", + "fileName": "ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv", + "runSettings": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "exports", + "rootFolderPath": "ScheduledTestsForJohnDoe" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" }, - "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" + ] }, - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ { - "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" - ] - } + "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" - ] } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] } - ] - } + } + ] } } } } } - ] - } + } + ] } } - } \ No newline at end of file + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListBySubscription.json index 2593184b49b4..3e6e0ef4547f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportExecutionListBySubscription.json @@ -195,4 +195,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByBillingAccount.json index 08e84581ee13..37eaaaf63e59 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByBillingAccount.json @@ -21,7 +21,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "Custom", "timePeriod": { @@ -51,10 +51,10 @@ "name": "SubscriptionName" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -86,7 +86,7 @@ ] } } - ] + ] } } } @@ -97,12 +97,12 @@ "name": "TestExport2", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -113,7 +113,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "WeekToDate", "dataset": { @@ -139,7 +139,7 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { "dimension": { @@ -161,7 +161,7 @@ ] } } - ] + ] } } } @@ -171,4 +171,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByDepartment.json index e8098055ad9c..b7ee9f5b434c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByDepartment.json @@ -22,7 +22,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "Custom", "timePeriod": { @@ -52,10 +52,10 @@ "name": "SubscriptionName" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -87,7 +87,7 @@ ] } } - ] + ] } } } @@ -98,12 +98,12 @@ "name": "TestExport2", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -114,7 +114,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "WeekToDate", "dataset": { @@ -140,7 +140,7 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { "dimension": { @@ -162,7 +162,7 @@ ] } } - ] + ] } } } @@ -172,4 +172,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByEnrollmentAccount.json index 43d475e40d0d..1c331629342f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByEnrollmentAccount.json @@ -22,7 +22,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "Custom", "timePeriod": { @@ -52,10 +52,10 @@ "name": "SubscriptionName" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -87,7 +87,7 @@ ] } } - ] + ] } } } @@ -98,12 +98,12 @@ "name": "TestExport2", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -114,7 +114,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "WeekToDate", "dataset": { @@ -140,7 +140,7 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { "dimension": { @@ -162,7 +162,7 @@ ] } } - ] + ] } } } @@ -172,4 +172,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByManagementGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByManagementGroup.json index 1857bae7e6ee..bbb14c0bccee 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByManagementGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByManagementGroup.json @@ -1,174 +1,174 @@ { - "parameters": { - "api-version": "2019-09-01", - "managementGroupId": "TestMG", - "scope": "providers/Microsoft.Management/managementGroups/TestMG" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "providers/Microsoft.Management/managementGroups/TestMG/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": "exports", - "rootFolderPath": "ad-hoc" - } + "parameters": { + "api-version": "2019-09-01", + "managementGroupId": "TestMG", + "scope": "providers/Microsoft.Management/managementGroups/TestMG" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Management/managementGroups/TestMG/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": "exports", + "rootFolderPath": "ad-hoc" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" }, - "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" + ] }, - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ { - "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" - ] - } + "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" - ] } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] } - ] - } + } + ] } } } - }, - { - "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport2", - "name": "TestExport2", - "type": "Microsoft.CostManagement/exports", - "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": "exports", - "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": [ + } + }, + { + "id": "providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport2", + "name": "TestExport2", + "type": "Microsoft.CostManagement/exports", + "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": "exports", + "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": [ { - "type": "Tag", - "name": "Environment" - } - ], - "filter":{ - "and": [ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "In", - "values": [ - "UAT", - "Prod" - ] - } + "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/stable/2019-09-01/examples/ExportListByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByResourceGroup.json index 794cb912e100..4a9209e10ccf 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListByResourceGroup.json @@ -1,175 +1,175 @@ { - "parameters": { - "api-version": "2019-09-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/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": "exports", - "rootFolderPath": "ad-hoc" - } + "parameters": { + "api-version": "2019-09-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/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": "exports", + "rootFolderPath": "ad-hoc" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" }, - "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" + ] }, - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ { - "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" - ] - } + "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" - ] } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] } - ] - } + } + ] } } } - }, - { - "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport2", - "name": "TestExport2", - "type": "Microsoft.CostManagement/exports", - "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": "exports", - "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": [ + } + }, + { + "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport2", + "name": "TestExport2", + "type": "Microsoft.CostManagement/exports", + "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": "exports", + "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": [ { - "type": "Tag", - "name": "Environment" - } - ], - "filter":{ - "and": [ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "In", - "values": [ - "UAT", - "Prod" - ] - } + "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/stable/2019-09-01/examples/ExportListBySubscription.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListBySubscription.json index 7d8483adb7ea..66aa44f19eaf 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListBySubscription.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ExportListBySubscription.json @@ -21,7 +21,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "Custom", "timePeriod": { @@ -51,10 +51,10 @@ "name": "SubscriptionName" } ], - "filter":{ + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -86,7 +86,7 @@ ] } } - ] + ] } } } @@ -97,12 +97,12 @@ "name": "TestExport2", "type": "Microsoft.CostManagement/exports", "properties": { - "schedule":{ + "schedule": { "status": "Active", "recurrence": "Weekly", "recurrencePeriod": { - "from":"2018-06-01T00:00:00Z", - "to":"2018-10-31T00:00:00Z" + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" } }, "format": "Csv", @@ -113,7 +113,7 @@ "rootFolderPath": "ad-hoc" } }, - "definition":{ + "definition": { "type": "Usage", "timeframe": "WeekToDate", "dataset": { @@ -139,7 +139,7 @@ "name": "Environment" } ], - "filter":{ + "filter": { "and": [ { "dimension": { @@ -161,7 +161,7 @@ ] } } - ] + ] } } } @@ -171,4 +171,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsList.json index 6f2c737b3289..ed10d65b79c8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsList.json @@ -42,4 +42,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsListExpandAndTop.json index b9611b425aeb..caafd54b3bb7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsListExpandAndTop.json @@ -56,4 +56,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsListWithFilter.json index 82a7378ec31f..5e025f422324 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupDimensionsListWithFilter.json @@ -23,18 +23,18 @@ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" ], - "total": 1409, - "category": "ResourceId", - "usageStart": "2018-05-01T00:00:00-07:00", - "usageEnd": "2018-05-31T00:00:00-07:00", - "description": "Resource Id", - "filterEnabled": true, - "groupingEnabled": true, - "nextLink": "http://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-01-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + "total": 1409, + "category": "ResourceId", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource Id", + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "http://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-01-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" } - } + } ] } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupQuery.json index 8f4c0350db8a..e50f4eb09051 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupQuery.json @@ -3,15 +3,15 @@ "api-version": "2019-09-01", "managementGroupId": "MyMgId", "scope": "providers/Microsoft.Management/managementGroups/MyMgId", - "parameters":{ + "parameters": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", - "filter":{ + "granularity": "Daily", + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -43,10 +43,10 @@ ] } } - ] + ] } - } - } + } + } }, "responses": { "200": { @@ -108,4 +108,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupQueryGrouping.json index dd3371a8ca97..dfb1f6e07a99 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ManagementGroupQueryGrouping.json @@ -3,31 +3,31 @@ "api-version": "2019-09-01", "managementGroupId": "MyMgId", "scope": "providers/Microsoft.Management/managementGroups/MyMgId", - "parameters":{ - "type": "Usage", - "timeframe": "TheLastMonth", - "dataset": { - "granularity": "None", - "aggregation": { - "totalCost": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ - { - "type": "Dimension", - "name": "ResourceGroup" - } - ], - "sorting": [ - { - "name": "ResourceGroup", - "querySortingDirection": "Descending" - } - ] + "parameters": { + "type": "Usage", + "timeframe": "TheLastMonth", + "dataset": { + "granularity": "None", + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "ResourceGroup" + } + ], + "sorting": [ + { + "name": "ResourceGroup", + "querySortingDirection": "Descending" + } + ] } - } + } }, "responses": { "200": { @@ -57,7 +57,7 @@ "type": "String" } ], - "rows": [ + "rows": [ [ 20.359416562625452, "VSTSHOL-1595322048000", @@ -83,4 +83,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupDimensionsList.json index 083cfd76e410..3bacf9eb2713 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupDimensionsList.json @@ -53,4 +53,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupQuery.json index 05f45eff61ba..b2301136bcb8 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupQuery.json @@ -4,15 +4,15 @@ "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481", "resourceGroupName": "ScreenSharingTest-peer", "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", - "parameters":{ + "parameters": { "type": "Usage", "timeframe": "MonthToDate", "dataset": { - "granularity": "Daily", - "filter":{ + "granularity": "Daily", + "filter": { "and": [ { - "or":[ + "or": [ { "dimension": { "name": "ResourceLocation", @@ -44,7 +44,7 @@ ] } } - ] + ] } } } @@ -97,4 +97,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupQueryGrouping.json index 793f45048243..5bb3257921d3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/ResourceGroupQueryGrouping.json @@ -4,29 +4,29 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "ScreenSharingTest-peer", "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer", - "parameters":{ - "type": "Usage", - "timeframe": "TheLastMonth", - "dataset": { - "granularity": "Daily", - "aggregation": { - "totalCost": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ - { - "type": "Dimension", - "name": "ResourceType" - } - ], - "sorting": [ - { - "name": "ResourceType", - "querySortingDirection": "Descending" - } - ] + "parameters": { + "type": "Usage", + "timeframe": "TheLastMonth", + "dataset": { + "granularity": "Daily", + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "ResourceType" + } + ], + "sorting": [ + { + "name": "ResourceType", + "querySortingDirection": "Descending" + } + ] } } }, @@ -78,4 +78,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionDimensionsList.json index cc00413bea9b..3d4def621603 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionDimensionsList.json @@ -55,4 +55,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionQuery.json index d8a0e3ad71a1..50e15d5ee34e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionQuery.json @@ -114,4 +114,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionQueryGrouping.json index 0b96c7936304..fb6ef6525896 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-09-01/examples/SubscriptionQueryGrouping.json @@ -3,28 +3,28 @@ "api-version": "2019-09-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "scope": "subscriptions/00000000-0000-0000-0000-000000000000", - "parameters":{ - "type": "Usage", - "timeframe": "TheLastMonth", - "dataset": { - "granularity": "None", - "aggregation": { - "totalCost": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ - { - "type": "Dimension", - "name": "ResourceGroup" - } - ], - "sorting": [ - { - "name": "ResourceGroup" - } - ] + "parameters": { + "type": "Usage", + "timeframe": "TheLastMonth", + "dataset": { + "granularity": "None", + "aggregation": { + "totalCost": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "type": "Dimension", + "name": "ResourceGroup" + } + ], + "sorting": [ + { + "name": "ResourceGroup" + } + ] } } }, @@ -52,25 +52,25 @@ "type": "String" } ], - "rows": [ + "rows": [ [ 0.009865586851323632, - "Ict_StratAndPlan_GoldSprova_Prod_0", + "Ict_StratAndPlan_GoldSprova_Prod_0", "USD" ], [ 218.68795741935486, - "Ict_StratAndPlan_GoldSprova_Prod_1", + "Ict_StratAndPlan_GoldSprova_Prod_1", "USD" ], [ 2.10333307059661, - "ScreenSharingTest-peer1", + "ScreenSharingTest-peer1", "USD" ], [ 0.14384913581657052, - "Ssbciotelement01", + "Ssbciotelement01", "USD" ] ] @@ -80,4 +80,4 @@ } } } -} \ No newline at end of file +}