Create an object replication periodic schedule
Creates an object replication periodic schedule.
HTTP request syntax (URI)
POST <base_URI>/v8/storage/object-replication-schedules/periodic-schedule
Parameters
Name | Type | Required | Values | Description |
objectReplicationPolicyObjectId | BODY | Y | string | Object ID of an object replication policy. |
interval | BODY | Y | number | Periodic interval. |
unit | BODY | Y | string | Interval unit. Current supports values are:
|
noEarlyThan | BODY | N | number | Equivalent to the nextRunSchedule value, which indicates when the policy will next be run. If omitted a default value of 0 will be used. |
noLaterThan | BODY | N | number | Equivalent to the finalRunSchedule value, which indicates the final time the policy will be execuated. If omitted, the schedule will continue indefinately. |
isPeriodic | BODY | N | boolean | True indicates periodic; False indicates continuous. Default is TRUE. |
Return codes
Code | Data | Description |
201 | objectReplicationSchedule | An object replication periodic schedule was 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-schedules/periodic-schedule -X POST -d '{"interval":1, "unit":"DAY", "objectReplicationPolicyObjectId":"343a3a3a63376434346636362d373637632d313164322d393036612d3439653162623836346232333a3a3a303a3a3a4f49445f24232140255f56"}'
Response example
HTTP/1.1 201 Created { "objectReplicationSchedule": { "enabled": true, "finalRunSchedule": 4294967295, "id": 5, "interval": 1, "nextRunSchedule": 4294967295, "objectId": "63376434346636362d373637632d313164322d393036612d3439653162623836346232333a3a3a343a3a3a353a3a3a303a3a3a4f49445f24232140255f56", "policyId": "c7d44f66-767c-11d2-906a-49e1bb864b23", "type": "PERIODIC", "unit": "DAY" } }