Create Snapshot

After creating replication warehouse, users can create snapshot for tables.

curl -u shiva:shiva -XPUT 'localhost:8902/hippo/v1/_backup/create_snapshot?pretty' -H 'Content-Type: application/json' -d'{  
  "name" : "test_snapshot",  
  "warehouse_name" : "test_warehouse",  
  "database_name" : "default",  
  "table_name" : "book",  
  "wait_for_completion" : true,  
  "timeout" : "2m"  

Parameter description:

nameSnapshot nameYes, unique name for target cluster
warehouse_nameReplication warehouse nameYes
database_name (str)Database where the table is locatedNo, defaults to "default" database
table_nameTable nameYes
wait_for_completion (bool)Whether to wait until this job is doneNo, defaults to True
timeout (str)Operation timeout, in secondsNo, defaults to "5m"

Table 72 Create Snapshot (Restful API)