Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Database.getSchedulingPolicyRecommendedScheduledActions
Explore with Pulumi AI
This data source provides the list of Scheduling Policy Recommended Scheduled Actions in Oracle Cloud Infrastructure Database service.
Returns a recommended Scheduled Actions configuration for a given resource, plan intent and scheduling policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSchedulingPolicyRecommendedScheduledActions = oci.Database.getSchedulingPolicyRecommendedScheduledActions({
    planIntent: schedulingPolicyRecommendedScheduledActionPlanIntent,
    schedulingPolicyId: testSchedulingPolicy.id,
    schedulingPolicyTargetResourceId: testResource.id,
});
import pulumi
import pulumi_oci as oci
test_scheduling_policy_recommended_scheduled_actions = oci.Database.get_scheduling_policy_recommended_scheduled_actions(plan_intent=scheduling_policy_recommended_scheduled_action_plan_intent,
    scheduling_policy_id=test_scheduling_policy["id"],
    scheduling_policy_target_resource_id=test_resource["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetSchedulingPolicyRecommendedScheduledActions(ctx, &database.GetSchedulingPolicyRecommendedScheduledActionsArgs{
			PlanIntent:                       schedulingPolicyRecommendedScheduledActionPlanIntent,
			SchedulingPolicyId:               testSchedulingPolicy.Id,
			SchedulingPolicyTargetResourceId: testResource.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testSchedulingPolicyRecommendedScheduledActions = Oci.Database.GetSchedulingPolicyRecommendedScheduledActions.Invoke(new()
    {
        PlanIntent = schedulingPolicyRecommendedScheduledActionPlanIntent,
        SchedulingPolicyId = testSchedulingPolicy.Id,
        SchedulingPolicyTargetResourceId = testResource.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetSchedulingPolicyRecommendedScheduledActionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testSchedulingPolicyRecommendedScheduledActions = DatabaseFunctions.getSchedulingPolicyRecommendedScheduledActions(GetSchedulingPolicyRecommendedScheduledActionsArgs.builder()
            .planIntent(schedulingPolicyRecommendedScheduledActionPlanIntent)
            .schedulingPolicyId(testSchedulingPolicy.id())
            .schedulingPolicyTargetResourceId(testResource.id())
            .build());
    }
}
variables:
  testSchedulingPolicyRecommendedScheduledActions:
    fn::invoke:
      function: oci:Database:getSchedulingPolicyRecommendedScheduledActions
      arguments:
        planIntent: ${schedulingPolicyRecommendedScheduledActionPlanIntent}
        schedulingPolicyId: ${testSchedulingPolicy.id}
        schedulingPolicyTargetResourceId: ${testResource.id}
Using getSchedulingPolicyRecommendedScheduledActions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSchedulingPolicyRecommendedScheduledActions(args: GetSchedulingPolicyRecommendedScheduledActionsArgs, opts?: InvokeOptions): Promise<GetSchedulingPolicyRecommendedScheduledActionsResult>
function getSchedulingPolicyRecommendedScheduledActionsOutput(args: GetSchedulingPolicyRecommendedScheduledActionsOutputArgs, opts?: InvokeOptions): Output<GetSchedulingPolicyRecommendedScheduledActionsResult>def get_scheduling_policy_recommended_scheduled_actions(filters: Optional[Sequence[_database.GetSchedulingPolicyRecommendedScheduledActionsFilter]] = None,
                                                        plan_intent: Optional[str] = None,
                                                        scheduling_policy_id: Optional[str] = None,
                                                        scheduling_policy_target_resource_id: Optional[str] = None,
                                                        opts: Optional[InvokeOptions] = None) -> GetSchedulingPolicyRecommendedScheduledActionsResult
def get_scheduling_policy_recommended_scheduled_actions_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetSchedulingPolicyRecommendedScheduledActionsFilterArgs]]]] = None,
                                                        plan_intent: Optional[pulumi.Input[str]] = None,
                                                        scheduling_policy_id: Optional[pulumi.Input[str]] = None,
                                                        scheduling_policy_target_resource_id: Optional[pulumi.Input[str]] = None,
                                                        opts: Optional[InvokeOptions] = None) -> Output[GetSchedulingPolicyRecommendedScheduledActionsResult]func GetSchedulingPolicyRecommendedScheduledActions(ctx *Context, args *GetSchedulingPolicyRecommendedScheduledActionsArgs, opts ...InvokeOption) (*GetSchedulingPolicyRecommendedScheduledActionsResult, error)
func GetSchedulingPolicyRecommendedScheduledActionsOutput(ctx *Context, args *GetSchedulingPolicyRecommendedScheduledActionsOutputArgs, opts ...InvokeOption) GetSchedulingPolicyRecommendedScheduledActionsResultOutput> Note: This function is named GetSchedulingPolicyRecommendedScheduledActions in the Go SDK.
public static class GetSchedulingPolicyRecommendedScheduledActions 
{
    public static Task<GetSchedulingPolicyRecommendedScheduledActionsResult> InvokeAsync(GetSchedulingPolicyRecommendedScheduledActionsArgs args, InvokeOptions? opts = null)
    public static Output<GetSchedulingPolicyRecommendedScheduledActionsResult> Invoke(GetSchedulingPolicyRecommendedScheduledActionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSchedulingPolicyRecommendedScheduledActionsResult> getSchedulingPolicyRecommendedScheduledActions(GetSchedulingPolicyRecommendedScheduledActionsArgs args, InvokeOptions options)
public static Output<GetSchedulingPolicyRecommendedScheduledActionsResult> getSchedulingPolicyRecommendedScheduledActions(GetSchedulingPolicyRecommendedScheduledActionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getSchedulingPolicyRecommendedScheduledActions:getSchedulingPolicyRecommendedScheduledActions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Plan
Intent string - The scheduling plan intent the scheduled actions will be for.
 - Scheduling
Policy stringId  - The Scheduling Policy OCID.
 - Scheduling
Policy stringTarget Resource Id  - The target resource OCID the scheduled actions will be for.
 - Filters
List<Get
Scheduling Policy Recommended Scheduled Actions Filter>  
- Plan
Intent string - The scheduling plan intent the scheduled actions will be for.
 - Scheduling
Policy stringId  - The Scheduling Policy OCID.
 - Scheduling
Policy stringTarget Resource Id  - The target resource OCID the scheduled actions will be for.
 - Filters
[]Get
Scheduling Policy Recommended Scheduled Actions Filter  
- plan
Intent String - The scheduling plan intent the scheduled actions will be for.
 - scheduling
Policy StringId  - The Scheduling Policy OCID.
 - scheduling
Policy StringTarget Resource Id  - The target resource OCID the scheduled actions will be for.
 - filters
List<Get
Scheduling Policy Recommended Scheduled Actions Filter>  
- plan
Intent string - The scheduling plan intent the scheduled actions will be for.
 - scheduling
Policy stringId  - The Scheduling Policy OCID.
 - scheduling
Policy stringTarget Resource Id  - The target resource OCID the scheduled actions will be for.
 - filters
Get
Scheduling Policy Recommended Scheduled Actions Filter[]  
- plan_
intent str - The scheduling plan intent the scheduled actions will be for.
 - scheduling_
policy_ strid  - The Scheduling Policy OCID.
 - scheduling_
policy_ strtarget_ resource_ id  - The target resource OCID the scheduled actions will be for.
 - filters
Sequence[database.
Get Scheduling Policy Recommended Scheduled Actions Filter]  
- plan
Intent String - The scheduling plan intent the scheduled actions will be for.
 - scheduling
Policy StringId  - The Scheduling Policy OCID.
 - scheduling
Policy StringTarget Resource Id  - The target resource OCID the scheduled actions will be for.
 - filters List<Property Map>
 
getSchedulingPolicyRecommendedScheduledActions Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Plan
Intent string - Recommended
Scheduled List<GetActions Collections Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection>  - The list of recommended_scheduled_actions_collection.
 - Scheduling
Policy stringId  - Scheduling
Policy stringTarget Resource Id  - Filters
List<Get
Scheduling Policy Recommended Scheduled Actions Filter>  
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Plan
Intent string - Recommended
Scheduled []GetActions Collections Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection  - The list of recommended_scheduled_actions_collection.
 - Scheduling
Policy stringId  - Scheduling
Policy stringTarget Resource Id  - Filters
[]Get
Scheduling Policy Recommended Scheduled Actions Filter  
- id String
 - The provider-assigned unique ID for this managed resource.
 - plan
Intent String - recommended
Scheduled List<GetActions Collections Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection>  - The list of recommended_scheduled_actions_collection.
 - scheduling
Policy StringId  - scheduling
Policy StringTarget Resource Id  - filters
List<Get
Scheduling Policy Recommended Scheduled Actions Filter>  
- id string
 - The provider-assigned unique ID for this managed resource.
 - plan
Intent string - recommended
Scheduled GetActions Collections Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection[]  - The list of recommended_scheduled_actions_collection.
 - scheduling
Policy stringId  - scheduling
Policy stringTarget Resource Id  - filters
Get
Scheduling Policy Recommended Scheduled Actions Filter[]  
- id str
 - The provider-assigned unique ID for this managed resource.
 - plan_
intent str - recommended_
scheduled_ Sequence[database.actions_ collections Get Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection]  - The list of recommended_scheduled_actions_collection.
 - scheduling_
policy_ strid  - scheduling_
policy_ strtarget_ resource_ id  - filters
Sequence[database.
Get Scheduling Policy Recommended Scheduled Actions Filter]  
- id String
 - The provider-assigned unique ID for this managed resource.
 - plan
Intent String - recommended
Scheduled List<Property Map>Actions Collections  - The list of recommended_scheduled_actions_collection.
 - scheduling
Policy StringId  - scheduling
Policy StringTarget Resource Id  - filters List<Property Map>
 
Supporting Types
GetSchedulingPolicyRecommendedScheduledActionsFilter      
GetSchedulingPolicyRecommendedScheduledActionsRecommendedScheduledActionsCollection         
- Items
List<Get
Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item>  - List of scheduled actions.
 
- Items
[]Get
Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item  - List of scheduled actions.
 
- items
List<Get
Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item>  - List of scheduled actions.
 
- items
Get
Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item[]  - List of scheduled actions.
 
- items List<Property Map>
 - List of scheduled actions.
 
GetSchedulingPolicyRecommendedScheduledActionsRecommendedScheduledActionsCollectionItem          
- Action
Members List<GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item Action Member>  - The list of action members in a scheduled action.
 - Action
Order int - The order of the scheduled action.
 - Action
Params Dictionary<string, string> - Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: 
{"count": "3"} - Action
Type string - The type of the scheduled action being performed
 - Display
Name string - Description of the scheduled action being performed, i.e. apply full update to DB Servers 1,2,3,4.
 - Estimated
Time intIn Mins  - The estimated patching time in minutes for the entire scheduled action.
 - Scheduling
Window stringId  - The id of the scheduling window this scheduled action belongs to.
 
- Action
Members []GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item Action Member  - The list of action members in a scheduled action.
 - Action
Order int - The order of the scheduled action.
 - Action
Params map[string]string - Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: 
{"count": "3"} - Action
Type string - The type of the scheduled action being performed
 - Display
Name string - Description of the scheduled action being performed, i.e. apply full update to DB Servers 1,2,3,4.
 - Estimated
Time intIn Mins  - The estimated patching time in minutes for the entire scheduled action.
 - Scheduling
Window stringId  - The id of the scheduling window this scheduled action belongs to.
 
- action
Members List<GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item Action Member>  - The list of action members in a scheduled action.
 - action
Order Integer - The order of the scheduled action.
 - action
Params Map<String,String> - Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: 
{"count": "3"} - action
Type String - The type of the scheduled action being performed
 - display
Name String - Description of the scheduled action being performed, i.e. apply full update to DB Servers 1,2,3,4.
 - estimated
Time IntegerIn Mins  - The estimated patching time in minutes for the entire scheduled action.
 - scheduling
Window StringId  - The id of the scheduling window this scheduled action belongs to.
 
- action
Members GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item Action Member[]  - The list of action members in a scheduled action.
 - action
Order number - The order of the scheduled action.
 - action
Params {[key: string]: string} - Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: 
{"count": "3"} - action
Type string - The type of the scheduled action being performed
 - display
Name string - Description of the scheduled action being performed, i.e. apply full update to DB Servers 1,2,3,4.
 - estimated
Time numberIn Mins  - The estimated patching time in minutes for the entire scheduled action.
 - scheduling
Window stringId  - The id of the scheduling window this scheduled action belongs to.
 
- action_
members Sequence[database.Get Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item Action Member]  - The list of action members in a scheduled action.
 - action_
order int - The order of the scheduled action.
 - action_
params Mapping[str, str] - Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: 
{"count": "3"} - action_
type str - The type of the scheduled action being performed
 - display_
name str - Description of the scheduled action being performed, i.e. apply full update to DB Servers 1,2,3,4.
 - estimated_
time_ intin_ mins  - The estimated patching time in minutes for the entire scheduled action.
 - scheduling_
window_ strid  - The id of the scheduling window this scheduled action belongs to.
 
- action
Members List<Property Map> - The list of action members in a scheduled action.
 - action
Order Number - The order of the scheduled action.
 - action
Params Map<String> - Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: 
{"count": "3"} - action
Type String - The type of the scheduled action being performed
 - display
Name String - Description of the scheduled action being performed, i.e. apply full update to DB Servers 1,2,3,4.
 - estimated
Time NumberIn Mins  - The estimated patching time in minutes for the entire scheduled action.
 - scheduling
Window StringId  - The id of the scheduling window this scheduled action belongs to.
 
GetSchedulingPolicyRecommendedScheduledActionsRecommendedScheduledActionsCollectionItemActionMember            
- Estimated
Time intIn Mins  - The estimated patching time in minutes for the entire scheduled action.
 - Member
Id string - The ocid of the action member.
 - Member
Order int - The order of the action member in a scheduled action.
 
- Estimated
Time intIn Mins  - The estimated patching time in minutes for the entire scheduled action.
 - Member
Id string - The ocid of the action member.
 - Member
Order int - The order of the action member in a scheduled action.
 
- estimated
Time IntegerIn Mins  - The estimated patching time in minutes for the entire scheduled action.
 - member
Id String - The ocid of the action member.
 - member
Order Integer - The order of the action member in a scheduled action.
 
- estimated
Time numberIn Mins  - The estimated patching time in minutes for the entire scheduled action.
 - member
Id string - The ocid of the action member.
 - member
Order number - The order of the action member in a scheduled action.
 
- estimated_
time_ intin_ mins  - The estimated patching time in minutes for the entire scheduled action.
 - member_
id str - The ocid of the action member.
 - member_
order int - The order of the action member in a scheduled action.
 
- estimated
Time NumberIn Mins  - The estimated patching time in minutes for the entire scheduled action.
 - member
Id String - The ocid of the action member.
 - member
Order Number - The order of the action member in a scheduled action.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.