ManagementGroups interface
Interface representing a ManagementGroups.
Methods
begin |
Create or update a management group. If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. |
begin |
Create or update a management group. If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. |
begin |
Delete management group. If a management group contains child resources, the request will fail. |
begin |
Delete management group. If a management group contains child resources, the request will fail. |
get(string, Management |
Get the details of the management group. |
list(Management |
List management groups for the authenticated user. |
list |
List all entities that descend from a management group. |
update(string, Patch |
Update a management group. |
Method Details
beginCreateOrUpdate(string, CreateManagementGroupRequest, ManagementGroupsCreateOrUpdateOptionalParams)
Create or update a management group. If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated.
function beginCreateOrUpdate(groupId: string, createManagementGroupRequest: CreateManagementGroupRequest, options?: ManagementGroupsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ManagementGroup>, ManagementGroup>>
Parameters
- groupId
-
string
Management Group ID.
- createManagementGroupRequest
- CreateManagementGroupRequest
Management group creation parameters.
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<ManagementGroup>, ManagementGroup>>
beginCreateOrUpdateAndWait(string, CreateManagementGroupRequest, ManagementGroupsCreateOrUpdateOptionalParams)
Create or update a management group. If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated.
function beginCreateOrUpdateAndWait(groupId: string, createManagementGroupRequest: CreateManagementGroupRequest, options?: ManagementGroupsCreateOrUpdateOptionalParams): Promise<ManagementGroup>
Parameters
- groupId
-
string
Management Group ID.
- createManagementGroupRequest
- CreateManagementGroupRequest
Management group creation parameters.
The options parameters.
Returns
Promise<ManagementGroup>
beginDelete(string, ManagementGroupsDeleteOptionalParams)
Delete management group. If a management group contains child resources, the request will fail.
function beginDelete(groupId: string, options?: ManagementGroupsDeleteOptionalParams): Promise<PollerLike<PollOperationState<ManagementGroupsDeleteResponse>, ManagementGroupsDeleteResponse>>
Parameters
- groupId
-
string
Management Group ID.
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<ManagementGroupsDeleteResponse>, ManagementGroupsDeleteResponse>>
beginDeleteAndWait(string, ManagementGroupsDeleteOptionalParams)
Delete management group. If a management group contains child resources, the request will fail.
function beginDeleteAndWait(groupId: string, options?: ManagementGroupsDeleteOptionalParams): Promise<ManagementGroupsDeleteResponse>
Parameters
- groupId
-
string
Management Group ID.
The options parameters.
Returns
Promise<ManagementGroupsDeleteResponse>
get(string, ManagementGroupsGetOptionalParams)
Get the details of the management group.
function get(groupId: string, options?: ManagementGroupsGetOptionalParams): Promise<ManagementGroup>
Parameters
- groupId
-
string
Management Group ID.
The options parameters.
Returns
Promise<ManagementGroup>
list(ManagementGroupsListOptionalParams)
List management groups for the authenticated user.
function list(options?: ManagementGroupsListOptionalParams): PagedAsyncIterableIterator<ManagementGroupInfo, ManagementGroupInfo[], PageSettings>
Parameters
The options parameters.
Returns
listDescendants(string, ManagementGroupsGetDescendantsOptionalParams)
List all entities that descend from a management group.
function listDescendants(groupId: string, options?: ManagementGroupsGetDescendantsOptionalParams): PagedAsyncIterableIterator<DescendantInfo, DescendantInfo[], PageSettings>
Parameters
- groupId
-
string
Management Group ID.
The options parameters.
Returns
update(string, PatchManagementGroupRequest, ManagementGroupsUpdateOptionalParams)
Update a management group.
function update(groupId: string, patchGroupRequest: PatchManagementGroupRequest, options?: ManagementGroupsUpdateOptionalParams): Promise<ManagementGroup>
Parameters
- groupId
-
string
Management Group ID.
- patchGroupRequest
- PatchManagementGroupRequest
Management group patch parameters.
The options parameters.
Returns
Promise<ManagementGroup>