role_assignments_by_departments
Creates, updates, deletes, gets or lists a role_assignments_by_departments
resource.
Overview
Name | role_assignments_by_departments |
Type | Resource |
Id | azure.billing.role_assignments_by_departments |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
create_or_update | insert | billingAccountName , departmentName , billingRoleAssignmentName | Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise 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.
Name | Datatype | Description |
---|---|---|
billingAccountName | string | The ID that uniquely identifies a billing account. |
billingRoleAssignmentName | string | The ID that uniquely identifies a role assignment. |
departmentName | string | The name of the department. |
INSERT
examples
- create_or_update
- Manifest
Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
INSERT INTO azure.billing.role_assignments_by_departments (
data__tags,
data__properties,
billingAccountName,
departmentName,
billingRoleAssignmentName
)
SELECT
'{{ tags }}',
'{{ properties }}',
'{{ billingAccountName }}',
'{{ departmentName }}',
'{{ billingRoleAssignmentName }}'
RETURNING
properties,
tags
;
# Description fields are for documentation purposes
- name: role_assignments_by_departments
props:
- name: billingAccountName
value: string
description: Required parameter for the role_assignments_by_departments resource.
- name: departmentName
value: string
description: Required parameter for the role_assignments_by_departments resource.
- name: billingRoleAssignmentName
value: string
description: Required parameter for the role_assignments_by_departments resource.
- name: tags
value: object
description: |
Dictionary 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 < > % & \ ? /
- name: properties
value: object
description: |
The properties of the billing role assignment.