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.
-
Go to the page on the target cluster.
-
Go to the ReplicationsResource API resource.
-
You can perform the following tasks on an Ozone replication policy:
-
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.
-
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.
-
To view information about all the existing replication policies, enter
the following API parameters in the GET
/clusters/{clusterName}/services/{serviceName}/replications
HTTP method: