billing_permissions
Creates, updates, deletes, gets or lists a billing_permissions resource.
Overview
| Name | billing_permissions |
| Type | Resource |
| Id | azure.billing.billing_permissions |
Fields
The following fields are returned by SELECT queries:
- list_by_customer
- list_by_invoice_section
- list_by_billing_profile
- list_by_customer_at_billing_account
- list_by_department
- list_by_enrollment_account
- list_by_billing_account
| Name | Datatype | Description |
|---|---|---|
actions | array | The set of actions that the caller is allowed to perform. |
notActions | array | The set of actions that the caller is not allowed to perform. |
| Name | Datatype | Description |
|---|---|---|
actions | array | The set of actions that the caller is allowed to perform. |
notActions | array | The set of actions that the caller is not allowed to perform. |
| Name | Datatype | Description |
|---|---|---|
actions | array | The set of actions that the caller is allowed to perform. |
notActions | array | The set of actions that the caller is not allowed to perform. |
| Name | Datatype | Description |
|---|---|---|
actions | array | The set of actions that the caller is allowed to perform. |
notActions | array | The set of actions that the caller is not allowed to perform. |
| Name | Datatype | Description |
|---|---|---|
actions | array | The set of actions that the caller is allowed to perform. |
notActions | array | The set of actions that the caller is not allowed to perform. |
| Name | Datatype | Description |
|---|---|---|
actions | array | The set of actions that the caller is allowed to perform. |
notActions | array | The set of actions that the caller is not allowed to perform. |
| Name | Datatype | Description |
|---|---|---|
actions | array | The set of actions that the caller is allowed to perform. |
notActions | array | The set of actions that the caller is not allowed to perform. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_customer | select | billing_account_name, billing_profile_name, customer_name | Lists the billing permissions the caller has for a customer. | |
list_by_invoice_section | select | billing_account_name, billing_profile_name, invoice_section_name | Lists the billing permissions the caller has for an invoice section. | |
list_by_billing_profile | select | billing_account_name, billing_profile_name | Lists the billing permissions the caller has on a billing profile. | |
list_by_customer_at_billing_account | select | billing_account_name, customer_name | Lists the billing permissions the caller has for a customer at billing account level. | |
list_by_department | select | billing_account_name, department_name | Lists the billing permissions the caller has for a department. | |
list_by_enrollment_account | select | billing_account_name, enrollment_account_name | Lists the billing permissions the caller has for an enrollment account. | |
list_by_billing_account | select | billing_account_name | Lists the billing permissions the caller has on a billing account. | |
check_access_by_billing_account | exec | billing_account_name | Provides a list of check access response objects for a billing account. | |
check_access_by_billing_profile | exec | billing_account_name, billing_profile_name | Provides a list of check access response objects for a billing profile. | |
check_access_by_customer | exec | billing_account_name, billing_profile_name, customer_name | Provides a list of check access response objects for a customer. | |
check_access_by_department | exec | billing_account_name, department_name | Provides a list of check access response objects for a department. | |
check_access_by_enrollment_account | exec | billing_account_name, enrollment_account_name | Provides a list of check access response objects for an enrollment account. | |
check_access_by_invoice_section | exec | billing_account_name, billing_profile_name, invoice_section_name | Provides 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.
| Name | Datatype | Description |
|---|---|---|
billing_account_name | string | The ID that uniquely identifies a billing account. Required. |
billing_profile_name | string | The ID that uniquely identifies a billing profile. Required. |
customer_name | string | The ID that uniquely identifies a customer. Required. |
department_name | string | The name of the department. Required. |
enrollment_account_name | string | The name of the enrollment account. Required. |
invoice_section_name | string | The ID that uniquely identifies an invoice section. Required. |
SELECT examples
- list_by_customer
- list_by_invoice_section
- list_by_billing_profile
- list_by_customer_at_billing_account
- list_by_department
- list_by_enrollment_account
- list_by_billing_account
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
;
Lists the billing permissions the caller has for an invoice section.
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 invoice_section_name = '{{ invoice_section_name }}' -- required
;
Lists the billing permissions the caller has on a billing profile.
SELECT
actions,
notActions
FROM azure.billing.billing_permissions
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
;
Lists the billing permissions the caller has for a customer at billing account level.
SELECT
actions,
notActions
FROM azure.billing.billing_permissions
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND customer_name = '{{ customer_name }}' -- required
;
Lists the billing permissions the caller has for a department.
SELECT
actions,
notActions
FROM azure.billing.billing_permissions
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND department_name = '{{ department_name }}' -- required
;
Lists the billing permissions the caller has for an enrollment account.
SELECT
actions,
notActions
FROM azure.billing.billing_permissions
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND enrollment_account_name = '{{ enrollment_account_name }}' -- required
;
Lists the billing permissions the caller has on a billing account.
SELECT
actions,
notActions
FROM azure.billing.billing_permissions
WHERE billing_account_name = '{{ billing_account_name }}' -- required
;
Lifecycle Methods
- check_access_by_billing_account
- check_access_by_billing_profile
- check_access_by_customer
- check_access_by_department
- check_access_by_enrollment_account
- check_access_by_invoice_section
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 }}"
}'
;
Provides a list of check access response objects for a billing profile.
EXEC azure.billing.billing_permissions.check_access_by_billing_profile
@billing_account_name='{{ billing_account_name }}' --required,
@billing_profile_name='{{ billing_profile_name }}' --required
@@json=
'{
"actions": "{{ actions }}"
}'
;
Provides a list of check access response objects for a customer.
EXEC azure.billing.billing_permissions.check_access_by_customer
@billing_account_name='{{ billing_account_name }}' --required,
@billing_profile_name='{{ billing_profile_name }}' --required,
@customer_name='{{ customer_name }}' --required
@@json=
'{
"actions": "{{ actions }}"
}'
;
Provides a list of check access response objects for a department.
EXEC azure.billing.billing_permissions.check_access_by_department
@billing_account_name='{{ billing_account_name }}' --required,
@department_name='{{ department_name }}' --required
@@json=
'{
"actions": "{{ actions }}"
}'
;
Provides a list of check access response objects for an enrollment account.
EXEC azure.billing.billing_permissions.check_access_by_enrollment_account
@billing_account_name='{{ billing_account_name }}' --required,
@enrollment_account_name='{{ enrollment_account_name }}' --required
@@json=
'{
"actions": "{{ actions }}"
}'
;
Provides a list of check access response objects for an invoice section.
EXEC azure.billing.billing_permissions.check_access_by_invoice_section
@billing_account_name='{{ billing_account_name }}' --required,
@billing_profile_name='{{ billing_profile_name }}' --required,
@invoice_section_name='{{ invoice_section_name }}' --required
@@json=
'{
"actions": "{{ actions }}"
}'
;