Creates an object replication run-once schedule.
HTTP request syntax (URI)
POST <base_URI>/v7/storage/object-replication-schedules/run-once-schedule
Parameters
Name | Type | Required | Values | Description |
---|---|---|---|---|
objectReplicationPolicyObjectId | BODY | Y | string | Object ID of an object replication policy. |
nextRunSchedule | BODY | Y | number | Time of next run schedule. |
testOnly | BODY | N | boolean | If true, no real replication schedule is run. Default value is false. |
Return codes
Code | Data | Description |
---|---|---|
201 | objectReplicationSchedule | An object replication run-once schedule was created 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 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/v7/storage/object-replication-schedules/run-once-schedule -X POST -d '{"objectReplicationPolicyObjectId":"343a3a3a63376434346636362d373637632d31 3164322d393036612d3439653162623836346232333a3a3a303a3a3a4f49445f24232140255f56", "nextRunSchedule":167777}'
Response example
HTTP/1.1 201 Created { "objectReplicationSchedule" : { "enabled" : true, "finalRunSchedule" : 4294967295, "id" : 4, "interval" : 0, "nextRunSchedule" : 167777, "objectId" : "63376434346636362d373637632d313164322d393036612d3439653162623836346232333a3a3a343a3a3a343a3a3a303a3a3a4f49445f24232140255f56", "policyId" : "c7d44f66-767c-11d2-906a-49e1bb864b23", "type" : "ONCE_ONLY", "unit" : "MINUTE" } }