AggregatedCostOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:aggregated_cost> attribute.
- Inheritance
-
builtins.objectAggregatedCostOperations
Constructor
AggregatedCostOperations(*args, **kwargs)
Methods
get_by_management_group |
Provides the aggregate cost of a management group and all child management groups by current billing period. |
get_for_billing_period_by_management_group |
Provides the aggregate cost of a management group and all child management groups by specified billing period. |
get_by_management_group
Provides the aggregate cost of a management group and all child management groups by current billing period.
async get_by_management_group(management_group_id: str, filter: str | None = None, **kwargs: Any) -> ManagementGroupAggregatedCostResult
Parameters
Name | Description |
---|---|
management_group_id
Required
|
Azure Management Group ID. |
filter
Required
|
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 (:). Default value is None. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
ManagementGroupAggregatedCostResult, or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get_for_billing_period_by_management_group
Provides the aggregate cost of a management group and all child management groups by specified billing period.
async get_for_billing_period_by_management_group(management_group_id: str, billing_period_name: str, **kwargs: Any) -> ManagementGroupAggregatedCostResult
Parameters
Name | Description |
---|---|
management_group_id
Required
|
Azure Management Group ID. |
billing_period_name
Required
|
Billing Period Name. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
ManagementGroupAggregatedCostResult, or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.consumption.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\consumption\\models\\__init__.py'>
Azure SDK for Python