Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Database.getExecutionActions
Explore with Pulumi AI
This data source provides the list of Execution Actions in Oracle Cloud Infrastructure Database service.
Lists the execution action resources in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExecutionActions = oci.Database.getExecutionActions({
    compartmentId: compartmentId,
    displayName: executionActionDisplayName,
    executionWindowId: testExecutionWindow.id,
    state: executionActionState,
});
import pulumi
import pulumi_oci as oci
test_execution_actions = oci.Database.get_execution_actions(compartment_id=compartment_id,
    display_name=execution_action_display_name,
    execution_window_id=test_execution_window["id"],
    state=execution_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.GetExecutionActions(ctx, &database.GetExecutionActionsArgs{
			CompartmentId:     compartmentId,
			DisplayName:       pulumi.StringRef(executionActionDisplayName),
			ExecutionWindowId: pulumi.StringRef(testExecutionWindow.Id),
			State:             pulumi.StringRef(executionActionState),
		}, 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 testExecutionActions = Oci.Database.GetExecutionActions.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = executionActionDisplayName,
        ExecutionWindowId = testExecutionWindow.Id,
        State = executionActionState,
    });
});
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.GetExecutionActionsArgs;
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 testExecutionActions = DatabaseFunctions.getExecutionActions(GetExecutionActionsArgs.builder()
            .compartmentId(compartmentId)
            .displayName(executionActionDisplayName)
            .executionWindowId(testExecutionWindow.id())
            .state(executionActionState)
            .build());
    }
}
variables:
  testExecutionActions:
    fn::invoke:
      function: oci:Database:getExecutionActions
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${executionActionDisplayName}
        executionWindowId: ${testExecutionWindow.id}
        state: ${executionActionState}
Using getExecutionActions
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 getExecutionActions(args: GetExecutionActionsArgs, opts?: InvokeOptions): Promise<GetExecutionActionsResult>
function getExecutionActionsOutput(args: GetExecutionActionsOutputArgs, opts?: InvokeOptions): Output<GetExecutionActionsResult>def get_execution_actions(compartment_id: Optional[str] = None,
                          display_name: Optional[str] = None,
                          execution_window_id: Optional[str] = None,
                          filters: Optional[Sequence[_database.GetExecutionActionsFilter]] = None,
                          state: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetExecutionActionsResult
def get_execution_actions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                          display_name: Optional[pulumi.Input[str]] = None,
                          execution_window_id: Optional[pulumi.Input[str]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetExecutionActionsFilterArgs]]]] = None,
                          state: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetExecutionActionsResult]func GetExecutionActions(ctx *Context, args *GetExecutionActionsArgs, opts ...InvokeOption) (*GetExecutionActionsResult, error)
func GetExecutionActionsOutput(ctx *Context, args *GetExecutionActionsOutputArgs, opts ...InvokeOption) GetExecutionActionsResultOutput> Note: This function is named GetExecutionActions in the Go SDK.
public static class GetExecutionActions 
{
    public static Task<GetExecutionActionsResult> InvokeAsync(GetExecutionActionsArgs args, InvokeOptions? opts = null)
    public static Output<GetExecutionActionsResult> Invoke(GetExecutionActionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetExecutionActionsResult> getExecutionActions(GetExecutionActionsArgs args, InvokeOptions options)
public static Output<GetExecutionActionsResult> getExecutionActions(GetExecutionActionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getExecutionActions:getExecutionActions
  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.
- ExecutionWindow stringId 
- A filter to return only resources that match the given execution wondow id.
- Filters
List<GetExecution Actions Filter> 
- 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.
- ExecutionWindow stringId 
- A filter to return only resources that match the given execution wondow id.
- Filters
[]GetExecution Actions Filter 
- 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.
- executionWindow StringId 
- A filter to return only resources that match the given execution wondow id.
- filters
List<GetExecution Actions Filter> 
- 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.
- executionWindow stringId 
- A filter to return only resources that match the given execution wondow id.
- filters
GetExecution Actions Filter[] 
- 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.
- execution_window_ strid 
- A filter to return only resources that match the given execution wondow id.
- filters
Sequence[database.Get Execution Actions Filter] 
- 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.
- executionWindow StringId 
- A filter to return only resources that match the given execution wondow id.
- filters List<Property Map>
- state String
- A filter to return only resources that match the given lifecycle state exactly.
getExecutionActions Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- ExecutionActions List<GetExecution Actions Execution Action> 
- The list of execution_actions.
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName string
- The user-friendly name for the execution action. The name does not need to be unique.
- ExecutionWindow stringId 
- The OCID of the execution window resource the execution action belongs to.
- Filters
List<GetExecution Actions Filter> 
- State string
- The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS.
- CompartmentId string
- The OCID of the compartment.
- ExecutionActions []GetExecution Actions Execution Action 
- The list of execution_actions.
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName string
- The user-friendly name for the execution action. The name does not need to be unique.
- ExecutionWindow stringId 
- The OCID of the execution window resource the execution action belongs to.
- Filters
[]GetExecution Actions Filter 
- State string
- The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS.
- compartmentId String
- The OCID of the compartment.
- executionActions List<GetExecution Actions Execution Action> 
- The list of execution_actions.
- id String
- The provider-assigned unique ID for this managed resource.
- displayName String
- The user-friendly name for the execution action. The name does not need to be unique.
- executionWindow StringId 
- The OCID of the execution window resource the execution action belongs to.
- filters
List<GetExecution Actions Filter> 
- state String
- The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS.
- compartmentId string
- The OCID of the compartment.
- executionActions GetExecution Actions Execution Action[] 
- The list of execution_actions.
- id string
- The provider-assigned unique ID for this managed resource.
- displayName string
- The user-friendly name for the execution action. The name does not need to be unique.
- executionWindow stringId 
- The OCID of the execution window resource the execution action belongs to.
- filters
GetExecution Actions Filter[] 
- state string
- The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS.
- compartment_id str
- The OCID of the compartment.
- execution_actions Sequence[database.Get Execution Actions Execution Action] 
- The list of execution_actions.
- id str
- The provider-assigned unique ID for this managed resource.
- display_name str
- The user-friendly name for the execution action. The name does not need to be unique.
- execution_window_ strid 
- The OCID of the execution window resource the execution action belongs to.
- filters
Sequence[database.Get Execution Actions Filter] 
- state str
- The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS.
- compartmentId String
- The OCID of the compartment.
- executionActions List<Property Map>
- The list of execution_actions.
- id String
- The provider-assigned unique ID for this managed resource.
- displayName String
- The user-friendly name for the execution action. The name does not need to be unique.
- executionWindow StringId 
- The OCID of the execution window resource the execution action belongs to.
- filters List<Property Map>
- state String
- The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS.
Supporting Types
GetExecutionActionsExecutionAction    
- ActionMembers List<GetExecution Actions Execution Action Action Member> 
- List of action members of this execution action.
- ActionParams Dictionary<string, string>
- Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
- ActionType string
- The action type of the execution 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.
- Description string
- Description of the execution action.
- 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 time of the execution action in minutes.
- ExecutionAction intOrder 
- The priority order of the execution action.
- ExecutionWindow stringId 
- A filter to return only resources that match the given execution wondow id.
- 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 execution action.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- LifecycleSubstate string
- The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING.
- State string
- A filter to return only resources that match the given lifecycle state exactly.
- TimeCreated string
- The date and time the execution action was created.
- TimeUpdated string
- The last date and time that the execution action was updated.
- TotalTime intTaken In Mins 
- The total time taken by corresponding resource activity in minutes.
- ActionMembers []GetExecution Actions Execution Action Action Member 
- List of action members of this execution action.
- ActionParams map[string]string
- Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
- ActionType string
- The action type of the execution 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.
- Description string
- Description of the execution action.
- 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 time of the execution action in minutes.
- ExecutionAction intOrder 
- The priority order of the execution action.
- ExecutionWindow stringId 
- A filter to return only resources that match the given execution wondow id.
- 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 execution action.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- LifecycleSubstate string
- The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING.
- State string
- A filter to return only resources that match the given lifecycle state exactly.
- TimeCreated string
- The date and time the execution action was created.
- TimeUpdated string
- The last date and time that the execution action was updated.
- TotalTime intTaken In Mins 
- The total time taken by corresponding resource activity in minutes.
- actionMembers List<GetExecution Actions Execution Action Action Member> 
- List of action members of this execution action.
- actionParams Map<String,String>
- Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
- actionType String
- The action type of the execution 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.
- description String
- Description of the execution action.
- 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 time of the execution action in minutes.
- executionAction IntegerOrder 
- The priority order of the execution action.
- executionWindow StringId 
- A filter to return only resources that match the given execution wondow id.
- 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 execution action.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- lifecycleSubstate String
- The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING.
- state String
- A filter to return only resources that match the given lifecycle state exactly.
- timeCreated String
- The date and time the execution action was created.
- timeUpdated String
- The last date and time that the execution action was updated.
- totalTime IntegerTaken In Mins 
- The total time taken by corresponding resource activity in minutes.
- actionMembers GetExecution Actions Execution Action Action Member[] 
- List of action members of this execution action.
- actionParams {[key: string]: string}
- Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
- actionType string
- The action type of the execution 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.
- description string
- Description of the execution action.
- 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 time of the execution action in minutes.
- executionAction numberOrder 
- The priority order of the execution action.
- executionWindow stringId 
- A filter to return only resources that match the given execution wondow id.
- {[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 execution action.
- lifecycleDetails string
- Additional information about the current lifecycle state.
- lifecycleSubstate string
- The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING.
- state string
- A filter to return only resources that match the given lifecycle state exactly.
- timeCreated string
- The date and time the execution action was created.
- timeUpdated string
- The last date and time that the execution action was updated.
- totalTime numberTaken In Mins 
- The total time taken by corresponding resource activity in minutes.
- action_members Sequence[database.Get Execution Actions Execution Action Action Member] 
- List of action members of this execution 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 action type of the execution 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.
- description str
- Description of the execution action.
- 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 time of the execution action in minutes.
- execution_action_ intorder 
- The priority order of the execution action.
- execution_window_ strid 
- A filter to return only resources that match the given execution wondow id.
- 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 execution action.
- lifecycle_details str
- Additional information about the current lifecycle state.
- lifecycle_substate str
- The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING.
- state str
- A filter to return only resources that match the given lifecycle state exactly.
- time_created str
- The date and time the execution action was created.
- time_updated str
- The last date and time that the execution action was updated.
- total_time_ inttaken_ in_ mins 
- The total time taken by corresponding resource activity in minutes.
- actionMembers List<Property Map>
- List of action members of this execution action.
- actionParams Map<String>
- Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {"count": "3"}
- actionType String
- The action type of the execution 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.
- description String
- Description of the execution action.
- 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 time of the execution action in minutes.
- executionAction NumberOrder 
- The priority order of the execution action.
- executionWindow StringId 
- A filter to return only resources that match the given execution wondow id.
- 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 execution action.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- lifecycleSubstate String
- The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING.
- state String
- A filter to return only resources that match the given lifecycle state exactly.
- timeCreated String
- The date and time the execution action was created.
- timeUpdated String
- The last date and time that the execution action was updated.
- totalTime NumberTaken In Mins 
- The total time taken by corresponding resource activity in minutes.
GetExecutionActionsExecutionActionActionMember      
- EstimatedTime intIn Mins 
- The estimated time of the execution action in minutes.
- MemberId string
- The OCID of the parent resource the execution action belongs to.
- MemberOrder int
- The priority order of the execution action member.
- Status string
- The current status of the execution action member. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, DURATION_EXCEEDED, RESCHEDULED and COMPLETED. enum:- SCHEDULED
- IN_PROGRESS
- FAILED
- CANCELED
- DURATION_EXCEEDED
- RESCHEDULED
- SUCCEEDED
 
- TotalTime intTaken In Mins 
- The total time taken by corresponding resource activity in minutes.
- EstimatedTime intIn Mins 
- The estimated time of the execution action in minutes.
- MemberId string
- The OCID of the parent resource the execution action belongs to.
- MemberOrder int
- The priority order of the execution action member.
- Status string
- The current status of the execution action member. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, DURATION_EXCEEDED, RESCHEDULED and COMPLETED. enum:- SCHEDULED
- IN_PROGRESS
- FAILED
- CANCELED
- DURATION_EXCEEDED
- RESCHEDULED
- SUCCEEDED
 
- TotalTime intTaken In Mins 
- The total time taken by corresponding resource activity in minutes.
- estimatedTime IntegerIn Mins 
- The estimated time of the execution action in minutes.
- memberId String
- The OCID of the parent resource the execution action belongs to.
- memberOrder Integer
- The priority order of the execution action member.
- status String
- The current status of the execution action member. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, DURATION_EXCEEDED, RESCHEDULED and COMPLETED. enum:- SCHEDULED
- IN_PROGRESS
- FAILED
- CANCELED
- DURATION_EXCEEDED
- RESCHEDULED
- SUCCEEDED
 
- totalTime IntegerTaken In Mins 
- The total time taken by corresponding resource activity in minutes.
- estimatedTime numberIn Mins 
- The estimated time of the execution action in minutes.
- memberId string
- The OCID of the parent resource the execution action belongs to.
- memberOrder number
- The priority order of the execution action member.
- status string
- The current status of the execution action member. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, DURATION_EXCEEDED, RESCHEDULED and COMPLETED. enum:- SCHEDULED
- IN_PROGRESS
- FAILED
- CANCELED
- DURATION_EXCEEDED
- RESCHEDULED
- SUCCEEDED
 
- totalTime numberTaken In Mins 
- The total time taken by corresponding resource activity in minutes.
- estimated_time_ intin_ mins 
- The estimated time of the execution action in minutes.
- member_id str
- The OCID of the parent resource the execution action belongs to.
- member_order int
- The priority order of the execution action member.
- status str
- The current status of the execution action member. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, DURATION_EXCEEDED, RESCHEDULED and COMPLETED. enum:- SCHEDULED
- IN_PROGRESS
- FAILED
- CANCELED
- DURATION_EXCEEDED
- RESCHEDULED
- SUCCEEDED
 
- total_time_ inttaken_ in_ mins 
- The total time taken by corresponding resource activity in minutes.
- estimatedTime NumberIn Mins 
- The estimated time of the execution action in minutes.
- memberId String
- The OCID of the parent resource the execution action belongs to.
- memberOrder Number
- The priority order of the execution action member.
- status String
- The current status of the execution action member. Valid states are SCHEDULED, IN_PROGRESS, FAILED, CANCELED, DURATION_EXCEEDED, RESCHEDULED and COMPLETED. enum:- SCHEDULED
- IN_PROGRESS
- FAILED
- CANCELED
- DURATION_EXCEEDED
- RESCHEDULED
- SUCCEEDED
 
- totalTime NumberTaken In Mins 
- The total time taken by corresponding resource activity in minutes.
GetExecutionActionsFilter   
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.