Compartir a través de


CostManagement Class

Definition

Low-level API implementation for the CostManagement service.

public class CostManagement
type CostManagement = class
Public Class CostManagement
Inheritance
CostManagement

Constructors

CostManagement()

Methods

AlertsDismiss(String, String, IDismissAlertPayload, Func<HttpResponseMessage, Task<IAlert>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>, Task>, IEventListener, ISendAsync)

Dismisses the specified alert

AlertsDismissViaIdentity(String, IDismissAlertPayload, Func<HttpResponseMessage, Task<IAlert>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>, Task>, IEventListener, ISendAsync)

Dismisses the specified alert

AlertsGet(String, String, Func<HttpResponseMessage,Task<IAlert>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Gets the alert for the scope by alert ID.

AlertsGetViaIdentity(String, Func<HttpResponseMessage,Task<IAlert>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Gets the alert for the scope by alert ID.

AlertsList(String, Func<HttpResponseMessage,Task<IAlertsResult>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists the alerts for scope defined.

AlertsListExternal(ExternalCloudProviderType, String, Func<HttpResponseMessage, Task<IAlertsResult>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>, Task>, IEventListener, ISendAsync)

Lists the Alerts for external cloud provider type defined.

AlertsListExternalViaIdentity(String, Func<HttpResponseMessage, Task<IAlertsResult>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>, Task>, IEventListener, ISendAsync)

Lists the Alerts for external cloud provider type defined.

AlertsListViaIdentity(String, Func<HttpResponseMessage,Task<IAlertsResult>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists the alerts for scope defined.

DimensionsByExternalCloudProviderType(ExternalCloudProviderType, String, String, String, String, Nullable<Int32>, Func<HttpResponseMessage, Task<IDimensionsListResult>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>, Task>, IEventListener, ISendAsync)

Lists the dimensions by the external cloud provider type.

DimensionsByExternalCloudProviderTypeViaIdentity(String, String, String, String, Nullable<Int32>, Func<HttpResponseMessage,Task<IDimensionsListResult>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists the dimensions by the external cloud provider type.

DimensionsList(String, String, String, String, Nullable<Int32>, Func<HttpResponseMessage,Task<IDimensionsListResult>,Task>, Func<HttpResponseMessage, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists the dimensions by the defined scope.

DimensionsListViaIdentity(String, String, String, String, Nullable<Int32>, Func<HttpResponseMessage,Task<IDimensionsListResult>,Task>, Func<HttpResponseMessage, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists the dimensions by the defined scope.

ExportsCreateOrUpdate(String, String, IExport, Func<HttpResponseMessage, Task<IExport>,Task>, Func<HttpResponseMessage,Task<IExport>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to create or update an export. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given export, perform a get operation prior to your put operation.

ExportsCreateOrUpdateViaIdentity(String, IExport, Func<HttpResponseMessage, Task<IExport>,Task>, Func<HttpResponseMessage,Task<IExport>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to create or update an export. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given export, perform a get operation prior to your put operation.

ExportsDelete(String, String, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to delete a export.

ExportsDeleteViaIdentity(String, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to delete a export.

ExportsExecute(String, String, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to execute an export.

ExportsExecuteViaIdentity(String, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to execute an export.

ExportsGet(String, String, String, Func<HttpResponseMessage,Task<IExport>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to get the export for the defined scope by export name.

ExportsGetExecutionHistory(String, String, Func<HttpResponseMessage, Task<IExportExecutionListResult>,Task>, Func<HttpResponseMessage, Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to get the execution history of an export for the defined scope and export name.

ExportsGetExecutionHistoryViaIdentity(String, Func<HttpResponseMessage, Task<IExportExecutionListResult>,Task>, Func<HttpResponseMessage, Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to get the execution history of an export for the defined scope and export name.

ExportsGetViaIdentity(String, String, Func<HttpResponseMessage, Task<IExport>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>, Task>, IEventListener, ISendAsync)

The operation to get the export for the defined scope by export name.

ExportsList(String, String, Func<HttpResponseMessage,Task<IExportListResult>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to list all exports at the given scope.

ExportsListViaIdentity(String, String, Func<HttpResponseMessage, Task<IExportListResult>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>, Task>, IEventListener, ISendAsync)

The operation to list all exports at the given scope.

ForecastExternalCloudProviderUsage(String, ExternalCloudProviderType, String, IForecastDefinition, Func<HttpResponseMessage,Task<IForecastResult>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists the forecast charges for external cloud provider type defined.

ForecastExternalCloudProviderUsageViaIdentity(String, String, IForecastDefinition, Func<HttpResponseMessage,Task<IForecastResult>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists the forecast charges for external cloud provider type defined.

ForecastUsage(String, String, IForecastDefinition, Func<HttpResponseMessage, Task<IForecastResult>,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage, Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists the forecast charges for scope defined.

ForecastUsageViaIdentity(String, String, IForecastDefinition, Func<HttpResponseMessage,Task<IForecastResult>,Task>, Func<HttpResponseMessage, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists the forecast charges for scope defined.

GenerateCostDetailsReportCreateOperation(String, IGenerateCostDetailsReportRequestDefinition, Func<HttpResponseMessage,Task<ICostDetailsOperationResults>, Task>, Func<HttpResponseMessage,Task<IGenerateCostDetailsReportErrorResponse>, Task>, IEventListener, ISendAsync)

This API is the replacement for all previously release Usage Details APIs. Request to generate a cost details report for the provided date range, billing period (Only enterprise customers) or Invoice Id asynchronously at a certain scope. The initial call to request a report will return a 202 with a 'Location' and 'Retry-After' header. The 'Location' header will provide the endpoint to poll to get the result of the report generation. The 'Retry-After' provides the duration to wait before polling for the generated report. A call to poll the report operation will provide a 202 response with a 'Location' header if the operation is still in progress. Once the report generation operation completes, the polling endpoint will provide a 200 response along with details on the report blob(s) that are available for download. The details on the file(s) available for download will be available in the polling response body.

GenerateCostDetailsReportCreateOperationViaIdentity(String, IGenerateCostDetailsReportRequestDefinition, Func<HttpResponseMessage,Task<ICostDetailsOperationResults>, Task>, Func<HttpResponseMessage,Task<IGenerateCostDetailsReportErrorResponse>, Task>, IEventListener, ISendAsync)

This API is the replacement for all previously release Usage Details APIs. Request to generate a cost details report for the provided date range, billing period (Only enterprise customers) or Invoice Id asynchronously at a certain scope. The initial call to request a report will return a 202 with a 'Location' and 'Retry-After' header. The 'Location' header will provide the endpoint to poll to get the result of the report generation. The 'Retry-After' provides the duration to wait before polling for the generated report. A call to poll the report operation will provide a 202 response with a 'Location' header if the operation is still in progress. Once the report generation operation completes, the polling endpoint will provide a 200 response along with details on the report blob(s) that are available for download. The details on the file(s) available for download will be available in the polling response body.

GenerateCostDetailsReportGetOperationResults(String, String, Func<HttpResponseMessage, Task<ICostDetailsOperationResults>,Task>, Func<HttpResponseMessage, Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header.

GenerateCostDetailsReportGetOperationResultsViaIdentity(String, Func<HttpResponseMessage,Task<ICostDetailsOperationResults>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header.

GenerateReservationDetailsReportByBillingAccountId(String, String, String, Func<HttpResponseMessage,Task<IOperationStatus>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Generates the reservations details report for provided date range asynchronously based on enrollment id. The Reservation usage details can be viewed only by certain enterprise roles. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/understand-ea-roles#usage-and-costs-access-by-role

GenerateReservationDetailsReportByBillingAccountIdViaIdentity(String, String, String, Func<HttpResponseMessage,Task<IOperationStatus>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Generates the reservations details report for provided date range asynchronously based on enrollment id. The Reservation usage details can be viewed only by certain enterprise roles. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/understand-ea-roles#usage-and-costs-access-by-role

GenerateReservationDetailsReportByBillingProfileId(String, String, String, String, Func<HttpResponseMessage,Task<IOperationStatus>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Generates the reservations details report for provided date range asynchronously by billing profile. The Reservation usage details can be viewed by only certain enterprise roles by default. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/reservations/reservation-utilization#view-utilization-in-the-azure-portal-with-azure-rbac-access

GenerateReservationDetailsReportByBillingProfileIdViaIdentity(String, String, String, Func<HttpResponseMessage,Task<IOperationStatus>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Generates the reservations details report for provided date range asynchronously by billing profile. The Reservation usage details can be viewed by only certain enterprise roles by default. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/reservations/reservation-utilization#view-utilization-in-the-azure-portal-with-azure-rbac-access

OperationsList(Func<HttpResponseMessage,Task<IOperationListResult>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists all of the available cost management REST API operations.

OperationsListViaIdentity(String, Func<HttpResponseMessage,Task<IOperationListResult>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists all of the available cost management REST API operations.

QueryUsage(String, IQueryDefinition, Func<HttpResponseMessage, Task<IQueryResult>,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage, Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Query the usage data for scope defined.

QueryUsageByExternalCloudProviderType(ExternalCloudProviderType, String, IQueryDefinition, Func<HttpResponseMessage,Task<IQueryResult>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Query the usage data for external cloud provider type defined.

QueryUsageByExternalCloudProviderTypeViaIdentity(String, IQueryDefinition, Func<HttpResponseMessage,Task<IQueryResult>,Task>, Func<HttpResponseMessage, Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Query the usage data for external cloud provider type defined.

QueryUsageViaIdentity(String, IQueryDefinition, Func<HttpResponseMessage, Task<IQueryResult>,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage, Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Query the usage data for scope defined.

ViewsCreateOrUpdate(String, IView, Func<HttpResponseMessage,Task<IView>, Task>, Func<HttpResponseMessage,Task<IView>,Task>, Func<HttpResponseMessage, Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to create or update a view. 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.

ViewsCreateOrUpdateByScope(String, String, IView, Func<HttpResponseMessage, Task<IView>,Task>, Func<HttpResponseMessage,Task<IView>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to create or update a view. 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.

ViewsCreateOrUpdateByScopeViaIdentity(String, IView, Func<HttpResponseMessage, Task<IView>,Task>, Func<HttpResponseMessage,Task<IView>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to create or update a view. 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.

ViewsCreateOrUpdateViaIdentity(String, IView, Func<HttpResponseMessage, Task<IView>,Task>, Func<HttpResponseMessage,Task<IView>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to create or update a view. 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.

ViewsDelete(String, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to delete a view.

ViewsDeleteByScope(String, String, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task<IErrorResponse>, Task>, IEventListener, ISendAsync)

The operation to delete a view.

ViewsDeleteByScopeViaIdentity(String, Func<HttpResponseMessage, Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage, Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

The operation to delete a view.

ViewsDeleteViaIdentity(String, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task>, Func<HttpResponseMessage,Task<IErrorResponse>, Task>, IEventListener, ISendAsync)

The operation to delete a view.

ViewsGet(String, Func<HttpResponseMessage,Task<IView>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Gets the view by view name.

ViewsGetByScope(String, String, Func<HttpResponseMessage,Task<IView>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Gets the view for the defined scope by view name.

ViewsGetByScopeViaIdentity(String, Func<HttpResponseMessage,Task<IView>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Gets the view for the defined scope by view name.

ViewsGetViaIdentity(String, Func<HttpResponseMessage,Task<IView>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Gets the view by view name.

ViewsList(Func<HttpResponseMessage,Task<IViewListResult>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists all views by tenant and object.

ViewsListByScope(String, Func<HttpResponseMessage,Task<IViewListResult>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists all views at the given scope.

ViewsListByScopeViaIdentity(String, Func<HttpResponseMessage, Task<IViewListResult>,Task>, Func<HttpResponseMessage,Task<IErrorResponse>, Task>, IEventListener, ISendAsync)

Lists all views at the given scope.

ViewsListViaIdentity(String, Func<HttpResponseMessage,Task<IViewListResult>, Task>, Func<HttpResponseMessage,Task<IErrorResponse>,Task>, IEventListener, ISendAsync)

Lists all views by tenant and object.

Applies to