Adding Resources
This section explains how to add resources to a schedule.
To add resources to the schedule:
- In the Create a Schedule window, click Resources. The Resources dialog box and the list of existing resources in the selected compartment is displayed. Note
Resource Scheduler supports compute instances and autonomous databases and may support other resources in future releases. - Select the Resource selection method. Click either Static or Dynamic to select the type of resource. When you search for resources, only the type you selected are shown. Note
Resource Scheduler can process only 25 resources per schedule. If you select Dynamic, Resource Scheduler adds the first 25 resources it sees in the queue. You cannot manually select the resources or set the order of the resources that are dynamically added. If you create a second schedule and select Dynamic, Resource Scheduler adds the same set of 25 resources that it did before. To schedule more than 25 resources, create as many schedules as needed, select Static resources, and add up to 25 resources per schedule, in the order you want. For more information , see Dynamic Resource Management and Static Resource Management. - In the Search and filter box, use the default selection (compartment All) to search for resources, or click Compartment and use the menu to select a different way to search for resources.
- Click the Search and filter field to display the list of items you can use to search for resources. The following resource types are available to search for.
- Compartment
- Resource type
- Status
- Tags
- The following table shows the resource types and descriptions of each.
Resource Types Filter name Description Compartment Use the selected default setting (All), or click Compartment to display the Compartment Select menu. In the Compartment Select dialog box, click Ssearch Compartments and use the menu to choose the compartment that contains the resources that you want to schedule. Click Apply Filter to select the compartment or click Clear to close the dialog box without making a selection. Display name Click Display name in the list to open the Display Name dialog box. Enter the display name of the resource to search for and click Apply Filter to select it. When the resource is shown in the table, click the checkbox to select it to be used in the schedule. Click Apply Filter to select the display name or click Clear to close the dialog box without making a selection. OCID /Click OCID in the Enter the OCID of the resource to search for. Resource type Click Resource Type in the list to open the Search dialog box. Select eitherAutonomous Database or (compute) Instance or both. Only the resources of the type you select are shown in the list. Click Apply Filter to select the resource type or click Clear to close the dialog box without making a selection. Note: Resource Scheduler currently supports compute instances and autonomous databases and might support other resource types in future releases.
Note: You must list at least one resource type to search for resources. If you uncheck all selections, no resources are listed and search is disabled.
Status The default selection is All. To display schedules with a different status, click Status to open the Search menu. Scroll through the menu and select any or all of the following statuses: Available, Creating, Updating, Deleting, Deleted, Failed, Inactive, Stopped, or Ended. Note: If you don't select a status, the dialog box closes without saving a selection.
Time created Enter the UTC time when the resource was created - Click Apply filter to run the search and display the list of resources that are found.
- Click Previous to go back to the Basic screen, or click Next to go to the Schedule screen, or click Cancel to close the schedule window without saving the schedule.
- In the Create a Schedule window, click Resources. The Resources dialog box and the list of existing resources in the selected compartment is displayed.
Use the Resource Scheduler Update Schedule CLI command and required parameters to add resources to a schedule:
oci oci resource-scheduler schedule update --schedule-id, --action, --defined-tags, --description, --display-name, --force, --freeform-tags, -? | -h | --help, --recurrence-details, --resource-filters, --resources, --time-starts
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
use the Resource Scheduler UpdateSchedule API to add resources to a schedule. For a complete list of Resource Scheduler APIs, see Resource Scheduler APIs.