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.object
AggregatedCostOperations

Constructor

AggregatedCostOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

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

management_group_id
str
Required

Azure Management Group ID.

filter
str
default value: None

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

management_group_id
str
Required

Azure Management Group ID.

billing_period_name
str
Required

Billing Period Name.

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'>