Share via


ManagementGroupCollection.GetAllAsync Method

Definition

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
public virtual Azure.AsyncPageable<Azure.ResourceManager.ManagementGroups.ManagementGroupResource> GetAllAsync (string cacheControl = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ManagementGroups.ManagementGroupResource>
override this.GetAllAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ManagementGroups.ManagementGroupResource>
Public Overridable Function GetAllAsync (Optional cacheControl As String = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ManagementGroupResource)

Parameters

cacheControl
String

Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches.

skipToken
String

Page continuation token is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ManagementGroupResource that may take multiple service requests to iterate over.

Applies to