Get the replication schedules
You can use this workflow to retrieve the replication schedules used for a specific system.
|
This workflow varies slightly depending on the cloud provider you are using. |
Step 1. Select the system
Based on the cloud provider, you need to perform the corresponding workflow to retrieve the identifier of the system.
AWS
Perform the workflow Get AWS systems and choose the publicId
value for the system path parameter.
Azure
Perform the workflow Get Azure systems and choose the publicId
value for the system path parameter.
Google cloud
Perform the workflow Get Google Cloud systems and choose the publicId
value for the system 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
curl --request GET
--location "https://api.bluexp.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>"
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 ] } } ]