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:
Parameters | Description | Required |
---|---|---|
name | Snapshot name | Yes, unique name for target cluster |
warehouse_name | Replication warehouse name | Yes |
database_name (str) | Database where the table is located | No, defaults to "default" database |
table_name | Table name | Yes |
wait_for_completion (bool) | Whether to wait until this job is done | No, defaults to True |
timeout (str) | Operation timeout, in seconds | No, defaults to "5m" |
Table 72 Create Snapshot (Restful API)