ManagementGroupCollection.CreateOrUpdate メソッド

定義

管理グループを作成または更新します。 管理グループが既に作成されていて、以降の作成要求が異なるプロパティで発行された場合、管理グループのプロパティが更新されます。

  • 要求パス/プロバイダー/Microsoft.Management/managementGroups/{groupId}
  • 操作IdManagementGroups_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagementGroups.ManagementGroupResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string groupId, Azure.ResourceManager.ManagementGroups.Models.ManagementGroupCreateOrUpdateContent content, string cacheControl = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ManagementGroups.Models.ManagementGroupCreateOrUpdateContent * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagementGroups.ManagementGroupResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ManagementGroups.Models.ManagementGroupCreateOrUpdateContent * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagementGroups.ManagementGroupResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, groupId As String, content As ManagementGroupCreateOrUpdateContent, Optional cacheControl As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ManagementGroupResource)

パラメーター

waitUntil
WaitUntil

Completed メソッドが、サービスで実行時間の長い操作が完了するまで戻るまで待機する必要がある場合。 Started 操作を開始した後に が返される場合は 。 実行時間の長い操作の詳細については、「 Azure.Core Long-Running 操作のサンプル」を参照してください。

groupId
String

管理グループ ID。

content
ManagementGroupCreateOrUpdateContent

管理グループの作成パラメーター。

cacheControl
String

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

cancellationToken
CancellationToken

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

戻り値

例外

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

groupId または content が null です。

適用対象