ReservationRecommendationDetailsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ConsumptionManagementClient's

<xref:reservation_recommendation_details> attribute.

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, filter: str | None = None, **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. Required.

Keyword-Only Parameters

Name Description
scope
str or Scope

Scope of the reservation. Known values are: "Single" and "Shared". Required.

region
str

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

term
str or Term

Specify length of reservation recommendation term. Known values are: "P1M", "P1Y", and "P3Y". Required.

look_back_period

Filter the time period on which reservation recommendation results are based. Known values are: "Last7Days", "Last30Days", and "Last60Days". Required.

product
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). Required.

filter
str

Used to filter reservation recommendation details by: properties/subscriptionId can be specified for billing account and billing profile paths. Default value is None.

Default value: None

Returns

Type Description

ReservationRecommendationDetailsModel or None. The ReservationRecommendationDetailsModel is compatible with MutableMapping

Exceptions

Type Description