Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 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:
- PlanIntent string
- The scheduling plan intent the scheduled actions will be for.
- SchedulingPolicy stringId 
- The Scheduling Policy OCID.
- SchedulingPolicy stringTarget Resource Id 
- The target resource OCID the scheduled actions will be for.
- Filters
List<GetScheduling Policy Recommended Scheduled Actions Filter> 
- PlanIntent string
- The scheduling plan intent the scheduled actions will be for.
- SchedulingPolicy stringId 
- The Scheduling Policy OCID.
- SchedulingPolicy stringTarget Resource Id 
- The target resource OCID the scheduled actions will be for.
- Filters
[]GetScheduling Policy Recommended Scheduled Actions Filter 
- planIntent String
- The scheduling plan intent the scheduled actions will be for.
- schedulingPolicy StringId 
- The Scheduling Policy OCID.
- schedulingPolicy StringTarget Resource Id 
- The target resource OCID the scheduled actions will be for.
- filters
List<GetScheduling Policy Recommended Scheduled Actions Filter> 
- planIntent string
- The scheduling plan intent the scheduled actions will be for.
- schedulingPolicy stringId 
- The Scheduling Policy OCID.
- schedulingPolicy stringTarget Resource Id 
- The target resource OCID the scheduled actions will be for.
- filters
GetScheduling 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] 
- planIntent String
- The scheduling plan intent the scheduled actions will be for.
- schedulingPolicy StringId 
- The Scheduling Policy OCID.
- schedulingPolicy 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.
- PlanIntent string
- RecommendedScheduled List<GetActions Collections Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection> 
- The list of recommended_scheduled_actions_collection.
- SchedulingPolicy stringId 
- SchedulingPolicy stringTarget Resource Id 
- Filters
List<GetScheduling Policy Recommended Scheduled Actions Filter> 
- Id string
- The provider-assigned unique ID for this managed resource.
- PlanIntent string
- RecommendedScheduled []GetActions Collections Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection 
- The list of recommended_scheduled_actions_collection.
- SchedulingPolicy stringId 
- SchedulingPolicy stringTarget Resource Id 
- Filters
[]GetScheduling Policy Recommended Scheduled Actions Filter 
- id String
- The provider-assigned unique ID for this managed resource.
- planIntent String
- recommendedScheduled List<GetActions Collections Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection> 
- The list of recommended_scheduled_actions_collection.
- schedulingPolicy StringId 
- schedulingPolicy StringTarget Resource Id 
- filters
List<GetScheduling Policy Recommended Scheduled Actions Filter> 
- id string
- The provider-assigned unique ID for this managed resource.
- planIntent string
- recommendedScheduled GetActions Collections Scheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection[] 
- The list of recommended_scheduled_actions_collection.
- schedulingPolicy stringId 
- schedulingPolicy stringTarget Resource Id 
- filters
GetScheduling 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.
- planIntent String
- recommendedScheduled List<Property Map>Actions Collections 
- The list of recommended_scheduled_actions_collection.
- schedulingPolicy StringId 
- schedulingPolicy StringTarget Resource Id 
- filters List<Property Map>
Supporting Types
GetSchedulingPolicyRecommendedScheduledActionsFilter      
GetSchedulingPolicyRecommendedScheduledActionsRecommendedScheduledActionsCollection         
- Items
List<GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item> 
- List of scheduled actions.
- Items
[]GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item 
- List of scheduled actions.
- items
List<GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item> 
- List of scheduled actions.
- items
GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item[] 
- List of scheduled actions.
- items List<Property Map>
- List of scheduled actions.
GetSchedulingPolicyRecommendedScheduledActionsRecommendedScheduledActionsCollectionItem          
- ActionMembers List<GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item Action Member> 
- The list of action members in a scheduled action.
- ActionOrder int
- The order of the scheduled action.
- ActionParams Dictionary<string, string>
- Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
- ActionType string
- The type of the scheduled action being performed
- DisplayName string
- Description of the scheduled action being performed, i.e. apply full update to DB Servers 1,2,3,4.
- EstimatedTime intIn Mins 
- The estimated patching time in minutes for the entire scheduled action.
- SchedulingWindow stringId 
- The id of the scheduling window this scheduled action belongs to.
- ActionMembers []GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item Action Member 
- The list of action members in a scheduled action.
- ActionOrder int
- The order of the scheduled action.
- ActionParams map[string]string
- Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
- ActionType string
- The type of the scheduled action being performed
- DisplayName string
- Description of the scheduled action being performed, i.e. apply full update to DB Servers 1,2,3,4.
- EstimatedTime intIn Mins 
- The estimated patching time in minutes for the entire scheduled action.
- SchedulingWindow stringId 
- The id of the scheduling window this scheduled action belongs to.
- actionMembers List<GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item Action Member> 
- The list of action members in a scheduled action.
- actionOrder Integer
- The order of the scheduled action.
- actionParams Map<String,String>
- Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
- actionType String
- The type of the scheduled action being performed
- displayName String
- Description of the scheduled action being performed, i.e. apply full update to DB Servers 1,2,3,4.
- estimatedTime IntegerIn Mins 
- The estimated patching time in minutes for the entire scheduled action.
- schedulingWindow StringId 
- The id of the scheduling window this scheduled action belongs to.
- actionMembers GetScheduling Policy Recommended Scheduled Actions Recommended Scheduled Actions Collection Item Action Member[] 
- The list of action members in a scheduled action.
- actionOrder number
- The order of the scheduled action.
- actionParams {[key: string]: string}
- Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
- actionType string
- The type of the scheduled action being performed
- displayName string
- Description of the scheduled action being performed, i.e. apply full update to DB Servers 1,2,3,4.
- estimatedTime numberIn Mins 
- The estimated patching time in minutes for the entire scheduled action.
- schedulingWindow 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.
- actionMembers List<Property Map>
- The list of action members in a scheduled action.
- actionOrder Number
- The order of the scheduled action.
- actionParams Map<String>
- Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
- actionType String
- The type of the scheduled action being performed
- displayName String
- Description of the scheduled action being performed, i.e. apply full update to DB Servers 1,2,3,4.
- estimatedTime NumberIn Mins 
- The estimated patching time in minutes for the entire scheduled action.
- schedulingWindow StringId 
- The id of the scheduling window this scheduled action belongs to.
GetSchedulingPolicyRecommendedScheduledActionsRecommendedScheduledActionsCollectionItemActionMember            
- EstimatedTime intIn Mins 
- The estimated patching time in minutes for the entire scheduled action.
- MemberId string
- The ocid of the action member.
- MemberOrder int
- The order of the action member in a scheduled action.
- EstimatedTime intIn Mins 
- The estimated patching time in minutes for the entire scheduled action.
- MemberId string
- The ocid of the action member.
- MemberOrder int
- The order of the action member in a scheduled action.
- estimatedTime IntegerIn Mins 
- The estimated patching time in minutes for the entire scheduled action.
- memberId String
- The ocid of the action member.
- memberOrder Integer
- The order of the action member in a scheduled action.
- estimatedTime numberIn Mins 
- The estimated patching time in minutes for the entire scheduled action.
- memberId string
- The ocid of the action member.
- memberOrder 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.
- estimatedTime NumberIn Mins 
- The estimated patching time in minutes for the entire scheduled action.
- memberId String
- The ocid of the action member.
- memberOrder 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.