ManagementLocksOperationsExtensions.CreateOrUpdateByScopeAsync メソッド

定義

スコープ別に管理ロックを作成または更新します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject> CreateOrUpdateByScopeAsync (this Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations operations, string scope, string lockName, Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateByScopeAsync : Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations * string * string * Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject>
<Extension()>
Public Function CreateOrUpdateByScopeAsync (operations As IManagementLocksOperations, scope As String, lockName As String, parameters As ManagementLockObject, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ManagementLockObject)

パラメーター

operations
IManagementLocksOperations

この拡張メソッドの操作グループ。

scope
String

ロックのスコープ。 割り当てのスコープを指定する場合は、サブスクリプションに '/subscriptions/{subscriptionId}' を使用し、リソース グループには '/subscriptions/{subscriptionId}/{resourceGroupName}' を、リソースには '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' を使用します。

lockName
String

ロックの名前。

parameters
ManagementLockObject

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

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象