Share via


ConsumptionExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.Consumption.

public static class ConsumptionExtensions
type ConsumptionExtensions = class
Public Module ConsumptionExtensions
Inheritance
ConsumptionExtensions

Methods

GetAggregatedCost(ManagementGroupResource, String, CancellationToken)

Provides the aggregate cost of a management group and all child management groups by current billing period.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Consumption/aggregatedcost
  • Operation Id: AggregatedCost_GetByManagementGroup
GetAggregatedCostAsync(ManagementGroupResource, String, CancellationToken)

Provides the aggregate cost of a management group and all child management groups by current billing period.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Consumption/aggregatedcost
  • Operation Id: AggregatedCost_GetByManagementGroup
GetBillingAccountConsumptionResource(ArmClient, ResourceIdentifier)

Gets an object representing a BillingAccountConsumptionResource along with the instance operations that can be performed on it but with no data. You can use Azure.ResourceManager.Consumption.BillingAccountConsumptionResource.CreateResourceIdentifier(System.String) to create a BillingAccountConsumptionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetBillingAccountConsumptionResource(ResourceIdentifier) instead.

GetBillingCustomerConsumptionResource(ArmClient, ResourceIdentifier)

Gets an object representing a BillingCustomerConsumptionResource along with the instance operations that can be performed on it but with no data. You can use Azure.ResourceManager.Consumption.BillingCustomerConsumptionResource.CreateResourceIdentifier(System.String,System.String) to create a BillingCustomerConsumptionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetBillingCustomerConsumptionResource(ResourceIdentifier) instead.

GetBillingProfileConsumptionResource(ArmClient, ResourceIdentifier)

Gets an object representing a BillingProfileConsumptionResource along with the instance operations that can be performed on it but with no data. You can use Azure.ResourceManager.Consumption.BillingProfileConsumptionResource.CreateResourceIdentifier(System.String,System.String) to create a BillingProfileConsumptionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetBillingProfileConsumptionResource(ResourceIdentifier) instead.

GetConsumptionBudget(ArmClient, ResourceIdentifier, String, CancellationToken)

Gets the budget for the scope by budget name.

  • Request Path: /{scope}/providers/Microsoft.Consumption/budgets/{budgetName}
  • Operation Id: Budgets_Get
GetConsumptionBudgetAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Gets the budget for the scope by budget name.

  • Request Path: /{scope}/providers/Microsoft.Consumption/budgets/{budgetName}
  • Operation Id: Budgets_Get
GetConsumptionBudgetResource(ArmClient, ResourceIdentifier)

Gets an object representing a ConsumptionBudgetResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a ConsumptionBudgetResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetConsumptionBudgetResource(ResourceIdentifier) instead.

GetConsumptionBudgets(ArmClient, ResourceIdentifier)

Gets a collection of ConsumptionBudgetResources in the ArmClient. MockingTo mock this method, please mock GetConsumptionBudgets(ResourceIdentifier) instead.

GetConsumptionCharges(ArmClient, ResourceIdentifier, String, String, String, String, CancellationToken)

Lists the charges based for the defined scope.

  • Request Path: /{scope}/providers/Microsoft.Consumption/charges
  • Operation Id: Charges_List
GetConsumptionChargesAsync(ArmClient, ResourceIdentifier, String, String, String, String, CancellationToken)

Lists the charges based for the defined scope.

  • Request Path: /{scope}/providers/Microsoft.Consumption/charges
  • Operation Id: Charges_List
GetConsumptionMarketPlaces(ArmClient, ResourceIdentifier, String, Nullable<Int32>, String, CancellationToken)

Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later.

  • Request Path: /{scope}/providers/Microsoft.Consumption/marketplaces
  • Operation Id: Marketplaces_List
GetConsumptionMarketPlacesAsync(ArmClient, ResourceIdentifier, String, Nullable<Int32>, String, CancellationToken)

Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later.

  • Request Path: /{scope}/providers/Microsoft.Consumption/marketplaces
  • Operation Id: Marketplaces_List
GetConsumptionReservationRecommendationDetails(ArmClient, ResourceIdentifier, ConsumptionReservationRecommendationScope, String, ConsumptionReservationRecommendationTerm, ConsumptionReservationRecommendationLookBackPeriod, String, CancellationToken)

Details of a reservation recommendation for what-if analysis of reserved instances.

  • Request Path: /{resourceScope}/providers/Microsoft.Consumption/reservationRecommendationDetails
  • Operation Id: ReservationRecommendationDetails_Get
GetConsumptionReservationRecommendationDetailsAsync(ArmClient, ResourceIdentifier, ConsumptionReservationRecommendationScope, String, ConsumptionReservationRecommendationTerm, ConsumptionReservationRecommendationLookBackPeriod, String, CancellationToken)

Details of a reservation recommendation for what-if analysis of reserved instances.

  • Request Path: /{resourceScope}/providers/Microsoft.Consumption/reservationRecommendationDetails
  • Operation Id: ReservationRecommendationDetails_Get
GetConsumptionReservationRecommendations(ArmClient, ResourceIdentifier, String, CancellationToken)

List of recommendations for purchasing reserved instances.

  • Request Path: /{resourceScope}/providers/Microsoft.Consumption/reservationRecommendations
  • Operation Id: ReservationRecommendations_List
GetConsumptionReservationRecommendationsAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

List of recommendations for purchasing reserved instances.

  • Request Path: /{resourceScope}/providers/Microsoft.Consumption/reservationRecommendations
  • Operation Id: ReservationRecommendations_List
GetConsumptionReservationsDetails(ArmClient, ResourceIdentifier, String, String, String, String, String, CancellationToken)

Lists the reservations details for the defined scope and provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.

  • Request Path: /{resourceScope}/providers/Microsoft.Consumption/reservationDetails
  • Operation Id: ReservationsDetails_List
GetConsumptionReservationsDetailsAsync(ArmClient, ResourceIdentifier, String, String, String, String, String, CancellationToken)

Lists the reservations details for the defined scope and provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.

  • Request Path: /{resourceScope}/providers/Microsoft.Consumption/reservationDetails
  • Operation Id: ReservationsDetails_List
GetConsumptionReservationsSummaries(ArmClient, ResourceIdentifier, ArmResourceGetConsumptionReservationsSummariesOptions, CancellationToken)

Lists the reservations summaries for the defined scope daily or monthly grain.

  • Request Path: /{resourceScope}/providers/Microsoft.Consumption/reservationSummaries
  • Operation Id: ReservationsSummaries_List
GetConsumptionReservationsSummariesAsync(ArmClient, ResourceIdentifier, ArmResourceGetConsumptionReservationsSummariesOptions, CancellationToken)

Lists the reservations summaries for the defined scope daily or monthly grain.

  • Request Path: /{resourceScope}/providers/Microsoft.Consumption/reservationSummaries
  • Operation Id: ReservationsSummaries_List
GetConsumptionTags(ArmClient, ResourceIdentifier, CancellationToken)

Get all available tag keys for the defined scope

  • Request Path: /{scope}/providers/Microsoft.Consumption/tags
  • Operation Id: Tags_Get
GetConsumptionTagsAsync(ArmClient, ResourceIdentifier, CancellationToken)

Get all available tag keys for the defined scope

  • Request Path: /{scope}/providers/Microsoft.Consumption/tags
  • Operation Id: Tags_Get
GetConsumptionUsageDetails(ArmClient, ResourceIdentifier, String, String, String, Nullable<Int32>, Nullable<ConsumptionMetricType>, CancellationToken)

Lists the usage details for the defined scope. Usage details are available via this API only for May 1, 2014 or later.

  • Request Path: /{scope}/providers/Microsoft.Consumption/usageDetails
  • Operation Id: UsageDetails_List
GetConsumptionUsageDetailsAsync(ArmClient, ResourceIdentifier, String, String, String, Nullable<Int32>, Nullable<ConsumptionMetricType>, CancellationToken)

Lists the usage details for the defined scope. Usage details are available via this API only for May 1, 2014 or later.

  • Request Path: /{scope}/providers/Microsoft.Consumption/usageDetails
  • Operation Id: UsageDetails_List
GetManagementGroupBillingPeriodConsumptionResource(ArmClient, ResourceIdentifier)

Gets an object representing a ManagementGroupBillingPeriodConsumptionResource along with the instance operations that can be performed on it but with no data. You can use Azure.ResourceManager.Consumption.ManagementGroupBillingPeriodConsumptionResource.CreateResourceIdentifier(System.String,System.String) to create a ManagementGroupBillingPeriodConsumptionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetManagementGroupBillingPeriodConsumptionResource(ResourceIdentifier) instead.

GetPriceSheet(SubscriptionResource, String, String, Nullable<Int32>, CancellationToken)

Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/pricesheets/default
  • Operation Id: PriceSheet_Get
GetPriceSheetAsync(SubscriptionResource, String, String, Nullable<Int32>, CancellationToken)

Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/pricesheets/default
  • Operation Id: PriceSheet_Get
GetReservationConsumptionResource(ArmClient, ResourceIdentifier)

Gets an object representing a ReservationConsumptionResource along with the instance operations that can be performed on it but with no data. You can use Azure.ResourceManager.Consumption.ReservationConsumptionResource.CreateResourceIdentifier(System.String,System.String) to create a ReservationConsumptionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetReservationConsumptionResource(ResourceIdentifier) instead.

GetReservationOrderConsumptionResource(ArmClient, ResourceIdentifier)

Gets an object representing a ReservationOrderConsumptionResource along with the instance operations that can be performed on it but with no data. You can use Azure.ResourceManager.Consumption.ReservationOrderConsumptionResource.CreateResourceIdentifier(System.String) to create a ReservationOrderConsumptionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetReservationOrderConsumptionResource(ResourceIdentifier) instead.

GetSubscriptionBillingPeriodConsumptionResource(ArmClient, ResourceIdentifier)

Gets an object representing a SubscriptionBillingPeriodConsumptionResource along with the instance operations that can be performed on it but with no data. You can use Azure.ResourceManager.Consumption.SubscriptionBillingPeriodConsumptionResource.CreateResourceIdentifier(System.String,System.String) to create a SubscriptionBillingPeriodConsumptionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetSubscriptionBillingPeriodConsumptionResource(ResourceIdentifier) instead.

GetTenantBillingPeriodConsumptionResource(ArmClient, ResourceIdentifier)

Gets an object representing a TenantBillingPeriodConsumptionResource along with the instance operations that can be performed on it but with no data. You can use Azure.ResourceManager.Consumption.TenantBillingPeriodConsumptionResource.CreateResourceIdentifier(System.String,System.String) to create a TenantBillingPeriodConsumptionResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetTenantBillingPeriodConsumptionResource(ResourceIdentifier) instead.

Applies to