共用方式為


ProtectionIntentOperations interface

代表 ProtectionIntentOperations 的介面。

方法

createOrUpdate(string, string, string, string, ProtectionIntentResource, ProtectionIntentCreateOrUpdateOptionalParams)

建立啟用專案備份的意圖。 這是同步作業。

delete(string, string, string, string, ProtectionIntentDeleteOptionalParams)

用來從專案中移除意圖

get(string, string, string, string, ProtectionIntentGetOptionalParams)

提供保護意圖向上專案的詳細數據。 這是異步作。 若要知道作業的狀態,請呼叫 GetItemOperationResult API。

validate(string, PreValidateEnableBackupRequest, ProtectionIntentValidateOptionalParams)

它會驗證下列專案

  1. 保存庫容量
  2. VM 已受到保護
  3. 傳入屬性的任何 VM 相關組態。

方法詳細資料

createOrUpdate(string, string, string, string, ProtectionIntentResource, ProtectionIntentCreateOrUpdateOptionalParams)

建立啟用專案備份的意圖。 這是同步作業。

function createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, parameters: ProtectionIntentResource, options?: ProtectionIntentCreateOrUpdateOptionalParams): Promise<ProtectionIntentResource>

參數

vaultName

string

復原服務保存庫的名稱。

resourceGroupName

string

復原服務保存庫所在的資源群組名稱。

fabricName

string

與備份專案相關聯的網狀架構名稱。

intentObjectName

string

意圖物件名稱。

parameters
ProtectionIntentResource

資源備份專案

傳回

delete(string, string, string, string, ProtectionIntentDeleteOptionalParams)

用來從專案中移除意圖

function delete(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options?: ProtectionIntentDeleteOptionalParams): Promise<void>

參數

vaultName

string

復原服務保存庫的名稱。

resourceGroupName

string

復原服務保存庫所在的資源群組名稱。

fabricName

string

與意圖相關聯的網狀架構名稱。

intentObjectName

string

要刪除的意圖。

options
ProtectionIntentDeleteOptionalParams

選項參數。

傳回

Promise<void>

get(string, string, string, string, ProtectionIntentGetOptionalParams)

提供保護意圖向上專案的詳細數據。 這是異步作。 若要知道作業的狀態,請呼叫 GetItemOperationResult API。

function get(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options?: ProtectionIntentGetOptionalParams): Promise<ProtectionIntentResource>

參數

vaultName

string

復原服務保存庫的名稱。

resourceGroupName

string

復原服務保存庫所在的資源群組名稱。

fabricName

string

與備份專案相關聯的網狀架構名稱。

intentObjectName

string

備份要擷取其詳細數據的項目名稱。

options
ProtectionIntentGetOptionalParams

選項參數。

傳回

validate(string, PreValidateEnableBackupRequest, ProtectionIntentValidateOptionalParams)

它會驗證下列專案

  1. 保存庫容量
  2. VM 已受到保護
  3. 傳入屬性的任何 VM 相關組態。
function validate(azureRegion: string, parameters: PreValidateEnableBackupRequest, options?: ProtectionIntentValidateOptionalParams): Promise<PreValidateEnableBackupResponse>

參數

azureRegion

string

要叫用 Api 的 Azure 區域

parameters
PreValidateEnableBackupRequest

在虛擬機上啟用備份驗證要求

options
ProtectionIntentValidateOptionalParams

選項參數。

傳回