IManagementLocksOperations.CreateOrUpdateAtResourceGroupLevelWithHttpMessagesAsync メソッド

定義

リソース グループ レベルで管理ロックを作成または更新します。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject>> CreateOrUpdateAtResourceGroupLevelWithHttpMessagesAsync (string resourceGroupName, string lockName, Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAtResourceGroupLevelWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject>>
Public Function CreateOrUpdateAtResourceGroupLevelWithHttpMessagesAsync (resourceGroupName As String, lockName As String, parameters As ManagementLockObject, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ManagementLockObject))

パラメーター

resourceGroupName
String

ロックするリソース グループの名前。

lockName
String

ロック名。 ロック名には、最大 260 文字を指定できます。 、%、、:、&?、/、またはコントロール文字を含<>めることはできません。

parameters
ManagementLockObject

管理ロック パラメーター。

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

操作が無効な状態コードを返したときにスローされます

応答を逆シリアル化できない場合にスローされます

必須パラメーターが null の場合にスローされます

注釈

親スコープでロックを適用すると、すべての子リソースは同じロックを継承します。 管理ロックを作成するには、Microsoft.Authorization/* または Microsoft.Authorization/locks/* アクションにアクセスできる必要があります。 組み込みロールのうち、所有者とユーザー アクセス管理者にのみこれらのアクションが許可されています。

適用対象