Skip to main content

reservation_orders

Creates, updates, deletes, gets or lists a reservation_orders resource.

Overview

Namereservation_orders
TypeResource
Idazure.billing.reservation_orders

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
benefitStartTimestring (date-time)This is the DateTime when the reservation benefit started.
billingAccountIdstringBilling account Id associated to this reservation order.
billingPlanstringRepresent the billing plans. Known values are: "Upfront" and "Monthly". (Upfront, Monthly)
billingProfileIdstringBilling profile Id associated to this reservation order.
createdDateTimestring (date-time)This is the DateTime when the reservation order was created.
customerIdstringFully-qualified identifier of the customerId where the benefit is applied. Present only for Enterprise Agreement PartnerLed customers.
displayNamestringFriendly name for user to easily identified the reservation order.
enrollmentIdstringEnrollment id of the reservation order.
etaginteger:vartype etag: int
expiryDatestring (date)This is the date when the reservation order will expire.
expiryDateTimestring (date-time)This is the date-time when the reservation order will expire.
extendedStatusInfoobjectExtended status information for the reservation.
originalQuantityintegerTotal original quantity of the skus purchased in the reservation order.
planInformationobjectInformation describing the type of billing plan for this reservation order.
productCodestringRepresents UPN.
provisioningStatestringThe provisioning state of the reservation, e.g. Succeeded.
requestDateTimestring (date-time)This is the DateTime when the reservation order was initially requested for purchase.
reservationsarray:vartype reservations: list[~azure.mgmt.billing.models.Reservation]
reviewDateTimestring (date-time)This is the date-time when the Azure Hybrid Benefit needs to be reviewed.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectTags for this reservation.
termstringThe term of the reservation, e.g. P1Y.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_billing_accountselectbilling_account_name, reservation_order_idexpandGet a specific ReservationOrder in the billing account. Get the details of the ReservationOrder in the billing account.
list_by_billing_accountselectbilling_account_namefilter, orderBy, skiptokenGet all `ReservationOrders in the billing account. List all the ReservationOrders in the billing account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
billing_account_namestringThe ID that uniquely identifies a billing account. Required.
reservation_order_idstringOrder Id of the reservation. Required.
expandstringMay be used to expand the detail information of some properties. Default value is None.
filterstringThe filter query option allows clients to filter a collection of resources that are addressed by a request URL. Default value is None.
orderBystringThe orderby query option allows clients to request resources in a particular order. Default value is None.
skiptokennumberThe number of reservations to skip from the list before returning results. Default value is None.

SELECT examples

Get a specific ReservationOrder in the billing account. Get the details of the ReservationOrder in the billing account.

SELECT
id,
name,
benefitStartTime,
billingAccountId,
billingPlan,
billingProfileId,
createdDateTime,
customerId,
displayName,
enrollmentId,
etag,
expiryDate,
expiryDateTime,
extendedStatusInfo,
originalQuantity,
planInformation,
productCode,
provisioningState,
requestDateTime,
reservations,
reviewDateTime,
systemData,
tags,
term,
type
FROM azure.billing.reservation_orders
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND reservation_order_id = '{{ reservation_order_id }}' -- required
AND expand = '{{ expand }}'
;