IManagementLocksOperations.CreateOrUpdateAtResourceLevelWithHttpMessagesAsync メソッド

定義

リソース レベルまたはリソースより下の任意のレベルで管理ロックを作成または更新します。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject>> CreateOrUpdateAtResourceLevelWithHttpMessagesAsync (string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, 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 CreateOrUpdateAtResourceLevelWithHttpMessagesAsync : string * string * string * string * 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 CreateOrUpdateAtResourceLevelWithHttpMessagesAsync (resourceGroupName As String, resourceProviderNamespace As String, parentResourcePath As String, resourceType As String, resourceName 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

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

resourceProviderNamespace
String

ロックするリソースのリソース プロバイダー名前空間。

parentResourcePath
String

親リソース ID。

resourceType
String

ロックするリソースのリソースの種類。

resourceName
String

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

lockName
String

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

parameters
ManagementLockObject

管理ロックを作成または更新するためのパラメーター。

customHeaders
Dictionary<String,List<String>>

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

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

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

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

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

注釈

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

適用対象