@azure/arm-consumption package
Classes
| ConsumptionManagementClient |
Interfaces
| AggregatedCostGetByManagementGroupOptionalParams |
Optional parameters. |
| AggregatedCostGetForBillingPeriodByManagementGroupOptionalParams |
Optional parameters. |
| AggregatedCostOperations |
Interface representing a AggregatedCost operations. |
| Amount |
The amount plus currency . |
| AmountWithExchangeRate |
The amount with exchange rate. |
| Balance |
A balance resource. |
| BalanceProperties |
The properties of the balance. |
| BalancePropertiesAdjustmentDetailsItem |
model interface BalancePropertiesAdjustmentDetailsItem |
| BalancePropertiesNewPurchasesDetailsItem |
model interface BalancePropertiesNewPurchasesDetailsItem |
| BalancesGetByBillingAccountOptionalParams |
Optional parameters. |
| BalancesGetForBillingPeriodByBillingAccountOptionalParams |
Optional parameters. |
| BalancesOperations |
Interface representing a Balances operations. |
| Budget |
A budget resource. |
| BudgetComparisonExpression |
The comparison expression to be used in the budgets. |
| BudgetFilter |
May be used to filter budgets by resource group, resource, or meter. |
| BudgetFilterProperties |
The Dimensions or Tags to filter a budget by. |
| BudgetProperties |
The properties of the budget. |
| BudgetTimePeriod |
The start and end date for a budget. |
| BudgetsCreateOrUpdateOptionalParams |
Optional parameters. |
| BudgetsDeleteOptionalParams |
Optional parameters. |
| BudgetsGetOptionalParams |
Optional parameters. |
| BudgetsListOptionalParams |
Optional parameters. |
| BudgetsOperations |
Interface representing a Budgets operations. |
| ChargeSummary |
A charge summary resource. |
| ChargesListOptionalParams |
Optional parameters. |
| ChargesListResult |
Result of listing charge summary. |
| ChargesOperations |
Interface representing a Charges operations. |
| ConsumptionManagementClientOptionalParams |
Optional parameters for the client. |
| CreditBalanceSummary |
Summary of credit balances. |
| CreditSummary |
A credit summary resource. |
| CreditSummaryProperties |
The properties of the credit summary. |
| CreditsGetOptionalParams |
Optional parameters. |
| CreditsOperations |
Interface representing a Credits operations. |
| CurrentSpend |
The current amount of cost which is being tracked for a budget. |
| ErrorAdditionalInfo |
The resource management error additional info. |
| ErrorDetail |
The error detail. |
| ErrorResponse |
Common error response for all Azure Resource Manager APIs to return error details for failed operations. |
| EventProperties |
The event properties. |
| EventSummary |
An event summary resource. |
| EventsOperationsListByBillingAccountOptionalParams |
Optional parameters. |
| EventsOperationsListByBillingProfileOptionalParams |
Optional parameters. |
| EventsOperationsOperations |
Interface representing a EventsOperations operations. |
| ExtensionResource |
The base extension resource. |
| ForecastSpend |
The forecasted cost which is being tracked for a budget. |
| HighCasedErrorDetails |
The details of the error. |
| HighCasedErrorResponse |
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:
|
| LegacyChargeSummary |
Legacy charge summary. |
| LegacyChargeSummaryProperties |
The properties of legacy charge summary. |
| LegacyReservationRecommendation |
Legacy reservation recommendation. |
| LegacyReservationRecommendationProperties |
The properties of the reservation recommendation. |
| LegacyReservationTransactionProperties |
The properties of a legacy reservation transaction. |
| LegacySharedScopeReservationRecommendationProperties |
The properties of the legacy reservation recommendation for shared scope. |
| LegacySingleScopeReservationRecommendationProperties |
The properties of the legacy reservation recommendation for single scope. |
| LegacyUsageDetail |
Legacy usage detail. |
| LegacyUsageDetailProperties |
The properties of the legacy usage detail. |
| LotProperties |
The lot properties. |
| LotSummary |
A lot summary resource. |
| LotsOperationsListByBillingAccountOptionalParams |
Optional parameters. |
| LotsOperationsListByBillingProfileOptionalParams |
Optional parameters. |
| LotsOperationsListByCustomerOptionalParams |
Optional parameters. |
| LotsOperationsOperations |
Interface representing a LotsOperations operations. |
| ManagementGroupAggregatedCostProperties |
The properties of the Management Group Aggregated Cost. |
| ManagementGroupAggregatedCostResult |
A management group aggregated cost resource. |
| Marketplace |
A marketplace resource. |
| MarketplaceProperties |
The properties of the marketplace usage detail. |
| MarketplacesListOptionalParams |
Optional parameters. |
| MarketplacesOperations |
Interface representing a Marketplaces operations. |
| MeterDetails |
The properties of the meter detail. |
| MeterDetailsResponse |
The properties of the meter detail. |
| ModernChargeSummary |
Modern charge summary. |
| ModernChargeSummaryProperties |
The properties of modern charge summary. |
| ModernReservationRecommendation |
Modern reservation recommendation. |
| ModernReservationRecommendationProperties |
The properties of the reservation recommendation. |
| ModernReservationTransaction |
Modern Reservation transaction resource. |
| ModernReservationTransactionProperties |
The properties of a modern reservation transaction. |
| ModernSharedScopeReservationRecommendationProperties |
The properties of the modern reservation recommendation for shared scope. |
| ModernSingleScopeReservationRecommendationProperties |
The properties of the modern reservation recommendation for single scope. |
| ModernUsageDetail |
Modern usage detail. |
| ModernUsageDetailProperties |
The properties of the usage detail. |
| Notification |
The notification associated with a budget. |
| Operation |
A Consumption REST API operation. |
| OperationDisplay |
The object that represents the operation. |
| OperationStatus |
The status of the long running operation. |
| OperationsListOptionalParams |
Optional parameters. |
| OperationsOperations |
Interface representing a Operations operations. |
| PageSettings |
Options for the byPage method |
| PagedAsyncIterableIterator |
An interface that allows async iterable iteration both to completion and by page. |
| PriceSheetDownloadByBillingAccountPeriodOptionalParams |
Optional parameters. |
| PriceSheetGetByBillingPeriodOptionalParams |
Optional parameters. |
| PriceSheetGetOptionalParams |
Optional parameters. |
| PriceSheetModel |
price sheet result. It contains the pricesheet associated with billing period |
| PriceSheetOperations |
Interface representing a PriceSheet operations. |
| PriceSheetProperties |
The properties of the price sheet. |
| PriceSheetResult |
An pricesheet resource. |
| PricesheetDownloadProperties |
The properties of the price sheet download. |
| ProxyResource |
The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location |
| Reseller |
The reseller properties. |
| ReservationDetail |
reservation detail resource. |
| ReservationDetailProperties |
The properties of the reservation detail. |
| ReservationRecommendation |
A reservation recommendation resource. |
| ReservationRecommendationDetailsCalculatedSavingsProperties |
Details of estimated savings. The costs and savings are estimated for the term. |
| ReservationRecommendationDetailsGetOptionalParams |
Optional parameters. |
| ReservationRecommendationDetailsModel |
Reservation recommendation details. |
| ReservationRecommendationDetailsOperations |
Interface representing a ReservationRecommendationDetails operations. |
| ReservationRecommendationDetailsProperties |
The properties of the reservation recommendation. |
| ReservationRecommendationDetailsResourceProperties |
Details of the resource. |
| ReservationRecommendationDetailsSavingsProperties |
Details of the estimated savings. |
| ReservationRecommendationDetailsUsageProperties |
Details about historical usage data that has been used for computing the recommendation. |
| ReservationRecommendationsListOptionalParams |
Optional parameters. |
| ReservationRecommendationsOperations |
Interface representing a ReservationRecommendations operations. |
| ReservationSummary |
reservation summary resource. |
| ReservationSummaryProperties |
The properties of the reservation summary. |
| ReservationTransaction |
Reservation transaction resource. |
| ReservationTransactionsListByBillingProfileOptionalParams |
Optional parameters. |
| ReservationTransactionsListOptionalParams |
Optional parameters. |
| ReservationTransactionsOperations |
Interface representing a ReservationTransactions operations. |
| ReservationsDetailsListByReservationOrderAndReservationOptionalParams |
Optional parameters. |
| ReservationsDetailsListByReservationOrderOptionalParams |
Optional parameters. |
| ReservationsDetailsListOptionalParams |
Optional parameters. |
| ReservationsDetailsOperations |
Interface representing a ReservationsDetails operations. |
| ReservationsSummariesListByReservationOrderAndReservationOptionalParams |
Optional parameters. |
| ReservationsSummariesListByReservationOrderOptionalParams |
Optional parameters. |
| ReservationsSummariesListOptionalParams |
Optional parameters. |
| ReservationsSummariesOperations |
Interface representing a ReservationsSummaries operations. |
| Resource |
Common fields that are returned in the response for all Azure Resource Manager resources |
| RestorePollerOptions | |
| SavingsPlan |
The properties of the SavingsPlan. |
| SkuProperty |
The Sku property |
| SystemData |
Metadata pertaining to creation and last modification of the resource. |
| Tag |
The tag resource. |
| TagProperties |
The properties of the tag. |
| TagsGetOptionalParams |
Optional parameters. |
| TagsOperations |
Interface representing a Tags operations. |
| TagsResult |
A resource listing all tags. |
| UsageDetail |
An usage detail resource. |
| UsageDetailsListOptionalParams |
Optional parameters. |
| UsageDetailsOperations |
Interface representing a UsageDetails operations. |
Type Aliases
| AzureSupportedClouds |
The supported values for cloud setting as a string literal type |
| BillingFrequency |
The billing frequency. Known values supported by the serviceMonth |
| BudgetOperatorType |
The operator to use for comparison. Known values supported by the serviceIn |
| CategoryType |
The category of the budget, whether the budget tracks cost or usage. Known values supported by the serviceCost |
| ChargeSummaryKind |
Specifies the kind of charge summary. Known values supported by the servicelegacy |
| ChargeSummaryUnion |
Alias for ChargeSummaryUnion |
| ContinuablePage |
An interface that describes a page of results. |
| CreatedByType |
The kind of entity that created the resource. Known values supported by the serviceUser: The entity was created by a user. |
| CultureCode |
Language in which the recipient will receive the notification Known values supported by the serviceen-us |
| Datagrain |
Type of Datagrain |
| EventType |
Identifies the type of the event. Known values supported by the serviceSettledCharges |
| LegacyReservationRecommendationPropertiesUnion |
Alias for LegacyReservationRecommendationPropertiesUnion |
| LookBackPeriod |
Type of LookBackPeriod |
| LotSource |
The source of the lot. Known values supported by the servicePurchasedCredit |
| Metrictype |
Type of Metrictype |
| ModernReservationRecommendationPropertiesUnion |
Alias for ModernReservationRecommendationPropertiesUnion |
| OperationStatusType |
The status of the long running operation. Known values supported by the serviceRunning |
| OperatorType |
The comparison operator. Known values supported by the serviceEqualTo: Alert will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future. |
| OrganizationType |
The organization type of the lot. Known values supported by the servicePrimary: Primary organization type for Multi-Entity consumption commitment. |
| PricingModelType |
Identifier that indicates how the meter is priced. Known values supported by the serviceOn Demand |
| ReservationRecommendationKind |
Specifies the kind of reservation recommendation. Known values supported by the servicelegacy |
| ReservationRecommendationUnion |
Alias for ReservationRecommendationUnion |
| Scope |
Type of Scope |
| Status |
The status of the lot. Known values supported by the serviceNone |
| Term |
Type of Term |
| ThresholdType |
The type of threshold Known values supported by the serviceActual: Actual costs budget alerts notify when the actual accrued cost exceeds the allocated budget . |
| TimeGrainType |
The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers Known values supported by the serviceMonthly |
| UsageDetailUnion |
Alias for UsageDetailUnion |
| UsageDetailsKind |
Specifies the kind of usage details. Known values supported by the servicelegacy |
Enums
| AzureClouds |
An enum to describe Azure Cloud environments. |
| KnownBillingFrequency |
The billing frequency. |
| KnownBudgetOperatorType |
The operator to use for comparison. |
| KnownCategoryType |
The category of the budget, whether the budget tracks cost or usage. |
| KnownChargeSummaryKind |
Specifies the kind of charge summary. |
| KnownCreatedByType |
The kind of entity that created the resource. |
| KnownCultureCode |
Language in which the recipient will receive the notification |
| KnownDatagrain |
Known values of Datagrain that the service accepts. |
| KnownEventType |
Identifies the type of the event. |
| KnownLookBackPeriod |
Known values of LookBackPeriod that the service accepts. |
| KnownLotSource |
The source of the lot. |
| KnownMetrictype |
Known values of Metrictype that the service accepts. |
| KnownOperationStatusType |
The status of the long running operation. |
| KnownOperatorType |
The comparison operator. |
| KnownOrganizationType |
The organization type of the lot. |
| KnownPricingModelType |
Identifier that indicates how the meter is priced. |
| KnownReservationRecommendationKind |
Specifies the kind of reservation recommendation. |
| KnownScope |
Known values of Scope that the service accepts. |
| KnownStatus |
The status of the lot. |
| KnownTerm |
Known values of Term that the service accepts. |
| KnownThresholdType |
The type of threshold |
| KnownTimeGrainType |
The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers |
| KnownUsageDetailsKind |
Specifies the kind of usage details. |
| KnownVersions |
The available API versions. |
Functions
| is |
Typeguard for RestError |
| restore |
Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope. |
Variables
| Rest |
A custom error type for failed pipeline requests. |
Function Details
isRestError(unknown)
Typeguard for RestError
function isRestError(e: unknown): e
Parameters
- e
-
unknown
Something caught by a catch clause.
Returns
e
restorePoller<TResponse, TResult>(ConsumptionManagementClient, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)
Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope.
function restorePoller<TResponse, TResult>(client: ConsumptionManagementClient, serializedState: string, sourceOperation: (args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult, PathUncheckedResponse>): PollerLike<OperationState<TResult>, TResult>
Parameters
- client
- ConsumptionManagementClient
- serializedState
-
string
- sourceOperation
-
(args: any[]) => PollerLike<OperationState<TResult>, TResult>
- options
-
RestorePollerOptions<TResult, PathUncheckedResponse>
Returns
PollerLike<OperationState<TResult>, TResult>
Variable Details
RestError
A custom error type for failed pipeline requests.
RestError: RestErrorConstructor