Share via


ManagementLocksOperationsExtensions.CreateOrUpdateAtResourceLevel メソッド

定義

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

public static Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject CreateOrUpdateAtResourceLevel (this Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject parameters);
static member CreateOrUpdateAtResourceLevel : Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations * string * string * string * string * string * string * Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject -> Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject
<Extension()>
Public Function CreateOrUpdateAtResourceLevel (operations As IManagementLocksOperations, resourceGroupName As String, resourceProviderNamespace As String, parentResourcePath As String, resourceType As String, resourceName As String, lockName As String, parameters As ManagementLockObject) As ManagementLockObject

パラメーター

operations
IManagementLocksOperations

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

resourceGroupName
String

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

resourceProviderNamespace
String

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

parentResourcePath
String

親リソース ID。

resourceType
String

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

resourceName
String

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

lockName
String

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

parameters
ManagementLockObject

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

戻り値

注釈

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

適用対象