云数据库 TAURUSDB-备份恢复到当前实例或已有实例:请求示例

时间:2024-12-11 17:00:03

请求示例

  • 按备份文件恢复到当前实例。

    POST https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/restore
    
    {
      "target_instance_id" : "690e08a7c3854c218df0e59de3b0c6cein07",
      "source_instance_id" : "690e08a7c3854c218df0e59de3b0c6cein07",
      "backup_id" : "7ffbf305376b4cbea0ae491257b6aaf9br07",
      "type" : "backup"
    }
  • 按时间点恢复到当前实例。

    POST https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/restore
    
    {
      "target_instance_id" : "690e08a7c3854c218df0e59de3b0c6cein07",
      "source_instance_id" : "690e08a7c3854c218df0e59de3b0c6cein07",
      "restore_time" : 1673852043000,
      "type" : "timestamp"
    }
  • 按备份文件恢复到已有实例。

    POST https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/restore
    
    {
      "target_instance_id" : "7033e7c3cf93438797d44ad7ae0a7d95in07",
      "source_instance_id" : "690e08a7c3854c218df0e59de3b0c6cein07",
      "backup_id" : "be4ddfd7e2b94640b5e2cb44efb30b22br07",
      "type" : "backup"
    }
  • 按时间点恢复到已有实例。

    POST https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/restore
    
    {
      "target_instance_id" : "7033e7c3cf93438797d44ad7ae0a7d95in07",
      "source_instance_id" : "690e08a7c3854c218df0e59de3b0c6cein07",
      "restore_time" : 1673852043000,
      "type" : "timestamp"
    }
support.huaweicloud.com/api-gaussdbformysql/RestoreOldInstance.html