Skip to main content

We've Moved!

Product Documentation has moved to docs.hitachivantara.com
Hitachi Vantara Knowledge

Modify an object replication policy

Modifies an object replication policy.

HTTP request syntax (URI)
PATCH <base_URI>/v7/storage/object-replication-policies/{id}
Parameters
Name Type Required Values Description
id URI Y string ID of an object replication policy object.
name BODY Y string Object replication policy name.
destinationPort BODY N number Destination host port. A new value will invalidate all existing policies.
sourceSnapshotRuleName BODY N string Source host snapshot rule name.
destinationSnapshotRuleName BODY N string Destination host snapshot rule name.
destinationIPAddress BODY Y string Destination host IPv4 address.
destinationFilesystemName BODY Y string Destination host filesystem name.
Return codes
Code Data Description
200 objectReplicationPolicy An object replication policy updated successfully.
400 No Data Missing or invalid request contents.
404 Error Message Requested resource not found.
500 Error message Error associated with the storage system.
501 No Data Server has not implemented the request operation on the resource.

Any HTTP status code other than 200 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/v7/storage/object-replication-policies/ 63326261363039652d643564382d313164332d396430332d3439653162623836346232333a3a3a303a3a3a4f49445f24232140255f56 -X PATCH -d '{"name":"xyz_orp2", "destinationPort":63452,"destinationIPAddress":"172.17.239.168", "destinationFilesystemName":"fakeFs222"}'
Response example
HTTP/1.1 200 OK
{
        "objectReplicationPolicy" :
        {
                "destinationFilesystemName" : "fakeFs222",
                "destinationIPAddress" : "172.17.239.168",
                "destinationPort" : 63452,
                "destinationSnapshotRuleName" : "",
                "id" : "ca2e73f2-d5d7-11d3-9cff-49e1bb864b23",
                "name" : "xyz_orp2",
                "objectId" : "63613265373366322d643564372d313164332d396366662d3439653162623836346232333a3a3a303a3a3a4f49445f24232140255f56",
                "sourceFilesystemId" : "3B6E4F23B46554770000000000000000",
                "sourceSnapshotRuleName" : "",
                "sourceVirtualServerId" : 4
        }
}

 

  • Was this article helpful?