List Sync Relationship

This chapter introduces how to list sync relationship of current clusters.

curl -u shiva:shiva -XGET 'localhost:8902/hippo/v1/_ccr/get_relations/{pattern}?pretty'

Result:

{
  "book_ccr" : {
    "status" : "kActive",
    "remote_cluster_name" : "cluster1",
    "remote_cluster_id" : "56591fa5347a4b7c88bbc0032a379bf0",
    "source_table" : {
      "id" : "08e9221456f048d98fe677c691dbd120",
      "database_name" : "default",
      "table_name" : "book"
    },
    "dest_table" : {
      "id" : "7b0a6d79316b4dfeb4db91a8c7e018ba",
      "database_name" : "default",
      "table_name" : "book_backup"
    }
  }
}

Parameter description:

ParametersDescriptionRequired
patternRelationship nameYes, supports using asterisk (*) wildcard character
Table 50 List Sync Relationship (Restful API)