Departments interface

Interface representing a Departments.

Methods

get(string, string, DepartmentsGetOptionalParams)

Gets a department by ID. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

listByBillingAccount(string, DepartmentsListByBillingAccountOptionalParams)

Lists the departments that a user has access to. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

Method Details

get(string, string, DepartmentsGetOptionalParams)

Gets a department by ID. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

function get(billingAccountName: string, departmentName: string, options?: DepartmentsGetOptionalParams): Promise<Department>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

departmentName

string

The name of the department.

options
DepartmentsGetOptionalParams

The options parameters.

Returns

Promise<Department>

listByBillingAccount(string, DepartmentsListByBillingAccountOptionalParams)

Lists the departments that a user has access to. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

function listByBillingAccount(billingAccountName: string, options?: DepartmentsListByBillingAccountOptionalParams): PagedAsyncIterableIterator<Department, Department[], PageSettings>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

options
DepartmentsListByBillingAccountOptionalParams

The options parameters.

Returns