LegacyUsageDetailProperties Class

The properties of the legacy usage detail.

Constructor

LegacyUsageDetailProperties(*args: Any, **kwargs: Any)

Variables

Name Description
billing_account_id
str

Billing Account identifier.

billing_account_name
str

Billing Account Name.

billing_period_start_date

The billing period start date.

billing_period_end_date

The billing period end date.

billing_profile_id
str

Billing Profile identifier.

billing_profile_name
str

Billing Profile Name.

account_owner_id
str

Account Owner Id.

account_name
str

Account Name.

subscription_id
str

Subscription guid.

subscription_name
str

Subscription name.

date

Date for the usage record.

product
str

Product name for the consumed service or purchase. Not available for Marketplace.

part_number
str

Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace.

meter_id
str

The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName.

meter_details

The details about the meter. By default this is not populated, unless it's specified in $expand.

quantity

The usage quantity.

effective_price

Effective Price that's charged for the usage.

cost

The amount of cost before tax.

unit_price

Unit Price is the price applicable to you. (your EA or other contract price).

billing_currency
str

Billing Currency.

resource_location
str

Resource Location.

consumed_service
str

Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage.

resource_id
str

Unique identifier of the Azure Resource Manager usage detail resource.

resource_name
str

Resource Name.

service_info1
str

Service-specific metadata.

service_info2
str

Legacy field with optional service-specific metadata.

additional_info
str

Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied.

invoice_section
str

Invoice Section Name.

cost_center
str

The cost center of this department if it is a department and a cost center is provided.

resource_group
str

Resource Group Name.

reservation_id
str

ARM resource id of the reservation. Only applies to records relevant to reservations.

reservation_name
str

User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations.

product_order_id
str

Product Order Id. For reservations this is the Reservation Order ID.

product_order_name
str

Product Order Name. For reservations this is the SKU that was purchased.

offer_id
str

Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P.

is_azure_credit_eligible

Is Azure Credit Eligible.

term
str

Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation.

publisher_name
str

Publisher Name.

publisher_type
str

Publisher Type.

plan_name
str

Plan Name.

charge_type
str

Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.

frequency
str

Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used.

pay_g_price

Retail price for the resource.

benefit_id
str

Unique identifier for the applicable benefit.

benefit_name
str

Name of the applicable benefit.

pricing_model

Identifier that indicates how the meter is priced. Known values are: "On Demand", "Reservation", and "Spot".

Attributes

account_name

Account Name.

account_name: str | None

account_owner_id

Account Owner Id.

account_owner_id: str | None

additional_info

Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied.

additional_info: str | None

benefit_id

Unique identifier for the applicable benefit.

benefit_id: str | None

benefit_name

Name of the applicable benefit.

benefit_name: str | None

billing_account_id

Billing Account identifier.

billing_account_id: str | None

billing_account_name

Billing Account Name.

billing_account_name: str | None

billing_currency

Billing Currency.

billing_currency: str | None

billing_period_end_date

The billing period end date.

billing_period_end_date: datetime | None

billing_period_start_date

The billing period start date.

billing_period_start_date: datetime | None

billing_profile_id

Billing Profile identifier.

billing_profile_id: str | None

billing_profile_name

Billing Profile Name.

billing_profile_name: str | None

charge_type

Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.

charge_type: str | None

consumed_service

Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage.

consumed_service: str | None

cost

The amount of cost before tax.

cost: Decimal | None

cost_center

The cost center of this department if it is a department and a cost center is provided.

cost_center: str | None

date

Date for the usage record.

date: datetime | None

effective_price

Effective Price that's charged for the usage.

effective_price: Decimal | None

frequency

Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used.

frequency: str | None

invoice_section

Invoice Section Name.

invoice_section: str | None

is_azure_credit_eligible

Is Azure Credit Eligible.

is_azure_credit_eligible: bool | None

meter_details

The details about the meter. By default this is not populated, unless it's specified in $expand.

meter_details: _models.MeterDetailsResponse | None

meter_id

The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName.

meter_id: str | None

offer_id

MS-AZR-0017P, MS-AZR-0148P.

offer_id: str | None

part_number

Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace.

part_number: str | None

pay_g_price

Retail price for the resource.

pay_g_price: Decimal | None

plan_name

Plan Name.

plan_name: str | None

pricing_model

"On Demand", "Reservation", and "Spot".

pricing_model: str | _models.PricingModelType | None

product

Product name for the consumed service or purchase. Not available for Marketplace.

product: str | None

product_order_id

Product Order Id. For reservations this is the Reservation Order ID.

product_order_id: str | None

product_order_name

Product Order Name. For reservations this is the SKU that was purchased.

product_order_name: str | None

publisher_name

Publisher Name.

publisher_name: str | None

publisher_type

Publisher Type.

publisher_type: str | None

quantity

The usage quantity.

quantity: Decimal | None

reservation_id

ARM resource id of the reservation. Only applies to records relevant to reservations.

reservation_id: str | None

reservation_name

User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations.

reservation_name: str | None

resource_group

Resource Group Name.

resource_group: str | None

resource_id

Unique identifier of the Azure Resource Manager usage detail resource.

resource_id: str | None

resource_location

Resource Location.

resource_location: str | None

resource_name

Resource Name.

resource_name: str | None

service_info1

Service-specific metadata.

service_info1: str | None

service_info2

Legacy field with optional service-specific metadata.

service_info2: str | None

subscription_id

Subscription guid.

subscription_id: str | None

subscription_name

Subscription name.

subscription_name: str | None

term

Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation.

term: str | None

unit_price

Unit Price is the price applicable to you. (your EA or other contract price).

unit_price: Decimal | None