1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getScheduledActions
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Database.getScheduledActions

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testScheduledActions:
    fn::invoke:
      function: oci:Database:getScheduledActions
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${scheduledActionDisplayName}
        id: ${scheduledActionId}
        schedulingPlanId: ${testSchedulingPlan.id}
        serviceType: ${scheduledActionServiceType}
        state: ${scheduledActionState}
Copy

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>
Copy
def get_scheduled_actions(compartment_id: Optional[str] = None,
                          display_name: Optional[str] = None,
                          filters: Optional[Sequence[_database.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[_database.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]
Copy
func GetScheduledActions(ctx *Context, args *GetScheduledActionsArgs, opts ...InvokeOption) (*GetScheduledActionsResult, error)
func GetScheduledActionsOutput(ctx *Context, args *GetScheduledActionsOutputArgs, opts ...InvokeOption) GetScheduledActionsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetScheduledActionsResult> getScheduledActions(GetScheduledActionsArgs args, InvokeOptions options)
public static Output<GetScheduledActionsResult> getScheduledActions(GetScheduledActionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Database/getScheduledActions:getScheduledActions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. 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 Changes to this property will trigger replacement. List<GetScheduledActionsFilter>
Id string
A filter to return only resources that match the given Scheduled Action id exactly.
SchedulingPlanId string
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 This property is required. 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 Changes to this property will trigger replacement. []GetScheduledActionsFilter
Id string
A filter to return only resources that match the given Scheduled Action id exactly.
SchedulingPlanId string
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 This property is required. 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 Changes to this property will trigger replacement. List<GetScheduledActionsFilter>
id String
A filter to return only resources that match the given Scheduled Action id exactly.
schedulingPlanId String
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 This property is required. 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 Changes to this property will trigger replacement. GetScheduledActionsFilter[]
id string
A filter to return only resources that match the given Scheduled Action id exactly.
schedulingPlanId string
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 This property is required. 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 Changes to this property will trigger replacement. Sequence[database.GetScheduledActionsFilter]
id str
A filter to return only resources that match the given Scheduled Action id exactly.
scheduling_plan_id str
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 This property is required. 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 Changes to this property will trigger replacement. List<Property Map>
id String
A filter to return only resources that match the given Scheduled Action id exactly.
schedulingPlanId String
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.
ScheduledActionCollections List<GetScheduledActionsScheduledActionCollection>
The list of scheduled_action_collection.
DisplayName string
The display name of the Scheduled Action.
Filters List<GetScheduledActionsFilter>
Id string
The OCID of the Scheduled Action.
SchedulingPlanId string
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.
ScheduledActionCollections []GetScheduledActionsScheduledActionCollection
The list of scheduled_action_collection.
DisplayName string
The display name of the Scheduled Action.
Filters []GetScheduledActionsFilter
Id string
The OCID of the Scheduled Action.
SchedulingPlanId string
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.
scheduledActionCollections List<GetScheduledActionsScheduledActionCollection>
The list of scheduled_action_collection.
displayName String
The display name of the Scheduled Action.
filters List<GetScheduledActionsFilter>
id String
The OCID of the Scheduled Action.
schedulingPlanId String
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.
scheduledActionCollections GetScheduledActionsScheduledActionCollection[]
The list of scheduled_action_collection.
displayName string
The display name of the Scheduled Action.
filters GetScheduledActionsFilter[]
id string
The OCID of the Scheduled Action.
schedulingPlanId string
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_collections Sequence[database.GetScheduledActionsScheduledActionCollection]
The list of scheduled_action_collection.
display_name str
The display name of the Scheduled Action.
filters Sequence[database.GetScheduledActionsFilter]
id str
The OCID of the Scheduled Action.
scheduling_plan_id str
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.
scheduledActionCollections List<Property Map>
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.
schedulingPlanId String
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

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetScheduledActionsScheduledActionCollection

items This property is required. List<Property Map>

GetScheduledActionsScheduledActionCollectionItem

ActionMembers This property is required. List<GetScheduledActionsScheduledActionCollectionItemActionMember>
The list of action members in a scheduled action.
ActionOrder This property is required. int
The order of the scheduled action.
ActionParams This property is required. Dictionary<string, string>
Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
ActionType This property is required. string
The type of the scheduled action being performed
CompartmentId This property is required. string
The compartment OCID.
DefinedTags This property is required. Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
DisplayName This property is required. string
A filter to return only resources that match the entire display name given. The match is not case sensitive.
EstimatedTimeInMins This property is required. int
The estimated patching time for the scheduled action.
FreeformTags This property is required. 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 This property is required. string
A filter to return only resources that match the given Scheduled Action id exactly.
SchedulingPlanId This property is required. string
A filter to return only resources that match the given scheduling policy id exactly.
SchedulingWindowId This property is required. string
The OCID of the Scheduling Window.
State This property is required. string
A filter to return only resources that match the given lifecycle state exactly.
SystemTags This property is required. Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
TimeCreated This property is required. string
The date and time the Scheduled Action Resource was created.
TimeUpdated This property is required. string
The date and time the Scheduled Action Resource was updated.
ActionMembers This property is required. []GetScheduledActionsScheduledActionCollectionItemActionMember
The list of action members in a scheduled action.
ActionOrder This property is required. int
The order of the scheduled action.
ActionParams This property is required. map[string]string
Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
ActionType This property is required. string
The type of the scheduled action being performed
CompartmentId This property is required. string
The compartment OCID.
DefinedTags This property is required. map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
DisplayName This property is required. string
A filter to return only resources that match the entire display name given. The match is not case sensitive.
EstimatedTimeInMins This property is required. int
The estimated patching time for the scheduled action.
FreeformTags This property is required. 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 This property is required. string
A filter to return only resources that match the given Scheduled Action id exactly.
SchedulingPlanId This property is required. string
A filter to return only resources that match the given scheduling policy id exactly.
SchedulingWindowId This property is required. string
The OCID of the Scheduling Window.
State This property is required. string
A filter to return only resources that match the given lifecycle state exactly.
SystemTags This property is required. map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
TimeCreated This property is required. string
The date and time the Scheduled Action Resource was created.
TimeUpdated This property is required. string
The date and time the Scheduled Action Resource was updated.
actionMembers This property is required. List<GetScheduledActionsScheduledActionCollectionItemActionMember>
The list of action members in a scheduled action.
actionOrder This property is required. Integer
The order of the scheduled action.
actionParams This property is required. Map<String,String>
Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
actionType This property is required. String
The type of the scheduled action being performed
compartmentId This property is required. String
The compartment OCID.
definedTags This property is required. Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName This property is required. String
A filter to return only resources that match the entire display name given. The match is not case sensitive.
estimatedTimeInMins This property is required. Integer
The estimated patching time for the scheduled action.
freeformTags This property is required. 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 This property is required. String
A filter to return only resources that match the given Scheduled Action id exactly.
schedulingPlanId This property is required. String
A filter to return only resources that match the given scheduling policy id exactly.
schedulingWindowId This property is required. String
The OCID of the Scheduling Window.
state This property is required. String
A filter to return only resources that match the given lifecycle state exactly.
systemTags This property is required. Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
timeCreated This property is required. String
The date and time the Scheduled Action Resource was created.
timeUpdated This property is required. String
The date and time the Scheduled Action Resource was updated.
actionMembers This property is required. GetScheduledActionsScheduledActionCollectionItemActionMember[]
The list of action members in a scheduled action.
actionOrder This property is required. number
The order of the scheduled action.
actionParams This property is required. {[key: string]: string}
Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
actionType This property is required. string
The type of the scheduled action being performed
compartmentId This property is required. string
The compartment OCID.
definedTags This property is required. {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName This property is required. string
A filter to return only resources that match the entire display name given. The match is not case sensitive.
estimatedTimeInMins This property is required. number
The estimated patching time for the scheduled action.
freeformTags This property is required. {[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 This property is required. string
A filter to return only resources that match the given Scheduled Action id exactly.
schedulingPlanId This property is required. string
A filter to return only resources that match the given scheduling policy id exactly.
schedulingWindowId This property is required. string
The OCID of the Scheduling Window.
state This property is required. string
A filter to return only resources that match the given lifecycle state exactly.
systemTags This property is required. {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
timeCreated This property is required. string
The date and time the Scheduled Action Resource was created.
timeUpdated This property is required. string
The date and time the Scheduled Action Resource was updated.
action_members This property is required. Sequence[database.GetScheduledActionsScheduledActionCollectionItemActionMember]
The list of action members in a scheduled action.
action_order This property is required. int
The order of the scheduled action.
action_params This property is required. Mapping[str, str]
Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
action_type This property is required. str
The type of the scheduled action being performed
compartment_id This property is required. str
The compartment OCID.
defined_tags This property is required. 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 This property is required. str
A filter to return only resources that match the entire display name given. The match is not case sensitive.
estimated_time_in_mins This property is required. int
The estimated patching time for the scheduled action.
freeform_tags This property is required. 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 This property is required. str
A filter to return only resources that match the given Scheduled Action id exactly.
scheduling_plan_id This property is required. str
A filter to return only resources that match the given scheduling policy id exactly.
scheduling_window_id This property is required. str
The OCID of the Scheduling Window.
state This property is required. str
A filter to return only resources that match the given lifecycle state exactly.
system_tags This property is required. 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 This property is required. str
The date and time the Scheduled Action Resource was created.
time_updated This property is required. str
The date and time the Scheduled Action Resource was updated.
actionMembers This property is required. List<Property Map>
The list of action members in a scheduled action.
actionOrder This property is required. Number
The order of the scheduled action.
actionParams This property is required. Map<String>
Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
actionType This property is required. String
The type of the scheduled action being performed
compartmentId This property is required. String
The compartment OCID.
definedTags This property is required. Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName This property is required. String
A filter to return only resources that match the entire display name given. The match is not case sensitive.
estimatedTimeInMins This property is required. Number
The estimated patching time for the scheduled action.
freeformTags This property is required. 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 This property is required. String
A filter to return only resources that match the given Scheduled Action id exactly.
schedulingPlanId This property is required. String
A filter to return only resources that match the given scheduling policy id exactly.
schedulingWindowId This property is required. String
The OCID of the Scheduling Window.
state This property is required. String
A filter to return only resources that match the given lifecycle state exactly.
systemTags This property is required. Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
timeCreated This property is required. String
The date and time the Scheduled Action Resource was created.
timeUpdated This property is required. String
The date and time the Scheduled Action Resource was updated.

GetScheduledActionsScheduledActionCollectionItemActionMember

EstimatedTimeInMins This property is required. int
The estimated patching time for the scheduled action.
MemberId This property is required. string
The ocid of the action member.
MemberOrder This property is required. int
The order of the action member in a scheduled action.
EstimatedTimeInMins This property is required. int
The estimated patching time for the scheduled action.
MemberId This property is required. string
The ocid of the action member.
MemberOrder This property is required. int
The order of the action member in a scheduled action.
estimatedTimeInMins This property is required. Integer
The estimated patching time for the scheduled action.
memberId This property is required. String
The ocid of the action member.
memberOrder This property is required. Integer
The order of the action member in a scheduled action.
estimatedTimeInMins This property is required. number
The estimated patching time for the scheduled action.
memberId This property is required. string
The ocid of the action member.
memberOrder This property is required. number
The order of the action member in a scheduled action.
estimated_time_in_mins This property is required. int
The estimated patching time for the scheduled action.
member_id This property is required. str
The ocid of the action member.
member_order This property is required. int
The order of the action member in a scheduled action.
estimatedTimeInMins This property is required. Number
The estimated patching time for the scheduled action.
memberId This property is required. String
The ocid of the action member.
memberOrder This property is required. 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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi