Retrieve a specific SnapMirror policy
GET /snapmirror/policies/{uuid}
Retrieves a specific SnapMirror policy.
Example
GET "/api/snapmirror/policies/567aaac0-f863-11e8-a666-0050568e12c2"
Learn more
Parameters
| Name | Type | In | Required | Description | 
|---|---|---|---|---|
uuid  | 
string  | 
path  | 
True  | 
Policy UUID  | 
fields  | 
array[string]  | 
query  | 
False  | 
Specify the fields to return.  | 
Response
Status: 200, Ok
| Name | Type | Description | 
|---|---|---|
_links  | 
||
comment  | 
string  | 
Comment associated with the policy.  | 
identity_preservation  | 
string  | 
Specifies which configuration of the source SVM is replicated to the destination. This property is applicable only for SVM data protection and async policies.  | 
name  | 
string  | 
|
network_compression_enabled  | 
boolean  | 
Specifies whether network compression is enabled for transfers. This is applicable only to async policies.  | 
retention  | 
array[snapmirror_policy_rule]  | 
Policy on Snapshot copy retention. This is applicable only to async policies.  | 
scope  | 
string  | 
Set to "svm" for policies owned by an SVM, otherwise set to "cluster".  | 
svm  | 
||
sync_common_snapshot_schedule  | 
Schedule used to create common Snapshot copies for synchronous relationships.  | 
|
sync_type  | 
string  | 
|
throttle  | 
integer  | 
Throttle in KB/s. Default to unlimited.  | 
transfer_schedule  | 
The schedule used to update asynchronous relationships.  | 
|
type  | 
string  | 
|
uuid  | 
string  | 
Example response
{
  "_links": {
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "comment": "string",
  "identity_preservation": "string",
  "name": "Asynchronous",
  "retention": [
    {
      "count": 7,
      "creation_schedule": {
        "_links": {
          "self": {
            "href": "/api/resourcelink"
          }
        },
        "name": "weekly",
        "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
      },
      "label": "hourly",
      "prefix": "string"
    }
  ],
  "scope": "string",
  "svm": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "name": "svm1",
    "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
  },
  "sync_common_snapshot_schedule": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "name": "weekly",
    "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
  },
  "sync_type": "string",
  "throttle": 0,
  "transfer_schedule": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "name": "weekly",
    "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
  },
  "type": "string",
  "uuid": "4ea7a442-86d1-11e0-ae1c-123478563412"
}
Error
Status: Default
ONTAP Error Response codes
| Error code | Description | 
|---|---|
13303842  | 
SnapMirror policy is not supported.  | 
| Name | Type | Description | 
|---|---|---|
error  | 
Example error
{
  "error": {
    "arguments": [
      {
        "code": "string",
        "message": "string"
      }
    ],
    "code": "4",
    "message": "entry doesn't exist",
    "target": "uuid"
  }
}
Definitions
See Definitions
href
| Name | Type | Description | 
|---|---|---|
href  | 
string  | 
_links
| Name | Type | Description | 
|---|---|---|
self  | 
creation_schedule
Schedule used to create Snapshot copies on the destination for long term retention.
| Name | Type | Description | 
|---|---|---|
_links  | 
||
name  | 
string  | 
Job schedule name  | 
uuid  | 
string  | 
Job schedule UUID  | 
snapmirror_policy_rule
SnapMirror policy rule for retention.
| Name | Type | Description | 
|---|---|---|
count  | 
integer  | 
Number of Snapshot copies to be kept for retention.  | 
creation_schedule  | 
Schedule used to create Snapshot copies on the destination for long term retention.  | 
|
label  | 
string  | 
Snapshot copy label  | 
prefix  | 
string  | 
Specifies the prefix for the Snapshot copy name to be created as per the schedule. If no value is specified, then the label is used as the prefix.  | 
svm
| Name | Type | Description | 
|---|---|---|
_links  | 
||
name  | 
string  | 
The name of the SVM.  | 
uuid  | 
string  | 
The unique identifier of the SVM.  | 
sync_common_snapshot_schedule
Schedule used to create common Snapshot copies for synchronous relationships.
| Name | Type | Description | 
|---|---|---|
_links  | 
||
name  | 
string  | 
Job schedule name  | 
uuid  | 
string  | 
Job schedule UUID  | 
transfer_schedule
The schedule used to update asynchronous relationships.
| Name | Type | Description | 
|---|---|---|
_links  | 
||
name  | 
string  | 
Job schedule name  | 
uuid  | 
string  | 
Job schedule UUID  | 
error_arguments
| Name | Type | Description | 
|---|---|---|
code  | 
string  | 
Argument code  | 
message  | 
string  | 
Message argument  | 
error
| Name | Type | Description | 
|---|---|---|
arguments  | 
array[error_arguments]  | 
Message arguments  | 
code  | 
string  | 
Error code  | 
message  | 
string  | 
Error message  | 
target  | 
string  | 
The target parameter that caused the error.  |