建立/編輯工作
產品版本:10.11
最後修改日期:2024年7月31日
建立或編輯工作。
在編輯工作之前,您需要先將其鎖定以便進行編輯。編輯功能:
-
時間表
-
來源工作物件(虛擬機器、主機、叢集)
-
目標工作物件(儲存庫、還原目標)
-
工作選項
終點
https://<Director_IP_address>:4443/c/router
JSON 請求範例 1
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "JobManagement",
"method": "saveJob",
"data": [{
"actions": [],
"bandwidthThrottlingRuleIds": null,
"containers": [{
"id": 1,
"launchIntoEc2Classic": null,
"position": 0,
"sourceVid": "VIRTUAL_CONTAINER-1",
"targetAvailabilityZoneVid": null,
"targetInstanceAccessType": null,
"targetInstanceType": null,
"targetKeyPairVid": null,
"targetLuVid": null,
"targetPath": null,
"targetSecurityGroupVid": null,
"targetStorageVid": null,
"targetSubnetVid": null,
"targetVid": ["VMWARE_ESX-2", "VMWARE_DATASTORE-8", null, ""],
"targetVmFolderVid": null,
"targetVpcVid": null
}],
"groupId": null,
"hvType": "VMWARE",
"id": 2,
"lockUuid": "8d5836f4-845a-4ced-a9cb-2cc181eb5d54",
"name": "VMware replication job",
"objects": [{
"appAwareEnabled": true,
"credentialVid": null,
"exchangeLogTruncationCredentialVid": null,
"exchangeLogTruncationEnabled": false,
"id": 34,
"launchIntoEc2Classic": null,
"mappings": [{
"sourceIdentifier": "[datastore1] cong-tran-test-folder-05-replica/cong-tran-test-folder-05-replica.vmdk",
"sourceVid": "VMWARE_VDISK-329",
"target": null,
"targetVid": "VMWARE_DATASTORE-8",
"type": "NORMAL"}],
"nextRunAction": null,
"otherTargetVids": [],
"parentContainerSourceVid": "VIRTUAL_CONTAINER-1",
"position": 11,
"reipCredentialVid": null,
"reipEnabled": false,
"savepointVid": null,
"sourceVid": "VM-161",
"sqlLogTruncationCredentialVid": null,
"sqlLogTruncationEnabled": false,
"targetAvailabilityZoneVid": null,
"targetInstanceAccessType": null,
"targetInstanceType": null,
"targetKeyPairVid": null,
"targetLuVid": "VMWARE_ESX-2",
"targetName": "cong-tran-test-folder-05-replica-replica",
"targetSecurityGroupVid": null,
"targetStoragePath": null,
"targetStorageVid": "VMWARE_DATASTORE-8",
"targetSubnetVid": null,
"targetVid": null,
"targetVmFolderVid": null,
"targetVpcVid": null
}],
"options": {
"applicationAwareMode": "VSS_IGNORE_ERRORS",
"replacementTransporterMode": "AUTO",
"differentialTrackingFallbackBehavior": "LAST_RETRY",
"differentialTrackingFallbackMode": "RESET_HYPERVISOR",
"differentialTrackingMode": "HYPERVISOR",
"ebsVolumeMode": "AUTO",
"enabledLimitedTransporterLoad": false,
"encryptionMode": "NONE",
"exchangeLogTruncationMode": "NONE",
"excludedVid": null,
"profilingEnabled": true,
"fullBackupDayOfMonth": null,
"fullBackupDayOfWeek": null,
"fullBackupEveryJobRuns": 5,
"fullBackupMode": "SYNTHETIC",
"fullBackupRunSettingsType": "EVERY",
"generateMac": false,
"id": 2,
"limitedTransporterLoad": 3,
"namingType": "APPEND_AFTER",
"networkAccelerationMode": "NONE",
"networkMappingMode": "NEVER",
"networkMappingVidList": null,
"postScriptBehavior": "NONE",
"postScriptErrorMode": "NONE",
"postScriptExecutionMode": "NEVER",
"postScriptExecutionPath": null,
"powerSourceVmsOff": true,
"powerVmsOn": false,
"preScriptBehavior": "NONE",
"preScriptErrorMode": "NONE",
"preScriptExecutionMode": "NEVER",
"preScriptExecutionPath": null,
"proxyTransporterVid": null,
"reIpMode": "NEVER",
"reIpRuleVidList": null,
"recipientList": "",
"recoveryTimeObjective": null,
"recoveryTimeObjectiveType": null,
"recoveryType": "SYNTHETIC",
"retentionPolicy": {
"keepDayCount": null,
"keepMonthCount": null,
"keepWeekCount": null,
"keepYearCount": null,
"maxCount": 10,
"retentionMode": "RULESET"},
"vmVerificationDelay": null,
"vmVerificationDiscard": null,
"vmVerificationLimit": null,
"vmVerificationType": "NONE",
"vmVerificationRto": null,
"vmVerificationStoragePath": null,
"vmVerificationStorageVid": null,
"vmVerificationTargetVid": null,
"sendReports": false,
"sourceTransporterVid": null,
"sqlLogTruncationMode": "NONE",
"targetTransporterVid": null,
"temporaryVolumeType": "MAGNETIC",
"thinDiskMode": "AUTO",
"transporterMapping": [{
"kind": "TARGET",
"sourceVid": "VMWARE_ESX-2",
"transporterVid": null
},{
"kind": "TARGET",
"sourceVid": "VMWARE_ESX-2",
"transporterVid": null}],
"transporterMode": "AUTO",
"transporterType": "AUTO"
},
"policyRuleGroup": {
"id": 1,
"condition": "ALL",
"policyRules": [{
"condition": "IS",
"criteria": null,
"id": 1,
"isExcludeItem": null,
"locationTargetVid": "VMWARE_ESX-2",
"locationType": "VMWARE_HOST_AND_CLUSTER",
"position": 1,
"powerState": "ON",
"secondCondition": "IS",
"secondCriteria": null,
"size": null,
"sizeType": "GB",
"type": "VMWARE_VM_LOCATION"}]
},
"schedules": [{
"dayOfMonth": 1,
"dayOfWeek": 5,
"effectiveDate": "2019-09-05T00:00:00",
"enabled": true,
"endTime": null,
"every": 30,
"everyType": "MINUTE",
"month": 0,
"monthlyEveryType": "LAST",
"nextRun": "2019-09-06T00:00:00.000+07:00",
"nextRunRelative": 0,
"on": 31,
"position": 1,
"startTime": "12:00:00 AM",
"timezone": "Asia/Bangkok",
"timezoneOffsetMs": 25200000,
"triggerEvents": null,
"triggerItem": null,
"triggerItemName": null,
"triggerItemTypeName": null,
"triggerRunType": null,
"type": "DAILY"}],
"type": "REPLICATION",
"violatesLicense": false
}],
"type": "rpc",
"tid": 1}'
JSON 請求範例 2
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "JobManagement",
"method": "saveJob",
"data": [{
"id": null,
"name": "Microsoft Office 365 backup job",
"hvType": "OFFICE365",
"type": "BACKUP",
"targetStorageType": "DISK",
"groupId": null,
"lockUuid": null,
"schedules": [{
"enabled": false,
"type": "DAILY",
"position": 1,
"startTime": "12:00:00 AM",
"endTime": null,
"timezone": "EET",
"timezoneOffsetMs": null,
"on": 31,
"everyType": "MINUTE",
"every": 30,
"monthlyEveryType": "LAST",
"dayOfMonth": 1,
"dayOfWeek": 5,
"month": 0,
"triggerItem": null,
"triggerRunType": null,
"triggerEvents": null,
"effectiveDate": null,
"nextRun": null}],
"options": {
"applicationAwareMode": null,
"retentionPolicy": {
"retentionMode": "RULESET",
"maxCount": 10,
"keepDayCount": null,
"keepWeekCount": null,
"keepMonthCount": null,
"keepYearCount": null},
"encryptionMode": null,
"networkAccelerationMode": null,
"thinDiskMode": null,
"ebsVolumeMode": null,
"temporaryVolumeType": null,
"differentialTrackingMode": null,
"differentialTrackingFallbackMode": null,
"differentialTrackingFallbackBehavior": null,
"preScriptExecutionMode": "NEVER",
"preScriptExecutionPath": null,
"preScriptBehavior": "NONE",
"preScriptErrorMode": "NONE",
"postScriptExecutionMode": "NEVER",
"postScriptExecutionPath": null,
"postScriptBehavior": "NONE",
"postScriptErrorMode": "NONE",
"namingType": null,
"sendReports": null,
"recipientList": null,
"exchangeLogTruncationMode": null,
"sqlLogTruncationMode": null,
"powerVmsOn": null,
"generateMac": null,
"recoveryType": null,
"powerSourceVmsOff": null,
"transporterMode": null,
"replacementTransporterMode": null,
"transporterType": null,
"sourceReplacementTransporterMode": null,
"targetReplacementTransporterMode": null,
"sourceReplacementTransporterVid": null,
"targetReplacementTransporterVid": null,
"sourceTransporterVid": null,
"targetTransporterVid": null,
"transporterMapping": [],
"vmVerificationType": null,
"vmVerificationRto": null,
"vmVerificationTargetVid": null,
"vmVerificationStorageVid": null,
"vmVerificationStoragePath": null,
"vmVerificationLimit": null,
"vmVerificationDelay": null,
"vmVerificationDiscard": null,
"excludedVid": [],
"profilingEnabled": true,
"reIpMode": null,
"reIpRuleVidList": null,
"networkMappingMode": null,
"networkMappingVidList": null,
"fullBackupRunSettingsType": null,
"fullBackupDayOfMonth": null,
"fullBackupDayOfWeek": null,
"fullBackupMode": null,
"fullBackupEveryJobRuns": 5,
"proxyTransporterVid": null,
"recoveryTimeObjective": null,
"recoveryTimeObjectiveType": null,
"enabledLimitedTransporterLoad": false,
"limitedTransporterLoad": 3,
"targetLocationType": null,
"tapeAppending": null},
"objects": [{
"position": 0,
"sourceVid": "OFFICE365_EXCHANGE_MAILBOX-5",
"savepointVid": null,
"parentContainerSourceVid": null,
"targetVid": null,
"targetLuVid": null,
"targetStorageVid": "BACKUP_REPOSITORY-3",
"targetName": null,
"nextRunAction": null,
"mappings": [],
"id": null,
"credentialVid": null,
"exchangeLogTruncationCredentialVid": null,
"sqlLogTruncationCredentialVid": null,
"targetVmFolderVid": null,
"targetStoragePath": null,
"otherTargetVids": null,
"targetInstanceType": null,
"launchIntoEc2Classic": null,
"targetInstanceAccessType": null,
"appAwareEnabled": null,
"reipEnabled": null,
"reipCredentialVid": null,
"targetVpcVid": null,
"targetSubnetVid": null,
"targetAvailabilityZoneVid": null,
"targetSecurityGroupVid": null,
"targetKeyPairVid": null,
"exchangeLogTruncationEnabled": null,
"sqlLogTruncationEnabled": null}],
"containers": [],
"actions": [],
"policyRuleGroup": {
"condition": "ALL",
"policyRules": []},
"violatesLicense": false,
"bandwidthThrottlingRuleIds": null,
"originalLocations": null
}],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
|---|---|---|
action
|
字串 |
|
method
|
字串 |
|
data
|
陣列 | 參數陣列 |
type
|
字串 | rpc
|
tid
|
int | 1 |
資料
|
領域
|
類型
|
Description
|
可能的值(如適用)或格式 |
|---|---|---|---|
id
|
long
|
null 若要建立新工作。工作編號(若無則省略) |
|
name
|
字串 | 工作的顯示名稱 |
|
hvType
|
字串 | 平台類型 |
|
type
|
字串 | 工作類型 |
|
groupId
|
long
|
必須在其中建立工作的群組 ID。 null 如果該工作必須放置在最高層級 |
|
lockUuid
|
字串 | null 為了這份新工作。若要編輯現有的工作,請傳入 lockUuid 來自 getJobForEditing 請求回應中的值 |
|
schedules
|
陣列 | 該工作的時程表。請參閱 schedules 下表 |
|
options
|
Json | 工作選擇。請參閱 options 下表 |
|
objects
|
陣列 | 來源與目標物件。請參閱 objects 下表 |
|
containers
|
陣列 | 受監控的容器(例如:叢集)。請參閱下方的容器表格 |
|
|
|
布林值 |
請確認該工作是否違反執照規定 |
|
targetStorageType
|
字串 | 工作目標儲存裝置的類型 |
|
originalLocations
|
字串 | 工作項目的原始位置 |
|
|
|
陣列 |
頻寬限制規則的 ID |
|
|
|
陣列 |
專用於站點還原工作。請參閱 |
|
|
|
Json |
請參閱 |
|
動作
站點還原工作操作的結構。
| 領域 | 類型 | Description | |
|---|---|---|---|
|
|
|
動作 ID |
|
|
|
字串 |
動作 UUid |
|
|
|
字串 |
站點還原措施類型 |
|
|
|
布林值 |
true 若已啟用 |
|
|
|
字串 |
動作模式 |
|
|
|
字串 |
動作待機模式 |
|
|
|
字串 |
錯誤處理模式 |
|
|
|
int |
行動位置 |
|
|
|
Json |
「啟動/停止虛擬機器/執行個體」操作的詳細資訊。請參閱 |
|
|
|
JSON |
「等待」動作的詳細資訊。請參閱 |
|
|
|
JSON |
「執行/停止工作」動作 的詳細資訊。請參閱 |
|
|
|
Json |
故障移轉操作的詳細資訊。請參閱 |
|
|
|
Json |
「傳送email」動作的詳細資訊。請參閱 |
|
|
|
Json |
「附加/移除儲存庫」動作的詳細資訊。請參閱 |
|
|
|
Json |
「故障恢復」操作的詳細資訊。請參閱 |
|
|
|
Json |
「檢查狀態」動作的詳細資訊。請參閱 |
|
|
|
Json |
「執行腳本」動作的詳細資訊。請參閱 |
|
siteRecoveryStartStopVmActionDetails
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
陣列 |
請參閱 |
|
|
|
陣列 |
請參閱 |
|
|
|
陣列 |
被排除的 VID |
|
|
|
Json |
請參閱 |
|
siteRecoveryWaitActionDetails
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
字串 |
時間單位 |
|
|
|
int |
等待的時間 |
|
siteRecoveryRunStopJobActionDetails
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
|
動作 ID |
|
|
|
陣列 |
工作 VID 清單 |
|
siteRecoveryFailoverActionDetails
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
陣列 |
請參閱 |
|
|
|
陣列 |
請參閱 |
|
siteRecoverySendEmailActionDetails
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
|
動作 ID |
|
|
|
字串 |
收件人的email地址 |
|
|
|
字串 |
副本收件人的email地址 |
|
|
|
字串 |
Email主旨 |
|
|
|
字串 |
Email正文 |
|
|
|
陣列 |
檔案清單 |
|
|
|
陣列 |
請參閱 |
|
附件
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
|
附件編號 |
|
|
|
字串 |
原名 |
|
|
|
字串 |
檔案名稱 |
|
siteRecoveryAttachDetachRepoActionDetails
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
字串 |
備份儲存庫 VID |
|
siteRecoveryFailbackActionDetails
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
陣列 |
請參閱 |
|
|
|
陣列 |
請參閱 |
|
|
|
布林值 |
true 若需關閉來源機器 |
|
|
|
陣列 |
被排除的 VID |
|
|
|
字串 |
目標位置類型 | ORIGINAL_LOCATION, NEW_LOCATION
|
|
|
Json |
請參閱下方的 policyRuleGroup 資料表 |
|
siteRecoveryCheckConditionActionDetails
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
字串 |
條件類型 |
|
|
|
字串 |
資源類型 |
|
|
|
字串 |
鑑定方法 |
|
|
|
字串 |
識別方法的選項 |
|
|
|
字串 |
搜尋字串 |
|
|
|
字串 |
來源端點 |
|
|
|
長 |
運輸器識別碼 |
|
|
|
字串 |
運輸器 VID |
|
|
|
字串 |
IP 位址或主機名稱 |
|
|
|
字串 |
若條件成立時應採取的行動類型 |
|
|
|
字串 |
目標動作 UUid 對應於 actionIfTrueType = GO_TO_ANOTHER_ACTION |
|
|
|
字串 |
若未滿足該條件,應採取的行動類型 |
|
|
|
字串 |
目標動作 UUid 對應於 actionIfFalseType = GO_TO_ANOTHER_ACTION |
|
siteRecoveryRunScriptActionDetails
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
字串 |
目標類型 |
|
|
|
字串 |
目標 VID |
|
|
|
字串 |
目標 IP 位址或主機名稱 |
|
|
|
字串 |
腳本路徑 |
|
|
|
字串 |
憑證 VID |
|
|
|
字串 |
使用者名稱 |
|
|
|
字串 |
使用者密碼 |
|
|
|
int |
SSH 埠 |
|
政策規則群組
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
|
政策規則群組的 ID |
|
|
|
字串 |
保單規則組的條件 |
|
|
|
陣列 |
請參閱 |
|
政策規則
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
|
|
|
政策規則 ID |
|
|
|
字串 |
政策規則類型 |
|
|
|
布林值 |
true 若該項目需被排除 |
|
|
|
字串 |
保單規則的條件 |
|
|
|
字串 |
長度單位 |
|
size
|
long
|
機器尺寸 |
|
|
|
字串 |
電源狀態 |
|
|
|
字串 |
位置類型 |
|
|
|
字串 |
目標位置 VID |
|
|
|
字串 |
政策規則的標準 |
|
|
|
int |
標準位置 |
|
|
|
字串 |
政策規則的第二項條件 |
|
|
|
字串 |
第二項政策規則條件的標準 |
|
時間表
工作排程。您可以新增多個排程。
| 領域 | 類型 | Description | 可能的值或格式 |
|---|---|---|---|
enabled
|
布林值 | 若已啟用排程,則 true, false 否則 |
|
|
|
字串 | 備份排程的類型 |
|
position
|
int | 時程表的優先順序 |
|
startTime
|
字串 | 開始時間 | hh:mm:ss AM/PM
|
endTime
|
字串 | 結束時間。 null 若未設定 |
|
timezone
|
字串 | 時區 |
|
on
|
int | 一週中某一天的位元遮罩之十進位表示法。最低位是星期一,第7天是星期日。舉例來說,若您需要在工作日執行某項工作,位元遮罩將為 00011111 即 31 十進位表示為 |
1-127
|
everyType
|
字串 |
如果 |
|
every
|
int |
兩個工作執行之間所需的延遲單位數。例如:「每 30 分鐘執行一次工作」 |
|
monthlyEveryType
|
字串 | 如果 type 是 MONTHLY_YEARLY,則選擇 該月中的某個工作日序號或某一天的日期 |
|
dayOfMonth
|
int | 如果 monthlyEveryType 是 DAY,則選取該月中的第幾天 |
|
dayOfWeek
|
int | 如果 monthlyEveryType 若選自 LAST,則選取週日期的數字 |
|
month
|
int | 如果 type 是 MONTHLY_YEARLY,表示必須執行該工作時所對應的月份編號 |
|
triggerItem
|
字串 | 觸發電流的工作影片 |
|
triggerRunType
|
字串 | 選擇在上一項工作結束後立即執行該工作,或延遲一段時間後再執行。若 DELAYED 被選中,則延遲時間由 everyType 與 every 欄位所定義 |
|
triggerEvents
|
陣列 | 觸發工作條件 |
|
nextRun
|
字串 | 下次工作的時間與日期 | YYYY-MM-DDTHH:MM:SS.SSSZ
|
|
|
字串 |
該時程表的生效日期。這可以是 |
|
|
|
字串 |
觸發項目的名稱 |
|
|
|
字串 |
觸發項目的類型名稱 |
|
|
|
int |
由伺服器設定。相對於伺服器時間的指定時區偏移量 |
|
|
|
|
工作下次執行時的相對時間(以毫秒為單位) |
|
選項
所建立工作的選項。
| 領域 | 類型 | Description | 可能的值 |
|---|---|---|---|
applicationAwareMode
|
字串 | 應用程式感知模式 |
|
retentionPolicy
|
JSON 物件 | 資料保留政策。請參閱 retentionPolicy 請參閱下方的xml-ph-0000@deepl.internal表格 |
|
encryptionMode
|
字串 | 加密模式 |
|
networkAccelerationMode
|
字串 | 網路加速模式 |
|
thinDiskMode
|
字串 | 僅適用於 VMware。複製的簡要或相關來源 |
|
|
|
|
|
|
|
|
布林值 |
true 若需關閉來源機器 |
|
|
|
字串 |
虛擬機器驗證儲存路徑 |
|
|
|
字串 |
ReIP 模式 |
|
|
|
陣列 |
ReIP 規則 VID 清單 |
|
|
|
字串 |
網路對應模式 |
|
|
|
陣列 |
網路對應 VID 清單 |
|
|
|
字串 |
完整備份執行設定的類型 |
|
|
|
int |
每週的完整備份日 |
|
|
|
int |
每月全備份日 |
|
|
|
int |
工作執行時重複執行完整備份 |
|
|
|
字串 |
完整備份模式 |
|
|
|
布林值 |
true 若已啟用「運輸器載量限制」功能 |
|
|
|
int |
傳輸器上最多可同時執行的任務數。適用於 enabledLimitedTransporterLoad 是 true |
|
|
|
字串 |
代理傳輸器 VID |
|
|
|
字串 |
與站點還原相關。還原時間目標的類型 |
|
|
|
int |
與站點還原相關。還原時間目標 |
|
ebsVolumeMode
|
字串 | 僅限 AWS 工作:某種 EBS 卷 |
|
temporaryVolumeType
|
字串 | 僅適用於 AWS 工作:一種臨時儲存卷的類型 |
|
differentialTrackingMode
|
字串 | 一種用於「永久增量備份」的方法。可以是 NONE (停用), HYPERVISOR (若適用,則為 VMware CBT、Hyper-V RCT 或 Nutanix CRT), PROPRIETARY (產品自帶的方法),或 DOUBLE_CHECK (同時使用這兩種方法以確保變更追蹤的可靠性) |
|
differentialTrackingFallbackMode
|
字串 | 設定變更追蹤失敗時的處理方式 |
|
differentialTrackingFallbackBehavior
|
字串 | 指定何時必須套用備用模式 |
|
preScriptExecutionMode
|
字串 | 預處理工作腳本的執行模式 |
|
preScriptExecutionPath
|
字串 | 預處理工作腳本的路徑 |
|
preScriptBehavior
|
字串 | 工作行為:要麼等待腳本執行完畢,要麼繼續執行 |
|
preScriptErrorMode
|
字串 | 工作在預處理腳本失敗時的處理方式 |
|
postScriptExecutionMode
|
字串 | 預處理工作腳本的執行模式 |
|
postScriptExecutionPath
|
字串 | 邁向「工作後劇本」之路 |
|
postScriptBehavior
|
字串 | 工作行為:要麼等待腳本執行完畢,要麼繼續執行 |
|
postScriptErrorMode
|
字串 | 工作在後處理腳本失敗時的處理方式 |
|
namingType
|
字串 | 僅適用於複製工作:變更複本名稱的方式 |
|
sendReports
|
布林值 | 若需在工作完成後發送報告,請勾選此選項 |
|
recipientList
|
字串 | 受贈者名單 |
|
exchangeLogTruncationMode
|
字串 | Microsoft Exchange 日誌截斷的運作模式 |
|
sqlLogTruncationMode
|
字串 | Microsoft SQL Server 日誌截斷的運作模式 |
|
powerVmsOn
|
布林值 | 僅限還原。指定在工作完成後,是否必須開啟已還原的虛擬機器 |
|
generateMac
|
布林值 | 僅限還原。指定是否應為已恢復的虛擬機器產生新的 MAC 位址 |
|
recoveryType
|
字串 | 還原類型 |
|
transporterMode
|
字串 | 資料傳輸方式:自動、SAN、HotAdd 或 LAN |
|
transporterType
|
字串 | 選擇此工作應使用的運輸業者,或讓系統自動選定最適合的運輸業者 |
|
replacementTransporterMode
|
字串 | 若在工作開始時,原定傳輸器無法提供服務,應如何選定替代傳輸器 |
|
sourceReplacementTransporterMode
|
字串 | 來源端的替代傳輸器模式 |
|
sourceReplacementTransporterVid
|
字串 | 源側替換用傳輸器的影片 |
|
targetReplacementTransporterMode
|
字串 | 目標方的替代傳輸器模式 |
|
targetReplacementTransporterVid
|
字串 | 目標方替換用「傳輸器」的影片 |
|
sourceTransporterVid
|
字串 | 如果 transporterType 設定為 ALL,則會為所有主機定義來源傳輸器 |
|
targetTransporterVid
|
字串 | 僅供複製使用。若將 transporterType 設定為 ALL,則會為所有主機定義目標傳輸器 |
|
transporterMapping
|
陣列 | 如果 transporterType 設定為 CUSTOM,則會設定來源與目標傳輸器的參數。請參閱 transporterMapping 下表 |
|
vmVerificationType
|
字串 | 虛擬機器驗證類型 |
|
vmVerificationRto
|
int | 建立臨時虛擬機器並啟動客體作業系統的最大允許時間。若虛擬機器作業系統未在此時間內啟動,則該虛擬機器的驗證將失敗 |
|
vmVerificationTargetVid
|
字串 | 用於建立臨時虛擬機器(VM)以進行虛擬機器驗證的目標容器 VID |
|
vmVerificationStorageVid
|
字串 | 用於建立臨時虛擬機器(以進行虛擬機器驗證)的目標資料存放區 VID |
|
vmVerificationLimit
|
int | 可同時驗證的虛擬機器數量 |
|
vmVerificationDelay
|
int | 在實際的客體作業系統啟動後,需等待一段時間才進行螢幕截圖 |
|
vmVerificationDiscard
|
布林值 |
適用於 Flash VM 啟動工作。如果 |
|
excludedVid
|
array of string
|
被排除在容器(主機或叢集)之外的虛擬機器之 VID |
|
profilingEnabled
|
布林值 | 在資料傳輸過程中,將收集額外資訊並記錄於產品日誌中,以利偵測瓶頸 |
|
傳輸器映射
| 領域 | 類型 | Description | 可能的值 |
|---|---|---|---|
|
|
|
轉運器映射識別碼 |
|
|
|
字串 |
某種傳送器映射 |
|
|
|
字串 |
運輸器 VID |
|
|
|
字串 |
來源 VID |
|
保留政策
| 領域 | 類型 | Description | 可能的值 |
|---|---|---|---|
retentionMode
|
字串 | 保留模式。該 RULESET 定義了保留規則。該 EXACT 用於備份複製工作,並複製原始備份的規則集 |
|
maxCount
|
int | 最大還原點數量 |
|
keepDayCount
|
int | 保留還原點的最長天數 |
|
keepWeekCount
|
int | 保留還原點的最長週數 |
|
keepMonthCount
|
int | 保留還原點的最長月數 |
|
keepYearCount
|
int | 保留還原點的最長年限 |
|
物件
建立工作所需來源與目標物件。
| 領域 | 類型 | Description | 可能的值 |
|---|---|---|---|
position
|
int | 工作物件的優先級 |
|
sourceVid
|
字串 | 用於還原及備份複製工作所選取的來源項目的影片。舉例來說,對於 VMware 備份工作,來源即為一台 VMware 虛擬機器 |
|
savepointVid
|
字串 | 存檔點 VID |
|
jobSourceVid
|
字串 | 工作來源 VID |
|
targetVid
|
字串 | 在虛擬機器初始化或重複使用現有備份的情況下,工作目標 VID |
|
targetLuVid
|
字串 | 目標容器的 VID |
|
targetStorageVid
|
字串 | 目標儲存庫的影片。必須在執行備份工作之前指定 |
|
targetName
|
字串 | 複製目標顯示名稱 |
|
nextRunAction
|
字串 | 定義下次執行工作的操作 |
|
mappings
|
陣列 | 特定資料存放區與網路的映射規則。請參閱 mappings 下表 |
|
id
|
int | 物件 ID |
|
credentialVid
|
字串 | Microsoft Hyper-V 或 AWS EC2 憑證的 VID |
|
exchangeLogTruncationCredentialVid
|
字串 | Microsoft Exchange 日誌截斷憑證的 VID |
|
sqlLogTruncationCredentialVid
|
字串 | Microsoft SQL Server 日誌截斷憑證的 VID |
|
targetStoragePath
|
字串 | Microsoft Hyper-V 專用:作業系統內目標檔案的路徑 |
|
otherTargetVids
|
陣列 | 目標物體的影片 |
|
targetInstanceType
|
字串 | AWS 專用:目標執行個體類型 |
|
launchIntoEc2Classic
|
布林值 | AWS 專用。 true 若要部署至 AWS EC2 Classic |
|
appAwareEnabled
|
布林值 | 檢查此工作物件是否已啟用App感知模式 |
|
|
|
字串 |
僅適用於 VMware。目標虛擬機器資料夾 VID |
|
|
|
布林值 |
true 若已啟用 ReIP |
|
|
|
字串 |
ReIP 憑證 VID |
|
targetVpcVid
|
字串 | 目標 VPC VID |
|
targetSubnetVid
|
字串 |
目標子網 VID |
|
targetAvailabilityZoneVid
|
字串 |
目標可用區域 VID |
|
targetSecurityGroupVid
|
字串 |
目標安全群組 VID |
|
targetKeyPairVid
|
字串 |
目標金鑰對 VID |
|
targetInstanceAccessType
|
字串 |
目標實例存取類型 |
|
exchangeLogTruncationEnabled
|
布林值 |
|
|
sqlLogTruncationEnabled
|
布林值 | true 若已啟用 Microsoft SQL Server 日誌記錄的截斷功能 |
|
parentContainerSourceVid
|
字串 |
父容器來源 VID(如有) |
|
sourceVid 範例
若要列出所有 VMware 虛擬機器,請使用:
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "InventoryManagement",
"method": "list",
"data": [{
"includeTypes": ["VM"]
}
],
"type": "rpc",
"tid": 1
}'
{
"action": "InventoryManagement",
"method": "list",
"tid": "302",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": {
"children": [{
"powerState": "OFF",
"hostLid": "VMWARE_VMWARE_ESX_host-82849_10.30.29.91_4c4c4544-004c-3810-804c-b5c04f4b344a",
"hostSc": 1,
"hostVid": "VMWARE_ESX-11",
"hostVersion": "6.0.0",
"lid": "VMWARE_VM_vm-90670_50226a95-bc4c-bc8c-2c63-2c845fdc460f_42222a5e-2343-36eb-f4f7-04167cf4f4c8",
"isTemplate": false,
"isWindowsPlatform": false,
"replicationState": "UNKNOWN",
"notSupportedReason": null,
"warningReason": null,
"isReplicatedFromBackupObject": false,
"osType": "UNKNOWN",
"extendedInfo": null,
"identifier": 210,
"vid": "VM-210",
"type": "VM",
"subType": "VM",
"name": "000010-sy-replica",
"description": null,
"accessible": false,
"isDisabled": false,
"replicable": true,
"hvType": "VMWARE",
"flags": 0,
"children": null
}
]
}
}
注意!!!
請參閱每個回傳項目的「vid」屬性。
targetStorageVid 範例
若要列出所有儲存庫,請使用:
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "InventoryManagement",
"method": "list",
"data": [{
"includeTypes": ["BACKUP_REPOSITORY"]
}
],
"type": "rpc",
"tid": 1
}'
{
"action": "InventoryManagement",
"method": "list",
"tid": "81",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": {
"children": [{
"backupCount": 21,
"transporterVid": "TRANSPORTER-1",
"repoDataStorageType": "INCREMENTAL_WITH_FULL_BACKUPS",
"state": "OK",
"repoType": "LOCAL",
"masterVid": null,
"objectLockSupported": true,
"encryption": false,
"free": 43769815040,
"size": 950807814144,
"online": true,
"parentStorageVid": null,
"identifier": 34,
"vid": "BACKUP_REPOSITORY-34",
"type": "BACKUP_REPOSITORY",
"subType": null,
"name": "ee",
"description": null,
"accessible": true,
"isDisabled": false,
"replicable": false,
"hvType": "NONE",
"flags": 0,
"nameWithDescription": null,
"children": null
}, {
"backupCount": 59,
"transporterVid": "TRANSPORTER-1",
"repoDataStorageType": "FOREVER_INCREMENTAL",
"state": "OK",
"repoType": "LOCAL",
"masterVid": null,
"objectLockSupported": false,
"encryption": false,
"free": 144008052736,
"size": 950807814144,
"online": true,
"parentStorageVid": null,
"identifier": 2,
"vid": "BACKUP_REPOSITORY-2",
"type": "BACKUP_REPOSITORY",
"subType": null,
"name": "eeeeee",
"description": null,
"accessible": true,
"isDisabled": false,
"replicable": false,
"hvType": "NONE",
"flags": 0,
"nameWithDescription": null,
"children": null
}
],
"totalCount": 2
}
}
注意!!!
請參閱每個回傳項目的「vid」屬性。
映射關係
特定物件(資料儲存裝置與網路介面卡)的對應關係。
| 領域 | 類型 | Description | 可能的值 |
|---|---|---|---|
type
|
字串 | 地圖類型 |
|
sourceVid
|
字串 | 來源物件 VID |
|
targetVid
|
字串 | 目標物件 VID |
|
target
|
字串 | 僅限 Hyper-V 工作:目標作業系統路徑 |
|
|
|
字串 |
來源識別碼(MAC、磁碟標籤等) |
|
容器
用於還原及備份複製工作之來源物件的參數。
| 領域 | 類型 | 說明 | 可能的值 |
|---|---|---|---|
position
|
int | 工作處理中的物件優先級 |
|
sourceVid
|
字串 | 來源 VID |
|
targetVid
|
陣列 | 目標 VID |
|
id
|
long
|
ID |
|
targetPath
|
字串 | Hyper-V 專用:作業系統內目標檔案的路徑 |
|
targetInstanceType
|
字串 | AWS 專用:目標執行個體類型 |
|
|
|
布林值 |
AWS 專用 |
|
|
|
|
以下欄位專用於站點還原工作 |
|
|
|
字串 |
目標邏輯單元 VID |
|
|
|
字串 |
VMware 專用 |
|
|
|
字串 |
目標虛擬機器資料夾 VID |
|
|
|
字串 |
目標 VPC VID |
|
|
|
字串 |
目標子網 VID |
|
|
|
字串 |
目標可用區域 VID |
|
|
|
字串 |
目標安全群組 VID |
|
|
|
字串 |
目標金鑰對 VID |
|
|
|
字串 |
目標實例存取類型 |
|
回應範例
{
"action": "JobManagement",
"method": "saveJob",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": 36
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 關於發生問題的方法的說明 |
cause
|
字串 | 故障原因 |
| data | int | 工作編號 |