次の方法で共有


ManagementGroupCollection.GetAsync メソッド

定義

管理グループの詳細を取得します。

  • 要求パス/プロバイダー/Microsoft.Management/managementGroups/{groupId}
  • 操作IdManagementGroups_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagementGroups.ManagementGroupResource>> GetAsync (string groupId, Azure.ResourceManager.ManagementGroups.Models.ManagementGroupExpandType? expand = default, bool? recurse = default, string filter = default, string cacheControl = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * Nullable<Azure.ResourceManager.ManagementGroups.Models.ManagementGroupExpandType> * Nullable<bool> * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagementGroups.ManagementGroupResource>>
override this.GetAsync : string * Nullable<Azure.ResourceManager.ManagementGroups.Models.ManagementGroupExpandType> * Nullable<bool> * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagementGroups.ManagementGroupResource>>
Public Overridable Function GetAsync (groupId As String, Optional expand As Nullable(Of ManagementGroupExpandType) = Nothing, Optional recurse As Nullable(Of Boolean) = Nothing, Optional filter As String = Nothing, Optional cacheControl As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ManagementGroupResource))

パラメーター

groupId
String

管理グループ ID。

expand
Nullable<ManagementGroupExpandType>

$expand=children クエリ文字列パラメーターを使用すると、クライアントは応答ペイロードに子の包含を要求できます。 $expand=path には、ルート グループから現在のグループへのパスが含まれます。 $expand=先祖には、現在のグループの先祖 ID が含まれます。

recurse
Nullable<Boolean>

$recurse=true クエリ文字列パラメーターを使用すると、クライアントは応答ペイロードに階層全体を含めることを要求できます。 $recurseが true に設定されている場合は、$expand=children を渡す必要があることに注意してください。

filter
String

結果からのサブスクリプションの除外を許可するフィルター (つまり、'$filter=children.childType ne Subscription')。

cacheControl
String

要求でキャッシュを利用する必要があるかどうかを示します。 既存のキャッシュをバイパスするには、ヘッダーに "キャッシュなし" 値を設定します。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

groupId は空の文字列であり、空でないと予想されていました。

groupId が null です。

適用対象