Share via


ReservationsExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.Reservations.

public static class ReservationsExtensions
type ReservationsExtensions = class
Public Module ReservationsExtensions
Inheritance
ReservationsExtensions

Methods

CalculateReservationExchange(TenantResource, WaitUntil, CalculateExchangeContent, CancellationToken)

Calculates price for exchanging Reservations if there are no policy errors.

  • Request Path: /providers/Microsoft.Capacity/calculateExchange
  • Operation Id: CalculateExchange_Post
  • Default Api Version: 2022-11-01
CalculateReservationExchangeAsync(TenantResource, WaitUntil, CalculateExchangeContent, CancellationToken)

Calculates price for exchanging Reservations if there are no policy errors.

  • Request Path: /providers/Microsoft.Capacity/calculateExchange
  • Operation Id: CalculateExchange_Post
  • Default Api Version: 2022-11-01
CalculateReservationOrder(TenantResource, ReservationPurchaseContent, CancellationToken)

Calculate price for placing a ReservationOrder.

  • Request Path: /providers/Microsoft.Capacity/calculatePrice
  • Operation Id: ReservationOrder_Calculate
  • Default Api Version: 2022-11-01
  • Resource: ReservationOrderResource
CalculateReservationOrderAsync(TenantResource, ReservationPurchaseContent, CancellationToken)

Calculate price for placing a ReservationOrder.

  • Request Path: /providers/Microsoft.Capacity/calculatePrice
  • Operation Id: ReservationOrder_Calculate
  • Default Api Version: 2022-11-01
  • Resource: ReservationOrderResource
Exchange(TenantResource, WaitUntil, ExchangeContent, CancellationToken)

Returns one or more Reservations in exchange for one or more Reservation purchases.

  • Request Path: /providers/Microsoft.Capacity/exchange
  • Operation Id: Exchange_Post
  • Default Api Version: 2022-11-01
ExchangeAsync(TenantResource, WaitUntil, ExchangeContent, CancellationToken)

Returns one or more Reservations in exchange for one or more Reservation purchases.

  • Request Path: /providers/Microsoft.Capacity/exchange
  • Operation Id: Exchange_Post
  • Default Api Version: 2022-11-01
GetAllReservationQuota(SubscriptionResource, String, AzureLocation)

Gets a collection of ReservationQuotaResources in the SubscriptionResource. MockingTo mock this method, please mock GetAllReservationQuota(String, AzureLocation) instead.

GetAppliedReservations(SubscriptionResource, CancellationToken)

Get applicable Reservations that are applied to this subscription or a resource group under this subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations
  • Operation Id: GetAppliedReservationList
  • Default Api Version: 2022-11-01
GetAppliedReservationsAsync(SubscriptionResource, CancellationToken)

Get applicable Reservations that are applied to this subscription or a resource group under this subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations
  • Operation Id: GetAppliedReservationList
  • Default Api Version: 2022-11-01
GetCatalog(SubscriptionResource, String, Nullable<AzureLocation>, String, String, String, CancellationToken)

Get the regions and skus that are available for RI purchase for the specified Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • Operation Id: GetCatalog
GetCatalog(SubscriptionResource, SubscriptionResourceGetCatalogOptions, CancellationToken)

Get the regions and skus that are available for RI purchase for the specified Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • Operation Id: GetCatalog
  • Default Api Version: 2022-11-01
GetCatalogAsync(SubscriptionResource, String, Nullable<AzureLocation>, String, String, String, CancellationToken)

Get the regions and skus that are available for RI purchase for the specified Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • Operation Id: GetCatalog
GetCatalogAsync(SubscriptionResource, SubscriptionResourceGetCatalogOptions, CancellationToken)

Get the regions and skus that are available for RI purchase for the specified Azure subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs
  • Operation Id: GetCatalog
  • Default Api Version: 2022-11-01
GetQuotaRequestDetail(SubscriptionResource, String, AzureLocation, Guid, CancellationToken)

For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimitsRequests/{id}
  • Operation Id: QuotaRequestStatus_Get
  • Default Api Version: 2020-10-25
  • Resource: QuotaRequestDetailResource
GetQuotaRequestDetailAsync(SubscriptionResource, String, AzureLocation, Guid, CancellationToken)

For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimitsRequests/{id}
  • Operation Id: QuotaRequestStatus_Get
  • Default Api Version: 2020-10-25
  • Resource: QuotaRequestDetailResource
GetQuotaRequestDetailResource(ArmClient, ResourceIdentifier)

Gets an object representing a QuotaRequestDetailResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, AzureLocation, Guid) to create a QuotaRequestDetailResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetQuotaRequestDetailResource(ResourceIdentifier) instead.

GetQuotaRequestDetails(SubscriptionResource, String, AzureLocation)

Gets a collection of QuotaRequestDetailResources in the SubscriptionResource. MockingTo mock this method, please mock GetQuotaRequestDetails(String, AzureLocation) instead.

GetReservationDetailResource(ArmClient, ResourceIdentifier)

Gets an object representing a ReservationDetailResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(Guid, Guid) to create a ReservationDetailResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetReservationDetailResource(ResourceIdentifier) instead.

GetReservationDetails(TenantResource, String, String, String, Nullable<Single>, String, Nullable<Single>, CancellationToken)

List the reservations and the roll up counts of reservations group by provisioning states that the user has access to in the current tenant.

  • Request Path: /providers/Microsoft.Capacity/reservations
  • Operation Id: Reservation_ListAll
GetReservationDetails(TenantResource, TenantResourceGetReservationDetailsOptions, CancellationToken)

List the reservations and the roll up counts of reservations group by provisioning states that the user has access to in the current tenant.

  • Request Path: /providers/Microsoft.Capacity/reservations
  • Operation Id: Reservation_ListAll
  • Default Api Version: 2022-11-01
  • Resource: ReservationDetailResource
GetReservationDetailsAsync(TenantResource, String, String, String, Nullable<Single>, String, Nullable<Single>, CancellationToken)

List the reservations and the roll up counts of reservations group by provisioning states that the user has access to in the current tenant.

  • Request Path: /providers/Microsoft.Capacity/reservations
  • Operation Id: Reservation_ListAll
GetReservationDetailsAsync(TenantResource, TenantResourceGetReservationDetailsOptions, CancellationToken)

List the reservations and the roll up counts of reservations group by provisioning states that the user has access to in the current tenant.

  • Request Path: /providers/Microsoft.Capacity/reservations
  • Operation Id: Reservation_ListAll
  • Default Api Version: 2022-11-01
  • Resource: ReservationDetailResource
GetReservationOrder(TenantResource, Guid, String, CancellationToken)

Get the details of the ReservationOrder.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Get
  • Default Api Version: 2022-11-01
  • Resource: ReservationOrderResource
GetReservationOrderAsync(TenantResource, Guid, String, CancellationToken)

Get the details of the ReservationOrder.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Get
  • Default Api Version: 2022-11-01
  • Resource: ReservationOrderResource
GetReservationOrderResource(ArmClient, ResourceIdentifier)

Gets an object representing a ReservationOrderResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(Guid) to create a ReservationOrderResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetReservationOrderResource(ResourceIdentifier) instead.

GetReservationOrders(TenantResource)

Gets a collection of ReservationOrderResources in the TenantResource. MockingTo mock this method, please mock GetReservationOrders() instead.

GetReservationQuota(SubscriptionResource, String, AzureLocation, String, CancellationToken)

Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}
  • Operation Id: Quota_Get
  • Default Api Version: 2020-10-25
  • Resource: ReservationQuotaResource
GetReservationQuotaAsync(SubscriptionResource, String, AzureLocation, String, CancellationToken)

Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}
  • Operation Id: Quota_Get
  • Default Api Version: 2020-10-25
  • Resource: ReservationQuotaResource
GetReservationQuotaResource(ArmClient, ResourceIdentifier)

Gets an object representing a ReservationQuotaResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, AzureLocation, String) to create a ReservationQuotaResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetReservationQuotaResource(ResourceIdentifier) instead.

Applies to