更新備份儲存庫
產品版本:10.11
最後修改日期:2024年7月31日
更新備份儲存庫。
該 update 此方法會將整個備份儲存庫的設定替換為您傳送的物件。您未填寫的欄位將重設為預設值,而您未包含的排程則會被刪除。若要變更備份儲存庫,請使用 取得備份儲存庫資訊 方法,修改您需要的欄位,然後傳送完整的物件。更新時,系統會忽略產品標記為「已歸還」的欄位。
終點
https://<Director_IP_address>:4443/c/router
請求範例
在更新已指派的「備份儲存庫傳輸器」之前:請先取得備份儲存庫清單,然後將「transporterId」和「transporterName」欄位替換為更新後的「備份儲存庫傳輸器」資料。
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "BackupManagement",
"method": "update",
"data": [
{
"id": 20,
"state": "INACCESSIBLE",
"status": "NONE",
"changeStatus": "NONE",
"isAccessible": false,
"attached": false,
"consistent": true,
"licensed": true,
"dataStorageType": "INCREMENTAL_WITH_FULL_BACKUPS",
"type": "WASABI",
"name": "WASABI",
"description": "",
"size": 11258999068426240,
"free": 11258999068426240,
"allocated": 8920354605,
"consumed": 8920354605,
"path": "",
"transporterId": 3,
"transporterVid": "TRANSPORTER-3",
"transporterName": "10.10.16.238",
"transporterCaps": {
"LINUX_GUESTS_RECOVERY_SUPPORT": true,
"DIRECT_CONNECT_SUPPORT": true,
"VMWARE_VSPHERE_PRE55_SUPPORT": true,
"FLASH_VM_BOOT_SUPPORT": true,
"VMWARE_VSPHERE_SUPPORT": true,
"HPE_STOREONCE_CATALYST_SUPPORT": true,
"AWS_S3_SUPPORT": true,
"REPOSITORY_MANAGEMENT_SUPPORT": true,
"WINDOWS_GUESTS_RECOVERY_SUPPORT": true,
"VMWARE_JOURNAL_SERVICE_SUPPORT": false,
"OLR_SUPPORT": true,
"NUTANIX_SUPPORT": false,
"NFS_SHARE_SUPPORT": true,
"MS_HYPERV_SUPPORT": false,
"REPOSITORY_ENCRYPTION_SUPPORT": true,
"CIFS_SHARE_SUPPORT": true,
"AZURE_BLOB_SUPPORT": true,
"SAAS_REPOSITORY_SUPPORT": true,
"AWS_EC2_SUPPORT": false
},
"transporterState": "INACCESSIBLE",
"username": "T9C9F4E5OKQ68CAOFU96",
"password": "",
"advancedMountOptions": "",
"backupCount": 4,
"hvTypeBackupCount": {
"HYPERV": 1,
"NONE": 1,
"VMWARE": 2
},
"hvTypeBackupHasRootDiskCount": {},
"wasDiscoveredOnce": true,
"wasEdited": false,
"importIsPending": false,
"createIsPending": false,
"progress": 0,
"operationStart": null,
"operationStartRelative": 0,
"transporterLockedExclusive": false,
"transporterLockedReasons": [],
"lockedExclusive": false,
"lockedShared": false,
"lockReasons": [],
"preventModification": false,
"isStoreInSeparateFile": true,
"compression": "FAST",
"compressionRatio": 3600,
"deduplication": false,
"deduplicationRatio": 0,
"selfHeal": true,
"encryption": false,
"encryptionPassword": "",
"autoSize": true,
"storageSize": 500,
"chunkSize": 500,
"volumeType": "sc1",
"awsAccountId": null,
"awsAccountName": null,
"regionId": null,
"regionName": null,
"bucketId": null,
"bucketName": null,
"wasabiAccountId": 1,
"wasabiAccountName": "WASABI ACC",
"wasabiRegionId": 12,
"wasabiRegionName": "Wasabi AP Southeast 1 (Singapore)",
"wasabiBucketId": 219,
"wasabiBucketName": "tam-bucket-sing-non-verify",
"azureAccountId": null,
"azureAccountName": null,
"azureBlobContainerId": null,
"backblazeAccountId": null,
"backblazeAccountName": null,
"backblazeRegionName": null,
"backblazeBucketId": null,
"backblazeBucketName": null,
"s3CompatibleAccountId": null,
"s3CompatibleAccountName": null,
"s3CompatibleRegionName": null,
"s3CompatibleBucketId": null,
"s3CompatibleBucketName": null,
"deviceType": null,
"connectionType": "IP",
"serverName": "",
"cofcIdentifier": "",
"catalystStoreName": "",
"useSelfHealSchedule": false,
"selfHealSchedule": {
"enabled": true,
"type": "DAILY",
"startTime": "11:00:00 AM",
"timezoneOffsetMs": 7200000,
"timezone": "EET",
"on": 127,
"every": 1,
"id": null,
"uuid": null,
"name": null,
"endTime": null,
"everyType": null,
"monthlyEveryType": null,
"dayOfMonth": null,
"dayOfWeek": null,
"month": null,
"triggerItem": null,
"triggerRunType": null,
"triggerEvents": null,
"effectiveDate": null,
"nextRun": null,
"referenceTime": null,
"position": null,
"scheduleRetentionType": null,
"customKeepSavepointCount": null,
"customKeepSavepointType": null,
"keepImmutableSavepointCount": null
},
"selfHealOverrideJobs": false,
"useVerificationSchedule": false,
"verificationSchedule": {
"enabled": true,
"type": "DAILY",
"startTime": "12:00:00 PM",
"timezoneOffsetMs": 7200000,
"timezone": "EET",
"on": 64,
"every": 1,
"id": null,
"uuid": null,
"name": null,
"endTime": null,
"everyType": null,
"monthlyEveryType": null,
"dayOfMonth": null,
"dayOfWeek": null,
"month": null,
"triggerItem": null,
"triggerRunType": null,
"triggerEvents": null,
"effectiveDate": null,
"nextRun": null,
"referenceTime": null,
"position": null,
"scheduleRetentionType": null,
"customKeepSavepointCount": null,
"customKeepSavepointType": null,
"keepImmutableSavepointCount": null
},
"verificationOverrideJobs": false,
"useConsolidationSchedule": false,
"consolidationSchedule": {
"enabled": true,
"type": "DAILY",
"startTime": "12:00:00 PM",
"timezoneOffsetMs": 7200000,
"timezone": "EET",
"on": 32,
"every": 1,
"id": null,
"uuid": null,
"name": null,
"endTime": null,
"everyType": null,
"monthlyEveryType": null,
"dayOfMonth": null,
"dayOfWeek": null,
"month": null,
"triggerItem": null,
"triggerRunType": null,
"triggerEvents": null,
"effectiveDate": null,
"nextRun": null,
"referenceTime": null,
"position": null,
"scheduleRetentionType": null,
"customKeepSavepointCount": null,
"customKeepSavepointType": null,
"keepImmutableSavepointCount": null
},
"consolidationOverrideJobs": false,
"useDetachSchedule": false,
"detachSchedule": {
"enabled": true,
"type": "DAILY",
"startTime": "6:00:00 PM",
"timezoneOffsetMs": 7200000,
"timezone": "EET",
"on": 127,
"every": 1,
"id": null,
"uuid": null,
"name": null,
"endTime": null,
"everyType": null,
"monthlyEveryType": null,
"dayOfMonth": null,
"dayOfWeek": null,
"month": null,
"triggerItem": null,
"triggerRunType": null,
"triggerEvents": null,
"effectiveDate": null,
"nextRun": null,
"referenceTime": null,
"position": null,
"scheduleRetentionType": null,
"customKeepSavepointCount": null,
"customKeepSavepointType": null,
"keepImmutableSavepointCount": null
},
"attachSchedule": {
"enabled": true,
"type": "DAILY",
"startTime": "12:00:00 AM",
"timezoneOffsetMs": 7200000,
"timezone": "EET",
"on": 127,
"every": 1,
"id": null,
"uuid": null,
"name": null,
"endTime": null,
"everyType": null,
"monthlyEveryType": null,
"dayOfMonth": null,
"dayOfWeek": null,
"month": null,
"triggerItem": null,
"triggerRunType": null,
"triggerEvents": null,
"effectiveDate": null,
"nextRun": null,
"referenceTime": null,
"position": null,
"scheduleRetentionType": null,
"customKeepSavepointCount": null,
"customKeepSavepointType": null,
"keepImmutableSavepointCount": null
},
"deleteAndRecreateOnAttach": false,
"alertErrorCode": null,
"alertTitle": null,
"alertDescription": null,
"masterTenantVid": null,
"localTenantVid": null,
"blockingItems": null,
"action": null,
"enforceExplicitFileSystemSync": false,
"objectLockSupported": false,
"hasImmutableSavepoint": false,
"runUnderElevatedPrivileges": false,
"maintenanceInterrupted": false
}
],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域
|
類型
|
值(們)
|
Description |
|---|---|---|---|
action
|
字串 |
|
所呼叫的動作 |
method
|
字串 |
|
被呼叫的方法 |
data
|
陣列 |
|
待更新的備份儲存庫資料 |
type
|
字串 |
|
通訊協定類型 |
tid
|
int |
|
交易編號。用於讓客戶端和伺服器雙方識別該請求 |
資料
|
領域 |
類型 |
Description |
|
|
字串 |
備份儲存庫的資料儲存類型。可能的值: |
|
|
字串 |
備份儲存庫的類型。可能的值: |
|
|
字串 |
備份儲存庫的壓縮等級。可能的值: |
|
|
布林值 |
|
|
|
布林值 |
|
|
|
布林值 |
|
|
|
布林值 |
|
|
|
布林值 |
|
|
|
布林值 |
|
|
|
布林值 |
|
|
|
布林值 |
|
|
|
字串 |
說明是否需要將任何變更套用至備份儲存庫。可能的值: |
|
|
整數 |
備份儲存庫 ID。必填:指定要更新的備份儲存庫 |
|
|
字串 |
備份儲存庫的狀態。可能的值: |
|
|
字串 |
備份儲存庫狀態。可能的值: |
|
|
布林值 |
檢查備份儲存庫是否可存取。對於 create 方法,該欄位將被忽略 |
|
|
布林值 |
檢查備份儲存庫是否已掛載。對於 create 方法,該欄位將被忽略 |
|
|
布林值 |
檢查備份儲存庫是否一致。對於 create 方法,該欄位將被忽略 |
|
|
布林值 |
檢查備份儲存庫是否已取得授權。對於 create 方法,該欄位將被忽略 |
|
|
字串 |
備份儲存庫名稱 |
|
|
字串 |
備份儲存庫說明 |
|
|
int |
備份儲存庫的大小(以位元組為單位)。對於create 方法,此欄位將被忽略 |
|
|
int |
備份儲存庫中可用空間的大小(以位元組為單位)。關於 create 方法而言,此欄位將被忽略 |
|
|
int |
備份儲存庫中已分配的空間(以位元組為單位)。對於 create 方法,此欄位將被忽略 |
|
|
int |
備份儲存庫中已佔用的空間(以位元組為單位)。關於 create 方法而言,此欄位將被忽略 |
|
|
字串 |
備份儲存庫的路徑 |
|
|
longint |
已指派的運輸商的識別碼 |
|
|
字串 |
指定承運商的名稱。關於 create 方法而言,此欄位將被忽略 |
|
|
字串 |
指定「傳輸器」的影片。由該產品退回。若要變更「傳輸器」,請使用 |
|
|
字串 |
已指派的傳輸器的狀態。可能的值: |
|
|
|
所指派「傳送器」的能力。關於 create 方法而言,此欄位將被忽略 |
|
|
字串 |
當使用者要存取備份儲存庫時 「類型」 欄位為 |
|
|
字串 |
當使用者要存取備份儲存庫時,輸入密碼 當 欄位為 |
|
|
字串 |
當「 類型」 欄位為以下任一選項時 ,備份儲存庫的進階安裝選項 : |
|
|
整數 |
備份儲存庫中的備份數量。由該產品退回 |
|
|
|
各平台的備份次數統計。關於 create 方法而言,此欄位將被忽略 |
|
|
|
具有根磁碟的特定平台備份的數量。關於 create 方法而言,此欄位將被忽略 |
|
|
布林值 |
檢查是否已從備份儲存庫取得有效資料。關於 create 方法而言,此欄位將被忽略 |
|
|
布林值 |
檢查備份儲存庫是否曾被編輯過。關於 create 方法而言,此欄位將被忽略 |
|
|
布林值 |
|
|
|
布林值 |
|
|
|
int |
當 狀態 欄位非「 NONE」時,執行中的操作進度 。關於 create 方法而言,此欄位將被忽略 |
|
|
字串 |
當 狀態 欄位非 NONE時,操作開始的時間 ; |
|
|
整數 |
當 狀態 欄位非 NONE時,操作開始的相對時間 ; |
|
|
布林值 |
檢查「傳送器」是否處於專用鎖定狀態。關於 create 方法而言,此欄位將被忽略 |
|
|
陣列 |
鎖定「Transporter」的原因。關於 create 方法而言,此欄位將被忽略 |
|
|
布林值 |
檢查備份儲存庫是否已被排他性鎖定。關於 create 方法而言,此欄位將被忽略 |
|
|
布林值 |
檢查備份儲存庫是否因共用而處於鎖定狀態。關於 create 方法而言,此欄位將被忽略 |
|
|
陣列 |
鎖定備份儲存庫的原因。關於 create 方法而言,此欄位將被忽略 |
|
|
布林值 |
檢查是否已禁止修改備份儲存庫 |
|
|
布林值 |
|
|
|
int |
備份儲存庫的壓縮比。對於 ` ` 的 `create ` 方法,此欄位將被忽略 |
|
|
布林值 |
|
|
|
int |
備份儲存庫的去重率。關於 create 方法而言,此欄位將被忽略 |
|
|
布林值 |
檢查自修復功能是否已啟用 |
|
|
布林值 |
|
|
|
字串 |
用於加密備份儲存庫的密碼 |
|
|
布林值 |
|
|
|
longint |
備份儲存庫的儲存空間,當備份時 「類型」 欄位為 |
|
|
longint |
備份儲存庫 chunk 儲存大小 類型 欄位為 |
|
|
字串 |
備份儲存庫卷類型當備份 「類型」 欄位為 |
|
|
字串 |
AWS 帳戶 ID — 當 「類型」 欄位為 |
|
|
字串 |
AWS 帳戶名稱 — 當 「類型」 欄位為 |
|
|
字串 |
AWS 區域 ID — 當 類型 欄位為 |
|
|
字串 |
AWS 區域名稱 — 當 type 欄位為 |
|
|
字串 |
桶識別碼 — 當 類型 欄位為 |
|
|
字串 |
桶名稱 — 當 類型 欄位為 |
|
|
整數 |
Wasabi 帳戶的 ID。當 |
|
|
字串 |
Wasabi 帳戶的名稱。當 |
|
|
整數 |
Wasabi 區域的識別碼。當 |
|
|
字串 |
Wasabi 地區的名稱。當 |
|
|
整數 |
Wasabi 儲存桶的 ID。當 |
|
|
字串 |
「Wasabi」桶的名稱。當 |
|
|
整數 |
Azure 帳戶的 ID。當 |
|
|
字串 |
Azure 帳戶的名稱。當 |
|
|
整數 |
Azure Blob 容器的識別碼。當 |
|
|
整數 |
Backblaze 帳戶的 ID。用於 Backblaze B2 備份儲存庫 |
|
|
字串 |
Backblaze 帳戶名稱。用於 Backblaze B2 備份儲存庫 |
|
|
字串 |
Backblaze 區域的名稱。用於 Backblaze B2 備份儲存庫 |
|
|
整數 |
Backblaze 儲存桶的 ID。用於 Backblaze B2 備份儲存庫 |
|
|
字串 |
Backblaze 儲存桶的名稱。用於 Backblaze B2 備份儲存庫 |
|
|
整數 |
S3 相容儲存帳戶的 ID。用於 S3 相容的備份儲存庫 |
|
|
字串 |
與 S3 相容的儲存帳戶名稱。用於 S3 相容的備份儲存庫 |
|
|
字串 |
S3 相容儲存區域的名稱。用於 S3 相容的備份儲存庫 |
|
|
整數 |
S3 相容儲存桶的 ID。用於 S3 相容的備份儲存庫 |
|
|
字串 |
與 S3 相容的儲存桶名稱。用於 S3 相容的備份儲存庫 |
|
|
字串 |
裝置類型。由該產品退回 |
|
|
字串 |
HPE StoreOnce Catalyst 的連線類型。可能的值: |
|
|
字串 |
HPE StoreOnce Catalyst 的伺服器名稱或 IP 位址。當 |
|
|
字串 |
HPE StoreOnce Catalyst 的 COFC 識別碼。當 |
|
|
字串 |
HPE StoreOnce Catalyst 儲存區的名稱 |
|
|
字串 |
多租戶產品中主租戶的影片。由該產品退回 |
|
|
字串 |
多租戶產品中某位當地租戶的影片。由該產品退回 |
|
|
陣列 |
阻礙備份儲存庫中某項操作的項目。由該產品退回 |
|
|
字串 |
由該產品退回 |
|
|
布林值 |
|
|
|
布林值 |
|
|
|
布林值 |
|
|
|
布林值 |
|
|
|
布林值 |
|
|
|
JSON |
自我修復時程表的資料 |
|
|
JSON |
驗證時程表的資料 |
|
|
JSON |
合併報表的資料 |
|
|
JSON |
調動時程表的資料 |
|
|
JSON |
附件時間表的資料 |
|
|
longint |
當 狀態 欄位為 |
|
|
字串 |
警示標題。關於 create 方法而言,該欄位將被忽略 |
|
|
字串 |
警報說明。關於 create 方法而言,該欄位將被忽略 |
時程資料
|
領域 |
類型 |
Description |
|
|
整數 |
排程編號。由該產品退回 |
|
|
字串 |
排程 UUID。由該產品退回 |
|
|
字串 |
排程名稱 |
|
|
布林值 |
|
|
|
字串 |
排程類型。可能的值: |
|
|
字串 |
排程開始時間。若非全天服務,則為null (僅限按需服務時)。格式:24 小時制,hh:mm:ss a |
|
|
整數 |
時區偏移量(以毫秒為單位)。此設定由伺服器設定 |
|
|
字串 |
時區 |
|
|
整數 |
日面具;一個月是 0日 位元,最後一個星期日則是第 6位 位元。 |
|
|
字串 |
排程結束時間。在一天之中 ,若排程 類型 沒有 endTime,其值可能會是null 。格式:24 小時制,hh:mm:ss a |
|
|
字串 |
可能的值: |
|
|
int |
對於 |
|
|
字串 |
可能的值: |
|
|
int |
每月第幾天執行該排程 |
|
|
int |
平日需執行的排程 |
|
|
int |
將執行排程的月份 |
|
|
字串 |
VID 待監控項目(工作)的影片 |
|
|
字串 |
受監控的項目類型。可能的值: |
|
|
陣列 |
受監控項目的事件。可能的值: |
|
|
字串 |
以 ISO 8601 格式表示的生效日期 |
|
|
字串 |
若伺服器有提供,則由伺服器設定下一次執行時間 |
|
|
字串 |
由伺服器設定的參考時間 |
|
|
字串 |
排程保留類型。可能的值: |
|
|
整數 |
自訂還原點保留次數,單位為 |
|
|
字串 |
該 |
|
|
整數 |
不可變的還原點保留次數 |
|
|
int |
時間表的位置 |
回應範例
{
"action":"BackupManagement",
"method":"update",
"tid":"1",
"type":"rpc",
"message":null,
"where":null,
"cause":null,
"data":20
}
回應欄位
|
領域
|
價值
|
說明
|
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 關於發生問題的方法的說明 |
cause
|
字串 | 故障原因 |
data
|
整數 | 已更新備份儲存庫的 ID |