Get the replication schedules
You can use this workflow to retrieve the replication schedules used for a specific working environment.
|
This workflow varies slightly depending on the cloud provider you are using. |
Step 1. Select the working environment
Based on the cloud provider, you need to perform the corresponding workflow to retrieve the identifier of the working environment.
AWS
Perform the workflow Get AWS working environments and choose the publicId
value for the working environment path parameter.
Step 2. Get the schedules
HTTP method and endpoint
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
GET |
/occm/api/replication/schedules/{workingEnvironmentId} |
Curl example
Input
Path parameter <WORKING_ENV_ID> (workingEnvironment)
Output
The JSON output example includes the list of replication schedules.
JSON output example
[ { "name": "10min", "description": "@:00,:10,:20,:30,:40,:50", "cronJobSchedule": { "months": [], "days": [], "weekDays": [], "hours": [], "minutes": [ 0, 10, 20, 30, 40, 50 ] } }, { "name": "5min", "description": "@:00,:05,:10,:15,:20,:25,:30,:35,:40,:45,:50,:55", "cronJobSchedule": { "months": [], "days": [], "weekDays": [], "hours": [], "minutes": [ 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 ] } } ]