ManagementGroupCollection Class

Definition

A class representing a collection of ManagementGroupResource and their operations. Each ManagementGroupResource in the collection will belong to the same instance of TenantResource. To get a ManagementGroupCollection instance call the GetManagementGroups method from an instance of TenantResource.

public class ManagementGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.ManagementGroups.ManagementGroupResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ManagementGroups.ManagementGroupResource>
type ManagementGroupCollection = class
    inherit ArmCollection
    interface seq<ManagementGroupResource>
    interface IEnumerable
    interface IAsyncEnumerable<ManagementGroupResource>
Public Class ManagementGroupCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of ManagementGroupResource), IEnumerable(Of ManagementGroupResource)
Inheritance
ManagementGroupCollection
Implements

Constructors

ManagementGroupCollection()

Initializes a new instance of the ManagementGroupCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CheckNameAvailability(ManagementGroupNameAvailabilityContent, CancellationToken)

Checks if the specified management group name is valid and unique

  • Request Path: /providers/Microsoft.Management/checkNameAvailability
  • Operation Id: ManagementGroups_CheckNameAvailability
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
CheckNameAvailabilityAsync(ManagementGroupNameAvailabilityContent, CancellationToken)

Checks if the specified management group name is valid and unique

  • Request Path: /providers/Microsoft.Management/checkNameAvailability
  • Operation Id: ManagementGroups_CheckNameAvailability
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
CreateOrUpdate(WaitUntil, String, ManagementGroupCreateOrUpdateContent, String, CancellationToken)

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.

  • Request Path: /providers/Microsoft.Management/managementGroups/{groupId}
  • Operation Id: ManagementGroups_CreateOrUpdate
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
CreateOrUpdateAsync(WaitUntil, String, ManagementGroupCreateOrUpdateContent, String, CancellationToken)

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.

  • Request Path: /providers/Microsoft.Management/managementGroups/{groupId}
  • Operation Id: ManagementGroups_CreateOrUpdate
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
Exists(String, Nullable<ManagementGroupExpandType>, Nullable<Boolean>, String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /providers/Microsoft.Management/managementGroups/{groupId}
  • Operation Id: ManagementGroups_Get
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
ExistsAsync(String, Nullable<ManagementGroupExpandType>, Nullable<Boolean>, String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /providers/Microsoft.Management/managementGroups/{groupId}
  • Operation Id: ManagementGroups_Get
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
Get(String, Nullable<ManagementGroupExpandType>, Nullable<Boolean>, String, String, CancellationToken)

Get the details of the management group.

  • Request Path: /providers/Microsoft.Management/managementGroups/{groupId}
  • Operation Id: ManagementGroups_Get
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
GetAll(String, String, CancellationToken)

List management groups for the authenticated user.

  • Request Path: /providers/Microsoft.Management/managementGroups
  • Operation Id: ManagementGroups_List
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
GetAllAsync(String, String, CancellationToken)

List management groups for the authenticated user.

  • Request Path: /providers/Microsoft.Management/managementGroups
  • Operation Id: ManagementGroups_List
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
GetAsync(String, Nullable<ManagementGroupExpandType>, Nullable<Boolean>, String, String, CancellationToken)

Get the details of the management group.

  • Request Path: /providers/Microsoft.Management/managementGroups/{groupId}
  • Operation Id: ManagementGroups_Get
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
GetEntities(ManagementGroupCollectionGetEntitiesOptions, CancellationToken)

List all entities (Management Groups, Subscriptions, etc.) for the authenticated user.

  • Request Path: /providers/Microsoft.Management/getEntities
  • Operation Id: Entities_List
  • Default Api Version: 2021-04-01
GetEntitiesAsync(ManagementGroupCollectionGetEntitiesOptions, CancellationToken)

List all entities (Management Groups, Subscriptions, etc.) for the authenticated user.

  • Request Path: /providers/Microsoft.Management/getEntities
  • Operation Id: Entities_List
  • Default Api Version: 2021-04-01
GetIfExists(String, Nullable<ManagementGroupExpandType>, Nullable<Boolean>, String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Management/managementGroups/{groupId}
  • Operation Id: ManagementGroups_Get
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
GetIfExistsAsync(String, Nullable<ManagementGroupExpandType>, Nullable<Boolean>, String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Management/managementGroups/{groupId}
  • Operation Id: ManagementGroups_Get
  • Default Api Version: 2021-04-01
  • Resource: ManagementGroupResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<ManagementGroupResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ManagementGroupResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to