One possibility is that there is no usage data available for the specified time frame (start_time and end_time) or for the specific CSP customer and subscription you are querying. It's essential to ensure that you are using the correct tenant ID and subscription ID and that the usage data exists for the specified period.
Azure usage api getting 204 response code and no content
Ravi Sham Badole
1
Reputation point
We are using following end point for getting Azure usage for CSP customer using partnercenter api
{baseURL}/v1/customers/{customer-tenant-id}/subscriptions/{subscription-id}/utilizations/azure?start_time={start-time}&end_time={end-time}&granularity={granularity}&show_details={True}
Before June month all the usage was coming correctly everyday but from June we are getting frequently 204 response code and no content.
Please can anybody help?