共用方式為


ManagementLocks interface

表示ManagementLocks的介面。

方法

createOrUpdateAtResourceGroupLevel(string, string, ManagementLockObject, ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams)

當您在父範圍套用鎖定時,所有子系資源都會都繼承相同的鎖定。 若要建立管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有「擁有者」和「使用者存取管理員」被授與這些動作的存取權。

createOrUpdateAtResourceLevel(string, string, string, string, string, string, ManagementLockObject, ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams)

當您在父範圍套用鎖定時,所有子系資源都會都繼承相同的鎖定。 若要建立管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有「擁有者」和「使用者存取管理員」被授與這些動作的存取權。

createOrUpdateAtSubscriptionLevel(string, ManagementLockObject, ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams)

當您在父範圍套用鎖定時,所有子系資源都會都繼承相同的鎖定。 若要建立管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有「擁有者」和「使用者存取管理員」被授與這些動作的存取權。

createOrUpdateByScope(string, string, ManagementLockObject, ManagementLocksCreateOrUpdateByScopeOptionalParams)

依範圍建立或更新管理鎖定。

deleteAtResourceGroupLevel(string, string, ManagementLocksDeleteAtResourceGroupLevelOptionalParams)

若要刪除管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有「擁有者」和「使用者存取管理員」被授與這些動作的存取權。

deleteAtResourceLevel(string, string, string, string, string, string, ManagementLocksDeleteAtResourceLevelOptionalParams)

若要刪除管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有「擁有者」和「使用者存取管理員」被授與這些動作的存取權。

deleteAtSubscriptionLevel(string, ManagementLocksDeleteAtSubscriptionLevelOptionalParams)

若要刪除管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有「擁有者」和「使用者存取管理員」被授與這些動作的存取權。

deleteByScope(string, string, ManagementLocksDeleteByScopeOptionalParams)

依範圍刪除管理鎖定。

getAtResourceGroupLevel(string, string, ManagementLocksGetAtResourceGroupLevelOptionalParams)

取得資源群組層級的管理鎖定。

getAtResourceLevel(string, string, string, string, string, string, ManagementLocksGetAtResourceLevelOptionalParams)

取得資源的管理鎖定或任何低於資源的層級。

getAtSubscriptionLevel(string, ManagementLocksGetAtSubscriptionLevelOptionalParams)

取得訂用帳戶層級的管理鎖定。

getByScope(string, string, ManagementLocksGetByScopeOptionalParams)

依範圍取得管理鎖定。

listAtResourceGroupLevel(string, ManagementLocksListAtResourceGroupLevelOptionalParams)

取得資源群組的所有管理鎖定。

listAtResourceLevel(string, string, string, string, string, ManagementLocksListAtResourceLevelOptionalParams)

取得資源的所有管理鎖定,或任何低於資源層級的管理鎖定。

listAtSubscriptionLevel(ManagementLocksListAtSubscriptionLevelOptionalParams)

取得訂用帳戶的所有管理鎖定。

listByScope(string, ManagementLocksListByScopeOptionalParams)

取得範圍的所有管理鎖定。

方法詳細資料

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

管理鎖定參數。

傳回

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

用於建立或更新管理鎖定的參數。

傳回

createOrUpdateAtSubscriptionLevel(string, ManagementLockObject, ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams)

當您在父範圍套用鎖定時,所有子系資源都會都繼承相同的鎖定。 若要建立管理鎖定,您必須能夠存取 Microsoft.Authorization/* 或 Microsoft.Authorization/locks/* 動作。 在內建角色中,只有「擁有者」和「使用者存取管理員」被授與這些動作的存取權。

function createOrUpdateAtSubscriptionLevel(lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams): Promise<ManagementLockObject>

參數

lockName

string

鎖定的名稱。 鎖定名稱最多可以有 260 個字元。 它不能包含 <、 > %、&、:、、?、/或任何控制字元。

parameters
ManagementLockObject

管理鎖定參數。

傳回

createOrUpdateByScope(string, string, ManagementLockObject, ManagementLocksCreateOrUpdateByScopeOptionalParams)

依範圍建立或更新管理鎖定。

function createOrUpdateByScope(scope: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateByScopeOptionalParams): Promise<ManagementLockObject>

參數

scope

string

鎖定的範圍。 提供指派的範圍時,請使用 '/subscriptions/{subscriptionId}' 作為訂用帳戶、針對資源群組使用 '/subscriptions/{subscriptionId}/resourceGroupName}',以及針對資源使用 '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'。

lockName

string

鎖定的名稱。

parameters
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

要取得的鎖定名稱。

傳回

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

鎖定的名稱。

傳回

getAtSubscriptionLevel(string, ManagementLocksGetAtSubscriptionLevelOptionalParams)

取得訂用帳戶層級的管理鎖定。

function getAtSubscriptionLevel(lockName: string, options?: ManagementLocksGetAtSubscriptionLevelOptionalParams): Promise<ManagementLockObject>

參數

lockName

string

要取得的鎖定名稱。

傳回

getByScope(string, string, ManagementLocksGetByScopeOptionalParams)

依範圍取得管理鎖定。

function getByScope(scope: string, lockName: string, options?: ManagementLocksGetByScopeOptionalParams): Promise<ManagementLockObject>

參數

scope

string

鎖定的範圍。

lockName

string

鎖定的名稱。

options
ManagementLocksGetByScopeOptionalParams

選項參數。

傳回

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}' 作為訂用帳戶使用 '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}',針對資源使用 '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'。

傳回