Moving a schedule

You can move a schedule from one compartment to another as long as you have the correct policy set.

  • Use the Resource Scheduler Console to complete the following steps to move a schedule to another compartment:
    Note

    You must have the correct policies to work in a compartment, to create schedules in it, to move a schedule to it, and to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.
    1. In Resource Scheduler, select Schedules.
      The Schedule Scope section In the left pane of the schedules window displays the compartment that contains all the schedules in the list.
    2. Optional: Select a different compartment.
    3. Select the schedule that you want to move.
      The details page for that schedule opens.
    4. Select Move Resource. (The current resource is the schedule)
      The Move resource dialog box opens.
    5. Select Select a compartment and then use the menu to pick a compartment from the list.
    6. Select Move resource.
      The details page shows the compartment that the schedule was moved to and the message Schedule moved successfully is temporarily displayed in the window.
  • Use the Resource Scheduler Change-Compartment CLI command and required parameters to move a schedule to a different compartment.

    
    oci resource-scheduler schedule change-compartment --compartment-id $compartment_id --schedule-id $schedule_id
                

    For a complete list of parameters and values for all Resource Scheduler CLI commands, see the Resource Scheduler CLI.

    For a complete list of parameters and values for all CLI commands, see the CLI Command Reference.

  • Use the Resource Scheduler ChangeScheduleCompartment API to list schedules.

    For a complete list of Resource Scheduler APIs, see Resource Scheduler APIs.