Cost APIs


You can use the cost APIs that to fetch the cost data from Cloud Cost for a specific duration. The duration can be monthly, quarterly, half-yearly, or yearly. The following table describes the available cost APIs and when to use them: 

Use case

API to use

You want to retrieve the overall resources cost for a specific duration.

You want to retrieve the cost data for a specific duration according to providers, account, service, or resource.

You want to retrieve the cost data for a specific duration according to resource pools.

You want to retrieve the cost items for a specific duration according to providers, account, service, or resource.

You want to retrieve the cost items for a specific duration according to resource pools.

You want to retrieve the cost data for multiple groups. For example, cost data for a provider along with account, service, or resource pool.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*