Share via


ManagementLocksOperationsExtensions.CreateOrUpdateByScope メソッド

定義

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

public static Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject CreateOrUpdateByScope (this Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations operations, string scope, string lockName, Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject parameters);
static member CreateOrUpdateByScope : Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations * string * string * Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject -> Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject
<Extension()>
Public Function CreateOrUpdateByScope (operations As IManagementLocksOperations, scope As String, lockName As String, parameters As ManagementLockObject) As ManagementLockObject

パラメーター

operations
IManagementLocksOperations

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

scope
String

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

lockName
String

ロックの名前。

parameters
ManagementLockObject

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

戻り値

適用対象