Skip to main content

savings_plan_orders

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

Overview

Namesavings_plan_orders
TypeResource
Idazure.billing.savings_plan_orders

Fields

The following fields are returned by SELECT queries:

The request is completed.

NameDatatypeDescription
propertiesobjectSavings plan order properties
skuobjectThe resource model definition representing SKU
tagsobjectDictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_billing_accountselectbillingAccountName, savingsPlanOrderIdexpandGet a savings plan order by billing account.
list_by_billing_accountselectbillingAccountNamefilter, orderBy, skiptokenList all Savings plan orders 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.
savingsPlanOrderIdstringOrder ID of the savings plan
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.
skiptokennumberThe number of savings plans to skip from the list before returning results

SELECT examples

Get a savings plan order by billing account.

SELECT
properties,
sku,
tags
FROM azure.billing.savings_plan_orders
WHERE billingAccountName = '{{ billingAccountName }}' -- required
AND savingsPlanOrderId = '{{ savingsPlanOrderId }}' -- required
AND expand = '{{ expand }}'
;