Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getScheduledAction
Explore with Pulumi AI
This data source provides details about a specific Scheduled Action resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified Scheduled Action.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testScheduledAction = oci.Database.getScheduledAction({
    scheduledActionId: testScheduledActionOciDatabaseScheduledAction.id,
});
import pulumi
import pulumi_oci as oci
test_scheduled_action = oci.Database.get_scheduled_action(scheduled_action_id=test_scheduled_action_oci_database_scheduled_action["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.GetScheduledAction(ctx, &database.GetScheduledActionArgs{
			ScheduledActionId: testScheduledActionOciDatabaseScheduledAction.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 testScheduledAction = Oci.Database.GetScheduledAction.Invoke(new()
    {
        ScheduledActionId = testScheduledActionOciDatabaseScheduledAction.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.GetScheduledActionArgs;
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 testScheduledAction = DatabaseFunctions.getScheduledAction(GetScheduledActionArgs.builder()
            .scheduledActionId(testScheduledActionOciDatabaseScheduledAction.id())
            .build());
    }
}
variables:
  testScheduledAction:
    fn::invoke:
      function: oci:Database:getScheduledAction
      arguments:
        scheduledActionId: ${testScheduledActionOciDatabaseScheduledAction.id}
Using getScheduledAction
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 getScheduledAction(args: GetScheduledActionArgs, opts?: InvokeOptions): Promise<GetScheduledActionResult>
function getScheduledActionOutput(args: GetScheduledActionOutputArgs, opts?: InvokeOptions): Output<GetScheduledActionResult>def get_scheduled_action(scheduled_action_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetScheduledActionResult
def get_scheduled_action_output(scheduled_action_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetScheduledActionResult]func LookupScheduledAction(ctx *Context, args *LookupScheduledActionArgs, opts ...InvokeOption) (*LookupScheduledActionResult, error)
func LookupScheduledActionOutput(ctx *Context, args *LookupScheduledActionOutputArgs, opts ...InvokeOption) LookupScheduledActionResultOutput> Note: This function is named LookupScheduledAction in the Go SDK.
public static class GetScheduledAction 
{
    public static Task<GetScheduledActionResult> InvokeAsync(GetScheduledActionArgs args, InvokeOptions? opts = null)
    public static Output<GetScheduledActionResult> Invoke(GetScheduledActionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetScheduledActionResult> getScheduledAction(GetScheduledActionArgs args, InvokeOptions options)
public static Output<GetScheduledActionResult> getScheduledAction(GetScheduledActionArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getScheduledAction:getScheduledAction
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ScheduledAction stringId 
- The Scheduled Action OCID.
- ScheduledAction stringId 
- The Scheduled Action OCID.
- scheduledAction StringId 
- The Scheduled Action OCID.
- scheduledAction stringId 
- The Scheduled Action OCID.
- scheduled_action_ strid 
- The Scheduled Action OCID.
- scheduledAction StringId 
- The Scheduled Action OCID.
getScheduledAction Result
The following output properties are available:
- ActionMembers List<GetScheduled Action 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 OCID of the compartment.
- 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
- The display name of the Scheduled Action.
- 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
- The OCID of the Scheduled Action.
- ScheduledAction stringId 
- SchedulingPlan stringId 
- The OCID of the Scheduling Plan.
- SchedulingWindow stringId 
- The OCID of the Scheduling Window.
- State string
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- 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 Action 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 OCID of the compartment.
- 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
- The display name of the Scheduled Action.
- 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
- The OCID of the Scheduled Action.
- ScheduledAction stringId 
- SchedulingPlan stringId 
- The OCID of the Scheduling Plan.
- SchedulingWindow stringId 
- The OCID of the Scheduling Window.
- State string
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- 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 Action 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 OCID of the compartment.
- 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
- The display name of the Scheduled Action.
- 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
- The OCID of the Scheduled Action.
- scheduledAction StringId 
- schedulingPlan StringId 
- The OCID of the Scheduling Plan.
- schedulingWindow StringId 
- The OCID of the Scheduling Window.
- state String
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- 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 Action 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 OCID of the compartment.
- {[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
- The display name of the Scheduled Action.
- 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
- The OCID of the Scheduled Action.
- scheduledAction stringId 
- schedulingPlan stringId 
- The OCID of the Scheduling Plan.
- schedulingWindow stringId 
- The OCID of the Scheduling Window.
- state string
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- {[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 Action 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 OCID of the compartment.
- 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
- The display name of the Scheduled Action.
- 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
- The OCID of the Scheduled Action.
- scheduled_action_ strid 
- scheduling_plan_ strid 
- The OCID of the Scheduling Plan.
- scheduling_window_ strid 
- The OCID of the Scheduling Window.
- state str
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- 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 OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName String
- The display name of the Scheduled Action.
- 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
- The OCID of the Scheduled Action.
- scheduledAction StringId 
- schedulingPlan StringId 
- The OCID of the Scheduling Plan.
- schedulingWindow StringId 
- The OCID of the Scheduling Window.
- state String
- The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
- 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.
Supporting Types
GetScheduledActionActionMember    
- 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.