Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getScheduledActions
Explore with Pulumi AI
This data source provides the list of Scheduled Actions in Oracle Cloud Infrastructure Database service.
Lists the Scheduled Action resources in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testScheduledActions = oci.Database.getScheduledActions({
    compartmentId: compartmentId,
    displayName: scheduledActionDisplayName,
    id: scheduledActionId,
    schedulingPlanId: testSchedulingPlan.id,
    serviceType: scheduledActionServiceType,
    state: scheduledActionState,
});
import pulumi
import pulumi_oci as oci
test_scheduled_actions = oci.Database.get_scheduled_actions(compartment_id=compartment_id,
    display_name=scheduled_action_display_name,
    id=scheduled_action_id,
    scheduling_plan_id=test_scheduling_plan["id"],
    service_type=scheduled_action_service_type,
    state=scheduled_action_state)
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.GetScheduledActions(ctx, &database.GetScheduledActionsArgs{
			CompartmentId:    compartmentId,
			DisplayName:      pulumi.StringRef(scheduledActionDisplayName),
			Id:               pulumi.StringRef(scheduledActionId),
			SchedulingPlanId: pulumi.StringRef(testSchedulingPlan.Id),
			ServiceType:      pulumi.StringRef(scheduledActionServiceType),
			State:            pulumi.StringRef(scheduledActionState),
		}, 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 testScheduledActions = Oci.Database.GetScheduledActions.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = scheduledActionDisplayName,
        Id = scheduledActionId,
        SchedulingPlanId = testSchedulingPlan.Id,
        ServiceType = scheduledActionServiceType,
        State = scheduledActionState,
    });
});
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.GetScheduledActionsArgs;
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 testScheduledActions = DatabaseFunctions.getScheduledActions(GetScheduledActionsArgs.builder()
            .compartmentId(compartmentId)
            .displayName(scheduledActionDisplayName)
            .id(scheduledActionId)
            .schedulingPlanId(testSchedulingPlan.id())
            .serviceType(scheduledActionServiceType)
            .state(scheduledActionState)
            .build());
    }
}
variables:
  testScheduledActions:
    fn::invoke:
      function: oci:Database:getScheduledActions
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${scheduledActionDisplayName}
        id: ${scheduledActionId}
        schedulingPlanId: ${testSchedulingPlan.id}
        serviceType: ${scheduledActionServiceType}
        state: ${scheduledActionState}
Using getScheduledActions
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 getScheduledActions(args: GetScheduledActionsArgs, opts?: InvokeOptions): Promise<GetScheduledActionsResult>
function getScheduledActionsOutput(args: GetScheduledActionsOutputArgs, opts?: InvokeOptions): Output<GetScheduledActionsResult>def get_scheduled_actions(compartment_id: Optional[str] = None,
                          display_name: Optional[str] = None,
                          filters: Optional[Sequence[GetScheduledActionsFilter]] = None,
                          id: Optional[str] = None,
                          scheduling_plan_id: Optional[str] = None,
                          service_type: Optional[str] = None,
                          state: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetScheduledActionsResult
def get_scheduled_actions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                          display_name: Optional[pulumi.Input[str]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetScheduledActionsFilterArgs]]]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          scheduling_plan_id: Optional[pulumi.Input[str]] = None,
                          service_type: Optional[pulumi.Input[str]] = None,
                          state: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetScheduledActionsResult]func GetScheduledActions(ctx *Context, args *GetScheduledActionsArgs, opts ...InvokeOption) (*GetScheduledActionsResult, error)
func GetScheduledActionsOutput(ctx *Context, args *GetScheduledActionsOutputArgs, opts ...InvokeOption) GetScheduledActionsResultOutput> Note: This function is named GetScheduledActions in the Go SDK.
public static class GetScheduledActions 
{
    public static Task<GetScheduledActionsResult> InvokeAsync(GetScheduledActionsArgs args, InvokeOptions? opts = null)
    public static Output<GetScheduledActionsResult> Invoke(GetScheduledActionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetScheduledActionsResult> getScheduledActions(GetScheduledActionsArgs args, InvokeOptions options)
public static Output<GetScheduledActionsResult> getScheduledActions(GetScheduledActionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getScheduledActions:getScheduledActions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The compartment OCID.
- DisplayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Filters
List<GetScheduled Actions Filter> 
- Id string
- A filter to return only resources that match the given Scheduled Action id exactly.
- SchedulingPlan stringId 
- A filter to return only resources that match the given scheduling policy id exactly.
- ServiceType string
- A filter to return only resources that match the given service type exactly.
- State string
- A filter to return only resources that match the given lifecycle state exactly.
- CompartmentId string
- The compartment OCID.
- DisplayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Filters
[]GetScheduled Actions Filter 
- Id string
- A filter to return only resources that match the given Scheduled Action id exactly.
- SchedulingPlan stringId 
- A filter to return only resources that match the given scheduling policy id exactly.
- ServiceType string
- A filter to return only resources that match the given service type exactly.
- State string
- A filter to return only resources that match the given lifecycle state exactly.
- compartmentId String
- The compartment OCID.
- displayName String
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
List<GetScheduled Actions Filter> 
- id String
- A filter to return only resources that match the given Scheduled Action id exactly.
- schedulingPlan StringId 
- A filter to return only resources that match the given scheduling policy id exactly.
- serviceType String
- A filter to return only resources that match the given service type exactly.
- state String
- A filter to return only resources that match the given lifecycle state exactly.
- compartmentId string
- The compartment OCID.
- displayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
GetScheduled Actions Filter[] 
- id string
- A filter to return only resources that match the given Scheduled Action id exactly.
- schedulingPlan stringId 
- A filter to return only resources that match the given scheduling policy id exactly.
- serviceType string
- A filter to return only resources that match the given service type exactly.
- state string
- A filter to return only resources that match the given lifecycle state exactly.
- compartment_id str
- The compartment OCID.
- display_name str
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
Sequence[GetScheduled Actions Filter] 
- id str
- A filter to return only resources that match the given Scheduled Action id exactly.
- scheduling_plan_ strid 
- A filter to return only resources that match the given scheduling policy id exactly.
- service_type str
- A filter to return only resources that match the given service type exactly.
- state str
- A filter to return only resources that match the given lifecycle state exactly.
- compartmentId String
- The compartment OCID.
- displayName String
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters List<Property Map>
- id String
- A filter to return only resources that match the given Scheduled Action id exactly.
- schedulingPlan StringId 
- A filter to return only resources that match the given scheduling policy id exactly.
- serviceType String
- A filter to return only resources that match the given service type exactly.
- state String
- A filter to return only resources that match the given lifecycle state exactly.
getScheduledActions Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- ScheduledAction List<GetCollections Scheduled Actions Scheduled Action Collection> 
- The list of scheduled_action_collection.
- DisplayName string
- The display name of the Scheduled Action.
- Filters
List<GetScheduled Actions Filter> 
- Id string
- The OCID of the Scheduled Action.
- SchedulingPlan stringId 
- The OCID of the Scheduling Plan.
- ServiceType string
- State string
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- CompartmentId string
- The OCID of the compartment.
- ScheduledAction []GetCollections Scheduled Actions Scheduled Action Collection 
- The list of scheduled_action_collection.
- DisplayName string
- The display name of the Scheduled Action.
- Filters
[]GetScheduled Actions Filter 
- Id string
- The OCID of the Scheduled Action.
- SchedulingPlan stringId 
- The OCID of the Scheduling Plan.
- ServiceType string
- State string
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- compartmentId String
- The OCID of the compartment.
- scheduledAction List<GetCollections Scheduled Actions Scheduled Action Collection> 
- The list of scheduled_action_collection.
- displayName String
- The display name of the Scheduled Action.
- filters
List<GetScheduled Actions Filter> 
- id String
- The OCID of the Scheduled Action.
- schedulingPlan StringId 
- The OCID of the Scheduling Plan.
- serviceType String
- state String
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- compartmentId string
- The OCID of the compartment.
- scheduledAction GetCollections Scheduled Actions Scheduled Action Collection[] 
- The list of scheduled_action_collection.
- displayName string
- The display name of the Scheduled Action.
- filters
GetScheduled Actions Filter[] 
- id string
- The OCID of the Scheduled Action.
- schedulingPlan stringId 
- The OCID of the Scheduling Plan.
- serviceType string
- state string
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- compartment_id str
- The OCID of the compartment.
- scheduled_action_ Sequence[Getcollections Scheduled Actions Scheduled Action Collection] 
- The list of scheduled_action_collection.
- display_name str
- The display name of the Scheduled Action.
- filters
Sequence[GetScheduled Actions Filter] 
- id str
- The OCID of the Scheduled Action.
- scheduling_plan_ strid 
- The OCID of the Scheduling Plan.
- service_type str
- state str
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- compartmentId String
- The OCID of the compartment.
- scheduledAction List<Property Map>Collections 
- The list of scheduled_action_collection.
- displayName String
- The display name of the Scheduled Action.
- filters List<Property Map>
- id String
- The OCID of the Scheduled Action.
- schedulingPlan StringId 
- The OCID of the Scheduling Plan.
- serviceType String
- state String
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
Supporting Types
GetScheduledActionsFilter   
GetScheduledActionsScheduledActionCollection     
GetScheduledActionsScheduledActionCollectionItem      
- ActionMembers List<GetScheduled Actions Scheduled Action 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
- CompartmentId string
- The compartment OCID.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- DisplayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- EstimatedTime intIn Mins 
- The estimated patching time for the scheduled action.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- A filter to return only resources that match the given Scheduled Action id exactly.
- SchedulingPlan stringId 
- A filter to return only resources that match the given scheduling policy id exactly.
- SchedulingWindow stringId 
- The OCID of the Scheduling Window.
- State string
- A filter to return only resources that match the given lifecycle state exactly.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- TimeCreated string
- The date and time the Scheduled Action Resource was created.
- TimeUpdated string
- The date and time the Scheduled Action Resource was updated.
- ActionMembers []GetScheduled Actions Scheduled Action 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
- CompartmentId string
- The compartment OCID.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- DisplayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- EstimatedTime intIn Mins 
- The estimated patching time for the scheduled action.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- A filter to return only resources that match the given Scheduled Action id exactly.
- SchedulingPlan stringId 
- A filter to return only resources that match the given scheduling policy id exactly.
- SchedulingWindow stringId 
- The OCID of the Scheduling Window.
- State string
- A filter to return only resources that match the given lifecycle state exactly.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- TimeCreated string
- The date and time the Scheduled Action Resource was created.
- TimeUpdated string
- The date and time the Scheduled Action Resource was updated.
- actionMembers List<GetScheduled Actions Scheduled Action 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
- compartmentId String
- The compartment OCID.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName String
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- estimatedTime IntegerIn Mins 
- The estimated patching time for the scheduled action.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- A filter to return only resources that match the given Scheduled Action id exactly.
- schedulingPlan StringId 
- A filter to return only resources that match the given scheduling policy id exactly.
- schedulingWindow StringId 
- The OCID of the Scheduling Window.
- state String
- A filter to return only resources that match the given lifecycle state exactly.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- timeCreated String
- The date and time the Scheduled Action Resource was created.
- timeUpdated String
- The date and time the Scheduled Action Resource was updated.
- actionMembers GetScheduled Actions Scheduled Action 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
- compartmentId string
- The compartment OCID.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- estimatedTime numberIn Mins 
- The estimated patching time for the scheduled action.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id string
- A filter to return only resources that match the given Scheduled Action id exactly.
- schedulingPlan stringId 
- A filter to return only resources that match the given scheduling policy id exactly.
- schedulingWindow stringId 
- The OCID of the Scheduling Window.
- state string
- A filter to return only resources that match the given lifecycle state exactly.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- timeCreated string
- The date and time the Scheduled Action Resource was created.
- timeUpdated string
- The date and time the Scheduled Action Resource was updated.
- action_members Sequence[GetScheduled Actions Scheduled Action 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
- compartment_id str
- The compartment OCID.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_name str
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- estimated_time_ intin_ mins 
- The estimated patching time for the scheduled action.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id str
- A filter to return only resources that match the given Scheduled Action id exactly.
- scheduling_plan_ strid 
- A filter to return only resources that match the given scheduling policy id exactly.
- scheduling_window_ strid 
- The OCID of the Scheduling Window.
- state str
- A filter to return only resources that match the given lifecycle state exactly.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- time_created str
- The date and time the Scheduled Action Resource was created.
- time_updated str
- The date and time the Scheduled Action Resource was updated.
- 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
- compartmentId String
- The compartment OCID.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName String
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- estimatedTime NumberIn Mins 
- The estimated patching time for the scheduled action.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- A filter to return only resources that match the given Scheduled Action id exactly.
- schedulingPlan StringId 
- A filter to return only resources that match the given scheduling policy id exactly.
- schedulingWindow StringId 
- The OCID of the Scheduling Window.
- state String
- A filter to return only resources that match the given lifecycle state exactly.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- timeCreated String
- The date and time the Scheduled Action Resource was created.
- timeUpdated String
- The date and time the Scheduled Action Resource was updated.
GetScheduledActionsScheduledActionCollectionItemActionMember        
- EstimatedTime intIn Mins 
- The estimated patching time for the 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 for the 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 for the 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 for the 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 for the 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 for the 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.