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.
Perform the workflow Get AWS working environments and choose the publicId
value for the working environment path parameter.
Perform the workflow Get Azure working environments and choose the publicId
value for the working environment path parameter.
Perform the workflow Get Google Cloud working environments and choose the publicId
value for the working environment path parameter.
Step 2. Get the schedules
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
GET |
/occm/api/replication/schedules/{workingEnvironmentId} |
curl --request GET
--location "https://cloudmanager.cloud.netapp.com/occm/api/replication/schedules/<WORKING_ENV_ID>"
--header "Content-Type: application/json"
--header "x-agent-id:<AGENT_ID>"
--header "Authorization: Bearer <ACCESS_TOKEN>"
Path parameter <WORKING_ENV_ID> (workingEnvironment)
The JSON output example includes the list of replication schedules.
[ { "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 ] } } ]