Skip to main content

Get the replication schedules

Contributors netapp-ranuk netapp-aoife

You can use this workflow to retrieve the replication schedules used for a specific working environment.

Note 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.

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>"
Curl
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
            ]
        }
    }
]