Skip to main content

requests

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

Overview

Namerequests
TypeResource
Idazure.billing.requests

Fields

The following fields are returned by SELECT queries:

The list of billing requests.

NameDatatypeDescription
propertiesobjectA request submitted by a user to manage billing. Users with an owner role on the scope can approve or decline these requests.
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
list_by_customerselectbillingAccountName, billingProfileName, customerNamefilter, orderBy, top, skip, count, searchThe list of billing requests submitted for the customer.
list_by_billing_profileselectbillingAccountName, billingProfileNamefilter, orderBy, top, skip, count, searchThe list of billing requests submitted for the billing profile.
list_by_billing_accountselectbillingAccountNamefilter, orderBy, top, skip, count, searchThe list of billing requests submitted for the billing account.
getselectbillingRequestNameGets a billing request by its ID.
list_by_userselectfilter, orderBy, top, skip, count, searchThe list of billing requests submitted by a user.
create_or_updateinsertbillingRequestNameCreate or update a billing request.

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.
billingRequestNamestringThe ID that uniquely identifies a billing request.
customerNamestringThe ID that uniquely identifies a customer.
countbooleanThe count query option allows clients to request a count of the matching resources included with the resources in the response.
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.
skipinteger (int64)The skip query option requests the number of items in the queried collection that are to be skipped and not included in the result.
topinteger (int64)The top query option requests the number of items in the queried collection to be included in the result. The maximum supported value for top is 50.

SELECT examples

The list of billing requests submitted for the customer.

SELECT
properties,
tags
FROM azure.billing.requests
WHERE billingAccountName = '{{ billingAccountName }}' -- required
AND billingProfileName = '{{ billingProfileName }}' -- required
AND customerName = '{{ customerName }}' -- required
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
AND top = '{{ top }}'
AND skip = '{{ skip }}'
AND count = '{{ count }}'
AND search = '{{ search }}'
;

INSERT examples

Create or update a billing request.

INSERT INTO azure.billing.requests (
data__tags,
data__properties,
billingRequestName
)
SELECT
'{{ tags }}',
'{{ properties }}',
'{{ billingRequestName }}'
RETURNING
properties,
tags
;