Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
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/v4/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:
- Scheduled
Action stringId - The Scheduled Action OCID.
- Scheduled
Action stringId - The Scheduled Action OCID.
- scheduled
Action StringId - The Scheduled Action OCID.
- scheduled
Action stringId - The Scheduled Action OCID.
- scheduled_
action_ strid - The Scheduled Action OCID.
- scheduled
Action StringId - The Scheduled Action OCID.
getScheduledAction Result
The following output properties are available:
- Action
Members List<GetScheduled Action 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
- Compartment
Id 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.
- Display
Name string - The display name of the Scheduled Action.
- Estimated
Time 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.
- Scheduled
Action stringId - Scheduling
Plan stringId - The OCID of the Scheduling Plan.
- Scheduling
Window 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.
- Time
Created string - The date and time the Scheduled Action Resource was created.
- Time
Updated string - The date and time the Scheduled Action Resource was updated.
- Action
Members []GetScheduled Action 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
- Compartment
Id 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.
- Display
Name string - The display name of the Scheduled Action.
- Estimated
Time 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.
- Scheduled
Action stringId - Scheduling
Plan stringId - The OCID of the Scheduling Plan.
- Scheduling
Window 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.
- Time
Created string - The date and time the Scheduled Action Resource was created.
- Time
Updated string - The date and time the Scheduled Action Resource was updated.
- action
Members List<GetScheduled Action 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
- compartment
Id 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.
- display
Name String - The display name of the Scheduled Action.
- estimated
Time 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.
- scheduled
Action StringId - scheduling
Plan StringId - The OCID of the Scheduling Plan.
- scheduling
Window 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.
- time
Created String - The date and time the Scheduled Action Resource was created.
- time
Updated String - The date and time the Scheduled Action Resource was updated.
- action
Members GetScheduled Action 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
- compartment
Id 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.
- display
Name string - The display name of the Scheduled Action.
- estimated
Time 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.
- scheduled
Action stringId - scheduling
Plan stringId - The OCID of the Scheduling Plan.
- scheduling
Window 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.
- time
Created string - The date and time the Scheduled Action Resource was created.
- time
Updated 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.
- 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
- compartment
Id 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.
- display
Name String - The display name of the Scheduled Action.
- estimated
Time 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.
- scheduled
Action StringId - scheduling
Plan StringId - The OCID of the Scheduling Plan.
- scheduling
Window 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.
- time
Created String - The date and time the Scheduled Action Resource was created.
- time
Updated String - The date and time the Scheduled Action Resource was updated.
Supporting Types
GetScheduledActionActionMember
- Estimated
Time intIn Mins - The estimated patching time for the 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 for the 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 for the 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 for the 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 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.
- estimated
Time NumberIn Mins - The estimated patching time for the 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.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
