departments
Creates, updates, deletes, gets or lists a departments
resource.
Overview
Name | departments |
Type | Resource |
Id | azure.billing.departments |
Fields
- vw_departments
- departments
Name | Datatype | Description |
---|---|---|
id | text | field from the properties object |
billingAccountName | text | field from the properties object |
cost_center | text | field from the properties object |
departmentName | text | field from the properties object |
display_name | text | field from the properties object |
status | text | field from the properties object |
tags | text | 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 | Datatype | Description |
---|---|---|
properties | object | Optional grouping of enrollment accounts to segment costs into logical groupings and set budgets. |
tags | object | 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 < > % & \ ? / |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | billingAccountName, departmentName | Gets a department by ID. The operation is supported only for billing accounts with agreement type Enterprise Agreement. |
list_by_billing_account | SELECT | billingAccountName | Lists the departments that a user has access to. The operation is supported only for billing accounts with agreement type Enterprise Agreement. |
SELECT
examples
Lists the departments that a user has access to. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
- vw_departments
- departments
SELECT
id,
billingAccountName,
cost_center,
departmentName,
display_name,
status,
tags
FROM azure.billing.vw_departments
WHERE billingAccountName = '{{ billingAccountName }}';
SELECT
properties,
tags
FROM azure.billing.departments
WHERE billingAccountName = '{{ billingAccountName }}';