Bagikan melalui


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
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
CalculateReservationOrder(TenantResource, ReservationPurchaseContent, CancellationToken)

Calculate price for placing a ReservationOrder.

  • Request Path: /providers/Microsoft.Capacity/calculatePrice
  • Operation Id: ReservationOrder_Calculate
CalculateReservationOrderAsync(TenantResource, ReservationPurchaseContent, CancellationToken)

Calculate price for placing a ReservationOrder.

  • Request Path: /providers/Microsoft.Capacity/calculatePrice
  • Operation Id: ReservationOrder_Calculate
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
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
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
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
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
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
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
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
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
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
GetReservationOrder(TenantResource, Guid, String, CancellationToken)

Get the details of the ReservationOrder.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Get
GetReservationOrderAsync(TenantResource, Guid, String, CancellationToken)

Get the details of the ReservationOrder.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Get
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
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
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