Skip to main content

billing_permissions

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

Overview

Namebilling_permissions
TypeResource
Idazure.billing.billing_permissions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionsarrayThe set of actions that the caller is allowed to perform.
notActionsarrayThe set of actions that the caller is not allowed to perform.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_customerselectbilling_account_name, billing_profile_name, customer_nameLists the billing permissions the caller has for a customer.
list_by_invoice_sectionselectbilling_account_name, billing_profile_name, invoice_section_nameLists the billing permissions the caller has for an invoice section.
list_by_billing_profileselectbilling_account_name, billing_profile_nameLists the billing permissions the caller has on a billing profile.
list_by_customer_at_billing_accountselectbilling_account_name, customer_nameLists the billing permissions the caller has for a customer at billing account level.
list_by_departmentselectbilling_account_name, department_nameLists the billing permissions the caller has for a department.
list_by_enrollment_accountselectbilling_account_name, enrollment_account_nameLists the billing permissions the caller has for an enrollment account.
list_by_billing_accountselectbilling_account_nameLists the billing permissions the caller has on a billing account.
check_access_by_billing_accountexecbilling_account_nameProvides a list of check access response objects for a billing account.
check_access_by_billing_profileexecbilling_account_name, billing_profile_nameProvides a list of check access response objects for a billing profile.
check_access_by_customerexecbilling_account_name, billing_profile_name, customer_nameProvides a list of check access response objects for a customer.
check_access_by_departmentexecbilling_account_name, department_nameProvides a list of check access response objects for a department.
check_access_by_enrollment_accountexecbilling_account_name, enrollment_account_nameProvides a list of check access response objects for an enrollment account.
check_access_by_invoice_sectionexecbilling_account_name, billing_profile_name, invoice_section_nameProvides a list of check access response objects for an invoice section.

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.
billing_profile_namestringThe ID that uniquely identifies a billing profile. Required.
customer_namestringThe ID that uniquely identifies a customer. Required.
department_namestringThe name of the department. Required.
enrollment_account_namestringThe name of the enrollment account. Required.
invoice_section_namestringThe ID that uniquely identifies an invoice section. Required.

SELECT examples

Lists the billing permissions the caller has for a customer.

SELECT
actions,
notActions
FROM azure.billing.billing_permissions
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
AND customer_name = '{{ customer_name }}' -- required
;

Lifecycle Methods

Provides a list of check access response objects for a billing account.

EXEC azure.billing.billing_permissions.check_access_by_billing_account 
@billing_account_name='{{ billing_account_name }}' --required
@@json=
'{
"actions": "{{ actions }}"
}'
;