After creating replication service, users should create replication warehouse on the service.
curl -u shiva:shiva -XPUT 'localhost:8902/hippo/v1/_backup/create_warehouse?pretty' -H 'Content-Type: application/json' -d'{
"name" : "test_warehouse",
"service_name" : "test_local_service",
"flag" : "create/link/link_or_create"
}';
Parameter description:
Parameters | Description | Required |
---|---|---|
name | Replication warehouse name | Yes, unique name for target cluster |
service_name | Replication service name | Yes |
flag | Manage the logic of resource creation on replication service when creating replication warehouse | Yes, create/link/link_or_create, create represents that resource must be non-existed on replication service; link represents that resource already exists on replication service, and replication warehouse will use existing resource directly; link_or_create represents that if resource is existing, then use it, otherwise create it |
Table 71 Create Replication Warehouse (Restful API)