Managing Ozone replication policies

After you create Ozone replication policies in Cloudera Manager using Cloudera Manager APIs, you can run the replication job, delete the replication policy, and view all existing Ozone replication policies using Cloudera Manager APIs.

  1. Go to the Cloudera Manager > Support > API Explorer page on the target cluster.
  2. Go to the ReplicationsResource API resource.
  3. You can perform the following tasks on an Ozone replication policy:
    1. To run an Ozone replication policy, enter the following API parameters in the POST /clusters/{clusterName}/services/{serviceName}/replications/{scheduleId}/run HTTP method:
      • clusterName - Enter the target cluster name.
      • scheduled - Enter the ID of an existing replication policy.
      • serviceName - Enter the Ozone service name in the target Cloudera Manager.
      • dryRun - Optionally, choose true for a dry run.
    2. To delete an Ozone replication policy, enter the following API parameter in the DELETE /clusters/{clusterName}/services/{serviceName}/replications/{scheduleId} HTTP method:
      • clusterName - Enter the target cluster name.
      • scheduled - Enter the ID of an existing replication policy.
      • serviceName - Enter the Ozone service name in the target Cloudera Manager.
    3. To view information about all the existing replication policies, enter the following API parameters in the GET /clusters/{clusterName}/services/{serviceName}/replications HTTP method:
      • clusterName - Enter the target cluster name.
      • serviceName - Enter the Ozone service name in the target Cloudera Manager.
      • view - Optionally, you can choose one of the following options to get a summary view or detailed view about the replication policies. Default is the summary view.

        EXPORT; EXPORT_REDACTED; FULL; FULL_WITH_HEALTH_CHECK_EXPLANATION; SUMMARY.