查看备份文件
本文介绍如何查看手动或自动创建的备份文件。
查看所有备份文件
- Cloud Console
- Bash
查看集群中已创建的所有备份文件。有关更多参数信息,请参阅查看备份列表。
curl --request GET \
--url "${BASE_URL}/v2/backups" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json"
示例回显:
{
"code": 0,
"data": {
"count": 10,
"currentPage": 1,
"pageSize": 10,
"backups": [
{
"backupId": "backup1_0b9d15a0ddexxxx",
"projectId": "proj-20e13e974c7d659a83xxxx",
"backupName": "Dedicated-01_backup3",
"backupType": "CLUSTER",
"creationMethod": "AUTO",
"status": "CREATING",
"size": 0,
"expireTime": "2024-09-02T02:27:51Z",
"clusterId": "in01-3e5ad8adc38xxxx",
"clusterName": "Dedicated-01",
"createTime": "2024-08-26T02:27:51Z"
},
...
]
}
}
查看备份文件详情
- Cloud Console
- Bash
查看单个备份文件详情。有关更多参数信息,请参阅查看备份详情。
curl --request GET \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/backups/${BACKUP_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json"
示例回显:
{
"code": 0,
"data": {
"clusterId": "in01-3e5ad8adc38xxxx",
"clusterName": "Dedicated-01",
"regionId": "aws-us-west-2",
"projectId": "proj-20e13e974c7d659a83xxxx",
"backupId": "backup1_0b9d15a0ddexxxx",
"backupName": "Dedicated-01_backup3",
"backupType": "CLUSTER",
"creationMethod": "AUTO",
"status": "AVAILABLE",
"size": 0,
"collections": [],
"createTime": "2024-08-26T02:27:51Z",
"expireTime": "2024-09-02T02:27:51Z"
}
}