Skip to main content

reservations

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

Overview

Namereservations
TypeResource
Idazure.billing.reservations

Fields

The following fields are returned by SELECT queries:

Get Reservation details.

NameDatatypeDescription
etaginteger (int32)
locationstringThe location of the reservation.
propertiesobjectThe properties associated to this reservation
skuobjectThe sku information associated to this reservation
tagsobjectTags for this reservation

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_reservation_orderselectbillingAccountName, reservationOrderId, reservationIdexpandGet specific Reservation details in the billing account.
list_by_billing_profileselectbillingAccountName, billingProfileNamefilter, orderBy, skiptoken, refreshSummary, selectedState, takeLists the reservations for a billing profile and the roll up counts of reservations group by provisioning state.
list_by_reservation_orderselectbillingAccountName, reservationOrderIdList Reservations within a single ReservationOrder in the billing account.
list_by_billing_accountselectbillingAccountNamefilter, orderBy, skiptoken, refreshSummary, selectedState, takeLists the reservations in the billing account and the roll up counts of reservations group by provisioning states.
update_by_billing_accountexecbillingAccountName, reservationOrderId, reservationIdUpdate reservation by 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
billingAccountNamestringThe ID that uniquely identifies a billing account.
billingProfileNamestringThe ID that uniquely identifies a billing profile.
reservationIdstringId of the reservation item
reservationOrderIdstringOrder Id of the reservation
expandstringMay be used to expand the planInformation.
filterstringThe filter query option allows clients to filter a collection of resources that are addressed by a request URL.
orderBystringThe orderby query option allows clients to request resources in a particular order.
refreshSummarystringTo indicate whether to refresh the roll up counts of the savings plans group by provisioning states
selectedStatestringThe selected provisioning state
skiptokennumberThe number of savings plans to skip from the list before returning results
takenumberThe number of savings plans to return

SELECT examples

Get specific Reservation details in the billing account.

SELECT
etag,
location,
properties,
sku,
tags
FROM azure.billing.reservations
WHERE billingAccountName = '{{ billingAccountName }}' -- required
AND reservationOrderId = '{{ reservationOrderId }}' -- required
AND reservationId = '{{ reservationId }}' -- required
AND expand = '{{ expand }}'
;

Lifecycle Methods

Update reservation by billing account.

EXEC azure.billing.reservations.update_by_billing_account 
@billingAccountName='{{ billingAccountName }}' --required,
@reservationOrderId='{{ reservationOrderId }}' --required,
@reservationId='{{ reservationId }}' --required
@@json=
'{
"properties": "{{ properties }}",
"sku": "{{ sku }}",
"tags": "{{ tags }}"
}'
;