dp dlm policy get
This command retrieves definition of an existing policy. You can retrieve the policy details either by providing the name of the policy or identity value.
Usage
dp dlm policy get
[command options] [arguments…]
Options
Name | Description |
---|---|
--name, -n value |
Specifies the replication policy name. |
--id value |
Specifies the replication policy identity value. |
Parent command
dp dlm policy
Example
dp dlm policy get --name
HdfsPolicyRename
[
{
"id": "/default/mycluster0/default/mycluster1/HdfsPolicyRename/0/1557331228979/000000001",
"name": "HdfsPolicyRename",
"description": "policyDescription",
"type": "FS",
"status": "RUNNING",
"source": {
"cluster": {
"name": "mycluster0",
"dcName": "default"
},
"dataset": [
"/user/hrt_qa/policies/HDFSPoliciesTest/test_policyRename"
]
},
"target": {
"cluster": {
"name": "mycluster1",
"dcName": "default"
},
"dataset": [
"/user/hrt_qa/policies/HDFSPoliciesTest/test_policyRename_rename"
]
},
"schedule": {
"startTime": "2019-05-08T16:00:28",
"endTime": "9999-12-31T00:00:00",
"frequency": 300
},
"advancedOptions": {
"queue": "default"
}
}
]