ManagementGroups interface

代表 ManagementGroups 的介面。

方法

beginCreateOrUpdate(string, CreateManagementGroupRequest, ManagementGroupsCreateOrUpdateOptionalParams)

建立或更新管理群組。 如果已建立管理群組,且後續的建立要求會以不同的屬性發出,則會更新管理群組屬性。

beginCreateOrUpdateAndWait(string, CreateManagementGroupRequest, ManagementGroupsCreateOrUpdateOptionalParams)

建立或更新管理群組。 如果已建立管理群組,且後續的建立要求會以不同的屬性發出,則會更新管理群組屬性。

beginDelete(string, ManagementGroupsDeleteOptionalParams)

刪除管理群組。 如果管理群組包含子資源,要求將會失敗。

beginDeleteAndWait(string, ManagementGroupsDeleteOptionalParams)

刪除管理群組。 如果管理群組包含子資源,要求將會失敗。

get(string, ManagementGroupsGetOptionalParams)

取得管理群組的詳細資料。

list(ManagementGroupsListOptionalParams)

列出已驗證之使用者的管理群組。

listDescendants(string, ManagementGroupsGetDescendantsOptionalParams)

列出從管理群組遞減的所有實體。

update(string, PatchManagementGroupRequest, ManagementGroupsUpdateOptionalParams)

更新管理群組。

方法詳細資料

beginCreateOrUpdate(string, CreateManagementGroupRequest, ManagementGroupsCreateOrUpdateOptionalParams)

建立或更新管理群組。 如果已建立管理群組,且後續的建立要求會以不同的屬性發出,則會更新管理群組屬性。

function beginCreateOrUpdate(groupId: string, createManagementGroupRequest: CreateManagementGroupRequest, options?: ManagementGroupsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ManagementGroup>, ManagementGroup>>

參數

groupId

string

管理群組識別碼。

createManagementGroupRequest
CreateManagementGroupRequest

管理群組建立參數。

傳回

beginCreateOrUpdateAndWait(string, CreateManagementGroupRequest, ManagementGroupsCreateOrUpdateOptionalParams)

建立或更新管理群組。 如果已建立管理群組,且後續的建立要求會以不同的屬性發出,則會更新管理群組屬性。

function beginCreateOrUpdateAndWait(groupId: string, createManagementGroupRequest: CreateManagementGroupRequest, options?: ManagementGroupsCreateOrUpdateOptionalParams): Promise<ManagementGroup>

參數

groupId

string

管理群組識別碼。

createManagementGroupRequest
CreateManagementGroupRequest

管理群組建立參數。

傳回

Promise<ManagementGroup>

beginDelete(string, ManagementGroupsDeleteOptionalParams)

刪除管理群組。 如果管理群組包含子資源,要求將會失敗。

function beginDelete(groupId: string, options?: ManagementGroupsDeleteOptionalParams): Promise<PollerLike<PollOperationState<ManagementGroupsDeleteResponse>, ManagementGroupsDeleteResponse>>

參數

groupId

string

管理群組識別碼。

options
ManagementGroupsDeleteOptionalParams

選項參數。

傳回

beginDeleteAndWait(string, ManagementGroupsDeleteOptionalParams)

刪除管理群組。 如果管理群組包含子資源,要求將會失敗。

function beginDeleteAndWait(groupId: string, options?: ManagementGroupsDeleteOptionalParams): Promise<ManagementGroupsDeleteResponse>

參數

groupId

string

管理群組識別碼。

options
ManagementGroupsDeleteOptionalParams

選項參數。

傳回

get(string, ManagementGroupsGetOptionalParams)

取得管理群組的詳細資料。

function get(groupId: string, options?: ManagementGroupsGetOptionalParams): Promise<ManagementGroup>

參數

groupId

string

管理群組識別碼。

options
ManagementGroupsGetOptionalParams

選項參數。

傳回

Promise<ManagementGroup>

list(ManagementGroupsListOptionalParams)

列出已驗證之使用者的管理群組。

function list(options?: ManagementGroupsListOptionalParams): PagedAsyncIterableIterator<ManagementGroupInfo, ManagementGroupInfo[], PageSettings>

參數

options
ManagementGroupsListOptionalParams

選項參數。

傳回

listDescendants(string, ManagementGroupsGetDescendantsOptionalParams)

列出從管理群組遞減的所有實體。

function listDescendants(groupId: string, options?: ManagementGroupsGetDescendantsOptionalParams): PagedAsyncIterableIterator<DescendantInfo, DescendantInfo[], PageSettings>

參數

groupId

string

管理群組識別碼。

傳回

update(string, PatchManagementGroupRequest, ManagementGroupsUpdateOptionalParams)

更新管理群組。

function update(groupId: string, patchGroupRequest: PatchManagementGroupRequest, options?: ManagementGroupsUpdateOptionalParams): Promise<ManagementGroup>

參數

groupId

string

管理群組識別碼。

patchGroupRequest
PatchManagementGroupRequest

管理群組修補程式參數。

options
ManagementGroupsUpdateOptionalParams

選項參數。

傳回

Promise<ManagementGroup>