Microsoft Azure

Azure Cost Management

Azure Cost Management endpoints from Microsoft Azure

Finance & banking#openapi#cloud

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Azure Cost Management endpoints from Microsoft Azure

Endpoints 20

Views

  • GETViews_List/providers/Microsoft.CostManagement/viewsLists all views by tenant and object.
  • GETViews_ListByScope/:scope/providers/Microsoft.CostManagement/viewsLists all views at the given scope.
  • GETViews_Get/providers/Microsoft.CostManagement/views/:viewNameGets the view by view name.
  • PUTViews_CreateOrUpdate/providers/Microsoft.CostManagement/views/:viewNameThe 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…
  • DELETEViews_Delete/providers/Microsoft.CostManagement/views/:viewNameThe operation to delete a view.
  • GETViews_GetByScope/:scope/providers/Microsoft.CostManagement/views/:viewNameGets the view for the defined scope by view name.
  • PUTViews_CreateOrUpdateByScope/:scope/providers/Microsoft.CostManagement/views/:viewNameThe 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…
  • DELETEViews_DeleteByScope/:scope/providers/Microsoft.CostManagement/views/:viewNameThe operation to delete a view.

Alerts

  • GETAlerts_List/:scope/providers/Microsoft.CostManagement/alertsLists the alerts for scope defined.
  • GETAlerts_Get/:scope/providers/Microsoft.CostManagement/alerts/:alertIdGets the alert for the scope by alert ID.
  • PATCHAlerts_Dismiss/:scope/providers/Microsoft.CostManagement/alerts/:alertIdDismisses the specified alert
  • GETAlerts_ListExternal/providers/Microsoft.CostManagement/:externalCloudProviderType/:externalCloudProviderId/alertsLists the Alerts for external cloud provider type defined.

Forecast

  • POSTForecast_Usage/:scope/providers/Microsoft.CostManagement/forecast?$filter=stringLists the forecast charges for scope defined.
  • POSTForecast_ExternalCloudProviderUsage/providers/Microsoft.CostManagement/:externalCloudProviderType/:externalCloudProviderId/forecast?$filter=stringLists the forecast charges for external cloud provider type defined.

Dimensions

  • GETDimensions_List/:scope/providers/Microsoft.CostManagement/dimensions?$filter=string&$expand=string&$skiptoken=string&$top=1Lists the dimensions by the defined scope.
  • GETDimensions_ByExternalCloudProviderType/providers/Microsoft.CostManagement/:externalCloudProviderType/:externalCloudProviderId/dimensions?$filter=string&$expand=string&$skiptoken=string&$top=1Lists the dimensions by the external cloud provider type.

Query

  • POSTQuery_Usage/:scope/providers/Microsoft.CostManagement/queryQuery the usage data for scope defined.
  • POSTQuery_UsageByExternalCloudProviderType/providers/Microsoft.CostManagement/:externalCloudProviderType/:externalCloudProviderId/queryQuery the usage data for external cloud provider type defined.

ReservedInstances

  • POSTGenerateReservationDetailsReport_ByBillingAccountId/providers/Microsoft.Billing/billingAccounts/:billingAccountId/providers/Microsoft.CostManagement/generateReservationDetailsReport?startDate=string&endDate=stringGenerates the reservations details report for provided date range asynchronously based on enrollment id. The Reservation usage details can be viewed only by…
  • POSTGenerateReservationDetailsReport_ByBillingProfileId/providers/Microsoft.Billing/billingAccounts/:billingAccountId/billingProfiles/:billingProfileId/providers/Microsoft.CostManagement/generateReservationDetailsReport?startDate=string&endDate=stringGenerates the reservations details report for provided date range asynchronously by billing profile. The Reservation usage details can be viewed by only…

API details

Base URL
https://management.azure.com
Authentication
OAuth 2.0 (implicit flow) with 1 scope
Operations
20 operations on 15 pathsGET 9POST 6PUT 2DELETE 2PATCH 1
Main resources
Views 8Alerts 4Dimensions 2Forecast 2Query 2ReservedInstances 2
Response formats
application/json
Description format
Swagger 2.0, API version 2024-08-01

How to test the Azure Cost Management in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Azure Cost Management collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (implicit flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Views_List” (GET /providers/Microsoft.CostManagement/views), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Azure Cost Management?

Azure Cost Management endpoints from Microsoft Azure It is listed under Finance & banking and has 20 endpoints.

Who publishes the Azure Cost Management?

It is listed from Microsoft Azure's public API description (an OpenAPI document), not published by Microsoft Azure on Swastik Codes. Anyone who controls azure.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Azure Cost Management?

Requests go to https://management.azure.com. Endpoint paths are added to this base URL.

How do I authenticate with the Azure Cost Management?

With OAuth 2.0 (implicit flow) with 1 scope.

How many endpoints does the Azure Cost Management have?

20 operations on 15 paths (9 GET, 6 POST, 2 PUT, 2 DELETE, 1 PATCH). The largest groups are Views, Alerts, Dimensions, Forecast.

Is forking the Azure Cost Management free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.