共用方式為


ManagementGroupsOperationsExtensions.GetAsync Method

Definition

Get the details of the management group.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ManagementGroups.Models.ManagementGroup> GetAsync (this Microsoft.Azure.Management.ManagementGroups.IManagementGroupsOperations operations, string groupId, string expand = default, bool? recurse = default, string filter = default, string cacheControl = "no-cache", System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.ManagementGroups.IManagementGroupsOperations * string * string * Nullable<bool> * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ManagementGroups.Models.ManagementGroup>
<Extension()>
Public Function GetAsync (operations As IManagementGroupsOperations, groupId As String, Optional expand As String = Nothing, Optional recurse As Nullable(Of Boolean) = Nothing, Optional filter As String = Nothing, Optional cacheControl As String = "no-cache", Optional cancellationToken As CancellationToken = Nothing) As Task(Of ManagementGroup)

Parameters

operations
IManagementGroupsOperations

The operations group for this extension method.

groupId
String

Management Group ID.

expand
String

The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. Possible values include: 'children', 'path', 'ancestors'

recurse
Nullable<Boolean>

The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true.

filter
String

A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription')

cacheControl
String

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

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to