ConsumptionExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
|
GetAggregatedCostAsync(ManagementGroupResource, String, CancellationToken) |
Provides the aggregate cost of a management group and all child management groups by current billing period.
|
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.
|
GetConsumptionBudgetAsync(ArmClient, ResourceIdentifier, String, CancellationToken) |
Gets the budget for the scope by budget name.
|
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.
|
GetConsumptionChargesAsync(ArmClient, ResourceIdentifier, String, String, String, String, CancellationToken) |
Lists the charges based for the defined scope.
|
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.
|
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.
|
GetConsumptionReservationRecommendationDetails(ArmClient, ResourceIdentifier, ConsumptionReservationRecommendationScope, String, ConsumptionReservationRecommendationTerm, ConsumptionReservationRecommendationLookBackPeriod, String, CancellationToken) |
Details of a reservation recommendation for what-if analysis of reserved instances.
|
GetConsumptionReservationRecommendationDetailsAsync(ArmClient, ResourceIdentifier, ConsumptionReservationRecommendationScope, String, ConsumptionReservationRecommendationTerm, ConsumptionReservationRecommendationLookBackPeriod, String, CancellationToken) |
Details of a reservation recommendation for what-if analysis of reserved instances.
|
GetConsumptionReservationRecommendations(ArmClient, ResourceIdentifier, String, CancellationToken) |
List of recommendations for purchasing reserved instances.
|
GetConsumptionReservationRecommendationsAsync(ArmClient, ResourceIdentifier, String, CancellationToken) |
List of recommendations for purchasing reserved instances.
|
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.
|
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.
|
GetConsumptionReservationsSummaries(ArmClient, ResourceIdentifier, ArmResourceGetConsumptionReservationsSummariesOptions, CancellationToken) |
Lists the reservations summaries for the defined scope daily or monthly grain.
|
GetConsumptionReservationsSummariesAsync(ArmClient, ResourceIdentifier, ArmResourceGetConsumptionReservationsSummariesOptions, CancellationToken) |
Lists the reservations summaries for the defined scope daily or monthly grain.
|
GetConsumptionTags(ArmClient, ResourceIdentifier, CancellationToken) |
Get all available tag keys for the defined scope
|
GetConsumptionTagsAsync(ArmClient, ResourceIdentifier, CancellationToken) |
Get all available tag keys for the defined scope
|
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.
|
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.
|
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.
|
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.
|
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
Azure SDK for .NET