Interface AggregatedCostsClient
-
public interface AggregatedCostsClient
An instance of this class provides access to all the operations defined in AggregatedCostsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagementGroupAggregatedCostResultInner
getByManagementGroup(String managementGroupId)
Provides the aggregate cost of a management group and all child management groups by current billing period.com.azure.core.http.rest.Response<ManagementGroupAggregatedCostResultInner>
getByManagementGroupWithResponse(String managementGroupId, String filter, com.azure.core.util.Context context)
Provides the aggregate cost of a management group and all child management groups by current billing period.ManagementGroupAggregatedCostResultInner
getForBillingPeriodByManagementGroup(String managementGroupId, String billingPeriodName)
Provides the aggregate cost of a management group and all child management groups by specified billing period.com.azure.core.http.rest.Response<ManagementGroupAggregatedCostResultInner>
getForBillingPeriodByManagementGroupWithResponse(String managementGroupId, String billingPeriodName, com.azure.core.util.Context context)
Provides the aggregate cost of a management group and all child management groups by specified billing period.
-
-
-
Method Detail
-
getByManagementGroup
ManagementGroupAggregatedCostResultInner getByManagementGroup(String managementGroupId)
Provides the aggregate cost of a management group and all child management groups by current billing period.- Parameters:
managementGroupId
- Azure Management Group ID.- Returns:
- a management group aggregated cost resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByManagementGroupWithResponse
com.azure.core.http.rest.Response<ManagementGroupAggregatedCostResultInner> getByManagementGroupWithResponse(String managementGroupId, String filter, com.azure.core.util.Context context)
Provides the aggregate cost of a management group and all child management groups by current billing period.- Parameters:
managementGroupId
- Azure Management Group ID.filter
- May be used to filter aggregated cost by properties/usageStart (Utc time), properties/usageEnd (Utc time). The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).context
- The context to associate with this operation.- Returns:
- a management group aggregated cost resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getForBillingPeriodByManagementGroup
ManagementGroupAggregatedCostResultInner getForBillingPeriodByManagementGroup(String managementGroupId, String billingPeriodName)
Provides the aggregate cost of a management group and all child management groups by specified billing period.- Parameters:
managementGroupId
- Azure Management Group ID.billingPeriodName
- Billing Period Name.- Returns:
- a management group aggregated cost resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getForBillingPeriodByManagementGroupWithResponse
com.azure.core.http.rest.Response<ManagementGroupAggregatedCostResultInner> getForBillingPeriodByManagementGroupWithResponse(String managementGroupId, String billingPeriodName, com.azure.core.util.Context context)
Provides the aggregate cost of a management group and all child management groups by specified billing period.- Parameters:
managementGroupId
- Azure Management Group ID.billingPeriodName
- Billing Period Name.context
- The context to associate with this operation.- Returns:
- a management group aggregated cost resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
-