Create Replication Warehouse

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:

ParametersDescriptionRequired
nameReplication warehouse nameYes, unique name for target cluster
service_nameReplication service nameYes
flagManage the logic of resource creation on replication service when creating replication warehouseYes, 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)