ManagementLocks interface
代表ManagementLocks的介面。
方法
方法詳細資料
createOrUpdateAtResourceGroupLevel(string, string, ManagementLockObject, ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams)
當您在父範圍套用鎖定時,所有子資源都會繼承相同的鎖定。 若要建立管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有擁有者和使用者存取管理員會被授與這些動作。
function createOrUpdateAtResourceGroupLevel(resourceGroupName: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams): Promise<ManagementLockObject>
參數
- resourceGroupName
-
string
要鎖定的資源群組名稱。
- lockName
-
string
鎖定名稱。 鎖定名稱最多可以有 260 個字元。 它不能包含 <、> %、&、:、、?、/或任何控制字元。
- parameters
- ManagementLockObject
管理鎖定參數。
傳回
Promise<ManagementLockObject>
createOrUpdateAtResourceLevel(string, string, string, string, string, string, ManagementLockObject, ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams)
當您在父範圍套用鎖定時,所有子資源都會繼承相同的鎖定。 若要建立管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有擁有者和使用者存取管理員會被授與這些動作。
function createOrUpdateAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams): Promise<ManagementLockObject>
參數
- resourceGroupName
-
string
包含要鎖定之資源的資源群組名稱。
- resourceProviderNamespace
-
string
要鎖定之資源的資源提供者命名空間。
- parentResourcePath
-
string
父資源識別。
- resourceType
-
string
要鎖定之資源的資源類型。
- resourceName
-
string
要鎖定的資源名稱。
- lockName
-
string
鎖定的名稱。 鎖定名稱最多可以有 260 個字元。 它不能包含 <、> %、&、:、、?、/或任何控制字元。
- parameters
- ManagementLockObject
用於建立或更新管理鎖定的參數。
傳回
Promise<ManagementLockObject>
createOrUpdateAtSubscriptionLevel(string, ManagementLockObject, ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams)
當您在父範圍套用鎖定時,所有子資源都會繼承相同的鎖定。 若要建立管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有擁有者和使用者存取管理員會被授與這些動作。
function createOrUpdateAtSubscriptionLevel(lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams): Promise<ManagementLockObject>
參數
- lockName
-
string
鎖定的名稱。 鎖定名稱最多可以有 260 個字元。 它不能包含 <、> %、&、:、、?、/或任何控制字元。
- parameters
- ManagementLockObject
管理鎖定參數。
傳回
Promise<ManagementLockObject>
createOrUpdateByScope(string, string, ManagementLockObject, ManagementLocksCreateOrUpdateByScopeOptionalParams)
依範圍建立或更新管理鎖定。
function createOrUpdateByScope(scope: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateByScopeOptionalParams): Promise<ManagementLockObject>
參數
- scope
-
string
鎖定的範圍。 提供指派的範圍時,請針對訂用帳戶使用 '/subscriptions/{subscriptionId}'、資源群組 '/{subscriptionId}/{resourceGroupName}' 和 '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'。
- lockName
-
string
鎖定的名稱。
- parameters
- ManagementLockObject
建立或更新管理鎖定參數。
選項參數。
傳回
Promise<ManagementLockObject>
deleteAtResourceGroupLevel(string, string, ManagementLocksDeleteAtResourceGroupLevelOptionalParams)
若要刪除管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有擁有者和使用者存取管理員會被授與這些動作。
function deleteAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: ManagementLocksDeleteAtResourceGroupLevelOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
包含鎖定的資源群組名稱。
- lockName
-
string
要刪除的鎖定名稱。
選項參數。
傳回
Promise<void>
deleteAtResourceLevel(string, string, string, string, string, string, ManagementLocksDeleteAtResourceLevelOptionalParams)
若要刪除管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有擁有者和使用者存取管理員會被授與這些動作。
function deleteAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: ManagementLocksDeleteAtResourceLevelOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
包含要刪除之鎖定之資源的資源群組名稱。
- resourceProviderNamespace
-
string
要刪除之鎖定之資源的資源提供者命名空間。
- parentResourcePath
-
string
父資源識別。
- resourceType
-
string
要刪除之鎖定之資源的資源類型。
- resourceName
-
string
要刪除之鎖定的資源名稱。
- lockName
-
string
要刪除之鎖定的名稱。
選項參數。
傳回
Promise<void>
deleteAtSubscriptionLevel(string, ManagementLocksDeleteAtSubscriptionLevelOptionalParams)
若要刪除管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有擁有者和使用者存取管理員會被授與這些動作。
function deleteAtSubscriptionLevel(lockName: string, options?: ManagementLocksDeleteAtSubscriptionLevelOptionalParams): Promise<void>
參數
- lockName
-
string
要刪除的鎖定名稱。
選項參數。
傳回
Promise<void>
deleteByScope(string, string, ManagementLocksDeleteByScopeOptionalParams)
依範圍刪除管理鎖定。
function deleteByScope(scope: string, lockName: string, options?: ManagementLocksDeleteByScopeOptionalParams): Promise<void>
參數
- scope
-
string
鎖定的範圍。
- lockName
-
string
鎖定的名稱。
選項參數。
傳回
Promise<void>
getAtResourceGroupLevel(string, string, ManagementLocksGetAtResourceGroupLevelOptionalParams)
取得資源群組層級的管理鎖定。
function getAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: ManagementLocksGetAtResourceGroupLevelOptionalParams): Promise<ManagementLockObject>
參數
- resourceGroupName
-
string
鎖定的資源群組名稱。
- lockName
-
string
要取得的鎖定名稱。
選項參數。
傳回
Promise<ManagementLockObject>
getAtResourceLevel(string, string, string, string, string, string, ManagementLocksGetAtResourceLevelOptionalParams)
取得資源或資源以下任何層級的管理鎖定。
function getAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: ManagementLocksGetAtResourceLevelOptionalParams): Promise<ManagementLockObject>
參數
- resourceGroupName
-
string
資源群組的名稱。
- resourceProviderNamespace
-
string
資源提供者的命名空間。
- parentResourcePath
-
string
某些服務所需的額外路徑參數,例如 SQL Database。
- resourceType
-
string
資源的型別。
- resourceName
-
string
資源的名稱。
- lockName
-
string
鎖定的名稱。
選項參數。
傳回
Promise<ManagementLockObject>
getAtSubscriptionLevel(string, ManagementLocksGetAtSubscriptionLevelOptionalParams)
取得訂用帳戶層級的管理鎖定。
function getAtSubscriptionLevel(lockName: string, options?: ManagementLocksGetAtSubscriptionLevelOptionalParams): Promise<ManagementLockObject>
參數
- lockName
-
string
要取得的鎖定名稱。
選項參數。
傳回
Promise<ManagementLockObject>
getByScope(string, string, ManagementLocksGetByScopeOptionalParams)
依範圍取得管理鎖定。
function getByScope(scope: string, lockName: string, options?: ManagementLocksGetByScopeOptionalParams): Promise<ManagementLockObject>
參數
- scope
-
string
鎖定的範圍。
- lockName
-
string
鎖定的名稱。
選項參數。
傳回
Promise<ManagementLockObject>
listAtResourceGroupLevel(string, ManagementLocksListAtResourceGroupLevelOptionalParams)
取得資源群組的所有管理鎖定。
function listAtResourceGroupLevel(resourceGroupName: string, options?: ManagementLocksListAtResourceGroupLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject, ManagementLockObject[], PageSettings>
參數
- resourceGroupName
-
string
包含要取得之鎖定的資源群組名稱。
選項參數。
傳回
listAtResourceLevel(string, string, string, string, string, ManagementLocksListAtResourceLevelOptionalParams)
取得資源的所有管理鎖定,或資源以下的任何層級。
function listAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: ManagementLocksListAtResourceLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject, ManagementLockObject[], PageSettings>
參數
- resourceGroupName
-
string
包含鎖定資源的資源群組名稱。 名稱不區分大小寫。
- resourceProviderNamespace
-
string
資源提供者的命名空間。
- parentResourcePath
-
string
父資源識別。
- resourceType
-
string
鎖定資源的資源類型。
- resourceName
-
string
鎖定資源的名稱。
選項參數。
傳回
listAtSubscriptionLevel(ManagementLocksListAtSubscriptionLevelOptionalParams)
取得訂用帳戶的所有管理鎖定。
function listAtSubscriptionLevel(options?: ManagementLocksListAtSubscriptionLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject, ManagementLockObject[], PageSettings>
參數
選項參數。
傳回
listByScope(string, ManagementLocksListByScopeOptionalParams)
取得範圍的所有管理鎖定。
function listByScope(scope: string, options?: ManagementLocksListByScopeOptionalParams): PagedAsyncIterableIterator<ManagementLockObject, ManagementLockObject[], PageSettings>
參數
- scope
-
string
鎖定的範圍。 提供指派的範圍時,請針對訂用帳戶使用 '/subscriptions/{subscriptionId}'、資源群組 '/{subscriptionId}/{resourceGroupName}' 和 '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'。
選項參數。