From 4d4a1fc2bb9b4793c502083e4534cc0f68439d5c Mon Sep 17 00:00:00 2001 From: qiaozha Date: Fri, 8 May 2020 16:18:07 +0800 Subject: [PATCH 1/4] cost-management-for-cli-extensions --- .../resource-manager/readme.az.md | 13 +++++++++ .../resource-manager/readme.cli.md | 1 + .../resource-manager/readme.python.md | 29 +++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 specification/cost-management/resource-manager/readme.az.md create mode 100644 specification/cost-management/resource-manager/readme.cli.md create mode 100644 specification/cost-management/resource-manager/readme.python.md diff --git a/specification/cost-management/resource-manager/readme.az.md b/specification/cost-management/resource-manager/readme.az.md new file mode 100644 index 000000000000..16d31b9cefe8 --- /dev/null +++ b/specification/cost-management/resource-manager/readme.az.md @@ -0,0 +1,13 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +``` yaml $(az) +az: + extensions: costmanagement + namespace: azure.mgmt.costmanagement + package-name: azure-mgmt-costmanagement +az-output-folder: $(azure-cli-extension-folder)/src/costmanagement +python-sdk-output-folder: "$(az-output-folder)/azext_costmanagement/vendored_sdks/costmanagement" + +``` diff --git a/specification/cost-management/resource-manager/readme.cli.md b/specification/cost-management/resource-manager/readme.cli.md new file mode 100644 index 000000000000..986dcf24c83b --- /dev/null +++ b/specification/cost-management/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI \ No newline at end of file diff --git a/specification/cost-management/resource-manager/readme.python.md b/specification/cost-management/resource-manager/readme.python.md new file mode 100644 index 000000000000..e813c023f2cb --- /dev/null +++ b/specification/cost-management/resource-manager/readme.python.md @@ -0,0 +1,29 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. + +``` yaml $(python) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.costmanagement + package-name: azure-mgmt-costmanagement + package-version: 1.2.0 + clear-output-folder: true +``` + +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement +``` + +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement +``` \ No newline at end of file From 38d5ce2d903cc5e1dfc902c94cdf4f88d016c004 Mon Sep 17 00:00:00 2001 From: qiaozha Date: Fri, 8 May 2020 16:23:29 +0800 Subject: [PATCH 2/4] cost-management-for-cli-extensions --- .../resource-manager/readme.md | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/specification/cost-management/resource-manager/readme.md b/specification/cost-management/resource-manager/readme.md index 205a74666b50..321648a743fb 100644 --- a/specification/cost-management/resource-manager/readme.md +++ b/specification/cost-management/resource-manager/readme.md @@ -190,6 +190,7 @@ swagger-to-sdk: - repo: azure-sdk-for-ruby after_scripts: - bundle install && rake arm:regen_all_profiles['azure_mgmt_costmanagement'] + - repo: azure-cli-extensions ``` ## C# @@ -206,35 +207,6 @@ csharp: clear-output-folder: true ``` -## Python - -These settings apply only when `--python` is specified on the command line. -Please also specify `--python-sdks-folder=`. -Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. - -``` yaml $(python) -python-mode: create -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.mgmt.costmanagement - package-name: azure-mgmt-costmanagement - package-version: 1.2.0 - clear-output-folder: true -``` - -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement -``` - -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement -``` ## Go From 2d86e7605ba4513d92d03bdd522bf35cd5c40246 Mon Sep 17 00:00:00 2001 From: qiaozha Date: Fri, 8 May 2020 17:32:07 +0800 Subject: [PATCH 3/4] cost-management-for-cli-extensions --- .../generated/code-model-v4-no-tags.yaml | 10692 ++++++++++++++++ .../resource-manager/readme.md | 2 +- 2 files changed, 10693 insertions(+), 1 deletion(-) create mode 100644 specification/cost-management/resource-manager/generated/code-model-v4-no-tags.yaml diff --git a/specification/cost-management/resource-manager/generated/code-model-v4-no-tags.yaml b/specification/cost-management/resource-manager/generated/code-model-v4-no-tags.yaml new file mode 100644 index 000000000000..c6a0ba697e7c --- /dev/null +++ b/specification/cost-management/resource-manager/generated/code-model-v4-no-tags.yaml @@ -0,0 +1,10692 @@ +info: + title: CostManagementClient +schemas: + booleans: + - &ref_74 + type: boolean + language: + default: + name: Boolean + description: Filter enabled. + protocol: {} + - &ref_75 + type: boolean + language: + default: + name: Boolean + description: Grouping enabled. + protocol: {} + - &ref_94 + type: boolean + language: + default: + name: Boolean + description: a boolean determining if actualCost will be included + protocol: {} + - &ref_95 + type: boolean + language: + default: + name: Boolean + description: a boolean determining if FreshPartialCost will be included + protocol: {} + numbers: + - &ref_137 + type: integer + apiVersions: + - version: '2019-11-01' + maximum: 1000 + minimum: 1 + precision: 32 + language: + default: + name: Integer + description: '' + protocol: {} + - &ref_77 + type: integer + precision: 32 + language: + default: + name: Integer + description: Total number of data for the dimension. + protocol: {} + - &ref_15 + type: number + precision: 128 + language: + default: + name: Number + description: notification threshold percentage as a decimal which activated this alert + protocol: {} + - &ref_17 + type: number + precision: 128 + language: + default: + name: Number + description: budget threshold amount + protocol: {} + - &ref_19 + type: number + precision: 128 + language: + default: + name: Number + description: current spend + protocol: {} + strings: + - &ref_0 + type: string + language: + default: + name: String + description: simple string + protocol: {} + - &ref_1 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: String + description: '' + protocol: {} + - &ref_69 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: ResourceId + description: Resource Id. + protocol: {} + - &ref_70 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: ResourceName + description: Resource name. + protocol: {} + - &ref_71 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: ResourceType + description: Resource type. + protocol: {} + - &ref_73 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: DimensionPropertiesDescription + description: Dimension description. + protocol: {} + - &ref_76 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: DimensionPropertiesDataItem + description: Dimension data item. + protocol: {} + - &ref_78 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: DimensionPropertiesCategory + description: Dimension category. + protocol: {} + - &ref_81 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: DimensionPropertiesNextLink + description: The link (url) to the next page of results. + protocol: {} + - &ref_83 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: ErrorDetailsCode + description: Error code. + protocol: {} + - &ref_84 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: ErrorDetailsMessage + description: Error message indicating why the operation failed. + protocol: {} + - &ref_6 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDefinitionType + description: type of alert + protocol: {} + - &ref_7 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDefinitionCategory + description: Alert category + protocol: {} + - &ref_8 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDefinitionCriteria + description: Criteria that triggered alert + protocol: {} + - &ref_9 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDescription + description: Alert description + protocol: {} + - &ref_10 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesSource + description: Source of alert + protocol: {} + - &ref_11 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDetailsTimeGrainType + description: Type of timegrain cadence + protocol: {} + - &ref_12 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDetailsPeriodStartDate + description: datetime of periodStartDate + protocol: {} + - &ref_13 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDetailsTriggeredBy + description: notificationId that triggered this alert + protocol: {} + - &ref_16 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDetailsOperator + description: operator used to compare currentSpend with amount + protocol: {} + - &ref_18 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDetailsUnit + description: unit of currency being used + protocol: {} + - &ref_20 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDetailsContactEmailsItem + description: '' + protocol: {} + - &ref_21 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDetailsContactGroupsItem + description: '' + protocol: {} + - &ref_22 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDetailsContactRolesItem + description: '' + protocol: {} + - &ref_23 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesDetailsOverridingAlert + description: overriding alert + protocol: {} + - &ref_24 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesCostEntityId + description: related budget + protocol: {} + - &ref_25 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesStatus + description: alert status + protocol: {} + - &ref_26 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesCreationTime + description: dateTime in which alert was created + protocol: {} + - &ref_27 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesCloseTime + description: dateTime in which alert was closed + protocol: {} + - &ref_28 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesModificationTime + description: dateTime in which alert was last modified + protocol: {} + - &ref_29 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesStatusModificationUserName + description: '' + protocol: {} + - &ref_30 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertPropertiesStatusModificationTime + description: dateTime in which the alert status was last modified + protocol: {} + - &ref_86 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: AlertsResultNextLink + description: URL to get the next set of alerts results if there are any. + protocol: {} + - &ref_44 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: QueryDatasetConfigurationColumnsItem + description: '' + protocol: {} + - &ref_2 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: QueryAggregationName + description: The name of the column to aggregate. + protocol: {} + - &ref_47 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: QueryGroupingName + description: The name of the column to group. + protocol: {} + - &ref_49 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: QueryComparisonExpressionName + description: The name of the column to use in comparison. + protocol: {} + - &ref_51 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: QueryComparisonExpressionValuesItem + description: '' + protocol: {} + - &ref_31 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: QueryPropertiesNextLink + description: The link (url) to the next page of results. + protocol: {} + - &ref_32 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: QueryColumnName + description: The name of column. + protocol: {} + - &ref_33 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: QueryColumnType + description: The type of column. + protocol: {} + - &ref_36 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: ExportDeliveryDestinationResourceId + description: The resource id of the storage account where exports will be delivered. + protocol: {} + - &ref_37 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: ExportDeliveryDestinationContainer + description: The name of the container where exports will be uploaded. + protocol: {} + - &ref_38 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: ExportDeliveryDestinationRootFolderPath + description: The name of the directory where exports will be uploaded. + protocol: {} + - &ref_60 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: ExportExecutionPropertiesSubmittedBy + 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.' + protocol: {} + - &ref_64 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: ExportExecutionPropertiesFileName + description: The name of the file export got written to. + protocol: {} + - &ref_107 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: OperationName + description: 'Operation name: {provider}/{resource}/{operation}.' + protocol: {} + - &ref_108 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: OperationDisplayProvider + description: 'Service provider: Microsoft.CostManagement.' + protocol: {} + - &ref_109 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: OperationDisplayResource + description: 'Resource on which the operation is performed: Dimensions, Query.' + protocol: {} + - &ref_110 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: OperationDisplayOperation + description: 'Operation type: Read, write, delete, etc.' + protocol: {} + - &ref_111 + type: string + apiVersions: + - version: '2019-11-01' + language: + default: + name: OperationListResultNextLink + description: URL to get the next set of operation list results if there are any. + protocol: {} + choices: + - &ref_145 + choices: + - value: externalSubscriptions + language: + default: + name: ExternalSubscriptions + description: '' + - value: externalBillingAccounts + language: + default: + name: ExternalBillingAccounts + description: '' + type: choice + apiVersions: + - version: '2019-11-01' + choiceType: *ref_0 + language: + default: + name: ExternalCloudProviderType + description: '' + protocol: {} + - &ref_90 + choices: + - value: Usage + language: + default: + name: Usage + description: '' + - value: ActualCost + language: + default: + name: ActualCost + description: '' + - value: AmortizedCost + language: + default: + name: AmortizedCost + description: '' + type: choice + apiVersions: + - version: '2019-11-01' + choiceType: *ref_0 + language: + default: + name: ForecastType + description: The type of the forecast. + protocol: {} + - &ref_91 + choices: + - value: MonthToDate + language: + default: + name: MonthToDate + description: '' + - value: BillingMonthToDate + language: + default: + name: BillingMonthToDate + description: '' + - value: TheLastMonth + language: + default: + name: TheLastMonth + description: '' + - value: TheLastBillingMonth + language: + default: + name: TheLastBillingMonth + description: '' + - value: WeekToDate + language: + default: + name: WeekToDate + description: '' + - value: Custom + language: + default: + name: Custom + description: '' + type: choice + apiVersions: + - version: '2019-11-01' + choiceType: *ref_0 + language: + default: + name: ForecastTimeframeType + description: 'The time frame for pulling data for the forecast. If custom, then a specific time period must be provided.' + protocol: {} + - &ref_46 + choices: + - value: Tag + language: + default: + name: Tag + description: '' + - value: Dimension + language: + default: + name: Dimension + description: '' + type: choice + apiVersions: + - version: '2019-11-01' + choiceType: *ref_0 + language: + default: + name: QueryColumnType + description: The type of the column in the export. + protocol: {} + - &ref_39 + choices: + - value: Usage + language: + default: + name: Usage + description: '' + - value: ActualCost + language: + default: + name: ActualCost + description: '' + - value: AmortizedCost + language: + default: + name: AmortizedCost + description: '' + type: choice + apiVersions: + - version: '2019-11-01' + choiceType: *ref_0 + language: + default: + name: ExportType + description: The type of the query. + protocol: {} + - &ref_40 + choices: + - value: MonthToDate + language: + default: + name: MonthToDate + description: '' + - value: BillingMonthToDate + language: + default: + name: BillingMonthToDate + description: '' + - value: TheLastMonth + language: + default: + name: TheLastMonth + description: '' + - value: TheLastBillingMonth + language: + default: + name: TheLastBillingMonth + description: '' + - value: WeekToDate + language: + default: + name: WeekToDate + description: '' + - value: Custom + language: + default: + name: Custom + description: '' + type: choice + apiVersions: + - version: '2019-11-01' + choiceType: *ref_0 + language: + default: + name: TimeframeType + description: 'The time frame for pulling data for the query. If custom, then a specific time period must be provided.' + protocol: {} + - &ref_54 + choices: + - value: Active + language: + default: + name: Active + description: '' + - value: Inactive + language: + default: + name: Inactive + description: '' + type: choice + apiVersions: + - version: '2019-11-01' + choiceType: *ref_0 + language: + default: + name: StatusType + description: 'The status of the schedule. Whether active or not. If inactive, the export''s scheduled execution is paused.' + protocol: {} + - &ref_55 + choices: + - value: Daily + language: + default: + name: Daily + description: '' + - value: Weekly + language: + default: + name: Weekly + description: '' + - value: Monthly + language: + default: + name: Monthly + description: '' + - value: Annually + language: + default: + name: Annually + description: '' + type: choice + apiVersions: + - version: '2019-11-01' + choiceType: *ref_0 + language: + default: + name: RecurrenceType + description: The schedule recurrence. + protocol: {} + - &ref_58 + choices: + - value: OnDemand + language: + default: + name: OnDemand + description: '' + - value: Scheduled + language: + default: + name: Scheduled + description: '' + type: choice + apiVersions: + - version: '2019-11-01' + choiceType: *ref_0 + language: + default: + name: ExecutionType + description: The type of the export execution. + protocol: {} + - &ref_59 + choices: + - value: Queued + language: + default: + name: Queued + description: '' + - value: InProgress + language: + default: + name: InProgress + description: '' + - value: Completed + language: + default: + name: Completed + description: '' + - value: Failed + language: + default: + name: Failed + description: '' + - value: Timeout + language: + default: + name: Timeout + description: '' + - value: NewDataNotAvailable + language: + default: + name: NewDataNotAvailable + description: '' + - value: DataNotAvailable + language: + default: + name: DataNotAvailable + description: '' + type: choice + apiVersions: + - version: '2019-11-01' + choiceType: *ref_0 + language: + default: + name: ExecutionStatus + description: The status of the export execution. + protocol: {} + constants: + - &ref_134 + type: constant + value: + value: '2019-11-01' + valueType: *ref_0 + language: + default: + name: ApiVersion20191101 + description: Api Version (2019-11-01) + protocol: {} + - &ref_43 + type: constant + apiVersions: + - version: '2019-11-01' + value: + value: Daily + valueType: *ref_0 + language: + default: + name: GranularityType + description: The granularity of rows in the query. + protocol: {} + - &ref_3 + type: constant + apiVersions: + - version: '2019-11-01' + value: + value: Sum + valueType: *ref_0 + language: + default: + name: FunctionType + description: The name of the aggregation function to use. + protocol: {} + - &ref_50 + type: constant + apiVersions: + - version: '2019-11-01' + value: + value: In + valueType: *ref_0 + language: + default: + name: OperatorType + description: The operator to use for comparison. + protocol: {} + - &ref_35 + type: constant + apiVersions: + - version: '2019-11-01' + value: + value: Csv + valueType: *ref_0 + language: + default: + name: FormatType + description: The format of the export being delivered. + protocol: {} + dictionaries: + - &ref_72 + type: dictionary + elementType: *ref_1 + language: + default: + name: ResourceTags + description: Resource tags. + protocol: {} + - &ref_45 + type: dictionary + elementType: &ref_97 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_2 + required: true + serializedName: name + language: + default: + name: name + description: The name of the column to aggregate. + protocol: {} + - schema: *ref_3 + required: true + serializedName: function + language: + default: + name: function + description: The name of the aggregation function to use. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: QueryAggregation + description: The aggregation expression to be used in the query. + namespace: '' + protocol: {} + language: + default: + name: QueryDatasetAggregation + 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. + protocol: {} + any: + - &ref_14 + type: any + language: + default: + name: any + description: Any object + protocol: {} + dateTimes: + - &ref_79 + type: date-time + format: date-time + apiVersions: + - version: '2019-11-01' + language: + default: + name: DimensionPropertiesUsageStart + description: Usage start. + protocol: {} + - &ref_80 + type: date-time + format: date-time + apiVersions: + - version: '2019-11-01' + language: + default: + name: DimensionPropertiesUsageEnd + description: Usage end. + protocol: {} + - &ref_41 + type: date-time + format: date-time + apiVersions: + - version: '2019-11-01' + language: + default: + name: QueryTimePeriodFrom + description: The start date to pull data from. + protocol: {} + - &ref_42 + type: date-time + format: date-time + apiVersions: + - version: '2019-11-01' + language: + default: + name: QueryTimePeriodTo + description: The end date to pull data to. + protocol: {} + - &ref_56 + type: date-time + format: date-time + apiVersions: + - version: '2019-11-01' + language: + default: + name: ExportRecurrencePeriodFrom + description: The start date of recurrence. + protocol: {} + - &ref_57 + type: date-time + format: date-time + apiVersions: + - version: '2019-11-01' + language: + default: + name: ExportRecurrencePeriodTo + description: The end date of recurrence. + protocol: {} + - &ref_61 + type: date-time + format: date-time + apiVersions: + - version: '2019-11-01' + language: + default: + name: ExportExecutionPropertiesSubmittedTime + description: The time when export was queued to be executed. + protocol: {} + - &ref_62 + type: date-time + format: date-time + apiVersions: + - version: '2019-11-01' + language: + default: + name: ExportExecutionPropertiesProcessingStartTime + description: The time when export was picked up to be executed. + protocol: {} + - &ref_63 + type: date-time + format: date-time + apiVersions: + - version: '2019-11-01' + language: + default: + name: ExportExecutionPropertiesProcessingEndTime + description: The time when export execution finished. + protocol: {} + objects: + - &ref_143 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: &ref_115 + type: array + apiVersions: + - version: '2019-11-01' + elementType: &ref_4 + type: object + apiVersions: + - version: '2019-11-01' + parents: + all: + - &ref_5 + type: object + apiVersions: + - version: '2019-11-01' + children: + all: + - *ref_4 + - &ref_65 + type: object + apiVersions: + - version: '2019-11-01' + parents: + all: + - *ref_5 + immediate: + - *ref_5 + properties: + - schema: &ref_87 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: &ref_88 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_6 + serializedName: type + language: + default: + name: type + description: type of alert + protocol: {} + - schema: *ref_7 + serializedName: category + language: + default: + name: category + description: Alert category + protocol: {} + - schema: *ref_8 + serializedName: criteria + language: + default: + name: criteria + description: Criteria that triggered alert + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: AlertPropertiesDefinition + description: defines the type of alert + namespace: '' + protocol: {} + serializedName: definition + language: + default: + name: definition + description: defines the type of alert + protocol: {} + - schema: *ref_9 + serializedName: description + language: + default: + name: description + description: Alert description + protocol: {} + - schema: *ref_10 + serializedName: source + language: + default: + name: source + description: Source of alert + protocol: {} + - schema: &ref_89 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_11 + serializedName: timeGrainType + language: + default: + name: timeGrainType + description: Type of timegrain cadence + protocol: {} + - schema: *ref_12 + serializedName: periodStartDate + language: + default: + name: periodStartDate + description: datetime of periodStartDate + protocol: {} + - schema: *ref_13 + serializedName: triggeredBy + language: + default: + name: triggeredBy + description: notificationId that triggered this alert + protocol: {} + - schema: &ref_116 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_14 + language: + default: + name: AlertPropertiesDetailsResourceGroupFilter + description: array of resourceGroups to filter by + protocol: {} + serializedName: resourceGroupFilter + language: + default: + name: resourceGroupFilter + description: array of resourceGroups to filter by + protocol: {} + - schema: &ref_117 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_14 + language: + default: + name: AlertPropertiesDetailsResourceFilter + description: array of resources to filter by + protocol: {} + serializedName: resourceFilter + language: + default: + name: resourceFilter + description: array of resources to filter by + protocol: {} + - schema: &ref_118 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_14 + language: + default: + name: AlertPropertiesDetailsMeterFilter + description: array of meters to filter by + protocol: {} + serializedName: meterFilter + language: + default: + name: meterFilter + description: array of meters to filter by + protocol: {} + - schema: *ref_14 + serializedName: tagFilter + language: + default: + name: tagFilter + description: tags to filter by + protocol: {} + - schema: *ref_15 + serializedName: threshold + language: + default: + name: threshold + description: notification threshold percentage as a decimal which activated this alert + protocol: {} + - schema: *ref_16 + serializedName: operator + language: + default: + name: operator + description: operator used to compare currentSpend with amount + protocol: {} + - schema: *ref_17 + serializedName: amount + language: + default: + name: amount + description: budget threshold amount + protocol: {} + - schema: *ref_18 + serializedName: unit + language: + default: + name: unit + description: unit of currency being used + protocol: {} + - schema: *ref_19 + serializedName: currentSpend + language: + default: + name: currentSpend + description: current spend + protocol: {} + - schema: &ref_119 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_20 + language: + default: + name: AlertPropertiesDetailsContactEmails + description: list of emails to contact + protocol: {} + serializedName: contactEmails + language: + default: + name: contactEmails + description: list of emails to contact + protocol: {} + - schema: &ref_120 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_21 + language: + default: + name: AlertPropertiesDetailsContactGroups + description: list of action groups to broadcast to + protocol: {} + serializedName: contactGroups + language: + default: + name: contactGroups + description: list of action groups to broadcast to + protocol: {} + - schema: &ref_121 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_22 + language: + default: + name: AlertPropertiesDetailsContactRoles + description: list of contact roles + protocol: {} + serializedName: contactRoles + language: + default: + name: contactRoles + description: list of contact roles + protocol: {} + - schema: *ref_23 + serializedName: overridingAlert + language: + default: + name: overridingAlert + description: overriding alert + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: AlertPropertiesDetails + description: Alert details + namespace: '' + protocol: {} + serializedName: details + language: + default: + name: details + description: Alert details + protocol: {} + - schema: *ref_24 + serializedName: costEntityId + language: + default: + name: costEntityId + description: related budget + protocol: {} + - schema: *ref_25 + serializedName: status + language: + default: + name: status + description: alert status + protocol: {} + - schema: *ref_26 + serializedName: creationTime + language: + default: + name: creationTime + description: dateTime in which alert was created + protocol: {} + - schema: *ref_27 + serializedName: closeTime + language: + default: + name: closeTime + description: dateTime in which alert was closed + protocol: {} + - schema: *ref_28 + serializedName: modificationTime + language: + default: + name: modificationTime + description: dateTime in which alert was last modified + protocol: {} + - schema: *ref_29 + serializedName: statusModificationUserName + language: + default: + name: statusModificationUserName + description: '' + protocol: {} + - schema: *ref_30 + serializedName: statusModificationTime + language: + default: + name: statusModificationTime + description: dateTime in which the alert status was last modified + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: AlertProperties + description: '' + namespace: '' + protocol: {} + serializedName: properties + extensions: + x-ms-client-flatten: true + language: + default: + name: properties + description: '' + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: Alert + description: An individual alert. + namespace: '' + protocol: {} + - &ref_66 + type: object + apiVersions: + - version: '2019-11-01' + parents: + all: + - *ref_5 + immediate: + - *ref_5 + properties: + - schema: &ref_99 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_31 + serializedName: nextLink + language: + default: + name: nextLink + description: The link (url) to the next page of results. + protocol: {} + - schema: &ref_128 + type: array + apiVersions: + - version: '2019-11-01' + elementType: &ref_100 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_32 + serializedName: name + language: + default: + name: name + description: The name of column. + protocol: {} + - schema: *ref_33 + serializedName: type + language: + default: + name: type + description: The type of column. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: QueryColumn + description: '' + namespace: '' + protocol: {} + language: + default: + name: QueryPropertiesColumns + description: Array of columns + protocol: {} + serializedName: columns + language: + default: + name: columns + description: Array of columns + protocol: {} + - schema: &ref_130 + type: array + apiVersions: + - version: '2019-11-01' + elementType: &ref_129 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_14 + language: + default: + name: QueryPropertiesRowsItem + description: Array of any + protocol: {} + language: + default: + name: QueryPropertiesRows + description: Array of rows + protocol: {} + serializedName: rows + language: + default: + name: rows + description: Array of rows + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: QueryProperties + description: '' + namespace: '' + protocol: {} + serializedName: properties + extensions: + x-ms-client-flatten: true + language: + default: + name: properties + description: '' + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: QueryResult + description: Result of query. It contains all columns listed under groupings and aggregation. + namespace: '' + protocol: {} + - &ref_67 + type: object + apiVersions: + - version: '2019-11-01' + parents: + all: + - *ref_5 + immediate: + - *ref_5 + properties: + - schema: &ref_34 + type: object + apiVersions: + - version: '2019-11-01' + parents: + all: + - &ref_53 + type: object + apiVersions: + - version: '2019-11-01' + children: + all: + - *ref_34 + immediate: + - *ref_34 + properties: + - schema: *ref_35 + required: false + serializedName: format + language: + default: + name: format + description: The format of the export being delivered. + protocol: {} + - schema: &ref_102 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: &ref_103 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_36 + required: true + serializedName: resourceId + language: + default: + name: resourceId + description: The resource id of the storage account where exports will be delivered. + protocol: {} + - schema: *ref_37 + required: true + serializedName: container + language: + default: + name: container + description: The name of the container where exports will be uploaded. + protocol: {} + - schema: *ref_38 + required: false + serializedName: rootFolderPath + language: + default: + name: rootFolderPath + description: The name of the directory where exports will be uploaded. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: ExportDeliveryDestination + description: >- + The destination information for the delivery of the export. To allow access to a storage account, you must register the account's subscription with the Microsoft.CostManagementExports resource + provider. This is required once per subscription. When creating an export in the Azure portal, it is done automatically, however API users need to register the subscription. For more information see + https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services . + namespace: '' + protocol: {} + required: true + serializedName: destination + language: + default: + name: destination + description: Has destination for the export being delivered. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: ExportDeliveryInfo + description: The delivery information associated with a export. + namespace: '' + protocol: {} + required: true + serializedName: deliveryInfo + language: + default: + name: deliveryInfo + description: Has delivery information for the export. + protocol: {} + - schema: &ref_101 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_39 + required: true + serializedName: type + language: + default: + name: type + description: The type of the query. + protocol: {} + - schema: *ref_40 + required: true + serializedName: timeframe + language: + default: + name: timeframe + description: 'The time frame for pulling data for the query. If custom, then a specific time period must be provided.' + protocol: {} + - schema: &ref_92 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_41 + required: true + serializedName: from + language: + default: + name: from + description: The start date to pull data from. + protocol: {} + - schema: *ref_42 + required: true + serializedName: to + language: + default: + name: to + description: The end date to pull data to. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: QueryTimePeriod + description: The start and end date for pulling data for the query. + namespace: '' + protocol: {} + required: false + serializedName: timePeriod + language: + default: + name: timePeriod + description: Has time period for pulling data for the query. + protocol: {} + - schema: &ref_93 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_43 + serializedName: granularity + language: + default: + name: granularity + description: The granularity of rows in the query. + protocol: {} + - schema: &ref_96 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: &ref_123 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_44 + language: + default: + name: QueryDatasetConfigurationColumns + 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.' + protocol: {} + serializedName: columns + language: + default: + name: 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.' + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: QueryDatasetConfiguration + description: The configuration of dataset in the query. + namespace: '' + protocol: {} + serializedName: configuration + language: + default: + name: configuration + description: Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided. + protocol: {} + - schema: *ref_45 + serializedName: aggregation + language: + default: + name: aggregation + 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. + protocol: {} + - schema: &ref_124 + type: array + apiVersions: + - version: '2019-11-01' + elementType: &ref_98 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_46 + required: true + serializedName: type + language: + default: + name: type + description: Has type of the column to group. + protocol: {} + - schema: *ref_47 + required: true + serializedName: name + language: + default: + name: name + description: The name of the column to group. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: QueryGrouping + description: The group by expression to be used in the query. + namespace: '' + protocol: {} + maxItems: 2 + language: + default: + name: QueryDatasetGrouping + description: Array of group by expression to use in the query. Query can have up to 2 group by clauses. + protocol: {} + serializedName: grouping + language: + default: + name: grouping + description: Array of group by expression to use in the query. Query can have up to 2 group by clauses. + protocol: {} + - schema: &ref_48 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: &ref_125 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_48 + minItems: 2 + language: + default: + name: QueryFilterAnd + description: The logical "AND" expression. Must have at least 2 items. + protocol: {} + serializedName: and + language: + default: + name: and + description: The logical "AND" expression. Must have at least 2 items. + protocol: {} + - schema: &ref_126 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_48 + minItems: 2 + language: + default: + name: QueryFilterOr + description: The logical "OR" expression. Must have at least 2 items. + protocol: {} + serializedName: or + language: + default: + name: or + description: The logical "OR" expression. Must have at least 2 items. + protocol: {} + - schema: *ref_48 + serializedName: not + language: + default: + name: not + description: The logical "NOT" expression. + protocol: {} + - schema: &ref_52 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_49 + required: true + serializedName: name + language: + default: + name: name + description: The name of the column to use in comparison. + protocol: {} + - schema: *ref_50 + required: true + serializedName: operator + language: + default: + name: operator + description: The operator to use for comparison. + protocol: {} + - schema: &ref_127 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_51 + minItems: 1 + language: + default: + name: QueryComparisonExpressionValues + description: Array of values to use for comparison + protocol: {} + required: true + serializedName: values + language: + default: + name: values + description: Array of values to use for comparison + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: QueryComparisonExpression + description: The comparison expression to be used in the query. + namespace: '' + protocol: {} + serializedName: dimension + language: + default: + name: dimension + description: Has comparison expression for a dimension + protocol: {} + - schema: *ref_52 + serializedName: tag + language: + default: + name: tag + description: Has comparison expression for a tag + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: QueryFilter + description: The filter expression to be used in the export. + namespace: '' + protocol: {} + serializedName: filter + language: + default: + name: filter + description: Has filter expression to use in the query. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: QueryDataset + description: The definition of data present in the query. + namespace: '' + protocol: {} + required: false + serializedName: dataset + language: + default: + name: dataset + description: Has definition for data in this query. + protocol: {} + serializationFormats: + - json + usage: + - input + - output + language: + default: + name: QueryDefinition + description: The definition of a query. + namespace: '' + protocol: {} + required: true + serializedName: definition + language: + default: + name: definition + description: Has definition for the export. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: CommonExportProperties + description: The common properties of the export. + namespace: '' + protocol: {} + immediate: + - *ref_53 + properties: + - schema: &ref_104 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_54 + required: false + serializedName: status + language: + default: + name: status + description: 'The status of the schedule. Whether active or not. If inactive, the export''s scheduled execution is paused.' + protocol: {} + - schema: *ref_55 + required: true + serializedName: recurrence + language: + default: + name: recurrence + description: The schedule recurrence. + protocol: {} + - schema: &ref_105 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_56 + required: true + serializedName: from + language: + default: + name: from + description: The start date of recurrence. + protocol: {} + - schema: *ref_57 + required: false + serializedName: to + language: + default: + name: to + description: The end date of recurrence. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: ExportRecurrencePeriod + description: The start and end date for recurrence schedule. + namespace: '' + protocol: {} + required: false + serializedName: recurrencePeriod + language: + default: + name: 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.' + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: ExportSchedule + description: The schedule associated with a export. + namespace: '' + protocol: {} + serializedName: schedule + language: + default: + name: schedule + description: Has schedule information for the export. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: ExportProperties + description: The properties of the export. + namespace: '' + protocol: {} + serializedName: properties + extensions: + x-ms-client-flatten: true + language: + default: + name: properties + description: The properties of the export. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: Export + description: A export resource. + namespace: '' + protocol: {} + - &ref_68 + type: object + apiVersions: + - version: '2019-11-01' + parents: + all: + - *ref_5 + immediate: + - *ref_5 + properties: + - schema: &ref_106 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_58 + serializedName: executionType + language: + default: + name: executionType + description: The type of the export execution. + protocol: {} + - schema: *ref_59 + serializedName: status + language: + default: + name: status + description: The status of the export execution. + protocol: {} + - schema: *ref_60 + serializedName: submittedBy + language: + default: + name: 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.' + protocol: {} + - schema: *ref_61 + serializedName: submittedTime + language: + default: + name: submittedTime + description: The time when export was queued to be executed. + protocol: {} + - schema: *ref_62 + serializedName: processingStartTime + language: + default: + name: processingStartTime + description: The time when export was picked up to be executed. + protocol: {} + - schema: *ref_63 + serializedName: processingEndTime + language: + default: + name: processingEndTime + description: The time when export execution finished. + protocol: {} + - schema: *ref_64 + serializedName: fileName + language: + default: + name: fileName + description: The name of the file export got written to. + protocol: {} + - schema: *ref_53 + serializedName: runSettings + language: + default: + name: runSettings + description: The common properties of the export. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: ExportExecutionProperties + description: The properties of the export execution. + namespace: '' + protocol: {} + serializedName: properties + extensions: + x-ms-client-flatten: true + language: + default: + name: properties + description: The properties of the export execution. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: ExportExecution + description: A export execution. + namespace: '' + protocol: {} + immediate: + - *ref_4 + - *ref_65 + - *ref_66 + - *ref_67 + - *ref_68 + properties: + - schema: *ref_69 + readOnly: true + serializedName: id + language: + default: + name: id + description: Resource Id. + protocol: {} + - schema: *ref_70 + readOnly: true + serializedName: name + language: + default: + name: name + description: Resource name. + protocol: {} + - schema: *ref_71 + readOnly: true + serializedName: type + language: + default: + name: type + description: Resource type. + protocol: {} + - schema: *ref_72 + readOnly: true + serializedName: tags + language: + default: + name: tags + description: Resource tags. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + extensions: + x-ms-azure-resource: true + language: + default: + name: Resource + description: The Resource model definition. + namespace: '' + protocol: {} + immediate: + - *ref_5 + properties: + - schema: &ref_82 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_73 + readOnly: true + serializedName: description + language: + default: + name: description + description: Dimension description. + protocol: {} + - schema: *ref_74 + readOnly: true + serializedName: filterEnabled + language: + default: + name: filterEnabled + description: Filter enabled. + protocol: {} + - schema: *ref_75 + readOnly: true + serializedName: groupingEnabled + language: + default: + name: groupingEnabled + description: Grouping enabled. + protocol: {} + - schema: &ref_114 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_76 + language: + default: + name: DimensionPropertiesData + description: Array of DimensionPropertiesDataItem + protocol: {} + serializedName: data + language: + default: + name: data + description: '' + protocol: {} + - schema: *ref_77 + readOnly: true + serializedName: total + language: + default: + name: total + description: Total number of data for the dimension. + protocol: {} + - schema: *ref_78 + readOnly: true + serializedName: category + language: + default: + name: category + description: Dimension category. + protocol: {} + - schema: *ref_79 + readOnly: true + serializedName: usageStart + language: + default: + name: usageStart + description: Usage start. + protocol: {} + - schema: *ref_80 + readOnly: true + serializedName: usageEnd + language: + default: + name: usageEnd + description: Usage end. + protocol: {} + - schema: *ref_81 + readOnly: true + serializedName: nextLink + language: + default: + name: nextLink + description: The link (url) to the next page of results. + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: DimensionProperties + description: '' + namespace: '' + protocol: {} + serializedName: properties + extensions: + x-ms-client-flatten: true + language: + default: + name: properties + description: '' + protocol: {} + serializationFormats: + - json + usage: + - output + - input + language: + default: + name: Dimension + description: '' + namespace: '' + protocol: {} + language: + default: + name: DimensionsListResultValue + description: The list of dimensions. + protocol: {} + readOnly: true + serializedName: value + language: + default: + name: value + description: The list of dimensions. + protocol: {} + serializationFormats: + - json + usage: + - output + language: + default: + name: DimensionsListResult + description: Result of listing dimensions. It contains a list of available dimensions. + namespace: '' + protocol: {} + - *ref_5 + - *ref_4 + - *ref_82 + - &ref_144 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: &ref_85 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_83 + readOnly: true + serializedName: code + language: + default: + name: code + description: Error code. + protocol: {} + - schema: *ref_84 + readOnly: true + serializedName: message + language: + default: + name: message + description: Error message indicating why the operation failed. + protocol: {} + serializationFormats: + - json + usage: + - output + language: + default: + name: ErrorDetails + description: The details of the error. + namespace: '' + protocol: {} + serializedName: error + language: + default: + name: error + description: The details of the error. + protocol: {} + serializationFormats: + - json + usage: + - output + language: + default: + name: ErrorResponse + description: |- + Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. + + Some Error responses: + + * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" header. + + * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" header. + namespace: '' + protocol: {} + - *ref_85 + - &ref_153 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: &ref_122 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_65 + language: + default: + name: AlertsResultValue + description: List of alerts. + protocol: {} + readOnly: true + serializedName: value + language: + default: + name: value + description: List of alerts. + protocol: {} + - schema: *ref_86 + readOnly: true + serializedName: nextLink + language: + default: + name: nextLink + description: URL to get the next set of alerts results if there are any. + protocol: {} + serializationFormats: + - json + usage: + - output + language: + default: + name: AlertsResult + description: Result of alerts. + namespace: '' + protocol: {} + - *ref_65 + - *ref_87 + - *ref_88 + - *ref_89 + - &ref_156 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_90 + required: true + serializedName: type + language: + default: + name: type + description: The type of the forecast. + protocol: {} + - schema: *ref_91 + required: true + serializedName: timeframe + language: + default: + name: timeframe + description: 'The time frame for pulling data for the forecast. If custom, then a specific time period must be provided.' + protocol: {} + - schema: *ref_92 + required: false + serializedName: timePeriod + language: + default: + name: timePeriod + description: Has time period for pulling data for the forecast. + protocol: {} + - schema: *ref_93 + required: false + serializedName: dataset + language: + default: + name: dataset + description: Has definition for data in this forecast. + protocol: {} + - schema: *ref_94 + required: false + serializedName: includeActualCost + language: + default: + name: includeActualCost + description: a boolean determining if actualCost will be included + protocol: {} + - schema: *ref_95 + required: false + serializedName: includeFreshPartialCost + language: + default: + name: includeFreshPartialCost + description: a boolean determining if FreshPartialCost will be included + protocol: {} + serializationFormats: + - json + usage: + - input + language: + default: + name: ForecastDefinition + description: The definition of a forecast. + namespace: '' + protocol: {} + - *ref_92 + - *ref_93 + - *ref_96 + - *ref_97 + - *ref_98 + - *ref_48 + - *ref_52 + - *ref_66 + - *ref_99 + - *ref_100 + - *ref_101 + - &ref_170 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: &ref_131 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_67 + language: + default: + name: ExportListResultValue + description: The list of exports. + protocol: {} + readOnly: true + serializedName: value + language: + default: + name: value + description: The list of exports. + protocol: {} + serializationFormats: + - json + usage: + - output + language: + default: + name: ExportListResult + description: Result of listing exports. It contains a list of available exports in the scope provided. + namespace: '' + protocol: {} + - *ref_67 + - *ref_53 + - *ref_102 + - *ref_103 + - *ref_34 + - *ref_104 + - *ref_105 + - &ref_182 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: &ref_132 + type: array + apiVersions: + - version: '2019-11-01' + elementType: *ref_68 + language: + default: + name: ExportExecutionListResultValue + description: The list of export executions. + protocol: {} + readOnly: true + serializedName: value + language: + default: + name: value + description: The list of export executions. + protocol: {} + serializationFormats: + - json + usage: + - output + language: + default: + name: ExportExecutionListResult + description: Result of listing exports execution history of a export by name + namespace: '' + protocol: {} + - *ref_68 + - *ref_106 + - &ref_183 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: &ref_133 + type: array + apiVersions: + - version: '2019-11-01' + elementType: &ref_112 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_107 + readOnly: true + serializedName: name + language: + default: + name: name + description: 'Operation name: {provider}/{resource}/{operation}.' + protocol: {} + - schema: &ref_113 + type: object + apiVersions: + - version: '2019-11-01' + properties: + - schema: *ref_108 + readOnly: true + serializedName: provider + language: + default: + name: provider + description: 'Service provider: Microsoft.CostManagement.' + protocol: {} + - schema: *ref_109 + readOnly: true + serializedName: resource + language: + default: + name: resource + description: 'Resource on which the operation is performed: Dimensions, Query.' + protocol: {} + - schema: *ref_110 + readOnly: true + serializedName: operation + language: + default: + name: operation + description: 'Operation type: Read, write, delete, etc.' + protocol: {} + serializationFormats: + - json + usage: + - output + language: + default: + name: OperationDisplay + description: The object that represents the operation. + namespace: '' + protocol: {} + serializedName: display + language: + default: + name: display + description: The object that represents the operation. + protocol: {} + serializationFormats: + - json + usage: + - output + language: + default: + name: Operation + description: A Cost management REST API operation. + namespace: '' + protocol: {} + language: + default: + name: OperationListResultValue + description: List of cost management operations supported by the Microsoft.CostManagement resource provider. + protocol: {} + readOnly: true + serializedName: value + language: + default: + name: value + description: List of cost management operations supported by the Microsoft.CostManagement resource provider. + protocol: {} + - schema: *ref_111 + readOnly: true + serializedName: nextLink + language: + default: + name: nextLink + description: URL to get the next set of operation list results if there are any. + protocol: {} + serializationFormats: + - json + usage: + - output + language: + default: + name: 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. + namespace: '' + protocol: {} + - *ref_112 + - *ref_113 + arrays: + - *ref_114 + - *ref_115 + - *ref_116 + - *ref_117 + - *ref_118 + - *ref_119 + - *ref_120 + - *ref_121 + - *ref_122 + - *ref_123 + - *ref_124 + - *ref_125 + - *ref_126 + - *ref_127 + - *ref_128 + - *ref_129 + - *ref_130 + - *ref_131 + - *ref_132 + - *ref_133 +globalParameters: +- &ref_135 + schema: *ref_0 + clientDefaultValue: 'https://management.azure.com' + implementation: Client + origin: 'modelerfour:synthesized/host' + required: true + extensions: + x-ms-skip-url-encoding: true + language: + default: + name: $host + description: server parameter + serializedName: $host + protocol: + http: + in: uri +- &ref_136 + schema: *ref_134 + implementation: Client + origin: 'modelerfour:synthesized/api-version' + required: true + language: + default: + name: apiVersion + description: Api Version + serializedName: api-version + protocol: + http: + in: query +operationGroups: +- $key: Dimensions + operations: + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_138 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: + default: + name: scope + description: >- + The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group + scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, + 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and + 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + serializedName: scope + protocol: + http: + in: path + - *ref_136 + - &ref_139 + schema: *ref_1 + implementation: Method + language: + default: + name: filter + description: 'May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are ''eq'',''lt'', ''gt'', ''le'', ''ge''.' + serializedName: $filter + protocol: + http: + in: query + - &ref_140 + schema: *ref_1 + implementation: Method + language: + default: + name: expand + description: 'May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.' + serializedName: $expand + protocol: + http: + in: query + - &ref_141 + schema: *ref_1 + implementation: Method + language: + default: + 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. + serializedName: $skiptoken + protocol: + http: + in: query + - &ref_142 + schema: *ref_137 + implementation: Method + language: + default: + name: top + description: May be used to limit the number of results to the most recent N dimension data. + serializedName: $top + protocol: + http: + in: query + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: '/{scope}/providers/Microsoft.CostManagement/dimensions' + method: get + uri: '{$host}' + signatureParameters: + - *ref_138 + - *ref_139 + - *ref_140 + - *ref_141 + - *ref_142 + responses: + - schema: *ref_143 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + BillingAccountDimensionsList-Legacy: + parameters: + api-version: '2019-10-01' + billingAccountId: '100' + scope: providers/Microsoft.Billing/billingAccounts/100 + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2018-05-01_2018-05-31 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31 + properties: + description: Resource group + category: ResourceGroup + data: [] + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + - name: dimensions_ResourceType_2018-05-01_2018-05-31 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31 + properties: + description: Resource type + category: ResourceType + data: [] + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + BillingAccountDimensionsList-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' + properties: + description: Resource group + category: ResourceGroup + data: [] + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + - name: dimensions_ResourceType_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' + properties: + description: Resource type + category: ResourceType + data: [] + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + BillingAccountDimensionsListExpandAndTop-Legacy: + parameters: + $expand: properties/data + $top: 5 + api-version: '2019-10-01' + billingAccountId: '100' + scope: providers/Microsoft.Billing/billingAccounts/100 + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5 + properties: + description: Resource group + category: ResourceGroup + data: + - thoroetrg01 + - default-notificationhubs-westus + - jedikeyvaultrg + - contosocodeflow8d4a + - noobaa + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 + properties: + description: Resource type + category: ResourceType + data: + - microsoft.automation/automationaccounts + - microsoft.databricks/workspaces + - microsoft.dbformysql/servers + - microsoft.containerregistry/registries + - microsoft.search/searchservices + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + BillingAccountDimensionsListExpandAndTop-Modern: + parameters: + $expand: properties/data + $top: 5 + api-version: '2019-10-01' + billingAccountId: '12345:6789' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' + properties: + description: Resource group + category: ResourceGroup + data: + - thoroetrg01 + - default-notificationhubs-westus + - jedikeyvaultrg + - contosocodeflow8d4a + - noobaa + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + - name: dimensions_ResourceType_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' + properties: + description: Resource type + category: ResourceType + data: + - microsoft.automation/automationaccounts + - microsoft.databricks/workspaces + - microsoft.dbformysql/servers + - microsoft.containerregistry/registries + - microsoft.search/searchservices + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + BillingAccountDimensionsListWithFilter-Legacy: + parameters: + $expand: properties/data + $filter: properties/category eq 'resourceId' + $top: 5 + api-version: '2019-10-01' + billingAccountId: '100' + scope: providers/Microsoft.Billing/billingAccounts/100 + responses: + '200': + body: + value: + - name: dimensions_ResourceId_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5 + properties: + description: Resource Id + category: ResourceId + data: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount + - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 + - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume + filterEnabled: true + groupingEnabled: true + nextLink: >- + http://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq + 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D + total: 1409 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + BillingAccountDimensionsListWithFilter-Modern: + parameters: + $expand: properties/data + $filter: properties/category eq 'resourceId' + $top: 5 + api-version: '2019-10-01' + billingAccountId: '12345:6789' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' + responses: + '200': + body: + value: + - name: dimensions_ResourceId_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31' + properties: + description: Resource Id + category: ResourceId + data: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount + - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 + - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume + filterEnabled: true + groupingEnabled: true + nextLink: >- + http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq + 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D + total: 1409 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + BillingProfileDimensionsList-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' + properties: + description: Resource group + category: ResourceGroup + data: [] + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + - name: dimensions_ResourceType_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' + properties: + description: Resource type + category: ResourceType + data: [] + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + BillingProfileDimensionsListExpandAndTop-Modern: + parameters: + $expand: properties/data + $top: 5 + api-version: '2019-10-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' + properties: + description: Resource group + category: ResourceGroup + data: + - thoroetrg01 + - default-notificationhubs-westus + - jedikeyvaultrg + - contosocodeflow8d4a + - noobaa + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + - name: dimensions_ResourceType_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' + properties: + description: Resource type + category: ResourceType + data: + - microsoft.automation/automationaccounts + - microsoft.databricks/workspaces + - microsoft.dbformysql/servers + - microsoft.containerregistry/registries + - microsoft.search/searchservices + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + BillingProfileDimensionsListWithFilter-Modern: + parameters: + $expand: properties/data + $filter: properties/category eq 'resourceId' + $top: 5 + api-version: '2019-10-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' + responses: + '200': + body: + value: + - name: dimensions_ResourceId_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31' + properties: + description: Resource Id + category: ResourceId + data: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount + - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 + - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume + filterEnabled: true + groupingEnabled: true + nextLink: >- + http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq + 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D + total: 1409 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + CustomerDimensionsList-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + customerId: '5678' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678' + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' + properties: + description: Resource group + category: ResourceGroup + data: [] + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + - name: dimensions_ResourceType_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' + properties: + description: Resource type + category: ResourceType + data: [] + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + CustomerDimensionsListExpandAndTop-Modern: + parameters: + $expand: properties/data + $top: 5 + api-version: '2019-10-01' + billingAccountId: '12345:6789' + customerId: '5678' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678' + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' + properties: + description: Resource group + category: ResourceGroup + data: + - thoroetrg01 + - default-notificationhubs-westus + - jedikeyvaultrg + - contosocodeflow8d4a + - noobaa + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + - name: dimensions_ResourceType_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' + properties: + description: Resource type + category: ResourceType + data: + - microsoft.automation/automationaccounts + - microsoft.databricks/workspaces + - microsoft.dbformysql/servers + - microsoft.containerregistry/registries + - microsoft.search/searchservices + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + CustomerDimensionsListWithFilter-Modern: + parameters: + $expand: properties/data + $filter: properties/category eq 'resourceId' + $top: 5 + api-version: '2019-10-01' + billingAccountId: '12345:6789' + customerId: '13579' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678' + responses: + '200': + body: + value: + - name: dimensions_ResourceId_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31' + properties: + description: Resource Id + category: ResourceId + data: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount + - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 + - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume + filterEnabled: true + groupingEnabled: true + nextLink: >- + http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq + 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D + total: 1409 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + DepartmentDimensionsList-Legacy: + parameters: + api-version: '2019-10-01' + billingAccountId: '100' + departmentId: '123' + scope: providers/Microsoft.Billing/billingAccounts/100/departments/123 + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2018-05-01_2018-05-31 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31 + properties: + description: Resource group + category: ResourceGroup + data: [] + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + - name: dimensions_ResourceType_2018-05-01_2018-05-31 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31 + properties: + description: Resource type + category: ResourceType + data: [] + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + DepartmentDimensionsListExpandAndTop-Legacy: + parameters: + $expand: properties/data + $top: 5 + api-version: '2019-10-01' + billingAccountId: '100' + departmentId: '123' + scope: providers/Microsoft.Billing/billingAccounts/100/departments/123 + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5 + properties: + description: Resource group + category: ResourceGroup + data: + - thoroetrg01 + - default-notificationhubs-westus + - jedikeyvaultrg + - contosocodeflow8d4a + - noobaa + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 + properties: + description: Resource type + category: ResourceType + data: + - microsoft.automation/automationaccounts + - microsoft.databricks/workspaces + - microsoft.dbformysql/servers + - microsoft.containerregistry/registries + - microsoft.search/searchservices + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + DepartmentDimensionsListWithFilter-Legacy: + parameters: + $expand: properties/data + $filter: properties/category eq 'resourceId' + $top: 5 + api-version: '2019-10-01' + billingAccountId: '100' + departmentId: '123' + scope: providers/Microsoft.Billing/billingAccounts/100/departments/123 + responses: + '200': + body: + value: + - name: dimensions_ResourceId_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5 + properties: + description: Resource Id + category: ResourceId + data: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount + - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 + - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume + filterEnabled: true + groupingEnabled: true + nextLink: >- + https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq + 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D + total: 1409 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + EnrollmentAccountDimensionsList-Legacy: + parameters: + api-version: '2019-10-01' + billingAccountId: '100' + enrollmentAccountId: '456' + scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2018-05-01_2018-05-31 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31 + properties: + description: Resource group + category: ResourceGroup + data: [] + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + - name: dimensions_ResourceType_2018-05-01_2018-05-31 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31 + properties: + description: Resource type + category: ResourceType + data: [] + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + EnrollmentAccountDimensionsListExpandAndTop-Legacy: + parameters: + $expand: properties/data + $top: 5 + api-version: '2019-10-01' + billingAccountId: '100' + enrollmentAccountId: '456' + scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5 + properties: + description: Resource group + category: ResourceGroup + data: + - thoroetrg01 + - default-notificationhubs-westus + - jedikeyvaultrg + - contosocodeflow8d4a + - noobaa + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 + properties: + description: Resource type + category: ResourceType + data: + - microsoft.automation/automationaccounts + - microsoft.databricks/workspaces + - microsoft.dbformysql/servers + - microsoft.containerregistry/registries + - microsoft.search/searchservices + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + EnrollmentAccountDimensionsListWithFilter-Legacy: + parameters: + $expand: properties/data + $filter: properties/category eq 'resourceId' + $top: 5 + api-version: '2019-10-01' + billingAccountId: '100' + enrollmentAccountId: '456' + scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 + responses: + '200': + body: + value: + - name: dimensions_ResourceId_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5 + properties: + description: Resource Id + category: ResourceId + data: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount + - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 + - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume + filterEnabled: true + groupingEnabled: true + nextLink: >- + https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq + 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D + total: 1409 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + InvoiceSectionDimensionsList-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + invoiceSectionId: '9876' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' + properties: + description: Resource group + category: ResourceGroup + data: [] + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + - name: dimensions_ResourceType_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' + properties: + description: Resource type + category: ResourceType + data: [] + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + InvoiceSectionDimensionsListExpandAndTop-Modern: + parameters: + $expand: properties/data + $top: 5 + api-version: '2019-10-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + invoiceSectionId: '9876' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' + properties: + description: Resource group + category: ResourceGroup + data: + - thoroetrg01 + - default-notificationhubs-westus + - jedikeyvaultrg + - contosocodeflow8d4a + - noobaa + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + - name: dimensions_ResourceType_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' + properties: + description: Resource type + category: ResourceType + data: + - microsoft.automation/automationaccounts + - microsoft.databricks/workspaces + - microsoft.dbformysql/servers + - microsoft.containerregistry/registries + - microsoft.search/searchservices + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + InvoiceSectionDimensionsListWithFilter-Modern: + parameters: + $expand: properties/data + $filter: properties/category eq 'resourceId' + $top: 5 + api-version: '2019-10-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + invoiceSectionId: '9876' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' + responses: + '200': + body: + value: + - name: dimensions_ResourceId_2019-10-01_2019-10-31 + type: microsoft.CostManagement/dimensions + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31' + properties: + description: Resource Id + category: ResourceId + data: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount + - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 + - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume + filterEnabled: true + groupingEnabled: true + nextLink: >- + http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq + 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D + total: 1409 + usageEnd: '2019-10-31T00:00:00-07:00' + usageStart: '2019-10-01T00:00:00-07:00' + ManagementGroupDimensionsList-Legacy: + parameters: + api-version: '2019-10-01' + managementGroupId: MyMgId + scope: providers/Microsoft.Management/managementGroups/MyMgId + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2018-05-01_2018-05-31 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31 + properties: + description: Resource group + category: ResourceGroup + data: [] + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + - name: dimensions_ResourceType_2018-05-01_2018-05-31 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31 + properties: + description: Resource type + category: ResourceType + data: [] + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + ManagementGroupDimensionsListExpandAndTop-Legacy: + parameters: + $expand: properties/data + $top: 5 + api-version: '2019-10-01' + managementGroupId: MyMgId + scope: providers/Microsoft.Management/managementGroups/MyMgId + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5 + properties: + description: Resource group + category: ResourceGroup + data: + - thoroetrg01 + - default-notificationhubs-westus + - jedikeyvaultrg + - contosocodeflow8d4a + - noobaa + filterEnabled: true + groupingEnabled: true + total: 377 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 + properties: + description: Resource type + category: ResourceType + data: + - microsoft.automation/automationaccounts + - microsoft.databricks/workspaces + - microsoft.dbformysql/servers + - microsoft.containerregistry/registries + - microsoft.search/searchservices + filterEnabled: true + groupingEnabled: true + total: 37 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + ManagementGroupDimensionsListWithFilter-Legacy: + parameters: + $expand: properties/data + $filter: properties/category eq 'resourceId' + $top: 5 + api-version: '2019-10-01' + managementGroupId: MyMgId + scope: providers/Microsoft.Management/managementGroups/MyMgId + responses: + '200': + body: + value: + - name: dimensions_ResourceId_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5 + properties: + description: Resource Id + category: ResourceId + data: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount + - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 + - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume + filterEnabled: true + groupingEnabled: true + nextLink: >- + http://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq + 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D + total: 1409 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + ResourceGroupDimensionsList-Legacy: + parameters: + $expand: properties/data + $top: 5 + api-version: '2019-10-01' + resourceGroupName: system.orlando + scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + value: + - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 + properties: + description: Resource type + category: ResourceType + data: + - microsoft.storage/storageaccounts + filterEnabled: true + groupingEnabled: true + total: 1 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + - name: dimensions_ResourceId_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5 + properties: + description: Resource Id + category: ResourceId + data: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/authprod + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/systemevents + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/armadminprod + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/publicsystemportal + filterEnabled: true + groupingEnabled: true + total: 27 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + SubscriptionDimensionsList-Legacy: + parameters: + $expand: properties/data + $top: 5 + api-version: '2019-10-01' + scope: subscriptions/00000000-0000-0000-0000-000000000000 + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + value: + - name: dimensions_ResourceGroup_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5 + properties: + description: Resource group + category: ResourceGroup + data: + - dcrg + - rg + - offlinegalleryrg + - system.orlando.adminkeyvault + - system.orlando.keyvault + filterEnabled: true + groupingEnabled: true + total: 68 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 + type: microsoft.CostManagement/dimensions + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 + properties: + description: Resource type + category: ResourceType + data: + - microsoft.storage/storageaccounts + - microsoft.web.admin/role + - microsoft.sql/servers + - microsoft.compute/virtualmachines + filterEnabled: true + groupingEnabled: true + total: 4 + usageEnd: '2018-05-31T00:00:00-07:00' + usageStart: '2018-05-01T00:00:00-07:00' + x-ms-odata: '#/components/schemas/Dimension' + x-ms-pageable: + nextLinkName: null + language: + default: + name: List + description: Lists the dimensions by the defined scope. + paging: + nextLinkName: null + protocol: {} + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_146 + schema: *ref_145 + implementation: Method + required: true + language: + default: + name: externalCloudProviderType + description: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + serializedName: externalCloudProviderType + protocol: + http: + in: path + - &ref_147 + schema: *ref_1 + implementation: Method + required: true + language: + default: + name: externalCloudProviderId + description: 'This can be ''{externalSubscriptionId}'' for linked account or ''{externalBillingAccountId}'' for consolidated account used with dimension/query operations.' + serializedName: externalCloudProviderId + protocol: + http: + in: path + - *ref_136 + - &ref_148 + schema: *ref_1 + implementation: Method + language: + default: + name: filter + description: 'May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are ''eq'',''lt'', ''gt'', ''le'', ''ge''.' + serializedName: $filter + protocol: + http: + in: query + - &ref_149 + schema: *ref_1 + implementation: Method + language: + default: + name: expand + description: 'May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.' + serializedName: $expand + protocol: + http: + in: query + - &ref_150 + schema: *ref_1 + implementation: Method + language: + default: + 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. + serializedName: $skiptoken + protocol: + http: + in: query + - &ref_151 + schema: *ref_137 + implementation: Method + language: + default: + name: top + description: May be used to limit the number of results to the most recent N dimension data. + serializedName: $top + protocol: + http: + in: query + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions' + method: get + uri: '{$host}' + signatureParameters: + - *ref_146 + - *ref_147 + - *ref_148 + - *ref_149 + - *ref_150 + - *ref_151 + responses: + - schema: *ref_143 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ExternalBillingAccountDimensionList: + parameters: + api-version: '2019-11-01' + externalCloudProviderId: '100' + externalCloudProviderType: externalBillingAccounts + responses: + '200': + body: + value: + - name: dimensions_ResourceType_2019-12-01_2019-12-31 + type: microsoft.consumption/dimensions + id: providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceType_2019-12-01_2019-12-31 + properties: + description: Resource type + category: ResourceType + data: [] + filterEnabled: true + groupingEnabled: true + total: 0 + usageEnd: '2019-12-31T00:00:00Z' + usageStart: '2019-12-01T00:00:00Z' + - name: dimensions_ResourceId_2019-12-01_2019-12-31 + type: microsoft.consumption/dimensions + id: providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceId_2019-12-01_2019-12-31 + properties: + description: Resource ID + category: ResourceId + data: [] + filterEnabled: true + groupingEnabled: true + total: 0 + usageEnd: '2019-12-31T00:00:00Z' + usageStart: '2019-12-01T00:00:00Z' + ExternalSubscriptionDimensionList: + parameters: + api-version: '2019-11-01' + externalCloudProviderId: '100' + externalCloudProviderType: externalSubscriptions + responses: + '200': + body: + value: + - name: dimensions_ResourceType_2019-12-01_2019-12-31 + type: microsoft.consumption/dimensions + id: providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceType_2019-12-01_2019-12-31 + properties: + description: Resource type + category: ResourceType + data: [] + filterEnabled: true + groupingEnabled: true + total: 0 + usageEnd: '2019-12-31T00:00:00Z' + usageStart: '2019-12-01T00:00:00Z' + - name: dimensions_ResourceId_2019-12-01_2019-12-31 + type: microsoft.consumption/dimensions + id: providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceId_2019-12-01_2019-12-31 + properties: + description: Resource ID + category: ResourceId + data: [] + filterEnabled: true + groupingEnabled: true + total: 0 + usageEnd: '2019-12-31T00:00:00Z' + usageStart: '2019-12-01T00:00:00Z' + x-ms-odata: '#/components/schemas/Dimension' + x-ms-pageable: + nextLinkName: null + language: + default: + name: ByExternalCloudProviderType + description: Lists the dimensions by the external cloud provider type. + paging: + nextLinkName: null + protocol: {} + language: + default: + name: Dimensions + description: '' + protocol: {} +- $key: Alerts + operations: + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - *ref_136 + - &ref_152 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: + default: + name: scope + description: >- + The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + serializedName: scope + protocol: + http: + in: path + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: '/{scope}/providers/Microsoft.CostManagement/alerts' + method: get + uri: '{$host}' + signatureParameters: + - *ref_152 + responses: + - schema: *ref_153 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + BillingAccountAlerts: + parameters: + api-version: 2018-08-01-preview + billingAccountId: '12345:6789' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' + responses: + '200': + body: + nextLink: null + value: + - name: 00000000-0000-0000-0000-000000000000 + type: Microsoft.CostManagement/alerts + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000' + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2020-04-27T11:07:52.7143901Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2020-04-28T11:06:02.8999373Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 161000.12 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 + unit: USD + - name: 11111111-1111-1111-111111111111 + type: Microsoft.CostManagement/alerts + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111' + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2019-06-24T05:51:52.8713179Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2019-08-31T17:51:55.1808807Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 171000.32 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 11111111-1111-1111-111111111111_1_01 + unit: USD + BillingProfileAlerts: + parameters: + api-version: 2018-08-01-preview + billingAccountId: '12345:6789' + billingProfileId: '13579' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' + responses: + '200': + body: + nextLink: null + value: + - name: 00000000-0000-0000-0000-000000000000 + type: Microsoft.CostManagement/alerts + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000' + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2020-04-27T11:07:52.7143901Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2020-04-28T11:06:02.8999373Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 161000.12 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 + unit: USD + - name: 11111111-1111-1111-111111111111 + type: Microsoft.CostManagement/alerts + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111' + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2019-06-24T05:51:52.8713179Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2019-08-31T17:51:55.1808807Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 171000.32 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 11111111-1111-1111-111111111111_1_01 + unit: USD + DepartmentAlerts: + parameters: + api-version: 2018-08-01-preview + billingAccountId: '12345:6789' + departmentId: '123' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123' + responses: + '200': + body: + nextLink: null + value: + - name: 00000000-0000-0000-0000-000000000000 + type: Microsoft.CostManagement/alerts + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000' + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2020-04-27T11:07:52.7143901Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2020-04-28T11:06:02.8999373Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 161000.12 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 + unit: USD + - name: 11111111-1111-1111-111111111111 + type: Microsoft.CostManagement/alerts + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111' + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2019-06-24T05:51:52.8713179Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2019-08-31T17:51:55.1808807Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 171000.32 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 11111111-1111-1111-111111111111_1_01 + unit: USD + EnrollmentAccountAlerts: + parameters: + api-version: 2018-08-01-preview + billingAccountId: '12345:6789' + enrollmentAccountId: '456' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456' + responses: + '200': + body: + nextLink: null + value: + - name: 00000000-0000-0000-0000-000000000000 + type: Microsoft.CostManagement/alerts + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000' + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2020-04-27T11:07:52.7143901Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2020-04-28T11:06:02.8999373Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 161000.12 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 + unit: USD + - name: 11111111-1111-1111-111111111111 + type: Microsoft.CostManagement/alerts + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111' + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2019-06-24T05:51:52.8713179Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2019-08-31T17:51:55.1808807Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 171000.32 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 11111111-1111-1111-111111111111_1_01 + unit: USD + InvoiceSectionAlerts: + parameters: + api-version: 2018-08-01-preview + billingAccountId: '12345:6789' + billingProfileId: '13579' + invoiceSectionId: '9876' + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' + responses: + '200': + body: + nextLink: null + value: + - name: 00000000-0000-0000-0000-000000000000 + type: Microsoft.CostManagement/alerts + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000' + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2020-04-27T11:07:52.7143901Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2020-04-28T11:06:02.8999373Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 161000.12 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 + unit: USD + - name: 11111111-1111-1111-111111111111 + type: Microsoft.CostManagement/alerts + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111' + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2019-06-24T05:51:52.8713179Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2019-08-31T17:51:55.1808807Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 171000.32 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 11111111-1111-1111-111111111111_1_01 + unit: USD + ResourceGroupAlerts: + parameters: + api-version: 2018-08-01-preview + resourceGroupName: ScreenSharingTest-peer + scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + nextLink: null + value: + - name: 00000000-0000-0000-0000-000000000000 + type: Microsoft.CostManagement/alerts + id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000 + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2020-04-27T11:07:52.7143901Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2020-04-28T11:06:02.8999373Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 161000.12 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 + unit: USD + - name: 11111111-1111-1111-111111111111 + type: Microsoft.CostManagement/alerts + id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111 + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2019-06-24T05:51:52.8713179Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2019-08-31T17:51:55.1808807Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 171000.32 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 11111111-1111-1111-111111111111_1_01 + unit: USD + SubscriptionAlerts: + parameters: + api-version: 2018-08-01-preview + scope: subscriptions/00000000-0000-0000-0000-000000000000 + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + nextLink: null + value: + - name: 00000000-0000-0000-0000-000000000000 + type: Microsoft.CostManagement/alerts + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000 + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2020-04-27T11:07:52.7143901Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2020-04-28T11:06:02.8999373Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 161000.12 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 + unit: USD + - name: 11111111-1111-1111-111111111111 + type: Microsoft.CostManagement/alerts + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111 + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2019-06-24T05:51:52.8713179Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2019-08-31T17:51:55.1808807Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 171000.32 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 11111111-1111-1111-111111111111_1_01 + unit: USD + language: + default: + name: List + description: Lists the alerts for scope defined. + protocol: {} + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - *ref_136 + - &ref_154 + schema: *ref_145 + implementation: Method + required: true + language: + default: + name: externalCloudProviderType + description: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + serializedName: externalCloudProviderType + protocol: + http: + in: path + - &ref_155 + schema: *ref_1 + implementation: Method + required: true + language: + default: + name: externalCloudProviderId + description: 'This can be ''{externalSubscriptionId}'' for linked account or ''{externalBillingAccountId}'' for consolidated account used with dimension/query operations.' + serializedName: externalCloudProviderId + protocol: + http: + in: path + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts' + method: get + uri: '{$host}' + signatureParameters: + - *ref_154 + - *ref_155 + responses: + - schema: *ref_153 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ExternalBillingAccountAlerts: + parameters: + api-version: 2018-08-01-preview + externalCloudProviderId: '100' + externalCloudProviderType: externalBillingAccounts + responses: + '200': + body: + nextLink: null + value: + - name: 00000000-0000-0000-0000-000000000000 + type: Microsoft.CostManagement/alerts + id: providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000 + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2020-04-27T11:07:52.7143901Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2020-04-28T11:06:02.8999373Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 161000.12 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 + unit: USD + - name: 11111111-1111-1111-111111111111 + type: Microsoft.CostManagement/alerts + id: providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111 + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2019-06-24T05:51:52.8713179Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2019-08-31T17:51:55.1808807Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 171000.32 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 11111111-1111-1111-111111111111_1_01 + unit: USD + ExternalSubscriptionAlerts: + parameters: + api-version: 2018-08-01-preview + externalCloudProviderId: '100' + externalCloudProviderType: externalSubscriptions + responses: + '200': + body: + nextLink: null + value: + - name: 00000000-0000-0000-0000-000000000000 + type: Microsoft.CostManagement/alerts + id: providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000 + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2020-04-27T11:07:52.7143901Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2020-04-28T11:06:02.8999373Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 161000.12 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 + unit: USD + - name: 11111111-1111-1111-111111111111 + type: Microsoft.CostManagement/alerts + id: providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111 + properties: + description: '' + closeTime: '0001-01-01T00:00:00' + costEntityId: budget1 + creationTime: '2019-06-24T05:51:52.8713179Z' + definition: + type: Budget + category: Cost + criteria: CostThresholdExceeded + modificationTime: '2019-08-31T17:51:55.1808807Z' + source: Preset + status: Active + statusModificationTime: '0001-01-01T00:00:00' + statusModificationUserName: null + details: + amount: 200000 + contactEmails: + - 1234@contoso.com + contactGroups: [] + contactRoles: [] + currentSpend: 171000.32 + meterFilter: [] + operator: GreaterThan + overridingAlert: null + periodStartDate: '2020-03-01T00:00:00Z' + resourceFilter: [] + resourceGroupFilter: [] + tagFilter: {} + threshold: 0.8 + timeGrainType: Quarterly + triggeredBy: 11111111-1111-1111-111111111111_1_01 + unit: USD + language: + default: + name: ListExternal + description: Lists the Alerts for external cloud provider type defined. + protocol: {} + language: + default: + name: Alerts + description: '' + protocol: {} +- $key: Forecast + operations: + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_158 + schema: *ref_1 + implementation: Method + language: + default: + name: filter + description: 'May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports ''eq'', ''lt'', ''gt'', ''le'', ''ge'', and ''and''. It does not currently support ''ne'', ''or'', or ''not''.' + serializedName: $filter + protocol: + http: + in: query + - *ref_136 + - &ref_159 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: + default: + name: scope + description: >- + The scope associated with forecast operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + serializedName: scope + protocol: + http: + in: path + requests: + - parameters: + - &ref_157 + schema: *ref_156 + implementation: Method + required: true + language: + default: + name: parameters + description: Parameters supplied to the CreateOrUpdate Forecast Config operation. + protocol: + http: + in: body + style: json + signatureParameters: + - *ref_157 + language: + default: + name: '' + description: '' + protocol: + http: + path: '/{scope}/providers/Microsoft.CostManagement/forecast' + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_158 + - *ref_159 + responses: + - schema: *ref_66 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + BillingAccountForecast: + parameters: + api-version: '2019-11-01' + billingAccountId: '12345:6789' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + includeActualCost: false + includeFreshPartialCost: false + timeframe: MonthToDate + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: CostStatus + type: String + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 2.10333307059661 + - JapanUnifia-Trial + - 20180331 + - Forecast + - USD + - - 218.68795741935486 + - RVIIOT-TRIAL + - 20180331 + - Forecast + - USD + - - 0.14384913581657052 + - VSTSHOL-1595322048000 + - 20180401 + - Forecast + - USD + - - 0.009865586851323632 + - gs-stms-dev + - 20180429 + - Forecast + - USD + BillingProfileForecast: + parameters: + api-version: '2019-11-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + includeActualCost: false + includeFreshPartialCost: false + timeframe: MonthToDate + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: CostStatus + type: String + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 2.10333307059661 + - JapanUnifia-Trial + - 20180331 + - Forecast + - USD + - - 218.68795741935486 + - RVIIOT-TRIAL + - 20180331 + - Forecast + - USD + - - 0.14384913581657052 + - VSTSHOL-1595322048000 + - 20180401 + - Forecast + - USD + - - 0.009865586851323632 + - gs-stms-dev + - 20180429 + - Forecast + - USD + DepartmentForecast: + parameters: + api-version: '2019-11-01' + billingAccountId: '12345:6789' + departmentId: '123' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + includeActualCost: false + includeFreshPartialCost: false + timeframe: MonthToDate + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: CostStatus + type: String + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 2.10333307059661 + - JapanUnifia-Trial + - 20180331 + - Forecast + - USD + - - 218.68795741935486 + - RVIIOT-TRIAL + - 20180331 + - Forecast + - USD + - - 0.14384913581657052 + - VSTSHOL-1595322048000 + - 20180401 + - Forecast + - USD + - - 0.009865586851323632 + - gs-stms-dev + - 20180429 + - Forecast + - USD + EnrollmentAccountForecast: + parameters: + api-version: '2019-11-01' + billingAccountId: '12345:6789' + enrollmentAccountId: '456' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + includeActualCost: false + includeFreshPartialCost: false + timeframe: MonthToDate + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: CostStatus + type: String + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 2.10333307059661 + - JapanUnifia-Trial + - 20180331 + - Forecast + - USD + - - 218.68795741935486 + - RVIIOT-TRIAL + - 20180331 + - Forecast + - USD + - - 0.14384913581657052 + - VSTSHOL-1595322048000 + - 20180401 + - Forecast + - USD + - - 0.009865586851323632 + - gs-stms-dev + - 20180429 + - Forecast + - USD + InvoiceSectionForecast: + parameters: + api-version: '2019-11-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + invoiceSectionId: '9876' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + includeActualCost: false + includeFreshPartialCost: false + timeframe: MonthToDate + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: CostStatus + type: String + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 2.10333307059661 + - JapanUnifia-Trial + - 20180331 + - Forecast + - USD + - - 218.68795741935486 + - RVIIOT-TRIAL + - 20180331 + - Forecast + - USD + - - 0.14384913581657052 + - VSTSHOL-1595322048000 + - 20180401 + - Forecast + - USD + - - 0.009865586851323632 + - gs-stms-dev + - 20180429 + - Forecast + - USD + ResourceGroupForecast: + parameters: + api-version: '2019-11-01' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + includeActualCost: false + includeFreshPartialCost: false + timeframe: MonthToDate + resourceGroupName: ScreenSharingTest-peer + scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + name: 55312978-ba1b-415c-9304-cfd9c43c0481 + type: microsoft.costmanagement/Query + id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000 + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: CostStatus + type: String + - name: Currency + type: String + nextLink: null + rows: + - - 2.10333307059661 + - ScreenSharingTest-peer + - 20180331 + - Forecast + - USD + SubscriptionForecast: + parameters: + api-version: '2019-11-01' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + includeActualCost: false + includeFreshPartialCost: false + timeframe: MonthToDate + scope: subscriptions/00000000-0000-0000-0000-000000000000 + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + name: 55312978-ba1b-415c-9304-cfd9c43c0481 + type: microsoft.costmanagement/Query + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000 + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: CostStatus + type: String + - name: Currency + type: String + nextLink: null + rows: + - - 2.10333307059661 + - ScreenSharingTest-peer + - 20180331 + - Forecast + - USD + - - 218.68795741935486 + - Ict_StratAndPlan_GoldSprova_Prod + - 20180331 + - Forecast + - USD + - - 0.14384913581657052 + - ssbciotelement01 + - 20180401 + - Forecast + - USD + - - 0.009865586851323632 + - ict_stratandplan_goldsprova_prod + - 20180429 + - Forecast + - USD + language: + default: + name: Usage + description: Lists the forecast charges for scope defined. + protocol: {} + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_161 + schema: *ref_1 + implementation: Method + language: + default: + name: filter + description: 'May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports ''eq'', ''lt'', ''gt'', ''le'', ''ge'', and ''and''. It does not currently support ''ne'', ''or'', or ''not''.' + serializedName: $filter + protocol: + http: + in: query + - *ref_136 + - &ref_162 + schema: *ref_145 + implementation: Method + required: true + language: + default: + name: externalCloudProviderType + description: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + serializedName: externalCloudProviderType + protocol: + http: + in: path + - &ref_163 + schema: *ref_1 + implementation: Method + required: true + language: + default: + name: externalCloudProviderId + description: 'This can be ''{externalSubscriptionId}'' for linked account or ''{externalBillingAccountId}'' for consolidated account used with dimension/query operations.' + serializedName: externalCloudProviderId + protocol: + http: + in: path + requests: + - parameters: + - &ref_160 + schema: *ref_156 + implementation: Method + required: true + language: + default: + name: parameters + description: Parameters supplied to the CreateOrUpdate Forecast Config operation. + protocol: + http: + in: body + style: json + signatureParameters: + - *ref_160 + language: + default: + name: '' + description: '' + protocol: + http: + path: '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/forecast' + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_161 + - *ref_162 + - *ref_163 + responses: + - schema: *ref_66 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ExternalBillingAccountForecast: + parameters: + api-version: '2019-11-01' + externalCloudProviderId: '100' + externalCloudProviderType: externalBillingAccounts + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + responses: + '200': + body: + name: 6dc7b06a-d90a-4df5-b655-ce6cf1c0814d + type: Microsoft.CostManagement/query + id: providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d + properties: + columns: + - name: PreTaxCost + type: Number + - name: CostStatus + type: String + - name: Currency + type: String + nextLink: null + rows: + - - 0 + - Forecast + - USD + - - 30.2572751438 + - Forecast + - USD + - - 0.07675760200000002 + - Forecast + - USD + - - 50.43096419040001 + - Forecast + - USD + ExternalSubscriptionForecast: + parameters: + api-version: '2019-11-01' + externalCloudProviderId: '100' + externalCloudProviderType: externalSubscriptions + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + responses: + '200': + body: + name: d99477af-7510-40ee-aca2-e59bdca0d10d + type: Microsoft.CostManagement/query + id: providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d + properties: + columns: + - name: PreTaxCost + type: Number + - name: UsageDate + type: Number + - name: CostStatus + type: String + - name: Currency + type: String + nextLink: null + rows: [] + language: + default: + name: ExternalCloudProviderUsage + description: Lists the forecast charges for external cloud provider type defined. + protocol: {} + language: + default: + name: Forecast + description: '' + protocol: {} +- $key: Query + operations: + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_165 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: + default: + name: scope + description: >- + The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + serializedName: scope + protocol: + http: + in: path + - *ref_136 + requests: + - parameters: + - &ref_164 + schema: *ref_101 + implementation: Method + required: true + language: + default: + name: parameters + description: Parameters supplied to the CreateOrUpdate Query Config operation. + protocol: + http: + in: body + style: json + signatureParameters: + - *ref_164 + language: + default: + name: '' + description: '' + protocol: + http: + path: '/{scope}/providers/Microsoft.CostManagement/query' + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_165 + responses: + - schema: *ref_66 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + BillingAccountQuery-Legacy: + parameters: + api-version: '2019-10-01' + billingAccountId: '70664866' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + scope: providers/Microsoft.Billing/billingAccounts/70664866 + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - 20180331 + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - 20180331 + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - 20180331 + - USD + - - 0.16677720329728665 + - gs-stms-dev + - 20180331 + - USD + BillingAccountQuery-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - 20180331 + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - 20180331 + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - 20180331 + - USD + - - 0.16677720329728665 + - gs-stms-dev + - 20180331 + - USD + BillingAccountQueryGrouping-Legacy: + parameters: + api-version: '2019-10-01' + billingAccountId: '70664866' + parameters: + type: Usage + dataset: + aggregation: + totalCost: + name: PreTaxCost + function: Sum + granularity: None + grouping: + - name: ResourceGroup + type: Dimension + timeframe: TheLastMonth + scope: providers/Microsoft.Billing/billingAccounts/70664866 + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - USD + BillingAccountQueryGrouping-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + parameters: + type: Usage + dataset: + aggregation: + totalCost: + name: PreTaxCost + function: Sum + granularity: None + grouping: + - name: ResourceGroup + type: Dimension + timeframe: TheLastMonth + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - USD + BillingProfileQuery-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - 20180331 + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - 20180331 + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - 20180331 + - USD + - - 0.16677720329728665 + - gs-stms-dev + - 20180331 + - USD + BillingProfileQueryGrouping-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + parameters: + type: Usage + dataset: + aggregation: + totalCost: + name: PreTaxCost + function: Sum + granularity: None + grouping: + - name: ResourceGroup + type: Dimension + timeframe: TheLastMonth + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - USD + CustomerQuery-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + customerId: '5678' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - 20180331 + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - 20180331 + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - 20180331 + - USD + - - 0.16677720329728665 + - gs-stms-dev + - 20180331 + - USD + CustomerQueryGrouping-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + customerId: '5678' + parameters: + type: Usage + dataset: + aggregation: + totalCost: + name: PreTaxCost + function: Sum + granularity: None + grouping: + - name: ResourceGroup + type: Dimension + timeframe: TheLastMonth + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - USD + DepartmentQuery-Legacy: + parameters: + api-version: '2019-10-01' + billingAccountId: '70664866' + departmentId: '123' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + scope: providers/Microsoft.Billing/billingAccounts/100/departments/123 + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - 20180331 + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - 20180331 + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - 20180331 + - USD + - - 0.16677720329728665 + - gs-stms-dev + - 20180331 + - USD + DepartmentQueryGrouping-Legacy: + parameters: + api-version: '2019-10-01' + billingAccountId: '70664866' + departmentId: '123' + parameters: + type: Usage + dataset: + aggregation: + totalCost: + name: PreTaxCost + function: Sum + granularity: None + grouping: + - name: ResourceGroup + type: Dimension + timeframe: TheLastMonth + scope: providers/Microsoft.Billing/billingAccounts/100/departments/123 + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - USD + EnrollmentAccountQuery-Legacy: + parameters: + api-version: '2019-10-01' + billingAccountId: '70664866' + enrollmentAccountId: '456' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - 20180331 + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - 20180331 + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - 20180331 + - USD + - - 0.16677720329728665 + - gs-stms-dev + - 20180331 + - USD + EnrollmentAccountQueryGrouping-Legacy: + parameters: + api-version: '2019-10-01' + billingAccountId: '70664866' + enrollmentAccountId: '456' + parameters: + type: Usage + dataset: + aggregation: + totalCost: + name: PreTaxCost + function: Sum + granularity: Daily + grouping: + - name: ResourceGroup + type: Dimension + timeframe: TheLastMonth + scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - 20180331 + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - 20180331 + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - 20180331 + - USD + InvoiceSectionQuery-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + invoiceSectionId: '9876' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - 20180331 + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - 20180331 + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - 20180331 + - USD + - - 0.16677720329728665 + - gs-stms-dev + - 20180331 + - USD + InvoiceSectionQueryGrouping-Modern: + parameters: + api-version: '2019-10-01' + billingAccountId: '12345:6789' + billingProfileId: '13579' + invoiceSectionId: '9876' + parameters: + type: Usage + dataset: + aggregation: + totalCost: + name: PreTaxCost + function: Sum + granularity: None + grouping: + - name: ResourceGroup + type: Dimension + timeframe: TheLastMonth + scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - USD + ManagementGroupQuery-Legacy: + parameters: + api-version: '2019-10-01' + managementGroupId: MyMgId + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + scope: providers/Microsoft.Management/managementGroups/MyMgId + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 19.545363672276512 + - JapanUnifia-Trial + - 20180331 + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - 20180331 + - USD + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - 20180331 + - USD + - - 0.16677720329728665 + - gs-stms-dev + - 20180331 + - USD + ManagementGroupQueryGrouping-Legacy: + parameters: + api-version: '2019-10-01' + managementGroupId: MyMgId + parameters: + type: Usage + dataset: + aggregation: + totalCost: + name: PreTaxCost + function: Sum + granularity: None + grouping: + - name: ResourceGroup + type: Dimension + timeframe: TheLastMonth + scope: providers/Microsoft.Management/managementGroups/MyMgId + responses: + '200': + body: + name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd + type: microsoft.costmanagement/Query + id: providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: 'https://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' + rows: + - - 20.35941656262545 + - VSTSHOL-1595322048000 + - 20180331 + - USD + - - 173.41979241290323 + - RVIIOT-TRIAL + - 20180331 + - USD + - - 19.545363672276512 + - JapanUnifia-Trial + - 20180331 + - USD + ResourceGroupQuery-Legacy: + parameters: + api-version: '2019-10-01' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + resourceGroupName: ScreenSharingTest-peer + scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer + subscriptionId: 55312978-ba1b-415c-9304-c4b9c43c0481 + responses: + '200': + body: + name: 9af9459d-441d-4055-9ed0-83d4c4a363fb + type: microsoft.costmanagement/Query + id: subscriptions/55312978-ba1b-415c-9304-c4b9c43c0481/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: null + rows: + - - 2.10333307059661 + - ScreenSharingTest-peer + - 20180417 + - USD + - - 20.10333307059661 + - ScreenSharingTest-peer + - 20180418 + - USD + ResourceGroupQueryGrouping-Legacy: + parameters: + api-version: '2019-10-01' + parameters: + type: Usage + dataset: + aggregation: + totalCost: + name: PreTaxCost + function: Sum + granularity: Daily + grouping: + - name: ResourceType + type: Dimension + timeframe: TheLastMonth + resourceGroupName: ScreenSharingTest-peer + scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + name: 9af9459d-441d-4055-9ed0-83d4c4a363fb + type: microsoft.costmanagement/Query + id: subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceType + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: null + rows: + - - 2.10333307059661 + - Microsoft.SqlServer + - 20180417 + - USD + - - 20.10333307059661 + - Microsoft.Compute + - 20180418 + - USD + SubscriptionQuery-Legacy: + parameters: + api-version: '2019-10-01' + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + scope: subscriptions/00000000-0000-0000-0000-000000000000 + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + name: 55312978-ba1b-415c-9304-cfd9c43c0481 + type: microsoft.costmanagement/Query + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000 + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: null + rows: + - - 2.10333307059661 + - ScreenSharingTest-peer + - 20180331 + - USD + - - 218.68795741935486 + - Ict_StratAndPlan_GoldSprova_Prod + - 20180331 + - USD + - - 0.14384913581657052 + - ssbciotelement01 + - 20180401 + - USD + - - 0.009865586851323632 + - ict_stratandplan_goldsprova_prod + - 20180429 + - USD + SubscriptionQueryGrouping-Legacy: + parameters: + api-version: '2019-10-01' + parameters: + type: Usage + dataset: + aggregation: + totalCost: + name: PreTaxCost + function: Sum + granularity: None + grouping: + - name: ResourceGroup + type: Dimension + timeframe: TheLastMonth + scope: subscriptions/00000000-0000-0000-0000-000000000000 + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + name: 55312978-ba1b-415c-9304-cfd9c43c0481 + type: microsoft.costmanagement/Query + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000 + properties: + columns: + - name: PreTaxCost + type: Number + - name: ResourceGroup + type: String + - name: Currency + type: String + nextLink: null + rows: + - - 0.009865586851323632 + - Ict_StratAndPlan_GoldSprova_Prod_0 + - USD + - - 218.68795741935486 + - Ict_StratAndPlan_GoldSprova_Prod_1 + - USD + - - 2.10333307059661 + - ScreenSharingTest-peer1 + - USD + - - 0.14384913581657052 + - Ssbciotelement01 + - USD + language: + default: + name: Usage + description: Query the usage data for scope defined. + protocol: {} + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_167 + schema: *ref_145 + implementation: Method + required: true + language: + default: + name: externalCloudProviderType + description: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + serializedName: externalCloudProviderType + protocol: + http: + in: path + - &ref_168 + schema: *ref_1 + implementation: Method + required: true + language: + default: + name: externalCloudProviderId + description: 'This can be ''{externalSubscriptionId}'' for linked account or ''{externalBillingAccountId}'' for consolidated account used with dimension/query operations.' + serializedName: externalCloudProviderId + protocol: + http: + in: path + - *ref_136 + requests: + - parameters: + - &ref_166 + schema: *ref_101 + implementation: Method + required: true + language: + default: + name: parameters + description: Parameters supplied to the CreateOrUpdate Query Config operation. + protocol: + http: + in: body + style: json + signatureParameters: + - *ref_166 + language: + default: + name: '' + description: '' + protocol: + http: + path: '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query' + method: post + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_167 + - *ref_168 + responses: + - schema: *ref_66 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + ExternalBillingAccountQueryList: + parameters: + api-version: '2019-11-01' + externalCloudProviderId: '100' + externalCloudProviderType: externalBillingAccounts + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + responses: + '200': + body: + name: 6dc7b06a-d90a-4df5-b655-ce6cf1c0814d + type: Microsoft.CostManagement/query + id: providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d + properties: + columns: + - name: PreTaxCost + type: Number + - name: ServiceName + type: String + - name: Currency + type: String + nextLink: null + rows: + - - 0 + - abc db + - USD + - - 30.2572751438 + - abc compute cloud + - USD + - - 0.07675760200000002 + - abc file system + - USD + - - 50.43096419040001 + - abc elasticache + - USD + ExternalSubscriptionsQuery: + parameters: + api-version: '2019-11-01' + externalCloudProviderId: '100' + externalCloudProviderType: externalSubscriptions + parameters: + type: Usage + dataset: + 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 + granularity: Daily + timeframe: MonthToDate + responses: + '200': + body: + name: d99477af-7510-40ee-aca2-e59bdca0d10d + type: Microsoft.CostManagement/query + id: providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d + properties: + columns: + - name: PreTaxCost + type: Number + - name: UsageDate + type: Number + - name: Currency + type: String + nextLink: null + rows: [] + language: + default: + name: UsageByExternalCloudProviderType + description: Query the usage data for external cloud provider type defined. + protocol: {} + language: + default: + name: Query + description: '' + protocol: {} +- $key: Exports + operations: + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_169 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: + default: + name: scope + description: >- + The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + serializedName: scope + protocol: + http: + in: path + - *ref_136 + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: '/{scope}/providers/Microsoft.CostManagement/exports' + method: get + uri: '{$host}' + signatureParameters: + - *ref_169 + responses: + - schema: *ref_170 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + BillingAccountExportList: + parameters: + api-version: '2019-10-01' + billingAccountId: '123456' + scope: providers/Microsoft.Billing/billingAccounts/123456 + responses: + '200': + body: + value: + - name: TestExport1 + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport1 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + - name: TestExport2 + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport2 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: In + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: Environment + type: Tag + timeframe: WeekToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + DepartmentExportList: + parameters: + api-version: '2019-10-01' + billingAccountId: '12' + departmentId: '1234' + scope: providers/Microsoft.Billing/billingAccounts/12/departments/123 + responses: + '200': + body: + value: + - name: TestExport1 + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport1 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + - name: TestExport2 + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport2 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: In + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: Environment + type: Tag + timeframe: WeekToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + EnrollmentAccountExportList: + parameters: + api-version: '2019-10-01' + billingAccountId: '100' + enrollmentAccountId: '456' + scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 + responses: + '200': + body: + value: + - name: TestExport1 + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport1 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + - name: TestExport2 + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport2 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: In + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: Environment + type: Tag + timeframe: WeekToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + ManagementGroupExportList: + parameters: + api-version: '2019-10-01' + managementGroupId: TestMG + scope: providers/Microsoft.Management/managementGroups/TestMG + responses: + '200': + body: + value: + - name: TestExport1 + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport1 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + - name: TestExport2 + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport2 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: In + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: Environment + type: Tag + timeframe: WeekToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + ResourceGroupExportList: + parameters: + api-version: '2019-10-01' + resourceGroupName: MYDEVTESTRG + scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + value: + - name: TestExport1 + type: Microsoft.CostManagement/exports + id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport1 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + - name: TestExport2 + type: Microsoft.CostManagement/exports + id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport2 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: In + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: Environment + type: Tag + timeframe: WeekToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + SubscriptionExportList: + parameters: + api-version: '2019-10-01' + scope: subscriptions/00000000-0000-0000-0000-000000000000 + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + value: + - name: TestExport1 + type: Microsoft.CostManagement/exports + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport1 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + - name: TestExport2 + type: Microsoft.CostManagement/exports + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport2 + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: In + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: Environment + type: Tag + timeframe: WeekToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + language: + default: + name: List + description: The operation to list all exports at the given scope. + protocol: {} + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_171 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: + default: + name: scope + description: >- + The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + serializedName: scope + protocol: + http: + in: path + - *ref_136 + - &ref_172 + schema: *ref_1 + implementation: Method + required: true + language: + default: + name: exportName + description: Export Name. + serializedName: exportName + protocol: + http: + in: path + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}' + method: get + uri: '{$host}' + signatureParameters: + - *ref_171 + - *ref_172 + responses: + - schema: *ref_67 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + BillingAccountExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '123456' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/123456 + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: 'providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport' + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - UsageDate + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: Contains + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + DepartmentExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '12' + departmentId: '1234' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/12/departments/1234 + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - UsageDate + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: Contains + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + EnrollmentAccountExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '100' + enrollmentAccountId: '456' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - UsageDate + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: Contains + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + ManagementGroupExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + managementGroupId: TestMG + scope: providers/Microsoft.Management/managementGroups/TestMG + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - UsageDate + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: Contains + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + ResourceGroupExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + resourceGroupName: MYDEVTESTRG + scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - UsageDate + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: Contains + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + SubscriptionExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + scope: subscriptions/00000000-0000-0000-0000-000000000000 + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + usageSum: + name: UsageQuantity + function: Sum + configuration: + columns: + - UsageDate + - MeterId + - InstanceId + - ResourceLocation + - UsageQuantity + filter: + and: + - dimension: + name: ResourceLocation + operator: In + values: + - East US + - West Europe + - tag: + name: Environment + operator: Contains + values: + - UAT + - Prod + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + language: + default: + name: Get + description: The operation to get the export for the defined scope by export name. + protocol: {} + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_174 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: + default: + name: scope + description: >- + The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + serializedName: scope + protocol: + http: + in: path + - *ref_136 + - &ref_175 + schema: *ref_1 + implementation: Method + required: true + language: + default: + name: exportName + description: Export Name. + serializedName: exportName + protocol: + http: + in: path + requests: + - parameters: + - &ref_173 + schema: *ref_67 + implementation: Method + required: true + language: + default: + name: parameters + description: Parameters supplied to the CreateOrUpdate Export operation. + protocol: + http: + in: body + style: json + signatureParameters: + - *ref_173 + language: + default: + name: '' + description: '' + protocol: + http: + path: '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}' + method: put + knownMediaType: json + mediaTypes: + - application/json + uri: '{$host}' + signatureParameters: + - *ref_174 + - *ref_175 + responses: + - schema: *ref_67 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + - schema: *ref_67 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '201' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + BillingAccountCreateOrUpdateExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '123456' + exportName: TestExport + parameters: + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + scope: providers/Microsoft.Billing/billingAccounts/123456 + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + '201': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + DepartmentCreateOrUpdateExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '12' + departmentId: '1234' + exportName: TestExport + parameters: + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + scope: providers/Microsoft.Billing/billingAccounts/12/departments/1234 + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + '201': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + EnrollmentAccountCreateOrUpdateExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '100' + enrollmentAccountId: '456' + exportName: TestExport + parameters: + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + '201': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + ManagementGroupCreateOrUpdateExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + managementGroupId: TestMG + parameters: + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + scope: providers/Microsoft.Management/managementGroups/TestMG + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + '201': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + ResourceGroupCreateOrUpdateExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + parameters: + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + resourceGroupName: MYDEVTESTRG + scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + '201': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + SubscriptionCreateOrUpdateExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + parameters: + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + scope: subscriptions/00000000-0000-0000-0000-000000000000 + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + '201': + body: + name: TestExport + type: Microsoft.CostManagement/exports + id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport + properties: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + - name: Environment + type: Tag + timeframe: MonthToDate + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ad-hoc + schedule: + recurrence: Weekly + recurrencePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + status: Active + language: + default: + name: 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. + protocol: {} + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_176 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: + default: + name: scope + description: >- + The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + serializedName: scope + protocol: + http: + in: path + - *ref_136 + - &ref_177 + schema: *ref_1 + implementation: Method + required: true + language: + default: + name: exportName + description: Export Name. + serializedName: exportName + protocol: + http: + in: path + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}' + method: delete + uri: '{$host}' + signatureParameters: + - *ref_176 + - *ref_177 + responses: + - language: + default: + name: '' + description: '' + protocol: + http: + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + BillingAccountDeleteExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '123456' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/123456 + responses: + '200': {} + DepartmentDeleteExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '12' + departmentId: '1234' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/12/departments/1234 + responses: + '200': {} + EnrollmentAccountDeleteExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '100' + enrollmentAccountId: '456' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 + responses: + '200': {} + ManagementGroupDeleteExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + managementGroupId: TestMG + scope: providers/Microsoft.Management/managementGroups/TestMG + responses: + '200': {} + ResourceGroupDeleteExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + resourceGroupName: MYDEVTESTRG + scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': {} + SubscriptionDeleteExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + scope: subscriptions/00000000-0000-0000-0000-000000000000 + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': {} + language: + default: + name: Delete + description: The operation to delete a export. + protocol: {} + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_178 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: + default: + name: scope + description: >- + The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + serializedName: scope + protocol: + http: + in: path + - *ref_136 + - &ref_179 + schema: *ref_1 + implementation: Method + required: true + language: + default: + name: exportName + description: Export Name. + serializedName: exportName + protocol: + http: + in: path + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run' + method: post + uri: '{$host}' + signatureParameters: + - *ref_178 + - *ref_179 + responses: + - language: + default: + name: '' + description: '' + protocol: + http: + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + BillingAccountExecuteExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '123456' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/123456 + responses: + '200': {} + DepartmentExecuteExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '12' + departmentId: '1234' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/12/departments/1234 + responses: + '200': {} + EnrollmentAccountExecuteExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '100' + enrollmentAccountId: '456' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 + responses: + '200': {} + ManagementGroupExecuteExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + managementGroupId: TestMG + scope: providers/Microsoft.Management/managementGroups/TestMG + responses: + '200': {} + ResourceGroupExecuteExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + resourceGroupName: MYDEVTESTRG + scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': {} + SubscriptionExecuteExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + scope: subscriptions/00000000-0000-0000-0000-000000000000 + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': {} + language: + default: + name: Execute + description: The operation to execute a export. + protocol: {} + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - &ref_180 + schema: *ref_1 + implementation: Method + required: true + extensions: + x-ms-skip-url-encoding: true + language: + default: + name: scope + description: >- + The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and + '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + serializedName: scope + protocol: + http: + in: path + - *ref_136 + - &ref_181 + schema: *ref_1 + implementation: Method + required: true + language: + default: + name: exportName + description: Export Name. + serializedName: exportName + protocol: + http: + in: path + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory' + method: get + uri: '{$host}' + signatureParameters: + - *ref_180 + - *ref_181 + responses: + - schema: *ref_182 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-examples: + BillingAccountExecutionHistoryExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '123456' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/123456 + responses: + '200': + body: + value: + - id: 'providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100' + properties: + executionType: OnDemand + fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv + processingEndTime: '2018-08-03T07:52:28.0373318Z' + processingStartTime: '2018-08-03T07:52:16.9123797Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: john.doe@gmail.com + submittedTime: '2018-08-03T07:52:15.6016681Z' + - id: 'providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef' + properties: + executionType: Scheduled + fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv + processingEndTime: '2018-08-03T09:04:19.7223808Z' + processingStartTime: '2018-08-03T09:03:58.5710244Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: System + submittedTime: '2018-08-03T09:03:58.5710244Z' + DepartmentExecutionHistoryExport: + parameters: + api-version: '2019-10-01' + billingAccountId: '12' + departmentId: '1234' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/12/departments/1234 + responses: + '200': + body: + value: + - id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100 + properties: + executionType: OnDemand + fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv + processingEndTime: '2018-08-03T07:52:28.0373318Z' + processingStartTime: '2018-08-03T07:52:16.9123797Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: john.doe@gmail.com + submittedTime: '2018-08-03T07:52:15.6016681Z' + - id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef + properties: + executionType: Scheduled + fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv + processingEndTime: '2018-08-03T09:04:19.7223808Z' + processingStartTime: '2018-08-03T09:03:58.5710244Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: System + submittedTime: '2018-08-03T09:03:58.5710244Z' + EnrollmentAccountExecutionHistoryExport: + parameters: + api-version: '2019-01-01' + billingAccountId: '100' + enrollmentAccountId: '456' + exportName: TestExport + scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 + responses: + '200': + body: + value: + - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100 + properties: + executionType: OnDemand + fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv + processingEndTime: '2018-08-03T07:52:28.0373318Z' + processingStartTime: '2018-08-03T07:52:16.9123797Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: john.doe@gmail.com + submittedTime: '2018-08-03T07:52:15.6016681Z' + - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef + properties: + executionType: Scheduled + fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv + processingEndTime: '2018-08-03T09:04:19.7223808Z' + processingStartTime: '2018-08-03T09:03:58.5710244Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: System + submittedTime: '2018-08-03T09:03:58.5710244Z' + ManagementGroupExecutionHistoryExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + managementGroupId: TestMG + scope: providers/Microsoft.Management/managementGroups/TestMG + responses: + '200': + body: + value: + - id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100 + properties: + executionType: OnDemand + fileName: ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv + processingEndTime: '2018-08-03T07:52:28.0373318Z' + processingStartTime: '2018-08-03T07:52:16.9123797Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: john.doe@gmail.com + submittedTime: '2018-08-03T07:52:15.6016681Z' + - id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef + properties: + executionType: Scheduled + fileName: ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv + processingEndTime: '2018-08-03T09:04:19.7223808Z' + processingStartTime: '2018-08-03T09:03:58.5710244Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: System + submittedTime: '2018-08-03T09:03:58.5710244Z' + ResourceGroupExecutionHistoryExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + resourceGroupName: MYDEVTESTRG + scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + value: + - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100 + properties: + executionType: OnDemand + fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv + processingEndTime: '2018-08-03T07:52:28.0373318Z' + processingStartTime: '2018-08-03T07:52:16.9123797Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: john.doe@gmail.com + submittedTime: '2018-08-03T07:52:15.6016681Z' + - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef + properties: + executionType: Scheduled + fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv + processingEndTime: '2018-08-03T09:04:19.7223808Z' + processingStartTime: '2018-08-03T09:03:58.5710244Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: System + submittedTime: '2018-08-03T09:03:58.5710244Z' + SubscriptionExecutionHistoryExport: + parameters: + api-version: '2019-10-01' + exportName: TestExport + scope: subscriptions/00000000-0000-0000-0000-000000000000 + subscriptionId: 00000000-0000-0000-0000-000000000000 + responses: + '200': + body: + value: + - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100 + properties: + executionType: OnDemand + fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv + processingEndTime: '2018-08-03T07:52:28.0373318Z' + processingStartTime: '2018-08-03T07:52:16.9123797Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: john.doe@gmail.com + submittedTime: '2018-08-03T07:52:15.6016681Z' + - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef + properties: + executionType: Scheduled + fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv + processingEndTime: '2018-08-03T09:04:19.7223808Z' + processingStartTime: '2018-08-03T09:03:58.5710244Z' + runSettings: + format: Csv + definition: + type: Usage + dataset: + aggregation: + costSum: + name: PreTaxCost + function: Sum + configuration: + columns: + - Date + - MeterId + - InstanceId + - ResourceLocation + - PreTaxCost + 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 + granularity: Daily + grouping: + - name: SubscriptionName + type: Dimension + timePeriod: + from: '2018-06-01T00:00:00Z' + to: '2018-10-31T00:00:00Z' + timeframe: Custom + deliveryInfo: + destination: + container: exports + resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 + rootFolderPath: ScheduledTestsForJohnDoe + status: Completed + submittedBy: System + submittedTime: '2018-08-03T09:03:58.5710244Z' + language: + default: + name: GetExecutionHistory + description: The operation to get the execution history of an export for the defined scope by export name. + protocol: {} + language: + default: + name: Exports + description: '' + protocol: {} +- $key: Operations + operations: + - apiVersions: + - version: '2019-11-01' + parameters: + - *ref_135 + - *ref_136 + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: /providers/Microsoft.CostManagement/operations + method: get + uri: '{$host}' + signatureParameters: [] + responses: + - schema: *ref_183 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - '200' + exceptions: + - schema: *ref_144 + language: + default: + name: '' + description: '' + protocol: + http: + knownMediaType: json + mediaTypes: + - application/json + statusCodes: + - default + extensions: + x-ms-pageable: + nextLinkName: nextLink + language: + default: + name: List + description: Lists all of the available cost management REST API operations. + paging: + nextLinkName: nextLink + protocol: {} + language: + default: + name: Operations + description: '' + protocol: {} +security: + authenticationRequired: false +language: + default: + name: CostManagementClient + description: '' +protocol: + http: {} diff --git a/specification/cost-management/resource-manager/readme.md b/specification/cost-management/resource-manager/readme.md index 321648a743fb..12dadfcd7709 100644 --- a/specification/cost-management/resource-manager/readme.md +++ b/specification/cost-management/resource-manager/readme.md @@ -27,7 +27,7 @@ These are the global settings for the Cost Management API. ``` yaml openapi-type: arm tag: package-2019-11 -azure-validator: true +azure-validator: false ``` --- From d422c30312f83b5bc7b90dedd9a4bb256b4d357b Mon Sep 17 00:00:00 2001 From: qiaozha Date: Fri, 8 May 2020 17:35:00 +0800 Subject: [PATCH 4/4] remove useless file --- .../generated/code-model-v4-no-tags.yaml | 10692 ---------------- 1 file changed, 10692 deletions(-) delete mode 100644 specification/cost-management/resource-manager/generated/code-model-v4-no-tags.yaml diff --git a/specification/cost-management/resource-manager/generated/code-model-v4-no-tags.yaml b/specification/cost-management/resource-manager/generated/code-model-v4-no-tags.yaml deleted file mode 100644 index c6a0ba697e7c..000000000000 --- a/specification/cost-management/resource-manager/generated/code-model-v4-no-tags.yaml +++ /dev/null @@ -1,10692 +0,0 @@ -info: - title: CostManagementClient -schemas: - booleans: - - &ref_74 - type: boolean - language: - default: - name: Boolean - description: Filter enabled. - protocol: {} - - &ref_75 - type: boolean - language: - default: - name: Boolean - description: Grouping enabled. - protocol: {} - - &ref_94 - type: boolean - language: - default: - name: Boolean - description: a boolean determining if actualCost will be included - protocol: {} - - &ref_95 - type: boolean - language: - default: - name: Boolean - description: a boolean determining if FreshPartialCost will be included - protocol: {} - numbers: - - &ref_137 - type: integer - apiVersions: - - version: '2019-11-01' - maximum: 1000 - minimum: 1 - precision: 32 - language: - default: - name: Integer - description: '' - protocol: {} - - &ref_77 - type: integer - precision: 32 - language: - default: - name: Integer - description: Total number of data for the dimension. - protocol: {} - - &ref_15 - type: number - precision: 128 - language: - default: - name: Number - description: notification threshold percentage as a decimal which activated this alert - protocol: {} - - &ref_17 - type: number - precision: 128 - language: - default: - name: Number - description: budget threshold amount - protocol: {} - - &ref_19 - type: number - precision: 128 - language: - default: - name: Number - description: current spend - protocol: {} - strings: - - &ref_0 - type: string - language: - default: - name: String - description: simple string - protocol: {} - - &ref_1 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: String - description: '' - protocol: {} - - &ref_69 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: ResourceId - description: Resource Id. - protocol: {} - - &ref_70 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: ResourceName - description: Resource name. - protocol: {} - - &ref_71 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: ResourceType - description: Resource type. - protocol: {} - - &ref_73 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: DimensionPropertiesDescription - description: Dimension description. - protocol: {} - - &ref_76 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: DimensionPropertiesDataItem - description: Dimension data item. - protocol: {} - - &ref_78 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: DimensionPropertiesCategory - description: Dimension category. - protocol: {} - - &ref_81 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: DimensionPropertiesNextLink - description: The link (url) to the next page of results. - protocol: {} - - &ref_83 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: ErrorDetailsCode - description: Error code. - protocol: {} - - &ref_84 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: ErrorDetailsMessage - description: Error message indicating why the operation failed. - protocol: {} - - &ref_6 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDefinitionType - description: type of alert - protocol: {} - - &ref_7 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDefinitionCategory - description: Alert category - protocol: {} - - &ref_8 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDefinitionCriteria - description: Criteria that triggered alert - protocol: {} - - &ref_9 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDescription - description: Alert description - protocol: {} - - &ref_10 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesSource - description: Source of alert - protocol: {} - - &ref_11 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDetailsTimeGrainType - description: Type of timegrain cadence - protocol: {} - - &ref_12 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDetailsPeriodStartDate - description: datetime of periodStartDate - protocol: {} - - &ref_13 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDetailsTriggeredBy - description: notificationId that triggered this alert - protocol: {} - - &ref_16 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDetailsOperator - description: operator used to compare currentSpend with amount - protocol: {} - - &ref_18 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDetailsUnit - description: unit of currency being used - protocol: {} - - &ref_20 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDetailsContactEmailsItem - description: '' - protocol: {} - - &ref_21 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDetailsContactGroupsItem - description: '' - protocol: {} - - &ref_22 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDetailsContactRolesItem - description: '' - protocol: {} - - &ref_23 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesDetailsOverridingAlert - description: overriding alert - protocol: {} - - &ref_24 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesCostEntityId - description: related budget - protocol: {} - - &ref_25 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesStatus - description: alert status - protocol: {} - - &ref_26 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesCreationTime - description: dateTime in which alert was created - protocol: {} - - &ref_27 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesCloseTime - description: dateTime in which alert was closed - protocol: {} - - &ref_28 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesModificationTime - description: dateTime in which alert was last modified - protocol: {} - - &ref_29 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesStatusModificationUserName - description: '' - protocol: {} - - &ref_30 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertPropertiesStatusModificationTime - description: dateTime in which the alert status was last modified - protocol: {} - - &ref_86 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: AlertsResultNextLink - description: URL to get the next set of alerts results if there are any. - protocol: {} - - &ref_44 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: QueryDatasetConfigurationColumnsItem - description: '' - protocol: {} - - &ref_2 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: QueryAggregationName - description: The name of the column to aggregate. - protocol: {} - - &ref_47 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: QueryGroupingName - description: The name of the column to group. - protocol: {} - - &ref_49 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: QueryComparisonExpressionName - description: The name of the column to use in comparison. - protocol: {} - - &ref_51 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: QueryComparisonExpressionValuesItem - description: '' - protocol: {} - - &ref_31 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: QueryPropertiesNextLink - description: The link (url) to the next page of results. - protocol: {} - - &ref_32 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: QueryColumnName - description: The name of column. - protocol: {} - - &ref_33 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: QueryColumnType - description: The type of column. - protocol: {} - - &ref_36 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: ExportDeliveryDestinationResourceId - description: The resource id of the storage account where exports will be delivered. - protocol: {} - - &ref_37 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: ExportDeliveryDestinationContainer - description: The name of the container where exports will be uploaded. - protocol: {} - - &ref_38 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: ExportDeliveryDestinationRootFolderPath - description: The name of the directory where exports will be uploaded. - protocol: {} - - &ref_60 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: ExportExecutionPropertiesSubmittedBy - 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.' - protocol: {} - - &ref_64 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: ExportExecutionPropertiesFileName - description: The name of the file export got written to. - protocol: {} - - &ref_107 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: OperationName - description: 'Operation name: {provider}/{resource}/{operation}.' - protocol: {} - - &ref_108 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: OperationDisplayProvider - description: 'Service provider: Microsoft.CostManagement.' - protocol: {} - - &ref_109 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: OperationDisplayResource - description: 'Resource on which the operation is performed: Dimensions, Query.' - protocol: {} - - &ref_110 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: OperationDisplayOperation - description: 'Operation type: Read, write, delete, etc.' - protocol: {} - - &ref_111 - type: string - apiVersions: - - version: '2019-11-01' - language: - default: - name: OperationListResultNextLink - description: URL to get the next set of operation list results if there are any. - protocol: {} - choices: - - &ref_145 - choices: - - value: externalSubscriptions - language: - default: - name: ExternalSubscriptions - description: '' - - value: externalBillingAccounts - language: - default: - name: ExternalBillingAccounts - description: '' - type: choice - apiVersions: - - version: '2019-11-01' - choiceType: *ref_0 - language: - default: - name: ExternalCloudProviderType - description: '' - protocol: {} - - &ref_90 - choices: - - value: Usage - language: - default: - name: Usage - description: '' - - value: ActualCost - language: - default: - name: ActualCost - description: '' - - value: AmortizedCost - language: - default: - name: AmortizedCost - description: '' - type: choice - apiVersions: - - version: '2019-11-01' - choiceType: *ref_0 - language: - default: - name: ForecastType - description: The type of the forecast. - protocol: {} - - &ref_91 - choices: - - value: MonthToDate - language: - default: - name: MonthToDate - description: '' - - value: BillingMonthToDate - language: - default: - name: BillingMonthToDate - description: '' - - value: TheLastMonth - language: - default: - name: TheLastMonth - description: '' - - value: TheLastBillingMonth - language: - default: - name: TheLastBillingMonth - description: '' - - value: WeekToDate - language: - default: - name: WeekToDate - description: '' - - value: Custom - language: - default: - name: Custom - description: '' - type: choice - apiVersions: - - version: '2019-11-01' - choiceType: *ref_0 - language: - default: - name: ForecastTimeframeType - description: 'The time frame for pulling data for the forecast. If custom, then a specific time period must be provided.' - protocol: {} - - &ref_46 - choices: - - value: Tag - language: - default: - name: Tag - description: '' - - value: Dimension - language: - default: - name: Dimension - description: '' - type: choice - apiVersions: - - version: '2019-11-01' - choiceType: *ref_0 - language: - default: - name: QueryColumnType - description: The type of the column in the export. - protocol: {} - - &ref_39 - choices: - - value: Usage - language: - default: - name: Usage - description: '' - - value: ActualCost - language: - default: - name: ActualCost - description: '' - - value: AmortizedCost - language: - default: - name: AmortizedCost - description: '' - type: choice - apiVersions: - - version: '2019-11-01' - choiceType: *ref_0 - language: - default: - name: ExportType - description: The type of the query. - protocol: {} - - &ref_40 - choices: - - value: MonthToDate - language: - default: - name: MonthToDate - description: '' - - value: BillingMonthToDate - language: - default: - name: BillingMonthToDate - description: '' - - value: TheLastMonth - language: - default: - name: TheLastMonth - description: '' - - value: TheLastBillingMonth - language: - default: - name: TheLastBillingMonth - description: '' - - value: WeekToDate - language: - default: - name: WeekToDate - description: '' - - value: Custom - language: - default: - name: Custom - description: '' - type: choice - apiVersions: - - version: '2019-11-01' - choiceType: *ref_0 - language: - default: - name: TimeframeType - description: 'The time frame for pulling data for the query. If custom, then a specific time period must be provided.' - protocol: {} - - &ref_54 - choices: - - value: Active - language: - default: - name: Active - description: '' - - value: Inactive - language: - default: - name: Inactive - description: '' - type: choice - apiVersions: - - version: '2019-11-01' - choiceType: *ref_0 - language: - default: - name: StatusType - description: 'The status of the schedule. Whether active or not. If inactive, the export''s scheduled execution is paused.' - protocol: {} - - &ref_55 - choices: - - value: Daily - language: - default: - name: Daily - description: '' - - value: Weekly - language: - default: - name: Weekly - description: '' - - value: Monthly - language: - default: - name: Monthly - description: '' - - value: Annually - language: - default: - name: Annually - description: '' - type: choice - apiVersions: - - version: '2019-11-01' - choiceType: *ref_0 - language: - default: - name: RecurrenceType - description: The schedule recurrence. - protocol: {} - - &ref_58 - choices: - - value: OnDemand - language: - default: - name: OnDemand - description: '' - - value: Scheduled - language: - default: - name: Scheduled - description: '' - type: choice - apiVersions: - - version: '2019-11-01' - choiceType: *ref_0 - language: - default: - name: ExecutionType - description: The type of the export execution. - protocol: {} - - &ref_59 - choices: - - value: Queued - language: - default: - name: Queued - description: '' - - value: InProgress - language: - default: - name: InProgress - description: '' - - value: Completed - language: - default: - name: Completed - description: '' - - value: Failed - language: - default: - name: Failed - description: '' - - value: Timeout - language: - default: - name: Timeout - description: '' - - value: NewDataNotAvailable - language: - default: - name: NewDataNotAvailable - description: '' - - value: DataNotAvailable - language: - default: - name: DataNotAvailable - description: '' - type: choice - apiVersions: - - version: '2019-11-01' - choiceType: *ref_0 - language: - default: - name: ExecutionStatus - description: The status of the export execution. - protocol: {} - constants: - - &ref_134 - type: constant - value: - value: '2019-11-01' - valueType: *ref_0 - language: - default: - name: ApiVersion20191101 - description: Api Version (2019-11-01) - protocol: {} - - &ref_43 - type: constant - apiVersions: - - version: '2019-11-01' - value: - value: Daily - valueType: *ref_0 - language: - default: - name: GranularityType - description: The granularity of rows in the query. - protocol: {} - - &ref_3 - type: constant - apiVersions: - - version: '2019-11-01' - value: - value: Sum - valueType: *ref_0 - language: - default: - name: FunctionType - description: The name of the aggregation function to use. - protocol: {} - - &ref_50 - type: constant - apiVersions: - - version: '2019-11-01' - value: - value: In - valueType: *ref_0 - language: - default: - name: OperatorType - description: The operator to use for comparison. - protocol: {} - - &ref_35 - type: constant - apiVersions: - - version: '2019-11-01' - value: - value: Csv - valueType: *ref_0 - language: - default: - name: FormatType - description: The format of the export being delivered. - protocol: {} - dictionaries: - - &ref_72 - type: dictionary - elementType: *ref_1 - language: - default: - name: ResourceTags - description: Resource tags. - protocol: {} - - &ref_45 - type: dictionary - elementType: &ref_97 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_2 - required: true - serializedName: name - language: - default: - name: name - description: The name of the column to aggregate. - protocol: {} - - schema: *ref_3 - required: true - serializedName: function - language: - default: - name: function - description: The name of the aggregation function to use. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: QueryAggregation - description: The aggregation expression to be used in the query. - namespace: '' - protocol: {} - language: - default: - name: QueryDatasetAggregation - 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. - protocol: {} - any: - - &ref_14 - type: any - language: - default: - name: any - description: Any object - protocol: {} - dateTimes: - - &ref_79 - type: date-time - format: date-time - apiVersions: - - version: '2019-11-01' - language: - default: - name: DimensionPropertiesUsageStart - description: Usage start. - protocol: {} - - &ref_80 - type: date-time - format: date-time - apiVersions: - - version: '2019-11-01' - language: - default: - name: DimensionPropertiesUsageEnd - description: Usage end. - protocol: {} - - &ref_41 - type: date-time - format: date-time - apiVersions: - - version: '2019-11-01' - language: - default: - name: QueryTimePeriodFrom - description: The start date to pull data from. - protocol: {} - - &ref_42 - type: date-time - format: date-time - apiVersions: - - version: '2019-11-01' - language: - default: - name: QueryTimePeriodTo - description: The end date to pull data to. - protocol: {} - - &ref_56 - type: date-time - format: date-time - apiVersions: - - version: '2019-11-01' - language: - default: - name: ExportRecurrencePeriodFrom - description: The start date of recurrence. - protocol: {} - - &ref_57 - type: date-time - format: date-time - apiVersions: - - version: '2019-11-01' - language: - default: - name: ExportRecurrencePeriodTo - description: The end date of recurrence. - protocol: {} - - &ref_61 - type: date-time - format: date-time - apiVersions: - - version: '2019-11-01' - language: - default: - name: ExportExecutionPropertiesSubmittedTime - description: The time when export was queued to be executed. - protocol: {} - - &ref_62 - type: date-time - format: date-time - apiVersions: - - version: '2019-11-01' - language: - default: - name: ExportExecutionPropertiesProcessingStartTime - description: The time when export was picked up to be executed. - protocol: {} - - &ref_63 - type: date-time - format: date-time - apiVersions: - - version: '2019-11-01' - language: - default: - name: ExportExecutionPropertiesProcessingEndTime - description: The time when export execution finished. - protocol: {} - objects: - - &ref_143 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: &ref_115 - type: array - apiVersions: - - version: '2019-11-01' - elementType: &ref_4 - type: object - apiVersions: - - version: '2019-11-01' - parents: - all: - - &ref_5 - type: object - apiVersions: - - version: '2019-11-01' - children: - all: - - *ref_4 - - &ref_65 - type: object - apiVersions: - - version: '2019-11-01' - parents: - all: - - *ref_5 - immediate: - - *ref_5 - properties: - - schema: &ref_87 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: &ref_88 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_6 - serializedName: type - language: - default: - name: type - description: type of alert - protocol: {} - - schema: *ref_7 - serializedName: category - language: - default: - name: category - description: Alert category - protocol: {} - - schema: *ref_8 - serializedName: criteria - language: - default: - name: criteria - description: Criteria that triggered alert - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: AlertPropertiesDefinition - description: defines the type of alert - namespace: '' - protocol: {} - serializedName: definition - language: - default: - name: definition - description: defines the type of alert - protocol: {} - - schema: *ref_9 - serializedName: description - language: - default: - name: description - description: Alert description - protocol: {} - - schema: *ref_10 - serializedName: source - language: - default: - name: source - description: Source of alert - protocol: {} - - schema: &ref_89 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_11 - serializedName: timeGrainType - language: - default: - name: timeGrainType - description: Type of timegrain cadence - protocol: {} - - schema: *ref_12 - serializedName: periodStartDate - language: - default: - name: periodStartDate - description: datetime of periodStartDate - protocol: {} - - schema: *ref_13 - serializedName: triggeredBy - language: - default: - name: triggeredBy - description: notificationId that triggered this alert - protocol: {} - - schema: &ref_116 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_14 - language: - default: - name: AlertPropertiesDetailsResourceGroupFilter - description: array of resourceGroups to filter by - protocol: {} - serializedName: resourceGroupFilter - language: - default: - name: resourceGroupFilter - description: array of resourceGroups to filter by - protocol: {} - - schema: &ref_117 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_14 - language: - default: - name: AlertPropertiesDetailsResourceFilter - description: array of resources to filter by - protocol: {} - serializedName: resourceFilter - language: - default: - name: resourceFilter - description: array of resources to filter by - protocol: {} - - schema: &ref_118 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_14 - language: - default: - name: AlertPropertiesDetailsMeterFilter - description: array of meters to filter by - protocol: {} - serializedName: meterFilter - language: - default: - name: meterFilter - description: array of meters to filter by - protocol: {} - - schema: *ref_14 - serializedName: tagFilter - language: - default: - name: tagFilter - description: tags to filter by - protocol: {} - - schema: *ref_15 - serializedName: threshold - language: - default: - name: threshold - description: notification threshold percentage as a decimal which activated this alert - protocol: {} - - schema: *ref_16 - serializedName: operator - language: - default: - name: operator - description: operator used to compare currentSpend with amount - protocol: {} - - schema: *ref_17 - serializedName: amount - language: - default: - name: amount - description: budget threshold amount - protocol: {} - - schema: *ref_18 - serializedName: unit - language: - default: - name: unit - description: unit of currency being used - protocol: {} - - schema: *ref_19 - serializedName: currentSpend - language: - default: - name: currentSpend - description: current spend - protocol: {} - - schema: &ref_119 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_20 - language: - default: - name: AlertPropertiesDetailsContactEmails - description: list of emails to contact - protocol: {} - serializedName: contactEmails - language: - default: - name: contactEmails - description: list of emails to contact - protocol: {} - - schema: &ref_120 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_21 - language: - default: - name: AlertPropertiesDetailsContactGroups - description: list of action groups to broadcast to - protocol: {} - serializedName: contactGroups - language: - default: - name: contactGroups - description: list of action groups to broadcast to - protocol: {} - - schema: &ref_121 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_22 - language: - default: - name: AlertPropertiesDetailsContactRoles - description: list of contact roles - protocol: {} - serializedName: contactRoles - language: - default: - name: contactRoles - description: list of contact roles - protocol: {} - - schema: *ref_23 - serializedName: overridingAlert - language: - default: - name: overridingAlert - description: overriding alert - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: AlertPropertiesDetails - description: Alert details - namespace: '' - protocol: {} - serializedName: details - language: - default: - name: details - description: Alert details - protocol: {} - - schema: *ref_24 - serializedName: costEntityId - language: - default: - name: costEntityId - description: related budget - protocol: {} - - schema: *ref_25 - serializedName: status - language: - default: - name: status - description: alert status - protocol: {} - - schema: *ref_26 - serializedName: creationTime - language: - default: - name: creationTime - description: dateTime in which alert was created - protocol: {} - - schema: *ref_27 - serializedName: closeTime - language: - default: - name: closeTime - description: dateTime in which alert was closed - protocol: {} - - schema: *ref_28 - serializedName: modificationTime - language: - default: - name: modificationTime - description: dateTime in which alert was last modified - protocol: {} - - schema: *ref_29 - serializedName: statusModificationUserName - language: - default: - name: statusModificationUserName - description: '' - protocol: {} - - schema: *ref_30 - serializedName: statusModificationTime - language: - default: - name: statusModificationTime - description: dateTime in which the alert status was last modified - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: AlertProperties - description: '' - namespace: '' - protocol: {} - serializedName: properties - extensions: - x-ms-client-flatten: true - language: - default: - name: properties - description: '' - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: Alert - description: An individual alert. - namespace: '' - protocol: {} - - &ref_66 - type: object - apiVersions: - - version: '2019-11-01' - parents: - all: - - *ref_5 - immediate: - - *ref_5 - properties: - - schema: &ref_99 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_31 - serializedName: nextLink - language: - default: - name: nextLink - description: The link (url) to the next page of results. - protocol: {} - - schema: &ref_128 - type: array - apiVersions: - - version: '2019-11-01' - elementType: &ref_100 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_32 - serializedName: name - language: - default: - name: name - description: The name of column. - protocol: {} - - schema: *ref_33 - serializedName: type - language: - default: - name: type - description: The type of column. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: QueryColumn - description: '' - namespace: '' - protocol: {} - language: - default: - name: QueryPropertiesColumns - description: Array of columns - protocol: {} - serializedName: columns - language: - default: - name: columns - description: Array of columns - protocol: {} - - schema: &ref_130 - type: array - apiVersions: - - version: '2019-11-01' - elementType: &ref_129 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_14 - language: - default: - name: QueryPropertiesRowsItem - description: Array of any - protocol: {} - language: - default: - name: QueryPropertiesRows - description: Array of rows - protocol: {} - serializedName: rows - language: - default: - name: rows - description: Array of rows - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: QueryProperties - description: '' - namespace: '' - protocol: {} - serializedName: properties - extensions: - x-ms-client-flatten: true - language: - default: - name: properties - description: '' - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: QueryResult - description: Result of query. It contains all columns listed under groupings and aggregation. - namespace: '' - protocol: {} - - &ref_67 - type: object - apiVersions: - - version: '2019-11-01' - parents: - all: - - *ref_5 - immediate: - - *ref_5 - properties: - - schema: &ref_34 - type: object - apiVersions: - - version: '2019-11-01' - parents: - all: - - &ref_53 - type: object - apiVersions: - - version: '2019-11-01' - children: - all: - - *ref_34 - immediate: - - *ref_34 - properties: - - schema: *ref_35 - required: false - serializedName: format - language: - default: - name: format - description: The format of the export being delivered. - protocol: {} - - schema: &ref_102 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: &ref_103 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_36 - required: true - serializedName: resourceId - language: - default: - name: resourceId - description: The resource id of the storage account where exports will be delivered. - protocol: {} - - schema: *ref_37 - required: true - serializedName: container - language: - default: - name: container - description: The name of the container where exports will be uploaded. - protocol: {} - - schema: *ref_38 - required: false - serializedName: rootFolderPath - language: - default: - name: rootFolderPath - description: The name of the directory where exports will be uploaded. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: ExportDeliveryDestination - description: >- - The destination information for the delivery of the export. To allow access to a storage account, you must register the account's subscription with the Microsoft.CostManagementExports resource - provider. This is required once per subscription. When creating an export in the Azure portal, it is done automatically, however API users need to register the subscription. For more information see - https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services . - namespace: '' - protocol: {} - required: true - serializedName: destination - language: - default: - name: destination - description: Has destination for the export being delivered. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: ExportDeliveryInfo - description: The delivery information associated with a export. - namespace: '' - protocol: {} - required: true - serializedName: deliveryInfo - language: - default: - name: deliveryInfo - description: Has delivery information for the export. - protocol: {} - - schema: &ref_101 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_39 - required: true - serializedName: type - language: - default: - name: type - description: The type of the query. - protocol: {} - - schema: *ref_40 - required: true - serializedName: timeframe - language: - default: - name: timeframe - description: 'The time frame for pulling data for the query. If custom, then a specific time period must be provided.' - protocol: {} - - schema: &ref_92 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_41 - required: true - serializedName: from - language: - default: - name: from - description: The start date to pull data from. - protocol: {} - - schema: *ref_42 - required: true - serializedName: to - language: - default: - name: to - description: The end date to pull data to. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: QueryTimePeriod - description: The start and end date for pulling data for the query. - namespace: '' - protocol: {} - required: false - serializedName: timePeriod - language: - default: - name: timePeriod - description: Has time period for pulling data for the query. - protocol: {} - - schema: &ref_93 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_43 - serializedName: granularity - language: - default: - name: granularity - description: The granularity of rows in the query. - protocol: {} - - schema: &ref_96 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: &ref_123 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_44 - language: - default: - name: QueryDatasetConfigurationColumns - 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.' - protocol: {} - serializedName: columns - language: - default: - name: 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.' - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: QueryDatasetConfiguration - description: The configuration of dataset in the query. - namespace: '' - protocol: {} - serializedName: configuration - language: - default: - name: configuration - description: Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided. - protocol: {} - - schema: *ref_45 - serializedName: aggregation - language: - default: - name: aggregation - 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. - protocol: {} - - schema: &ref_124 - type: array - apiVersions: - - version: '2019-11-01' - elementType: &ref_98 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_46 - required: true - serializedName: type - language: - default: - name: type - description: Has type of the column to group. - protocol: {} - - schema: *ref_47 - required: true - serializedName: name - language: - default: - name: name - description: The name of the column to group. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: QueryGrouping - description: The group by expression to be used in the query. - namespace: '' - protocol: {} - maxItems: 2 - language: - default: - name: QueryDatasetGrouping - description: Array of group by expression to use in the query. Query can have up to 2 group by clauses. - protocol: {} - serializedName: grouping - language: - default: - name: grouping - description: Array of group by expression to use in the query. Query can have up to 2 group by clauses. - protocol: {} - - schema: &ref_48 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: &ref_125 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_48 - minItems: 2 - language: - default: - name: QueryFilterAnd - description: The logical "AND" expression. Must have at least 2 items. - protocol: {} - serializedName: and - language: - default: - name: and - description: The logical "AND" expression. Must have at least 2 items. - protocol: {} - - schema: &ref_126 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_48 - minItems: 2 - language: - default: - name: QueryFilterOr - description: The logical "OR" expression. Must have at least 2 items. - protocol: {} - serializedName: or - language: - default: - name: or - description: The logical "OR" expression. Must have at least 2 items. - protocol: {} - - schema: *ref_48 - serializedName: not - language: - default: - name: not - description: The logical "NOT" expression. - protocol: {} - - schema: &ref_52 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_49 - required: true - serializedName: name - language: - default: - name: name - description: The name of the column to use in comparison. - protocol: {} - - schema: *ref_50 - required: true - serializedName: operator - language: - default: - name: operator - description: The operator to use for comparison. - protocol: {} - - schema: &ref_127 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_51 - minItems: 1 - language: - default: - name: QueryComparisonExpressionValues - description: Array of values to use for comparison - protocol: {} - required: true - serializedName: values - language: - default: - name: values - description: Array of values to use for comparison - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: QueryComparisonExpression - description: The comparison expression to be used in the query. - namespace: '' - protocol: {} - serializedName: dimension - language: - default: - name: dimension - description: Has comparison expression for a dimension - protocol: {} - - schema: *ref_52 - serializedName: tag - language: - default: - name: tag - description: Has comparison expression for a tag - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: QueryFilter - description: The filter expression to be used in the export. - namespace: '' - protocol: {} - serializedName: filter - language: - default: - name: filter - description: Has filter expression to use in the query. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: QueryDataset - description: The definition of data present in the query. - namespace: '' - protocol: {} - required: false - serializedName: dataset - language: - default: - name: dataset - description: Has definition for data in this query. - protocol: {} - serializationFormats: - - json - usage: - - input - - output - language: - default: - name: QueryDefinition - description: The definition of a query. - namespace: '' - protocol: {} - required: true - serializedName: definition - language: - default: - name: definition - description: Has definition for the export. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: CommonExportProperties - description: The common properties of the export. - namespace: '' - protocol: {} - immediate: - - *ref_53 - properties: - - schema: &ref_104 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_54 - required: false - serializedName: status - language: - default: - name: status - description: 'The status of the schedule. Whether active or not. If inactive, the export''s scheduled execution is paused.' - protocol: {} - - schema: *ref_55 - required: true - serializedName: recurrence - language: - default: - name: recurrence - description: The schedule recurrence. - protocol: {} - - schema: &ref_105 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_56 - required: true - serializedName: from - language: - default: - name: from - description: The start date of recurrence. - protocol: {} - - schema: *ref_57 - required: false - serializedName: to - language: - default: - name: to - description: The end date of recurrence. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: ExportRecurrencePeriod - description: The start and end date for recurrence schedule. - namespace: '' - protocol: {} - required: false - serializedName: recurrencePeriod - language: - default: - name: 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.' - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: ExportSchedule - description: The schedule associated with a export. - namespace: '' - protocol: {} - serializedName: schedule - language: - default: - name: schedule - description: Has schedule information for the export. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: ExportProperties - description: The properties of the export. - namespace: '' - protocol: {} - serializedName: properties - extensions: - x-ms-client-flatten: true - language: - default: - name: properties - description: The properties of the export. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: Export - description: A export resource. - namespace: '' - protocol: {} - - &ref_68 - type: object - apiVersions: - - version: '2019-11-01' - parents: - all: - - *ref_5 - immediate: - - *ref_5 - properties: - - schema: &ref_106 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_58 - serializedName: executionType - language: - default: - name: executionType - description: The type of the export execution. - protocol: {} - - schema: *ref_59 - serializedName: status - language: - default: - name: status - description: The status of the export execution. - protocol: {} - - schema: *ref_60 - serializedName: submittedBy - language: - default: - name: 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.' - protocol: {} - - schema: *ref_61 - serializedName: submittedTime - language: - default: - name: submittedTime - description: The time when export was queued to be executed. - protocol: {} - - schema: *ref_62 - serializedName: processingStartTime - language: - default: - name: processingStartTime - description: The time when export was picked up to be executed. - protocol: {} - - schema: *ref_63 - serializedName: processingEndTime - language: - default: - name: processingEndTime - description: The time when export execution finished. - protocol: {} - - schema: *ref_64 - serializedName: fileName - language: - default: - name: fileName - description: The name of the file export got written to. - protocol: {} - - schema: *ref_53 - serializedName: runSettings - language: - default: - name: runSettings - description: The common properties of the export. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: ExportExecutionProperties - description: The properties of the export execution. - namespace: '' - protocol: {} - serializedName: properties - extensions: - x-ms-client-flatten: true - language: - default: - name: properties - description: The properties of the export execution. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: ExportExecution - description: A export execution. - namespace: '' - protocol: {} - immediate: - - *ref_4 - - *ref_65 - - *ref_66 - - *ref_67 - - *ref_68 - properties: - - schema: *ref_69 - readOnly: true - serializedName: id - language: - default: - name: id - description: Resource Id. - protocol: {} - - schema: *ref_70 - readOnly: true - serializedName: name - language: - default: - name: name - description: Resource name. - protocol: {} - - schema: *ref_71 - readOnly: true - serializedName: type - language: - default: - name: type - description: Resource type. - protocol: {} - - schema: *ref_72 - readOnly: true - serializedName: tags - language: - default: - name: tags - description: Resource tags. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - extensions: - x-ms-azure-resource: true - language: - default: - name: Resource - description: The Resource model definition. - namespace: '' - protocol: {} - immediate: - - *ref_5 - properties: - - schema: &ref_82 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_73 - readOnly: true - serializedName: description - language: - default: - name: description - description: Dimension description. - protocol: {} - - schema: *ref_74 - readOnly: true - serializedName: filterEnabled - language: - default: - name: filterEnabled - description: Filter enabled. - protocol: {} - - schema: *ref_75 - readOnly: true - serializedName: groupingEnabled - language: - default: - name: groupingEnabled - description: Grouping enabled. - protocol: {} - - schema: &ref_114 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_76 - language: - default: - name: DimensionPropertiesData - description: Array of DimensionPropertiesDataItem - protocol: {} - serializedName: data - language: - default: - name: data - description: '' - protocol: {} - - schema: *ref_77 - readOnly: true - serializedName: total - language: - default: - name: total - description: Total number of data for the dimension. - protocol: {} - - schema: *ref_78 - readOnly: true - serializedName: category - language: - default: - name: category - description: Dimension category. - protocol: {} - - schema: *ref_79 - readOnly: true - serializedName: usageStart - language: - default: - name: usageStart - description: Usage start. - protocol: {} - - schema: *ref_80 - readOnly: true - serializedName: usageEnd - language: - default: - name: usageEnd - description: Usage end. - protocol: {} - - schema: *ref_81 - readOnly: true - serializedName: nextLink - language: - default: - name: nextLink - description: The link (url) to the next page of results. - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: DimensionProperties - description: '' - namespace: '' - protocol: {} - serializedName: properties - extensions: - x-ms-client-flatten: true - language: - default: - name: properties - description: '' - protocol: {} - serializationFormats: - - json - usage: - - output - - input - language: - default: - name: Dimension - description: '' - namespace: '' - protocol: {} - language: - default: - name: DimensionsListResultValue - description: The list of dimensions. - protocol: {} - readOnly: true - serializedName: value - language: - default: - name: value - description: The list of dimensions. - protocol: {} - serializationFormats: - - json - usage: - - output - language: - default: - name: DimensionsListResult - description: Result of listing dimensions. It contains a list of available dimensions. - namespace: '' - protocol: {} - - *ref_5 - - *ref_4 - - *ref_82 - - &ref_144 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: &ref_85 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_83 - readOnly: true - serializedName: code - language: - default: - name: code - description: Error code. - protocol: {} - - schema: *ref_84 - readOnly: true - serializedName: message - language: - default: - name: message - description: Error message indicating why the operation failed. - protocol: {} - serializationFormats: - - json - usage: - - output - language: - default: - name: ErrorDetails - description: The details of the error. - namespace: '' - protocol: {} - serializedName: error - language: - default: - name: error - description: The details of the error. - protocol: {} - serializationFormats: - - json - usage: - - output - language: - default: - name: ErrorResponse - description: |- - Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. - - Some Error responses: - - * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" header. - - * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" header. - namespace: '' - protocol: {} - - *ref_85 - - &ref_153 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: &ref_122 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_65 - language: - default: - name: AlertsResultValue - description: List of alerts. - protocol: {} - readOnly: true - serializedName: value - language: - default: - name: value - description: List of alerts. - protocol: {} - - schema: *ref_86 - readOnly: true - serializedName: nextLink - language: - default: - name: nextLink - description: URL to get the next set of alerts results if there are any. - protocol: {} - serializationFormats: - - json - usage: - - output - language: - default: - name: AlertsResult - description: Result of alerts. - namespace: '' - protocol: {} - - *ref_65 - - *ref_87 - - *ref_88 - - *ref_89 - - &ref_156 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_90 - required: true - serializedName: type - language: - default: - name: type - description: The type of the forecast. - protocol: {} - - schema: *ref_91 - required: true - serializedName: timeframe - language: - default: - name: timeframe - description: 'The time frame for pulling data for the forecast. If custom, then a specific time period must be provided.' - protocol: {} - - schema: *ref_92 - required: false - serializedName: timePeriod - language: - default: - name: timePeriod - description: Has time period for pulling data for the forecast. - protocol: {} - - schema: *ref_93 - required: false - serializedName: dataset - language: - default: - name: dataset - description: Has definition for data in this forecast. - protocol: {} - - schema: *ref_94 - required: false - serializedName: includeActualCost - language: - default: - name: includeActualCost - description: a boolean determining if actualCost will be included - protocol: {} - - schema: *ref_95 - required: false - serializedName: includeFreshPartialCost - language: - default: - name: includeFreshPartialCost - description: a boolean determining if FreshPartialCost will be included - protocol: {} - serializationFormats: - - json - usage: - - input - language: - default: - name: ForecastDefinition - description: The definition of a forecast. - namespace: '' - protocol: {} - - *ref_92 - - *ref_93 - - *ref_96 - - *ref_97 - - *ref_98 - - *ref_48 - - *ref_52 - - *ref_66 - - *ref_99 - - *ref_100 - - *ref_101 - - &ref_170 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: &ref_131 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_67 - language: - default: - name: ExportListResultValue - description: The list of exports. - protocol: {} - readOnly: true - serializedName: value - language: - default: - name: value - description: The list of exports. - protocol: {} - serializationFormats: - - json - usage: - - output - language: - default: - name: ExportListResult - description: Result of listing exports. It contains a list of available exports in the scope provided. - namespace: '' - protocol: {} - - *ref_67 - - *ref_53 - - *ref_102 - - *ref_103 - - *ref_34 - - *ref_104 - - *ref_105 - - &ref_182 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: &ref_132 - type: array - apiVersions: - - version: '2019-11-01' - elementType: *ref_68 - language: - default: - name: ExportExecutionListResultValue - description: The list of export executions. - protocol: {} - readOnly: true - serializedName: value - language: - default: - name: value - description: The list of export executions. - protocol: {} - serializationFormats: - - json - usage: - - output - language: - default: - name: ExportExecutionListResult - description: Result of listing exports execution history of a export by name - namespace: '' - protocol: {} - - *ref_68 - - *ref_106 - - &ref_183 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: &ref_133 - type: array - apiVersions: - - version: '2019-11-01' - elementType: &ref_112 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_107 - readOnly: true - serializedName: name - language: - default: - name: name - description: 'Operation name: {provider}/{resource}/{operation}.' - protocol: {} - - schema: &ref_113 - type: object - apiVersions: - - version: '2019-11-01' - properties: - - schema: *ref_108 - readOnly: true - serializedName: provider - language: - default: - name: provider - description: 'Service provider: Microsoft.CostManagement.' - protocol: {} - - schema: *ref_109 - readOnly: true - serializedName: resource - language: - default: - name: resource - description: 'Resource on which the operation is performed: Dimensions, Query.' - protocol: {} - - schema: *ref_110 - readOnly: true - serializedName: operation - language: - default: - name: operation - description: 'Operation type: Read, write, delete, etc.' - protocol: {} - serializationFormats: - - json - usage: - - output - language: - default: - name: OperationDisplay - description: The object that represents the operation. - namespace: '' - protocol: {} - serializedName: display - language: - default: - name: display - description: The object that represents the operation. - protocol: {} - serializationFormats: - - json - usage: - - output - language: - default: - name: Operation - description: A Cost management REST API operation. - namespace: '' - protocol: {} - language: - default: - name: OperationListResultValue - description: List of cost management operations supported by the Microsoft.CostManagement resource provider. - protocol: {} - readOnly: true - serializedName: value - language: - default: - name: value - description: List of cost management operations supported by the Microsoft.CostManagement resource provider. - protocol: {} - - schema: *ref_111 - readOnly: true - serializedName: nextLink - language: - default: - name: nextLink - description: URL to get the next set of operation list results if there are any. - protocol: {} - serializationFormats: - - json - usage: - - output - language: - default: - name: 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. - namespace: '' - protocol: {} - - *ref_112 - - *ref_113 - arrays: - - *ref_114 - - *ref_115 - - *ref_116 - - *ref_117 - - *ref_118 - - *ref_119 - - *ref_120 - - *ref_121 - - *ref_122 - - *ref_123 - - *ref_124 - - *ref_125 - - *ref_126 - - *ref_127 - - *ref_128 - - *ref_129 - - *ref_130 - - *ref_131 - - *ref_132 - - *ref_133 -globalParameters: -- &ref_135 - schema: *ref_0 - clientDefaultValue: 'https://management.azure.com' - implementation: Client - origin: 'modelerfour:synthesized/host' - required: true - extensions: - x-ms-skip-url-encoding: true - language: - default: - name: $host - description: server parameter - serializedName: $host - protocol: - http: - in: uri -- &ref_136 - schema: *ref_134 - implementation: Client - origin: 'modelerfour:synthesized/api-version' - required: true - language: - default: - name: apiVersion - description: Api Version - serializedName: api-version - protocol: - http: - in: query -operationGroups: -- $key: Dimensions - operations: - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_138 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: - default: - name: scope - description: >- - The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group - scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, - 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and - 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. - serializedName: scope - protocol: - http: - in: path - - *ref_136 - - &ref_139 - schema: *ref_1 - implementation: Method - language: - default: - name: filter - description: 'May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are ''eq'',''lt'', ''gt'', ''le'', ''ge''.' - serializedName: $filter - protocol: - http: - in: query - - &ref_140 - schema: *ref_1 - implementation: Method - language: - default: - name: expand - description: 'May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.' - serializedName: $expand - protocol: - http: - in: query - - &ref_141 - schema: *ref_1 - implementation: Method - language: - default: - 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. - serializedName: $skiptoken - protocol: - http: - in: query - - &ref_142 - schema: *ref_137 - implementation: Method - language: - default: - name: top - description: May be used to limit the number of results to the most recent N dimension data. - serializedName: $top - protocol: - http: - in: query - requests: - - language: - default: - name: '' - description: '' - protocol: - http: - path: '/{scope}/providers/Microsoft.CostManagement/dimensions' - method: get - uri: '{$host}' - signatureParameters: - - *ref_138 - - *ref_139 - - *ref_140 - - *ref_141 - - *ref_142 - responses: - - schema: *ref_143 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - BillingAccountDimensionsList-Legacy: - parameters: - api-version: '2019-10-01' - billingAccountId: '100' - scope: providers/Microsoft.Billing/billingAccounts/100 - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2018-05-01_2018-05-31 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31 - properties: - description: Resource group - category: ResourceGroup - data: [] - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - - name: dimensions_ResourceType_2018-05-01_2018-05-31 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31 - properties: - description: Resource type - category: ResourceType - data: [] - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - BillingAccountDimensionsList-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' - properties: - description: Resource group - category: ResourceGroup - data: [] - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - - name: dimensions_ResourceType_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' - properties: - description: Resource type - category: ResourceType - data: [] - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - BillingAccountDimensionsListExpandAndTop-Legacy: - parameters: - $expand: properties/data - $top: 5 - api-version: '2019-10-01' - billingAccountId: '100' - scope: providers/Microsoft.Billing/billingAccounts/100 - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5 - properties: - description: Resource group - category: ResourceGroup - data: - - thoroetrg01 - - default-notificationhubs-westus - - jedikeyvaultrg - - contosocodeflow8d4a - - noobaa - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 - properties: - description: Resource type - category: ResourceType - data: - - microsoft.automation/automationaccounts - - microsoft.databricks/workspaces - - microsoft.dbformysql/servers - - microsoft.containerregistry/registries - - microsoft.search/searchservices - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - BillingAccountDimensionsListExpandAndTop-Modern: - parameters: - $expand: properties/data - $top: 5 - api-version: '2019-10-01' - billingAccountId: '12345:6789' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' - properties: - description: Resource group - category: ResourceGroup - data: - - thoroetrg01 - - default-notificationhubs-westus - - jedikeyvaultrg - - contosocodeflow8d4a - - noobaa - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - - name: dimensions_ResourceType_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' - properties: - description: Resource type - category: ResourceType - data: - - microsoft.automation/automationaccounts - - microsoft.databricks/workspaces - - microsoft.dbformysql/servers - - microsoft.containerregistry/registries - - microsoft.search/searchservices - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - BillingAccountDimensionsListWithFilter-Legacy: - parameters: - $expand: properties/data - $filter: properties/category eq 'resourceId' - $top: 5 - api-version: '2019-10-01' - billingAccountId: '100' - scope: providers/Microsoft.Billing/billingAccounts/100 - responses: - '200': - body: - value: - - name: dimensions_ResourceId_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5 - properties: - description: Resource Id - category: ResourceId - data: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount - - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 - - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume - filterEnabled: true - groupingEnabled: true - nextLink: >- - http://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq - 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D - total: 1409 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - BillingAccountDimensionsListWithFilter-Modern: - parameters: - $expand: properties/data - $filter: properties/category eq 'resourceId' - $top: 5 - api-version: '2019-10-01' - billingAccountId: '12345:6789' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' - responses: - '200': - body: - value: - - name: dimensions_ResourceId_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31' - properties: - description: Resource Id - category: ResourceId - data: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount - - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 - - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume - filterEnabled: true - groupingEnabled: true - nextLink: >- - http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq - 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D - total: 1409 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - BillingProfileDimensionsList-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' - properties: - description: Resource group - category: ResourceGroup - data: [] - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - - name: dimensions_ResourceType_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' - properties: - description: Resource type - category: ResourceType - data: [] - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - BillingProfileDimensionsListExpandAndTop-Modern: - parameters: - $expand: properties/data - $top: 5 - api-version: '2019-10-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' - properties: - description: Resource group - category: ResourceGroup - data: - - thoroetrg01 - - default-notificationhubs-westus - - jedikeyvaultrg - - contosocodeflow8d4a - - noobaa - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - - name: dimensions_ResourceType_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' - properties: - description: Resource type - category: ResourceType - data: - - microsoft.automation/automationaccounts - - microsoft.databricks/workspaces - - microsoft.dbformysql/servers - - microsoft.containerregistry/registries - - microsoft.search/searchservices - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - BillingProfileDimensionsListWithFilter-Modern: - parameters: - $expand: properties/data - $filter: properties/category eq 'resourceId' - $top: 5 - api-version: '2019-10-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' - responses: - '200': - body: - value: - - name: dimensions_ResourceId_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31' - properties: - description: Resource Id - category: ResourceId - data: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount - - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 - - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume - filterEnabled: true - groupingEnabled: true - nextLink: >- - http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq - 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D - total: 1409 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - CustomerDimensionsList-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - customerId: '5678' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678' - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' - properties: - description: Resource group - category: ResourceGroup - data: [] - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - - name: dimensions_ResourceType_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' - properties: - description: Resource type - category: ResourceType - data: [] - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - CustomerDimensionsListExpandAndTop-Modern: - parameters: - $expand: properties/data - $top: 5 - api-version: '2019-10-01' - billingAccountId: '12345:6789' - customerId: '5678' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678' - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' - properties: - description: Resource group - category: ResourceGroup - data: - - thoroetrg01 - - default-notificationhubs-westus - - jedikeyvaultrg - - contosocodeflow8d4a - - noobaa - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - - name: dimensions_ResourceType_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' - properties: - description: Resource type - category: ResourceType - data: - - microsoft.automation/automationaccounts - - microsoft.databricks/workspaces - - microsoft.dbformysql/servers - - microsoft.containerregistry/registries - - microsoft.search/searchservices - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - CustomerDimensionsListWithFilter-Modern: - parameters: - $expand: properties/data - $filter: properties/category eq 'resourceId' - $top: 5 - api-version: '2019-10-01' - billingAccountId: '12345:6789' - customerId: '13579' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678' - responses: - '200': - body: - value: - - name: dimensions_ResourceId_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31' - properties: - description: Resource Id - category: ResourceId - data: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount - - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 - - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume - filterEnabled: true - groupingEnabled: true - nextLink: >- - http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq - 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D - total: 1409 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - DepartmentDimensionsList-Legacy: - parameters: - api-version: '2019-10-01' - billingAccountId: '100' - departmentId: '123' - scope: providers/Microsoft.Billing/billingAccounts/100/departments/123 - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2018-05-01_2018-05-31 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31 - properties: - description: Resource group - category: ResourceGroup - data: [] - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - - name: dimensions_ResourceType_2018-05-01_2018-05-31 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31 - properties: - description: Resource type - category: ResourceType - data: [] - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - DepartmentDimensionsListExpandAndTop-Legacy: - parameters: - $expand: properties/data - $top: 5 - api-version: '2019-10-01' - billingAccountId: '100' - departmentId: '123' - scope: providers/Microsoft.Billing/billingAccounts/100/departments/123 - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5 - properties: - description: Resource group - category: ResourceGroup - data: - - thoroetrg01 - - default-notificationhubs-westus - - jedikeyvaultrg - - contosocodeflow8d4a - - noobaa - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 - properties: - description: Resource type - category: ResourceType - data: - - microsoft.automation/automationaccounts - - microsoft.databricks/workspaces - - microsoft.dbformysql/servers - - microsoft.containerregistry/registries - - microsoft.search/searchservices - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - DepartmentDimensionsListWithFilter-Legacy: - parameters: - $expand: properties/data - $filter: properties/category eq 'resourceId' - $top: 5 - api-version: '2019-10-01' - billingAccountId: '100' - departmentId: '123' - scope: providers/Microsoft.Billing/billingAccounts/100/departments/123 - responses: - '200': - body: - value: - - name: dimensions_ResourceId_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5 - properties: - description: Resource Id - category: ResourceId - data: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount - - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 - - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume - filterEnabled: true - groupingEnabled: true - nextLink: >- - https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq - 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D - total: 1409 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - EnrollmentAccountDimensionsList-Legacy: - parameters: - api-version: '2019-10-01' - billingAccountId: '100' - enrollmentAccountId: '456' - scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2018-05-01_2018-05-31 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31 - properties: - description: Resource group - category: ResourceGroup - data: [] - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - - name: dimensions_ResourceType_2018-05-01_2018-05-31 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31 - properties: - description: Resource type - category: ResourceType - data: [] - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - EnrollmentAccountDimensionsListExpandAndTop-Legacy: - parameters: - $expand: properties/data - $top: 5 - api-version: '2019-10-01' - billingAccountId: '100' - enrollmentAccountId: '456' - scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5 - properties: - description: Resource group - category: ResourceGroup - data: - - thoroetrg01 - - default-notificationhubs-westus - - jedikeyvaultrg - - contosocodeflow8d4a - - noobaa - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 - properties: - description: Resource type - category: ResourceType - data: - - microsoft.automation/automationaccounts - - microsoft.databricks/workspaces - - microsoft.dbformysql/servers - - microsoft.containerregistry/registries - - microsoft.search/searchservices - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - EnrollmentAccountDimensionsListWithFilter-Legacy: - parameters: - $expand: properties/data - $filter: properties/category eq 'resourceId' - $top: 5 - api-version: '2019-10-01' - billingAccountId: '100' - enrollmentAccountId: '456' - scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 - responses: - '200': - body: - value: - - name: dimensions_ResourceId_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5 - properties: - description: Resource Id - category: ResourceId - data: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount - - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 - - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume - filterEnabled: true - groupingEnabled: true - nextLink: >- - https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq - 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D - total: 1409 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - InvoiceSectionDimensionsList-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - invoiceSectionId: '9876' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' - properties: - description: Resource group - category: ResourceGroup - data: [] - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - - name: dimensions_ResourceType_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' - properties: - description: Resource type - category: ResourceType - data: [] - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - InvoiceSectionDimensionsListExpandAndTop-Modern: - parameters: - $expand: properties/data - $top: 5 - api-version: '2019-10-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - invoiceSectionId: '9876' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceGroup_2019-10-01_2019-10-31' - properties: - description: Resource group - category: ResourceGroup - data: - - thoroetrg01 - - default-notificationhubs-westus - - jedikeyvaultrg - - contosocodeflow8d4a - - noobaa - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - - name: dimensions_ResourceType_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceType_2019-10-01_2019-10-31' - properties: - description: Resource type - category: ResourceType - data: - - microsoft.automation/automationaccounts - - microsoft.databricks/workspaces - - microsoft.dbformysql/servers - - microsoft.containerregistry/registries - - microsoft.search/searchservices - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - InvoiceSectionDimensionsListWithFilter-Modern: - parameters: - $expand: properties/data - $filter: properties/category eq 'resourceId' - $top: 5 - api-version: '2019-10-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - invoiceSectionId: '9876' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' - responses: - '200': - body: - value: - - name: dimensions_ResourceId_2019-10-01_2019-10-31 - type: microsoft.CostManagement/dimensions - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/microsoft.CostManagement/dimensions_ResourceId_2019-10-01_2019-10-31' - properties: - description: Resource Id - category: ResourceId - data: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount - - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 - - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume - filterEnabled: true - groupingEnabled: true - nextLink: >- - http://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq - 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D - total: 1409 - usageEnd: '2019-10-31T00:00:00-07:00' - usageStart: '2019-10-01T00:00:00-07:00' - ManagementGroupDimensionsList-Legacy: - parameters: - api-version: '2019-10-01' - managementGroupId: MyMgId - scope: providers/Microsoft.Management/managementGroups/MyMgId - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2018-05-01_2018-05-31 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31 - properties: - description: Resource group - category: ResourceGroup - data: [] - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - - name: dimensions_ResourceType_2018-05-01_2018-05-31 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31 - properties: - description: Resource type - category: ResourceType - data: [] - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - ManagementGroupDimensionsListExpandAndTop-Legacy: - parameters: - $expand: properties/data - $top: 5 - api-version: '2019-10-01' - managementGroupId: MyMgId - scope: providers/Microsoft.Management/managementGroups/MyMgId - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5 - properties: - description: Resource group - category: ResourceGroup - data: - - thoroetrg01 - - default-notificationhubs-westus - - jedikeyvaultrg - - contosocodeflow8d4a - - noobaa - filterEnabled: true - groupingEnabled: true - total: 377 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 - properties: - description: Resource type - category: ResourceType - data: - - microsoft.automation/automationaccounts - - microsoft.databricks/workspaces - - microsoft.dbformysql/servers - - microsoft.containerregistry/registries - - microsoft.search/searchservices - filterEnabled: true - groupingEnabled: true - total: 37 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - ManagementGroupDimensionsListWithFilter-Legacy: - parameters: - $expand: properties/data - $filter: properties/category eq 'resourceId' - $top: 5 - api-version: '2019-10-01' - managementGroupId: MyMgId - scope: providers/Microsoft.Management/managementGroups/MyMgId - responses: - '200': - body: - value: - - name: dimensions_ResourceId_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5 - properties: - description: Resource Id - category: ResourceId - data: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount - - /subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1 - - /subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume - filterEnabled: true - groupingEnabled: true - nextLink: >- - http://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq - 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D - total: 1409 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - ResourceGroupDimensionsList-Legacy: - parameters: - $expand: properties/data - $top: 5 - api-version: '2019-10-01' - resourceGroupName: system.orlando - scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - value: - - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 - properties: - description: Resource type - category: ResourceType - data: - - microsoft.storage/storageaccounts - filterEnabled: true - groupingEnabled: true - total: 1 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - - name: dimensions_ResourceId_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5 - properties: - description: Resource Id - category: ResourceId - data: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/authprod - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/systemevents - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/armadminprod - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount - - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/publicsystemportal - filterEnabled: true - groupingEnabled: true - total: 27 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - SubscriptionDimensionsList-Legacy: - parameters: - $expand: properties/data - $top: 5 - api-version: '2019-10-01' - scope: subscriptions/00000000-0000-0000-0000-000000000000 - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - value: - - name: dimensions_ResourceGroup_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5 - properties: - description: Resource group - category: ResourceGroup - data: - - dcrg - - rg - - offlinegalleryrg - - system.orlando.adminkeyvault - - system.orlando.keyvault - filterEnabled: true - groupingEnabled: true - total: 68 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - - name: dimensions_ResourceType_2018-05-01_2018-05-31_5 - type: microsoft.CostManagement/dimensions - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5 - properties: - description: Resource type - category: ResourceType - data: - - microsoft.storage/storageaccounts - - microsoft.web.admin/role - - microsoft.sql/servers - - microsoft.compute/virtualmachines - filterEnabled: true - groupingEnabled: true - total: 4 - usageEnd: '2018-05-31T00:00:00-07:00' - usageStart: '2018-05-01T00:00:00-07:00' - x-ms-odata: '#/components/schemas/Dimension' - x-ms-pageable: - nextLinkName: null - language: - default: - name: List - description: Lists the dimensions by the defined scope. - paging: - nextLinkName: null - protocol: {} - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_146 - schema: *ref_145 - implementation: Method - required: true - language: - default: - name: externalCloudProviderType - description: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. - serializedName: externalCloudProviderType - protocol: - http: - in: path - - &ref_147 - schema: *ref_1 - implementation: Method - required: true - language: - default: - name: externalCloudProviderId - description: 'This can be ''{externalSubscriptionId}'' for linked account or ''{externalBillingAccountId}'' for consolidated account used with dimension/query operations.' - serializedName: externalCloudProviderId - protocol: - http: - in: path - - *ref_136 - - &ref_148 - schema: *ref_1 - implementation: Method - language: - default: - name: filter - description: 'May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are ''eq'',''lt'', ''gt'', ''le'', ''ge''.' - serializedName: $filter - protocol: - http: - in: query - - &ref_149 - schema: *ref_1 - implementation: Method - language: - default: - name: expand - description: 'May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.' - serializedName: $expand - protocol: - http: - in: query - - &ref_150 - schema: *ref_1 - implementation: Method - language: - default: - 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. - serializedName: $skiptoken - protocol: - http: - in: query - - &ref_151 - schema: *ref_137 - implementation: Method - language: - default: - name: top - description: May be used to limit the number of results to the most recent N dimension data. - serializedName: $top - protocol: - http: - in: query - requests: - - language: - default: - name: '' - description: '' - protocol: - http: - path: '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions' - method: get - uri: '{$host}' - signatureParameters: - - *ref_146 - - *ref_147 - - *ref_148 - - *ref_149 - - *ref_150 - - *ref_151 - responses: - - schema: *ref_143 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ExternalBillingAccountDimensionList: - parameters: - api-version: '2019-11-01' - externalCloudProviderId: '100' - externalCloudProviderType: externalBillingAccounts - responses: - '200': - body: - value: - - name: dimensions_ResourceType_2019-12-01_2019-12-31 - type: microsoft.consumption/dimensions - id: providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceType_2019-12-01_2019-12-31 - properties: - description: Resource type - category: ResourceType - data: [] - filterEnabled: true - groupingEnabled: true - total: 0 - usageEnd: '2019-12-31T00:00:00Z' - usageStart: '2019-12-01T00:00:00Z' - - name: dimensions_ResourceId_2019-12-01_2019-12-31 - type: microsoft.consumption/dimensions - id: providers/Microsoft.CostManagement/externalBillingAccounts/100/dimensions_ResourceId_2019-12-01_2019-12-31 - properties: - description: Resource ID - category: ResourceId - data: [] - filterEnabled: true - groupingEnabled: true - total: 0 - usageEnd: '2019-12-31T00:00:00Z' - usageStart: '2019-12-01T00:00:00Z' - ExternalSubscriptionDimensionList: - parameters: - api-version: '2019-11-01' - externalCloudProviderId: '100' - externalCloudProviderType: externalSubscriptions - responses: - '200': - body: - value: - - name: dimensions_ResourceType_2019-12-01_2019-12-31 - type: microsoft.consumption/dimensions - id: providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceType_2019-12-01_2019-12-31 - properties: - description: Resource type - category: ResourceType - data: [] - filterEnabled: true - groupingEnabled: true - total: 0 - usageEnd: '2019-12-31T00:00:00Z' - usageStart: '2019-12-01T00:00:00Z' - - name: dimensions_ResourceId_2019-12-01_2019-12-31 - type: microsoft.consumption/dimensions - id: providers/Microsoft.CostManagement/externalSubscriptions/123/dimensions_ResourceId_2019-12-01_2019-12-31 - properties: - description: Resource ID - category: ResourceId - data: [] - filterEnabled: true - groupingEnabled: true - total: 0 - usageEnd: '2019-12-31T00:00:00Z' - usageStart: '2019-12-01T00:00:00Z' - x-ms-odata: '#/components/schemas/Dimension' - x-ms-pageable: - nextLinkName: null - language: - default: - name: ByExternalCloudProviderType - description: Lists the dimensions by the external cloud provider type. - paging: - nextLinkName: null - protocol: {} - language: - default: - name: Dimensions - description: '' - protocol: {} -- $key: Alerts - operations: - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - *ref_136 - - &ref_152 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: - default: - name: scope - description: >- - The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group - scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. - serializedName: scope - protocol: - http: - in: path - requests: - - language: - default: - name: '' - description: '' - protocol: - http: - path: '/{scope}/providers/Microsoft.CostManagement/alerts' - method: get - uri: '{$host}' - signatureParameters: - - *ref_152 - responses: - - schema: *ref_153 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - BillingAccountAlerts: - parameters: - api-version: 2018-08-01-preview - billingAccountId: '12345:6789' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' - responses: - '200': - body: - nextLink: null - value: - - name: 00000000-0000-0000-0000-000000000000 - type: Microsoft.CostManagement/alerts - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000' - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2020-04-27T11:07:52.7143901Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2020-04-28T11:06:02.8999373Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 161000.12 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 - unit: USD - - name: 11111111-1111-1111-111111111111 - type: Microsoft.CostManagement/alerts - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111' - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2019-06-24T05:51:52.8713179Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2019-08-31T17:51:55.1808807Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 171000.32 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 11111111-1111-1111-111111111111_1_01 - unit: USD - BillingProfileAlerts: - parameters: - api-version: 2018-08-01-preview - billingAccountId: '12345:6789' - billingProfileId: '13579' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' - responses: - '200': - body: - nextLink: null - value: - - name: 00000000-0000-0000-0000-000000000000 - type: Microsoft.CostManagement/alerts - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000' - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2020-04-27T11:07:52.7143901Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2020-04-28T11:06:02.8999373Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 161000.12 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 - unit: USD - - name: 11111111-1111-1111-111111111111 - type: Microsoft.CostManagement/alerts - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111' - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2019-06-24T05:51:52.8713179Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2019-08-31T17:51:55.1808807Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 171000.32 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 11111111-1111-1111-111111111111_1_01 - unit: USD - DepartmentAlerts: - parameters: - api-version: 2018-08-01-preview - billingAccountId: '12345:6789' - departmentId: '123' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123' - responses: - '200': - body: - nextLink: null - value: - - name: 00000000-0000-0000-0000-000000000000 - type: Microsoft.CostManagement/alerts - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000' - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2020-04-27T11:07:52.7143901Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2020-04-28T11:06:02.8999373Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 161000.12 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 - unit: USD - - name: 11111111-1111-1111-111111111111 - type: Microsoft.CostManagement/alerts - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111' - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2019-06-24T05:51:52.8713179Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2019-08-31T17:51:55.1808807Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 171000.32 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 11111111-1111-1111-111111111111_1_01 - unit: USD - EnrollmentAccountAlerts: - parameters: - api-version: 2018-08-01-preview - billingAccountId: '12345:6789' - enrollmentAccountId: '456' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456' - responses: - '200': - body: - nextLink: null - value: - - name: 00000000-0000-0000-0000-000000000000 - type: Microsoft.CostManagement/alerts - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000' - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2020-04-27T11:07:52.7143901Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2020-04-28T11:06:02.8999373Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 161000.12 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 - unit: USD - - name: 11111111-1111-1111-111111111111 - type: Microsoft.CostManagement/alerts - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111' - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2019-06-24T05:51:52.8713179Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2019-08-31T17:51:55.1808807Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 171000.32 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 11111111-1111-1111-111111111111_1_01 - unit: USD - InvoiceSectionAlerts: - parameters: - api-version: 2018-08-01-preview - billingAccountId: '12345:6789' - billingProfileId: '13579' - invoiceSectionId: '9876' - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' - responses: - '200': - body: - nextLink: null - value: - - name: 00000000-0000-0000-0000-000000000000 - type: Microsoft.CostManagement/alerts - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000' - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2020-04-27T11:07:52.7143901Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2020-04-28T11:06:02.8999373Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 161000.12 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 - unit: USD - - name: 11111111-1111-1111-111111111111 - type: Microsoft.CostManagement/alerts - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111' - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2019-06-24T05:51:52.8713179Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2019-08-31T17:51:55.1808807Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 171000.32 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 11111111-1111-1111-111111111111_1_01 - unit: USD - ResourceGroupAlerts: - parameters: - api-version: 2018-08-01-preview - resourceGroupName: ScreenSharingTest-peer - scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - nextLink: null - value: - - name: 00000000-0000-0000-0000-000000000000 - type: Microsoft.CostManagement/alerts - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000 - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2020-04-27T11:07:52.7143901Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2020-04-28T11:06:02.8999373Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 161000.12 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 - unit: USD - - name: 11111111-1111-1111-111111111111 - type: Microsoft.CostManagement/alerts - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111 - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2019-06-24T05:51:52.8713179Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2019-08-31T17:51:55.1808807Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 171000.32 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 11111111-1111-1111-111111111111_1_01 - unit: USD - SubscriptionAlerts: - parameters: - api-version: 2018-08-01-preview - scope: subscriptions/00000000-0000-0000-0000-000000000000 - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - nextLink: null - value: - - name: 00000000-0000-0000-0000-000000000000 - type: Microsoft.CostManagement/alerts - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000 - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2020-04-27T11:07:52.7143901Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2020-04-28T11:06:02.8999373Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 161000.12 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 - unit: USD - - name: 11111111-1111-1111-111111111111 - type: Microsoft.CostManagement/alerts - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111 - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2019-06-24T05:51:52.8713179Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2019-08-31T17:51:55.1808807Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 171000.32 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 11111111-1111-1111-111111111111_1_01 - unit: USD - language: - default: - name: List - description: Lists the alerts for scope defined. - protocol: {} - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - *ref_136 - - &ref_154 - schema: *ref_145 - implementation: Method - required: true - language: - default: - name: externalCloudProviderType - description: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. - serializedName: externalCloudProviderType - protocol: - http: - in: path - - &ref_155 - schema: *ref_1 - implementation: Method - required: true - language: - default: - name: externalCloudProviderId - description: 'This can be ''{externalSubscriptionId}'' for linked account or ''{externalBillingAccountId}'' for consolidated account used with dimension/query operations.' - serializedName: externalCloudProviderId - protocol: - http: - in: path - requests: - - language: - default: - name: '' - description: '' - protocol: - http: - path: '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts' - method: get - uri: '{$host}' - signatureParameters: - - *ref_154 - - *ref_155 - responses: - - schema: *ref_153 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ExternalBillingAccountAlerts: - parameters: - api-version: 2018-08-01-preview - externalCloudProviderId: '100' - externalCloudProviderType: externalBillingAccounts - responses: - '200': - body: - nextLink: null - value: - - name: 00000000-0000-0000-0000-000000000000 - type: Microsoft.CostManagement/alerts - id: providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000 - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2020-04-27T11:07:52.7143901Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2020-04-28T11:06:02.8999373Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 161000.12 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 - unit: USD - - name: 11111111-1111-1111-111111111111 - type: Microsoft.CostManagement/alerts - id: providers/Microsoft.CostManagement/externalBillingAccounts/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111 - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2019-06-24T05:51:52.8713179Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2019-08-31T17:51:55.1808807Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 171000.32 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 11111111-1111-1111-111111111111_1_01 - unit: USD - ExternalSubscriptionAlerts: - parameters: - api-version: 2018-08-01-preview - externalCloudProviderId: '100' - externalCloudProviderType: externalSubscriptions - responses: - '200': - body: - nextLink: null - value: - - name: 00000000-0000-0000-0000-000000000000 - type: Microsoft.CostManagement/alerts - id: providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/00000000-0000-0000-0000-000000000000 - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2020-04-27T11:07:52.7143901Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2020-04-28T11:06:02.8999373Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 161000.12 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 00000000-0000-0000-0000-000000000000_1_01 - unit: USD - - name: 11111111-1111-1111-111111111111 - type: Microsoft.CostManagement/alerts - id: providers/Microsoft.CostManagement/externalSubscriptions/100/providers/Microsoft.CostManagement/alerts/11111111-1111-1111-111111111111 - properties: - description: '' - closeTime: '0001-01-01T00:00:00' - costEntityId: budget1 - creationTime: '2019-06-24T05:51:52.8713179Z' - definition: - type: Budget - category: Cost - criteria: CostThresholdExceeded - modificationTime: '2019-08-31T17:51:55.1808807Z' - source: Preset - status: Active - statusModificationTime: '0001-01-01T00:00:00' - statusModificationUserName: null - details: - amount: 200000 - contactEmails: - - 1234@contoso.com - contactGroups: [] - contactRoles: [] - currentSpend: 171000.32 - meterFilter: [] - operator: GreaterThan - overridingAlert: null - periodStartDate: '2020-03-01T00:00:00Z' - resourceFilter: [] - resourceGroupFilter: [] - tagFilter: {} - threshold: 0.8 - timeGrainType: Quarterly - triggeredBy: 11111111-1111-1111-111111111111_1_01 - unit: USD - language: - default: - name: ListExternal - description: Lists the Alerts for external cloud provider type defined. - protocol: {} - language: - default: - name: Alerts - description: '' - protocol: {} -- $key: Forecast - operations: - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_158 - schema: *ref_1 - implementation: Method - language: - default: - name: filter - description: 'May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports ''eq'', ''lt'', ''gt'', ''le'', ''ge'', and ''and''. It does not currently support ''ne'', ''or'', or ''not''.' - serializedName: $filter - protocol: - http: - in: query - - *ref_136 - - &ref_159 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: - default: - name: scope - description: >- - The scope associated with forecast operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group - scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. - serializedName: scope - protocol: - http: - in: path - requests: - - parameters: - - &ref_157 - schema: *ref_156 - implementation: Method - required: true - language: - default: - name: parameters - description: Parameters supplied to the CreateOrUpdate Forecast Config operation. - protocol: - http: - in: body - style: json - signatureParameters: - - *ref_157 - language: - default: - name: '' - description: '' - protocol: - http: - path: '/{scope}/providers/Microsoft.CostManagement/forecast' - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_158 - - *ref_159 - responses: - - schema: *ref_66 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - BillingAccountForecast: - parameters: - api-version: '2019-11-01' - billingAccountId: '12345:6789' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - includeActualCost: false - includeFreshPartialCost: false - timeframe: MonthToDate - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: CostStatus - type: String - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 2.10333307059661 - - JapanUnifia-Trial - - 20180331 - - Forecast - - USD - - - 218.68795741935486 - - RVIIOT-TRIAL - - 20180331 - - Forecast - - USD - - - 0.14384913581657052 - - VSTSHOL-1595322048000 - - 20180401 - - Forecast - - USD - - - 0.009865586851323632 - - gs-stms-dev - - 20180429 - - Forecast - - USD - BillingProfileForecast: - parameters: - api-version: '2019-11-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - includeActualCost: false - includeFreshPartialCost: false - timeframe: MonthToDate - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: CostStatus - type: String - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 2.10333307059661 - - JapanUnifia-Trial - - 20180331 - - Forecast - - USD - - - 218.68795741935486 - - RVIIOT-TRIAL - - 20180331 - - Forecast - - USD - - - 0.14384913581657052 - - VSTSHOL-1595322048000 - - 20180401 - - Forecast - - USD - - - 0.009865586851323632 - - gs-stms-dev - - 20180429 - - Forecast - - USD - DepartmentForecast: - parameters: - api-version: '2019-11-01' - billingAccountId: '12345:6789' - departmentId: '123' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - includeActualCost: false - includeFreshPartialCost: false - timeframe: MonthToDate - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: CostStatus - type: String - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/departments/123/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 2.10333307059661 - - JapanUnifia-Trial - - 20180331 - - Forecast - - USD - - - 218.68795741935486 - - RVIIOT-TRIAL - - 20180331 - - Forecast - - USD - - - 0.14384913581657052 - - VSTSHOL-1595322048000 - - 20180401 - - Forecast - - USD - - - 0.009865586851323632 - - gs-stms-dev - - 20180429 - - Forecast - - USD - EnrollmentAccountForecast: - parameters: - api-version: '2019-11-01' - billingAccountId: '12345:6789' - enrollmentAccountId: '456' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - includeActualCost: false - includeFreshPartialCost: false - timeframe: MonthToDate - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: CostStatus - type: String - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/enrollmentAccounts/456/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 2.10333307059661 - - JapanUnifia-Trial - - 20180331 - - Forecast - - USD - - - 218.68795741935486 - - RVIIOT-TRIAL - - 20180331 - - Forecast - - USD - - - 0.14384913581657052 - - VSTSHOL-1595322048000 - - 20180401 - - Forecast - - USD - - - 0.009865586851323632 - - gs-stms-dev - - 20180429 - - Forecast - - USD - InvoiceSectionForecast: - parameters: - api-version: '2019-11-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - invoiceSectionId: '9876' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - includeActualCost: false - includeFreshPartialCost: false - timeframe: MonthToDate - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: CostStatus - type: String - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Forecast?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 2.10333307059661 - - JapanUnifia-Trial - - 20180331 - - Forecast - - USD - - - 218.68795741935486 - - RVIIOT-TRIAL - - 20180331 - - Forecast - - USD - - - 0.14384913581657052 - - VSTSHOL-1595322048000 - - 20180401 - - Forecast - - USD - - - 0.009865586851323632 - - gs-stms-dev - - 20180429 - - Forecast - - USD - ResourceGroupForecast: - parameters: - api-version: '2019-11-01' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - includeActualCost: false - includeFreshPartialCost: false - timeframe: MonthToDate - resourceGroupName: ScreenSharingTest-peer - scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - name: 55312978-ba1b-415c-9304-cfd9c43c0481 - type: microsoft.costmanagement/Query - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000 - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: CostStatus - type: String - - name: Currency - type: String - nextLink: null - rows: - - - 2.10333307059661 - - ScreenSharingTest-peer - - 20180331 - - Forecast - - USD - SubscriptionForecast: - parameters: - api-version: '2019-11-01' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - includeActualCost: false - includeFreshPartialCost: false - timeframe: MonthToDate - scope: subscriptions/00000000-0000-0000-0000-000000000000 - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - name: 55312978-ba1b-415c-9304-cfd9c43c0481 - type: microsoft.costmanagement/Query - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/query/00000000-0000-0000-0000-000000000000 - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: CostStatus - type: String - - name: Currency - type: String - nextLink: null - rows: - - - 2.10333307059661 - - ScreenSharingTest-peer - - 20180331 - - Forecast - - USD - - - 218.68795741935486 - - Ict_StratAndPlan_GoldSprova_Prod - - 20180331 - - Forecast - - USD - - - 0.14384913581657052 - - ssbciotelement01 - - 20180401 - - Forecast - - USD - - - 0.009865586851323632 - - ict_stratandplan_goldsprova_prod - - 20180429 - - Forecast - - USD - language: - default: - name: Usage - description: Lists the forecast charges for scope defined. - protocol: {} - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_161 - schema: *ref_1 - implementation: Method - language: - default: - name: filter - description: 'May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports ''eq'', ''lt'', ''gt'', ''le'', ''ge'', and ''and''. It does not currently support ''ne'', ''or'', or ''not''.' - serializedName: $filter - protocol: - http: - in: query - - *ref_136 - - &ref_162 - schema: *ref_145 - implementation: Method - required: true - language: - default: - name: externalCloudProviderType - description: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. - serializedName: externalCloudProviderType - protocol: - http: - in: path - - &ref_163 - schema: *ref_1 - implementation: Method - required: true - language: - default: - name: externalCloudProviderId - description: 'This can be ''{externalSubscriptionId}'' for linked account or ''{externalBillingAccountId}'' for consolidated account used with dimension/query operations.' - serializedName: externalCloudProviderId - protocol: - http: - in: path - requests: - - parameters: - - &ref_160 - schema: *ref_156 - implementation: Method - required: true - language: - default: - name: parameters - description: Parameters supplied to the CreateOrUpdate Forecast Config operation. - protocol: - http: - in: body - style: json - signatureParameters: - - *ref_160 - language: - default: - name: '' - description: '' - protocol: - http: - path: '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/forecast' - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_161 - - *ref_162 - - *ref_163 - responses: - - schema: *ref_66 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ExternalBillingAccountForecast: - parameters: - api-version: '2019-11-01' - externalCloudProviderId: '100' - externalCloudProviderType: externalBillingAccounts - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - responses: - '200': - body: - name: 6dc7b06a-d90a-4df5-b655-ce6cf1c0814d - type: Microsoft.CostManagement/query - id: providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d - properties: - columns: - - name: PreTaxCost - type: Number - - name: CostStatus - type: String - - name: Currency - type: String - nextLink: null - rows: - - - 0 - - Forecast - - USD - - - 30.2572751438 - - Forecast - - USD - - - 0.07675760200000002 - - Forecast - - USD - - - 50.43096419040001 - - Forecast - - USD - ExternalSubscriptionForecast: - parameters: - api-version: '2019-11-01' - externalCloudProviderId: '100' - externalCloudProviderType: externalSubscriptions - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - responses: - '200': - body: - name: d99477af-7510-40ee-aca2-e59bdca0d10d - type: Microsoft.CostManagement/query - id: providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d - properties: - columns: - - name: PreTaxCost - type: Number - - name: UsageDate - type: Number - - name: CostStatus - type: String - - name: Currency - type: String - nextLink: null - rows: [] - language: - default: - name: ExternalCloudProviderUsage - description: Lists the forecast charges for external cloud provider type defined. - protocol: {} - language: - default: - name: Forecast - description: '' - protocol: {} -- $key: Query - operations: - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_165 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: - default: - name: scope - description: >- - The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group - scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. - serializedName: scope - protocol: - http: - in: path - - *ref_136 - requests: - - parameters: - - &ref_164 - schema: *ref_101 - implementation: Method - required: true - language: - default: - name: parameters - description: Parameters supplied to the CreateOrUpdate Query Config operation. - protocol: - http: - in: body - style: json - signatureParameters: - - *ref_164 - language: - default: - name: '' - description: '' - protocol: - http: - path: '/{scope}/providers/Microsoft.CostManagement/query' - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_165 - responses: - - schema: *ref_66 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - BillingAccountQuery-Legacy: - parameters: - api-version: '2019-10-01' - billingAccountId: '70664866' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - scope: providers/Microsoft.Billing/billingAccounts/70664866 - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - 20180331 - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - 20180331 - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - 20180331 - - USD - - - 0.16677720329728665 - - gs-stms-dev - - 20180331 - - USD - BillingAccountQuery-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - 20180331 - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - 20180331 - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - 20180331 - - USD - - - 0.16677720329728665 - - gs-stms-dev - - 20180331 - - USD - BillingAccountQueryGrouping-Legacy: - parameters: - api-version: '2019-10-01' - billingAccountId: '70664866' - parameters: - type: Usage - dataset: - aggregation: - totalCost: - name: PreTaxCost - function: Sum - granularity: None - grouping: - - name: ResourceGroup - type: Dimension - timeframe: TheLastMonth - scope: providers/Microsoft.Billing/billingAccounts/70664866 - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - USD - BillingAccountQueryGrouping-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - parameters: - type: Usage - dataset: - aggregation: - totalCost: - name: PreTaxCost - function: Sum - granularity: None - grouping: - - name: ResourceGroup - type: Dimension - timeframe: TheLastMonth - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - USD - BillingProfileQuery-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - 20180331 - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - 20180331 - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - 20180331 - - USD - - - 0.16677720329728665 - - gs-stms-dev - - 20180331 - - USD - BillingProfileQueryGrouping-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - parameters: - type: Usage - dataset: - aggregation: - totalCost: - name: PreTaxCost - function: Sum - granularity: None - grouping: - - name: ResourceGroup - type: Dimension - timeframe: TheLastMonth - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - USD - CustomerQuery-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - customerId: '5678' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - 20180331 - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - 20180331 - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - 20180331 - - USD - - - 0.16677720329728665 - - gs-stms-dev - - 20180331 - - USD - CustomerQueryGrouping-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - customerId: '5678' - parameters: - type: Usage - dataset: - aggregation: - totalCost: - name: PreTaxCost - function: Sum - granularity: None - grouping: - - name: ResourceGroup - type: Dimension - timeframe: TheLastMonth - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - USD - DepartmentQuery-Legacy: - parameters: - api-version: '2019-10-01' - billingAccountId: '70664866' - departmentId: '123' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - scope: providers/Microsoft.Billing/billingAccounts/100/departments/123 - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - 20180331 - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - 20180331 - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - 20180331 - - USD - - - 0.16677720329728665 - - gs-stms-dev - - 20180331 - - USD - DepartmentQueryGrouping-Legacy: - parameters: - api-version: '2019-10-01' - billingAccountId: '70664866' - departmentId: '123' - parameters: - type: Usage - dataset: - aggregation: - totalCost: - name: PreTaxCost - function: Sum - granularity: None - grouping: - - name: ResourceGroup - type: Dimension - timeframe: TheLastMonth - scope: providers/Microsoft.Billing/billingAccounts/100/departments/123 - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - USD - EnrollmentAccountQuery-Legacy: - parameters: - api-version: '2019-10-01' - billingAccountId: '70664866' - enrollmentAccountId: '456' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - 20180331 - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - 20180331 - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - 20180331 - - USD - - - 0.16677720329728665 - - gs-stms-dev - - 20180331 - - USD - EnrollmentAccountQueryGrouping-Legacy: - parameters: - api-version: '2019-10-01' - billingAccountId: '70664866' - enrollmentAccountId: '456' - parameters: - type: Usage - dataset: - aggregation: - totalCost: - name: PreTaxCost - function: Sum - granularity: Daily - grouping: - - name: ResourceGroup - type: Dimension - timeframe: TheLastMonth - scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - 20180331 - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - 20180331 - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - 20180331 - - USD - InvoiceSectionQuery-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - invoiceSectionId: '9876' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - 20180331 - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - 20180331 - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - 20180331 - - USD - - - 0.16677720329728665 - - gs-stms-dev - - 20180331 - - USD - InvoiceSectionQueryGrouping-Modern: - parameters: - api-version: '2019-10-01' - billingAccountId: '12345:6789' - billingProfileId: '13579' - invoiceSectionId: '9876' - parameters: - type: Usage - dataset: - aggregation: - totalCost: - name: PreTaxCost - function: Sum - granularity: None - grouping: - - name: ResourceGroup - type: Dimension - timeframe: TheLastMonth - scope: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876' - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: 'providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd' - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - USD - ManagementGroupQuery-Legacy: - parameters: - api-version: '2019-10-01' - managementGroupId: MyMgId - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - scope: providers/Microsoft.Management/managementGroups/MyMgId - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 19.545363672276512 - - JapanUnifia-Trial - - 20180331 - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - 20180331 - - USD - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - 20180331 - - USD - - - 0.16677720329728665 - - gs-stms-dev - - 20180331 - - USD - ManagementGroupQueryGrouping-Legacy: - parameters: - api-version: '2019-10-01' - managementGroupId: MyMgId - parameters: - type: Usage - dataset: - aggregation: - totalCost: - name: PreTaxCost - function: Sum - granularity: None - grouping: - - name: ResourceGroup - type: Dimension - timeframe: TheLastMonth - scope: providers/Microsoft.Management/managementGroups/MyMgId - responses: - '200': - body: - name: ad67fd91-c131-4bda-9ba9-7187ecb1cebd - type: microsoft.costmanagement/Query - id: providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: 'https://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query?api-version=2019-10-01&$skiptoken=AQAAAA%3D%3D' - rows: - - - 20.35941656262545 - - VSTSHOL-1595322048000 - - 20180331 - - USD - - - 173.41979241290323 - - RVIIOT-TRIAL - - 20180331 - - USD - - - 19.545363672276512 - - JapanUnifia-Trial - - 20180331 - - USD - ResourceGroupQuery-Legacy: - parameters: - api-version: '2019-10-01' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - resourceGroupName: ScreenSharingTest-peer - scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer - subscriptionId: 55312978-ba1b-415c-9304-c4b9c43c0481 - responses: - '200': - body: - name: 9af9459d-441d-4055-9ed0-83d4c4a363fb - type: microsoft.costmanagement/Query - id: subscriptions/55312978-ba1b-415c-9304-c4b9c43c0481/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: null - rows: - - - 2.10333307059661 - - ScreenSharingTest-peer - - 20180417 - - USD - - - 20.10333307059661 - - ScreenSharingTest-peer - - 20180418 - - USD - ResourceGroupQueryGrouping-Legacy: - parameters: - api-version: '2019-10-01' - parameters: - type: Usage - dataset: - aggregation: - totalCost: - name: PreTaxCost - function: Sum - granularity: Daily - grouping: - - name: ResourceType - type: Dimension - timeframe: TheLastMonth - resourceGroupName: ScreenSharingTest-peer - scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - name: 9af9459d-441d-4055-9ed0-83d4c4a363fb - type: microsoft.costmanagement/Query - id: subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceType - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: null - rows: - - - 2.10333307059661 - - Microsoft.SqlServer - - 20180417 - - USD - - - 20.10333307059661 - - Microsoft.Compute - - 20180418 - - USD - SubscriptionQuery-Legacy: - parameters: - api-version: '2019-10-01' - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - scope: subscriptions/00000000-0000-0000-0000-000000000000 - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - name: 55312978-ba1b-415c-9304-cfd9c43c0481 - type: microsoft.costmanagement/Query - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000 - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: null - rows: - - - 2.10333307059661 - - ScreenSharingTest-peer - - 20180331 - - USD - - - 218.68795741935486 - - Ict_StratAndPlan_GoldSprova_Prod - - 20180331 - - USD - - - 0.14384913581657052 - - ssbciotelement01 - - 20180401 - - USD - - - 0.009865586851323632 - - ict_stratandplan_goldsprova_prod - - 20180429 - - USD - SubscriptionQueryGrouping-Legacy: - parameters: - api-version: '2019-10-01' - parameters: - type: Usage - dataset: - aggregation: - totalCost: - name: PreTaxCost - function: Sum - granularity: None - grouping: - - name: ResourceGroup - type: Dimension - timeframe: TheLastMonth - scope: subscriptions/00000000-0000-0000-0000-000000000000 - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - name: 55312978-ba1b-415c-9304-cfd9c43c0481 - type: microsoft.costmanagement/Query - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/Query/00000000-0000-0000-0000-000000000000 - properties: - columns: - - name: PreTaxCost - type: Number - - name: ResourceGroup - type: String - - name: Currency - type: String - nextLink: null - rows: - - - 0.009865586851323632 - - Ict_StratAndPlan_GoldSprova_Prod_0 - - USD - - - 218.68795741935486 - - Ict_StratAndPlan_GoldSprova_Prod_1 - - USD - - - 2.10333307059661 - - ScreenSharingTest-peer1 - - USD - - - 0.14384913581657052 - - Ssbciotelement01 - - USD - language: - default: - name: Usage - description: Query the usage data for scope defined. - protocol: {} - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_167 - schema: *ref_145 - implementation: Method - required: true - language: - default: - name: externalCloudProviderType - description: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. - serializedName: externalCloudProviderType - protocol: - http: - in: path - - &ref_168 - schema: *ref_1 - implementation: Method - required: true - language: - default: - name: externalCloudProviderId - description: 'This can be ''{externalSubscriptionId}'' for linked account or ''{externalBillingAccountId}'' for consolidated account used with dimension/query operations.' - serializedName: externalCloudProviderId - protocol: - http: - in: path - - *ref_136 - requests: - - parameters: - - &ref_166 - schema: *ref_101 - implementation: Method - required: true - language: - default: - name: parameters - description: Parameters supplied to the CreateOrUpdate Query Config operation. - protocol: - http: - in: body - style: json - signatureParameters: - - *ref_166 - language: - default: - name: '' - description: '' - protocol: - http: - path: '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query' - method: post - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_167 - - *ref_168 - responses: - - schema: *ref_66 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - ExternalBillingAccountQueryList: - parameters: - api-version: '2019-11-01' - externalCloudProviderId: '100' - externalCloudProviderType: externalBillingAccounts - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - responses: - '200': - body: - name: 6dc7b06a-d90a-4df5-b655-ce6cf1c0814d - type: Microsoft.CostManagement/query - id: providers/Microsoft.CostManagement/externalBillingAccounts/100/query/6dc7b06a-d90a-4df5-b655-ce6cf1c0814d - properties: - columns: - - name: PreTaxCost - type: Number - - name: ServiceName - type: String - - name: Currency - type: String - nextLink: null - rows: - - - 0 - - abc db - - USD - - - 30.2572751438 - - abc compute cloud - - USD - - - 0.07675760200000002 - - abc file system - - USD - - - 50.43096419040001 - - abc elasticache - - USD - ExternalSubscriptionsQuery: - parameters: - api-version: '2019-11-01' - externalCloudProviderId: '100' - externalCloudProviderType: externalSubscriptions - parameters: - type: Usage - dataset: - 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 - granularity: Daily - timeframe: MonthToDate - responses: - '200': - body: - name: d99477af-7510-40ee-aca2-e59bdca0d10d - type: Microsoft.CostManagement/query - id: providers/Microsoft.CostManagement/externalSubscriptions/100/query/d99477af-7510-40ee-aca2-e59bdca0d10d - properties: - columns: - - name: PreTaxCost - type: Number - - name: UsageDate - type: Number - - name: Currency - type: String - nextLink: null - rows: [] - language: - default: - name: UsageByExternalCloudProviderType - description: Query the usage data for external cloud provider type defined. - protocol: {} - language: - default: - name: Query - description: '' - protocol: {} -- $key: Exports - operations: - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_169 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: - default: - name: scope - description: >- - The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group - scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. - serializedName: scope - protocol: - http: - in: path - - *ref_136 - requests: - - language: - default: - name: '' - description: '' - protocol: - http: - path: '/{scope}/providers/Microsoft.CostManagement/exports' - method: get - uri: '{$host}' - signatureParameters: - - *ref_169 - responses: - - schema: *ref_170 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - BillingAccountExportList: - parameters: - api-version: '2019-10-01' - billingAccountId: '123456' - scope: providers/Microsoft.Billing/billingAccounts/123456 - responses: - '200': - body: - value: - - name: TestExport1 - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport1 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - - name: TestExport2 - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport2 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: In - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: Environment - type: Tag - timeframe: WeekToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - DepartmentExportList: - parameters: - api-version: '2019-10-01' - billingAccountId: '12' - departmentId: '1234' - scope: providers/Microsoft.Billing/billingAccounts/12/departments/123 - responses: - '200': - body: - value: - - name: TestExport1 - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport1 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - - name: TestExport2 - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport2 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: In - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: Environment - type: Tag - timeframe: WeekToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - EnrollmentAccountExportList: - parameters: - api-version: '2019-10-01' - billingAccountId: '100' - enrollmentAccountId: '456' - scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 - responses: - '200': - body: - value: - - name: TestExport1 - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport1 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - - name: TestExport2 - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport2 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: In - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: Environment - type: Tag - timeframe: WeekToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - ManagementGroupExportList: - parameters: - api-version: '2019-10-01' - managementGroupId: TestMG - scope: providers/Microsoft.Management/managementGroups/TestMG - responses: - '200': - body: - value: - - name: TestExport1 - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport1 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - - name: TestExport2 - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport2 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: In - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: Environment - type: Tag - timeframe: WeekToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - ResourceGroupExportList: - parameters: - api-version: '2019-10-01' - resourceGroupName: MYDEVTESTRG - scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - value: - - name: TestExport1 - type: Microsoft.CostManagement/exports - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport1 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - - name: TestExport2 - type: Microsoft.CostManagement/exports - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport2 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: In - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: Environment - type: Tag - timeframe: WeekToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - SubscriptionExportList: - parameters: - api-version: '2019-10-01' - scope: subscriptions/00000000-0000-0000-0000-000000000000 - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - value: - - name: TestExport1 - type: Microsoft.CostManagement/exports - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport1 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - - name: TestExport2 - type: Microsoft.CostManagement/exports - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport2 - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: In - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: Environment - type: Tag - timeframe: WeekToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - language: - default: - name: List - description: The operation to list all exports at the given scope. - protocol: {} - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_171 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: - default: - name: scope - description: >- - The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group - scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. - serializedName: scope - protocol: - http: - in: path - - *ref_136 - - &ref_172 - schema: *ref_1 - implementation: Method - required: true - language: - default: - name: exportName - description: Export Name. - serializedName: exportName - protocol: - http: - in: path - requests: - - language: - default: - name: '' - description: '' - protocol: - http: - path: '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}' - method: get - uri: '{$host}' - signatureParameters: - - *ref_171 - - *ref_172 - responses: - - schema: *ref_67 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - BillingAccountExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '123456' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/123456 - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: 'providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}/providers/Microsoft.CostManagement/exports/TestExport' - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - UsageDate - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: Contains - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - DepartmentExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '12' - departmentId: '1234' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/12/departments/1234 - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - UsageDate - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: Contains - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - EnrollmentAccountExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '100' - enrollmentAccountId: '456' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - UsageDate - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: Contains - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - ManagementGroupExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - managementGroupId: TestMG - scope: providers/Microsoft.Management/managementGroups/TestMG - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - UsageDate - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: Contains - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - ResourceGroupExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - resourceGroupName: MYDEVTESTRG - scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - UsageDate - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: Contains - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - SubscriptionExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - scope: subscriptions/00000000-0000-0000-0000-000000000000 - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - usageSum: - name: UsageQuantity - function: Sum - configuration: - columns: - - UsageDate - - MeterId - - InstanceId - - ResourceLocation - - UsageQuantity - filter: - and: - - dimension: - name: ResourceLocation - operator: In - values: - - East US - - West Europe - - tag: - name: Environment - operator: Contains - values: - - UAT - - Prod - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - language: - default: - name: Get - description: The operation to get the export for the defined scope by export name. - protocol: {} - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_174 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: - default: - name: scope - description: >- - The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group - scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. - serializedName: scope - protocol: - http: - in: path - - *ref_136 - - &ref_175 - schema: *ref_1 - implementation: Method - required: true - language: - default: - name: exportName - description: Export Name. - serializedName: exportName - protocol: - http: - in: path - requests: - - parameters: - - &ref_173 - schema: *ref_67 - implementation: Method - required: true - language: - default: - name: parameters - description: Parameters supplied to the CreateOrUpdate Export operation. - protocol: - http: - in: body - style: json - signatureParameters: - - *ref_173 - language: - default: - name: '' - description: '' - protocol: - http: - path: '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}' - method: put - knownMediaType: json - mediaTypes: - - application/json - uri: '{$host}' - signatureParameters: - - *ref_174 - - *ref_175 - responses: - - schema: *ref_67 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - - schema: *ref_67 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '201' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - BillingAccountCreateOrUpdateExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '123456' - exportName: TestExport - parameters: - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - scope: providers/Microsoft.Billing/billingAccounts/123456 - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - '201': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - DepartmentCreateOrUpdateExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '12' - departmentId: '1234' - exportName: TestExport - parameters: - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - scope: providers/Microsoft.Billing/billingAccounts/12/departments/1234 - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - '201': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - EnrollmentAccountCreateOrUpdateExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '100' - enrollmentAccountId: '456' - exportName: TestExport - parameters: - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - '201': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - ManagementGroupCreateOrUpdateExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - managementGroupId: TestMG - parameters: - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - scope: providers/Microsoft.Management/managementGroups/TestMG - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - '201': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - ResourceGroupCreateOrUpdateExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - parameters: - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - resourceGroupName: MYDEVTESTRG - scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - '201': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - SubscriptionCreateOrUpdateExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - parameters: - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - scope: subscriptions/00000000-0000-0000-0000-000000000000 - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - '201': - body: - name: TestExport - type: Microsoft.CostManagement/exports - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport - properties: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - - name: Environment - type: Tag - timeframe: MonthToDate - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ad-hoc - schedule: - recurrence: Weekly - recurrencePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - status: Active - language: - default: - name: 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. - protocol: {} - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_176 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: - default: - name: scope - description: >- - The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group - scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. - serializedName: scope - protocol: - http: - in: path - - *ref_136 - - &ref_177 - schema: *ref_1 - implementation: Method - required: true - language: - default: - name: exportName - description: Export Name. - serializedName: exportName - protocol: - http: - in: path - requests: - - language: - default: - name: '' - description: '' - protocol: - http: - path: '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}' - method: delete - uri: '{$host}' - signatureParameters: - - *ref_176 - - *ref_177 - responses: - - language: - default: - name: '' - description: '' - protocol: - http: - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - BillingAccountDeleteExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '123456' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/123456 - responses: - '200': {} - DepartmentDeleteExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '12' - departmentId: '1234' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/12/departments/1234 - responses: - '200': {} - EnrollmentAccountDeleteExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '100' - enrollmentAccountId: '456' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 - responses: - '200': {} - ManagementGroupDeleteExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - managementGroupId: TestMG - scope: providers/Microsoft.Management/managementGroups/TestMG - responses: - '200': {} - ResourceGroupDeleteExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - resourceGroupName: MYDEVTESTRG - scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': {} - SubscriptionDeleteExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - scope: subscriptions/00000000-0000-0000-0000-000000000000 - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': {} - language: - default: - name: Delete - description: The operation to delete a export. - protocol: {} - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_178 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: - default: - name: scope - description: >- - The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group - scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. - serializedName: scope - protocol: - http: - in: path - - *ref_136 - - &ref_179 - schema: *ref_1 - implementation: Method - required: true - language: - default: - name: exportName - description: Export Name. - serializedName: exportName - protocol: - http: - in: path - requests: - - language: - default: - name: '' - description: '' - protocol: - http: - path: '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run' - method: post - uri: '{$host}' - signatureParameters: - - *ref_178 - - *ref_179 - responses: - - language: - default: - name: '' - description: '' - protocol: - http: - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - BillingAccountExecuteExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '123456' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/123456 - responses: - '200': {} - DepartmentExecuteExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '12' - departmentId: '1234' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/12/departments/1234 - responses: - '200': {} - EnrollmentAccountExecuteExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '100' - enrollmentAccountId: '456' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 - responses: - '200': {} - ManagementGroupExecuteExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - managementGroupId: TestMG - scope: providers/Microsoft.Management/managementGroups/TestMG - responses: - '200': {} - ResourceGroupExecuteExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - resourceGroupName: MYDEVTESTRG - scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': {} - SubscriptionExecuteExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - scope: subscriptions/00000000-0000-0000-0000-000000000000 - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': {} - language: - default: - name: Execute - description: The operation to execute a export. - protocol: {} - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - &ref_180 - schema: *ref_1 - implementation: Method - required: true - extensions: - x-ms-skip-url-encoding: true - language: - default: - name: scope - description: >- - The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group - scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and - '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. - serializedName: scope - protocol: - http: - in: path - - *ref_136 - - &ref_181 - schema: *ref_1 - implementation: Method - required: true - language: - default: - name: exportName - description: Export Name. - serializedName: exportName - protocol: - http: - in: path - requests: - - language: - default: - name: '' - description: '' - protocol: - http: - path: '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory' - method: get - uri: '{$host}' - signatureParameters: - - *ref_180 - - *ref_181 - responses: - - schema: *ref_182 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-examples: - BillingAccountExecutionHistoryExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '123456' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/123456 - responses: - '200': - body: - value: - - id: 'providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100' - properties: - executionType: OnDemand - fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv - processingEndTime: '2018-08-03T07:52:28.0373318Z' - processingStartTime: '2018-08-03T07:52:16.9123797Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: john.doe@gmail.com - submittedTime: '2018-08-03T07:52:15.6016681Z' - - id: 'providers/Microsoft.Billing/billingAccounts/{billingAccount-id}/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef' - properties: - executionType: Scheduled - fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv - processingEndTime: '2018-08-03T09:04:19.7223808Z' - processingStartTime: '2018-08-03T09:03:58.5710244Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: System - submittedTime: '2018-08-03T09:03:58.5710244Z' - DepartmentExecutionHistoryExport: - parameters: - api-version: '2019-10-01' - billingAccountId: '12' - departmentId: '1234' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/12/departments/1234 - responses: - '200': - body: - value: - - id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100 - properties: - executionType: OnDemand - fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv - processingEndTime: '2018-08-03T07:52:28.0373318Z' - processingStartTime: '2018-08-03T07:52:16.9123797Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: john.doe@gmail.com - submittedTime: '2018-08-03T07:52:15.6016681Z' - - id: providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef - properties: - executionType: Scheduled - fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv - processingEndTime: '2018-08-03T09:04:19.7223808Z' - processingStartTime: '2018-08-03T09:03:58.5710244Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: System - submittedTime: '2018-08-03T09:03:58.5710244Z' - EnrollmentAccountExecutionHistoryExport: - parameters: - api-version: '2019-01-01' - billingAccountId: '100' - enrollmentAccountId: '456' - exportName: TestExport - scope: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456 - responses: - '200': - body: - value: - - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100 - properties: - executionType: OnDemand - fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv - processingEndTime: '2018-08-03T07:52:28.0373318Z' - processingStartTime: '2018-08-03T07:52:16.9123797Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: john.doe@gmail.com - submittedTime: '2018-08-03T07:52:15.6016681Z' - - id: providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef - properties: - executionType: Scheduled - fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv - processingEndTime: '2018-08-03T09:04:19.7223808Z' - processingStartTime: '2018-08-03T09:03:58.5710244Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: System - submittedTime: '2018-08-03T09:03:58.5710244Z' - ManagementGroupExecutionHistoryExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - managementGroupId: TestMG - scope: providers/Microsoft.Management/managementGroups/TestMG - responses: - '200': - body: - value: - - id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100 - properties: - executionType: OnDemand - fileName: ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv - processingEndTime: '2018-08-03T07:52:28.0373318Z' - processingStartTime: '2018-08-03T07:52:16.9123797Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: john.doe@gmail.com - submittedTime: '2018-08-03T07:52:15.6016681Z' - - id: providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef - properties: - executionType: Scheduled - fileName: ScheduledForTestExport/TestExportSchedule/20180729-20180804/TestExportSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv - processingEndTime: '2018-08-03T09:04:19.7223808Z' - processingStartTime: '2018-08-03T09:03:58.5710244Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: System - submittedTime: '2018-08-03T09:03:58.5710244Z' - ResourceGroupExecutionHistoryExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - resourceGroupName: MYDEVTESTRG - scope: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - value: - - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100 - properties: - executionType: OnDemand - fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv - processingEndTime: '2018-08-03T07:52:28.0373318Z' - processingStartTime: '2018-08-03T07:52:16.9123797Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: john.doe@gmail.com - submittedTime: '2018-08-03T07:52:15.6016681Z' - - id: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef - properties: - executionType: Scheduled - fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv - processingEndTime: '2018-08-03T09:04:19.7223808Z' - processingStartTime: '2018-08-03T09:03:58.5710244Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: System - submittedTime: '2018-08-03T09:03:58.5710244Z' - SubscriptionExecutionHistoryExport: - parameters: - api-version: '2019-10-01' - exportName: TestExport - scope: subscriptions/00000000-0000-0000-0000-000000000000 - subscriptionId: 00000000-0000-0000-0000-000000000000 - responses: - '200': - body: - value: - - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/1e25d58a-a3b0-4916-9542-6e04a89bc100 - properties: - executionType: OnDemand - fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_1e25d58a-a3b0-4916-9542-6e04a89bc100.csv - processingEndTime: '2018-08-03T07:52:28.0373318Z' - processingStartTime: '2018-08-03T07:52:16.9123797Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: john.doe@gmail.com - submittedTime: '2018-08-03T07:52:15.6016681Z' - - id: subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/JohnDoeSchedule/Run/11ac6811-dca3-46ad-b326-4704cf0c58ef - properties: - executionType: Scheduled - fileName: ScheduledTestsForJohnDoe/JohnDoeSchedule/20180729-20180804/JohnDoeSchedule_11ac6811-dca3-46ad-b326-4704cf0c58ef.csv - processingEndTime: '2018-08-03T09:04:19.7223808Z' - processingStartTime: '2018-08-03T09:03:58.5710244Z' - runSettings: - format: Csv - definition: - type: Usage - dataset: - aggregation: - costSum: - name: PreTaxCost - function: Sum - configuration: - columns: - - Date - - MeterId - - InstanceId - - ResourceLocation - - PreTaxCost - 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 - granularity: Daily - grouping: - - name: SubscriptionName - type: Dimension - timePeriod: - from: '2018-06-01T00:00:00Z' - to: '2018-10-31T00:00:00Z' - timeframe: Custom - deliveryInfo: - destination: - container: exports - resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182 - rootFolderPath: ScheduledTestsForJohnDoe - status: Completed - submittedBy: System - submittedTime: '2018-08-03T09:03:58.5710244Z' - language: - default: - name: GetExecutionHistory - description: The operation to get the execution history of an export for the defined scope by export name. - protocol: {} - language: - default: - name: Exports - description: '' - protocol: {} -- $key: Operations - operations: - - apiVersions: - - version: '2019-11-01' - parameters: - - *ref_135 - - *ref_136 - requests: - - language: - default: - name: '' - description: '' - protocol: - http: - path: /providers/Microsoft.CostManagement/operations - method: get - uri: '{$host}' - signatureParameters: [] - responses: - - schema: *ref_183 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - '200' - exceptions: - - schema: *ref_144 - language: - default: - name: '' - description: '' - protocol: - http: - knownMediaType: json - mediaTypes: - - application/json - statusCodes: - - default - extensions: - x-ms-pageable: - nextLinkName: nextLink - language: - default: - name: List - description: Lists all of the available cost management REST API operations. - paging: - nextLinkName: nextLink - protocol: {} - language: - default: - name: Operations - description: '' - protocol: {} -security: - authenticationRequired: false -language: - default: - name: CostManagementClient - description: '' -protocol: - http: {}