取得備份儲存庫資訊
產品版本:10.11
最後修改日期:2024年7月31日
取得備份儲存庫的資訊。
終點
https://<Director_IP_address>:4443/c/router
請求範例
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "BackupManagement",
"method": "getBackupRepository",
"data": [3],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
|---|---|---|
action
|
字串 |
|
method
|
字串 |
|
data
|
array of int
|
備份儲存庫 |
type
|
字串 | rpc
|
tid
|
整數 | 1
|
回應範例
{
"action": "BackupManagement",
"method": "getBackupRepository",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": {
"id": 3,
"state": "OK",
"status": "NONE",
"changeStatus": "NONE",
"type": "SHARE",
"name": "Repo",
"description": "",
"size": 8999835533312,
"free": 2891538235392,
"allocated": 331554388515,
"consumed": 321726173238,
"attached": true,
"consistent": true,
"path": "\\\\server\\sharename",
"transporterId": 1,
"transporterName": "Onboard transporter",
"transporterCaps": {
"VMWARE_VSPHERE_PRE55_SUPPORT": true,
"NUTANIX_SUPPORT": true,
"AWS_EC2_SUPPORT": true,
"REPOSITORY_ENCRYPTION_SUPPORT": false,
"CIFS_SHARE_SUPPORT": true,
"LINUX_GUESTS_RECOVERY_SUPPORT": false,
"MS_HYPERV_SUPPORT": true,
"FLASH_VM_BOOT_SUPPORT": true,
"WINDOWS_GUESTS_RECOVERY_SUPPORT": true,
"NFS_SHARE_SUPPORT": false,
"VMWARE_VSPHERE_SUPPORT": true,
"REPOSITORY_MANAGEMENT_SUPPORT": true
},
"username": "DOMAIN\\user",
"password": "$FAKE_PASSWORD$",
"storageSize": 500,
"chunkSize": 500,
"autoSize": true,
"volumeType": "sc1",
"backupCount": 18,
"hvTypeBackupCount": {
"VMWARE": 11,
"HYPERV": 7
},
"hvTypeBackupHasRootDiskCount": {},
"compression": "FAST",
"compressionRatio": 5900,
"deduplication": true,
"deduplicationRatio": 1100,
"selfHeal": true,
"encryption": false,
"encryptionPassword": null,
"lockedShared": false,
"lockedExclusive": false,
"lockReasons": [],
"preventModification": false,
"wasEdited": false,
"wasDiscoveredOnce": true,
"wasImported": false,
"wasCreated": false,
"useSelfHealSchedule": false,
"selfHealSchedule": null,
"selfHealOverrideJobs": false,
"useVerificationSchedule": false,
"verificationSchedule": null,
"verificationOverrideJobs": false,
"useConsolidationSchedule": false,
"consolidationSchedule": null,
"consolidationOverrideJobs": false,
"useDetachSchedule": false,
"detachSchedule": null,
"attachSchedule": null,
"deleteAndRecreateOnAttach": false,
"progress": 0,
"operationStart": null,
"operationStartRelative": 0,
"alertErrorCode": null,
"alertTitle": null,
"alertDescription": null
}
}
回應欄位
|
領域
|
價值
|
Description
|
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 提及發生問題的方法 |
cause
|
字串 | 故障原因 |
| 資料 | 物件 | 備份儲存庫資訊。請參閱下文 |
資料
|
領域
|
價值
|
Description
|
|---|---|---|
| id | int | 備份儲存庫 ID |
state
|
字串 | 備份儲存庫狀態 |
status
|
字串 | 備份儲存庫上當前操作的狀態。 NONE 如果目前沒有任何作業正在執行 |
changeStatus
|
字串 |
|
type
|
字串 | 備份儲存庫類型 |
name
|
字串 | 顯示名稱 |
description
|
字串 | 說明(如有) |
size
|
long
|
備份儲存庫的總大小(以位元組為單位) |
free
|
long
|
可用空間(以位元組為單位) |
allocated
|
long
|
檔案系統上備份儲存庫檔案的大小
|
consumed
|
long
|
備份儲存庫檔案中使用者資料的實際大小
|
attached
|
布林值 | 檢查備份儲存庫是否已掛載 |
consistent
|
布林值 | 檢查備份儲存庫是否一致 |
path
|
字串 | 備份儲存庫的路徑 |
transporterId
|
int | 已指派的運輸商識別碼 |
transporterName
|
字串 | 指派的運輸商名稱 |
transporterCaps
|
Json | 已指派的運輸能力。請參閱下文。 |
username
|
字串 | 用於存取備份儲存庫位置的檔案共享的用戶名稱 |
password
|
字串 | 用於存取備份儲存庫位置的檔案共享的密碼 |
storageSize
|
int | AWS 專用:已分配儲存空間的大小 |
chunkSize
|
int | AWS 專用:下載區塊的大小 |
autoSize
|
布林值 | AWS 特定: true 若儲存空間大小會自動調整 |
volumeType
|
字串 | AWS 專用:儲存卷的類型 |
backupCount
|
int | 備份的總數 |
hvTypeBackupCount
|
JSON | 按平台類型劃分的備份數量 |
hvTypeBackupHasRootDiskCount
|
JSON | AWS 專用:備份計數,用以顯示哪些儲存點具有根卷 |
compression
|
字串 | 壓縮類型 |
compressionRatio
|
int | 壓縮比 |
deduplication
|
布林值 | 檢查重複資料刪除功能是否已啟用 |
deduplicationRatio
|
int | 去重率 |
selfHeal
|
布林值 | 檢查備份儲存庫的自我修復功能是否已啟用 |
encryption
|
布林值 | 檢查備份儲存庫是否已啟用加密功能 |
encryptionPassword
|
字串 | 加密密碼 |
lockedShared
|
布林值 | true 如果無法在同一個備份儲存庫上同時執行多項讀取操作 |
lockedExclusive
|
布林值 | true 如果無法同時對備份儲存庫進行多項更新 |
lockReasons
|
陣列 | 鎖定原因 |
preventModification
|
布林值 |
如果
true, 將防止手動修改該項目。 |
wasEdited
|
布林值 | 檢查備份儲存庫是否曾被編輯 |
wasDiscoveredOnce
|
布林值 | 已檢查備份儲存庫是否曾被偵測到一次 |
wasImported
|
布林值 | 檢查備份儲存庫是否已匯入 |
wasCreated
|
布林值 | true 如果 changeStatus 是 CREATE_PENDING |
useSelfHealSchedule
|
布林值 | 檢查自我修復排程是否已啟用 |
selfHealSchedule
|
Json | 自我修復時程表。請參閱下文 |
selfHealOverrideJobs
|
布林值 | true 如果自動修復功能可以覆寫當前的工作 |
useVerificationSchedule
|
布林值 | 檢查驗證排程是否已啟用 |
verificationSchedule
|
Json | 驗證時程表。請參閱下文 |
verificationOverrideJobs
|
布林值 | true 如果驗證可以覆寫當前的工作 |
useConsolidationSchedule
|
布林值 | 檢查空間回收排程是否已啟用 |
consolidationSchedule
|
Json | 空間回收時程表。請參閱下文 |
consolidationOverrideJobs
|
布林值 | true 若空間回收功能可覆蓋當前工作 |
useDetachSchedule
|
布林值 | 檢查自我修復排程是否已啟用 |
detachSchedule
|
Json | 分離排程。請參閱下文 |
attachSchedule
|
Json | 請附上時程表。請參閱下文 |
deleteAndRecreateOnAttach
|
布林值 |
true 在預定的「分離-連接 」過程中,是否應重新建立備份儲存庫 |
progress
|
int | 當前行動的進展 |
operationStart
|
字串 | 當前操作開始的時間戳記 |
operationStartRelative
|
int | 當前操作起始時間的相對時間戳(例如:自開始以來的時間) |
alertErrorCode
|
int | 該警示的錯誤代碼(如有) |
|
|
字串 | 警示的標題(如有) |
alertDescription
|
字串 | 警報的描述(如有) |
transporterCaps
運輸能力
| 領域 | 價值 | Description |
|---|---|---|
windowsGuestsRecoverySupport
|
布林值 | 檢查 Transporter 是否支援 Windows 客體作業系統的還原功能 |
cifsShareSupport
|
布林值 | 檢查 Transporter 是否支援 CIFS 共用資料夾 |
linuxGuestsRecoverySupport
|
布林值 | 檢查 Transporter 是否支援 Linux 虛擬機器作業系統的還原功能 |
vmwarevSphereSupport
|
布林值 | 檢查 Transporter 是否支援 VMware vSphere |
nutanixSupport
|
布林值 | 檢查 Transporter 是否支援 Nutanix AHV |
repositoryManagementSupport
|
布林值 | 檢查 Transporter 是否支援備份儲存庫管理 |
awsEc2Support
|
布林值 | 檢查 Transporter 是否支援 AWS EC2 執行個體 |
flashVmBootSupport
|
布林值 | 檢查 Transporter 是否支援 Flash VM 開機 |
nfsShareSupport
|
布林值 | 檢查 Transporter 是否支援 CIFS 共用資料夾 |
msHypervSupport
|
布林值 | 檢查 Transporter 是否支援 Microsoft Hyper-V |
repositoryEncryptionSupport
|
布林值 | 檢查 Transporter 是否支援備份儲存庫的加密功能 |
時間表
適用於 selfHealSchedule, verificationSchedule, consolidationSchedule, detachSchedule, attachSchedule。
|
領域
|
類型
|
Description
|
可能的值或格式
|
|---|---|---|---|
enabled
|
布林值 | 若已啟用排程,則 true, false 否則. |
|
|
|
字串 | 備份排程的類型。 |
|
startTime
|
字串 | 開始時間。 | hh:mm:ss AM/PM
|
endTime
|
字串 | 結束時間。 null 若未設定 |
|
timezone
|
字串 | 時區 |
|
on
|
int | 一週中某一天的位元遮罩之十進位表示法。最低位是星期一,第7日是星期日。舉例來說,若您需要在平日執行某項工作,位元遮罩將為 00011111 即 31 十進位表示為. |
1-127 |
everyType
|
字串 |
若 type 為 例如:「每 30分鐘執行一次工作」 |
|
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
|