ReservationRecommendationDetailsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ConsumptionManagementClient's

<xref:reservation_recommendation_details> attribute.

Inheritance
builtins.object
ReservationRecommendationDetailsOperations

Constructor

ReservationRecommendationDetailsOperations(*args, **kwargs)

Methods

get

Details of a reservation recommendation for what-if analysis of reserved instances.

get

Details of a reservation recommendation for what-if analysis of reserved instances.

get(resource_scope: str, scope: str | Scope, region: str, term: str | Term, look_back_period: str | LookBackPeriod, product: str, **kwargs: Any) -> ReservationRecommendationDetailsModel | None

Parameters

Name Description
resource_scope
Required
str

The scope associated with reservation recommendation details operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope, /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope.

scope
Required
str or Scope

Scope of the reservation.

region
Required
str

Used to select the region the recommendation should be generated for.

term
Required
str or Term

Specify length of reservation recommendation term.

look_back_period
Required

Filter the time period on which reservation recommendation results are based.

product
Required
str

Filter the products for which reservation recommendation results are generated. Examples: Standard_DS1_v2 (for VM), Premium_SSD_Managed_Disks_P30 (for Managed Disks).

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

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