AggregatedCostOperations Class
AggregatedCostOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectAggregatedCostOperations
Constructor
AggregatedCostOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
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: Optional[str] = None, **kwargs) -> azure.mgmt.consumption.models._models_py3.ManagementGroupAggregatedCostResult
Parameters
- filter
- str
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 (:).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ManagementGroupAggregatedCostResult, or the result of cls(response)
Return type
Exceptions
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) -> azure.mgmt.consumption.models._models_py3.ManagementGroupAggregatedCostResult
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ManagementGroupAggregatedCostResult, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.consumption.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\consumption\\models\\__init__.py'>
Feedback
Submit and view feedback for