Create an object replication policy
Creates an object replication policy.
HTTP request syntax (URI)
POST <base_URI>/v8/storage/object-replication-policies
Parameters
Name | Type | Required | Values | Description |
filesystemId | BODY | Y | string | Either the file system object ID or HNAS file system ID. |
name | BODY | Y | string | Name of the object replication policy. |
destinationIPAddress | BODY | Y | string | Destination host IPv4 address. |
destinationFilesystemName | BODY | Y | string | Destination host filesystem name. |
destinationPort | BODY | N | number | Destination host port. If ommitted, 59550 is used as the default port. |
sourceSnapshotRuleName | BODY | N | string | Source host snapshot rule name. |
destinationSnapshotRuleName | BODY | N | string | Destination host snapshot rule name. |
Return codes
Code | Data | Description |
201 | objectReplicationPolicy | An object replication policy created successfully. |
400 | Error Message | Missing or invalid request contents. |
403 | Error Message | Operation forbidden by access level. |
404 | Error Message | Requested resource not found. |
500 | Error message | Error associated with the storage system. |
Any HTTP status code other than 201 indicates that the API did not complete successfully.
Request example
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v8/storage/object-replication-policies -X POST -d '{"filesystemId":"3B6E4F23B46554770000000000000000", "name":"abc_objRepPolicy3", "destinationIPAddress":"172.17.239.141", "destinationFilesystemName":"fakeFs123", "destinationPort":65535}'
Response example
HTTP/1.1 201 Created { "objectReplicationPolicy": { "destinationFilesystemName": "fakeFs123", "destinationIPAddress": "172.17.239.141", "destinationPort": 65535, "destinationSnapshotRuleName": "", "id": "c2ba609e-d5d8-11d3-9d03-49e1bb864b23", "name": "abc_objRepPolicy3", "objectId": "63326261363039652d643564382d313164332d396430332d3439653162623836346232333a3a3a303a3a3a4f49445f24232140255f56", "sourceFilesystemId": "3B6E4F23B46554770000000000000000", "sourceSnapshotRuleName": "", "sourceVirtualServerId": 4 }, "uri": "https://172.17.11.11:8444/v8/storage/object-replication-policies/63326261363039652d643564382d313164332d396430332d3439653162623836346232333a3a3a303a3a3a4f49445f24232140255f56" }