Skip to main content

invoice_sections

Creates, updates, deletes, gets or lists an invoice_sections resource.

Overview

Nameinvoice_sections
TypeResource
Idazure.billing.invoice_sections

Fields

The following fields are returned by SELECT queries:

An invoice section.

NameDatatypeDescription
propertiesobjectAn invoice section.
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
getselectbillingAccountName, billingProfileName, invoiceSectionNameGets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
list_by_billing_profileselectbillingAccountName, billingProfileNameincludeDeleted, filter, orderBy, top, skip, count, searchLists the invoice sections that a user has access to. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
create_or_updateinsertbillingAccountName, billingProfileName, invoiceSectionNameCreates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
deletedeletebillingAccountName, billingProfileName, invoiceSectionNameDeletes an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
validate_delete_eligibilityexecbillingAccountName, billingProfileName, invoiceSectionNameValidates if the invoice section can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

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.
invoiceSectionNamestringThe ID that uniquely identifies an invoice section.
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.
includeDeletedbooleanCan be used to get deleted invoice sections.
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

Gets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

SELECT
properties,
tags
FROM azure.billing.invoice_sections
WHERE billingAccountName = '{{ billingAccountName }}' -- required
AND billingProfileName = '{{ billingProfileName }}' -- required
AND invoiceSectionName = '{{ invoiceSectionName }}' -- required
;

INSERT examples

Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

INSERT INTO azure.billing.invoice_sections (
data__tags,
data__properties,
billingAccountName,
billingProfileName,
invoiceSectionName
)
SELECT
'{{ tags }}',
'{{ properties }}',
'{{ billingAccountName }}',
'{{ billingProfileName }}',
'{{ invoiceSectionName }}'
RETURNING
properties,
tags
;

DELETE examples

Deletes an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

DELETE FROM azure.billing.invoice_sections
WHERE billingAccountName = '{{ billingAccountName }}' --required
AND billingProfileName = '{{ billingProfileName }}' --required
AND invoiceSectionName = '{{ invoiceSectionName }}' --required
;

Lifecycle Methods

Validates if the invoice section can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

EXEC azure.billing.invoice_sections.validate_delete_eligibility 
@billingAccountName='{{ billingAccountName }}' --required,
@billingProfileName='{{ billingProfileName }}' --required,
@invoiceSectionName='{{ invoiceSectionName }}' --required
;