venksjackson
venksjackson

Reputation: 11

how to get billing information for each resources of Azure ruby or by API ??

I tried to access through the API call Get price and metadata information for resources used in an Azure subscription

But the authentication is not happening through the URL request

_https://management.azure.com/subscriptions/subscription_id/providers/Microsoft.Commerce/RateCard?api-version=2015-06-01-preview_

Upvotes: 1

Views: 269

Answers (1)

Derek
Derek

Reputation: 837

You must include the access token with the foramt "Bearer token-string" in the request's Authorization header. Also, please specify valid values for OfferDurableId, Currency, Locale and RegionInfo in format of $filter(Please note that all 4 query parameters are required).

Check https://msdn.microsoft.com/en-us/library/azure/mt219004.aspx for details.

Upvotes: 0

Related Questions