1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. oci
  6. getDataccMaintenanceExecution
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi

    This data source provides details about a specific Maintenance Execution resource in Oracle Cloud Infrastructure Datacc service.

    Gets information about the specified OCID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMaintenanceExecution = oci.oci.getDataccMaintenanceExecution({
        maintenanceExecutionId: testMaintenanceExecutionOciDataccMaintenanceExecution.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_maintenance_execution = oci.oci.get_datacc_maintenance_execution(maintenance_execution_id=test_maintenance_execution_oci_datacc_maintenance_execution["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.GetDataccMaintenanceExecution(ctx, &oci.GetDataccMaintenanceExecutionArgs{
    			MaintenanceExecutionId: testMaintenanceExecutionOciDataccMaintenanceExecution.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 testMaintenanceExecution = Oci.Oci.GetDataccMaintenanceExecution.Invoke(new()
        {
            MaintenanceExecutionId = testMaintenanceExecutionOciDataccMaintenanceExecution.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.OciFunctions;
    import com.pulumi.oci.oci.inputs.GetDataccMaintenanceExecutionArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testMaintenanceExecution = OciFunctions.getDataccMaintenanceExecution(GetDataccMaintenanceExecutionArgs.builder()
                .maintenanceExecutionId(testMaintenanceExecutionOciDataccMaintenanceExecution.id())
                .build());
    
        }
    }
    
    variables:
      testMaintenanceExecution:
        fn::invoke:
          function: oci:oci:getDataccMaintenanceExecution
          arguments:
            maintenanceExecutionId: ${testMaintenanceExecutionOciDataccMaintenanceExecution.id}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_oci_getdataccmaintenanceexecution" "testMaintenanceExecution" {
      maintenance_execution_id = testMaintenanceExecutionOciDataccMaintenanceExecution.id
    }
    

    Using getDataccMaintenanceExecution

    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 getDataccMaintenanceExecution(args: GetDataccMaintenanceExecutionArgs, opts?: InvokeOptions): Promise<GetDataccMaintenanceExecutionResult>
    function getDataccMaintenanceExecutionOutput(args: GetDataccMaintenanceExecutionOutputArgs, opts?: InvokeOptions): Output<GetDataccMaintenanceExecutionResult>
    def get_datacc_maintenance_execution(maintenance_execution_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetDataccMaintenanceExecutionResult
    def get_datacc_maintenance_execution_output(maintenance_execution_id: pulumi.Input[Optional[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetDataccMaintenanceExecutionResult]
    func GetDataccMaintenanceExecution(ctx *Context, args *GetDataccMaintenanceExecutionArgs, opts ...InvokeOption) (*GetDataccMaintenanceExecutionResult, error)
    func GetDataccMaintenanceExecutionOutput(ctx *Context, args *GetDataccMaintenanceExecutionOutputArgs, opts ...InvokeOption) GetDataccMaintenanceExecutionResultOutput

    > Note: This function is named GetDataccMaintenanceExecution in the Go SDK.

    public static class GetDataccMaintenanceExecution 
    {
        public static Task<GetDataccMaintenanceExecutionResult> InvokeAsync(GetDataccMaintenanceExecutionArgs args, InvokeOptions? opts = null)
        public static Output<GetDataccMaintenanceExecutionResult> Invoke(GetDataccMaintenanceExecutionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDataccMaintenanceExecutionResult> getDataccMaintenanceExecution(GetDataccMaintenanceExecutionArgs args, InvokeOptions options)
    public static Output<GetDataccMaintenanceExecutionResult> getDataccMaintenanceExecution(GetDataccMaintenanceExecutionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getDataccMaintenanceExecution:getDataccMaintenanceExecution
      arguments:
        # arguments dictionary
    data "oci_oci_get_datacc_maintenance_execution" "name" {
        # arguments
    }

    The following arguments are supported:

    MaintenanceExecutionId string
    The maintenance execution OCID.
    MaintenanceExecutionId string
    The maintenance execution OCID.
    maintenance_execution_id string
    The maintenance execution OCID.
    maintenanceExecutionId String
    The maintenance execution OCID.
    maintenanceExecutionId string
    The maintenance execution OCID.
    maintenance_execution_id str
    The maintenance execution OCID.
    maintenanceExecutionId String
    The maintenance execution OCID.

    getDataccMaintenanceExecution Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment.
    CustomActionTimeoutInMins int
    Determines the amount of time the system will wait before the start of each compute server patching operation. Supported values are 15 to 120 minutes.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Description of the maintenance run execution.
    DisplayName string
    The user-friendly name for the maintenance run execution.
    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    The provider-assigned unique ID for this managed resource.
    InfrastructureId string
    The OCID of the Database Infrastructure on which the maintenance run execution occurred.
    IsCustomActionTimeoutEnabled bool
    At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.
    LifecycleDetails string
    Additional information about the current lifecycle state.
    MaintenanceExecutionId string
    MaintenanceRunId string
    The OCID of the maintenance run to which this maintenance execution belongs.
    MaintenanceSubtype string
    Maintenance run execution sub-type.
    MaintenanceType string
    Maintenance type.
    PatchingMode string
    The patching mode for the maintenance run that is being executed.
    SourceVersion string
    The source software version for the Oracle infrastructure.
    State string
    The state of the maintenance run execution.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetResourceType string
    The type of the target resource on which the maintenance run execution occurred.
    TargetVersion string
    The target software version for the Database Infrastructure patching operation.
    TimeEnded string
    The date and time the maintenance run was completed.
    TimeStarted string
    The date and time the maintenance run execution started.
    TotalTimeTakenInMins int
    The total time taken by this execution in minutes.
    WorkflowId string
    The OCID of the work request executed by this execution.
    CompartmentId string
    The OCID of the compartment.
    CustomActionTimeoutInMins int
    Determines the amount of time the system will wait before the start of each compute server patching operation. Supported values are 15 to 120 minutes.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Description of the maintenance run execution.
    DisplayName string
    The user-friendly name for the maintenance run execution.
    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    The provider-assigned unique ID for this managed resource.
    InfrastructureId string
    The OCID of the Database Infrastructure on which the maintenance run execution occurred.
    IsCustomActionTimeoutEnabled bool
    At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.
    LifecycleDetails string
    Additional information about the current lifecycle state.
    MaintenanceExecutionId string
    MaintenanceRunId string
    The OCID of the maintenance run to which this maintenance execution belongs.
    MaintenanceSubtype string
    Maintenance run execution sub-type.
    MaintenanceType string
    Maintenance type.
    PatchingMode string
    The patching mode for the maintenance run that is being executed.
    SourceVersion string
    The source software version for the Oracle infrastructure.
    State string
    The state of the maintenance run execution.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetResourceType string
    The type of the target resource on which the maintenance run execution occurred.
    TargetVersion string
    The target software version for the Database Infrastructure patching operation.
    TimeEnded string
    The date and time the maintenance run was completed.
    TimeStarted string
    The date and time the maintenance run execution started.
    TotalTimeTakenInMins int
    The total time taken by this execution in minutes.
    WorkflowId string
    The OCID of the work request executed by this execution.
    compartment_id string
    The OCID of the compartment.
    custom_action_timeout_in_mins number
    Determines the amount of time the system will wait before the start of each compute server patching operation. Supported values are 15 to 120 minutes.
    defined_tags map(string)
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    Description of the maintenance run execution.
    display_name string
    The user-friendly name for the maintenance run execution.
    freeform_tags map(string)
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    The provider-assigned unique ID for this managed resource.
    infrastructure_id string
    The OCID of the Database Infrastructure on which the maintenance run execution occurred.
    is_custom_action_timeout_enabled bool
    At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.
    lifecycle_details string
    Additional information about the current lifecycle state.
    maintenance_execution_id string
    maintenance_run_id string
    The OCID of the maintenance run to which this maintenance execution belongs.
    maintenance_subtype string
    Maintenance run execution sub-type.
    maintenance_type string
    Maintenance type.
    patching_mode string
    The patching mode for the maintenance run that is being executed.
    source_version string
    The source software version for the Oracle infrastructure.
    state string
    The state of the maintenance run execution.
    system_tags map(string)
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    target_resource_type string
    The type of the target resource on which the maintenance run execution occurred.
    target_version string
    The target software version for the Database Infrastructure patching operation.
    time_ended string
    The date and time the maintenance run was completed.
    time_started string
    The date and time the maintenance run execution started.
    total_time_taken_in_mins number
    The total time taken by this execution in minutes.
    workflow_id string
    The OCID of the work request executed by this execution.
    compartmentId String
    The OCID of the compartment.
    customActionTimeoutInMins Integer
    Determines the amount of time the system will wait before the start of each compute server patching operation. Supported values are 15 to 120 minutes.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Description of the maintenance run execution.
    displayName String
    The user-friendly name for the maintenance run execution.
    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    The provider-assigned unique ID for this managed resource.
    infrastructureId String
    The OCID of the Database Infrastructure on which the maintenance run execution occurred.
    isCustomActionTimeoutEnabled Boolean
    At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.
    lifecycleDetails String
    Additional information about the current lifecycle state.
    maintenanceExecutionId String
    maintenanceRunId String
    The OCID of the maintenance run to which this maintenance execution belongs.
    maintenanceSubtype String
    Maintenance run execution sub-type.
    maintenanceType String
    Maintenance type.
    patchingMode String
    The patching mode for the maintenance run that is being executed.
    sourceVersion String
    The source software version for the Oracle infrastructure.
    state String
    The state of the maintenance run execution.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceType String
    The type of the target resource on which the maintenance run execution occurred.
    targetVersion String
    The target software version for the Database Infrastructure patching operation.
    timeEnded String
    The date and time the maintenance run was completed.
    timeStarted String
    The date and time the maintenance run execution started.
    totalTimeTakenInMins Integer
    The total time taken by this execution in minutes.
    workflowId String
    The OCID of the work request executed by this execution.
    compartmentId string
    The OCID of the compartment.
    customActionTimeoutInMins number
    Determines the amount of time the system will wait before the start of each compute server patching operation. Supported values are 15 to 120 minutes.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    Description of the maintenance run execution.
    displayName string
    The user-friendly name for the maintenance run execution.
    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    The provider-assigned unique ID for this managed resource.
    infrastructureId string
    The OCID of the Database Infrastructure on which the maintenance run execution occurred.
    isCustomActionTimeoutEnabled boolean
    At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.
    lifecycleDetails string
    Additional information about the current lifecycle state.
    maintenanceExecutionId string
    maintenanceRunId string
    The OCID of the maintenance run to which this maintenance execution belongs.
    maintenanceSubtype string
    Maintenance run execution sub-type.
    maintenanceType string
    Maintenance type.
    patchingMode string
    The patching mode for the maintenance run that is being executed.
    sourceVersion string
    The source software version for the Oracle infrastructure.
    state string
    The state of the maintenance run execution.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceType string
    The type of the target resource on which the maintenance run execution occurred.
    targetVersion string
    The target software version for the Database Infrastructure patching operation.
    timeEnded string
    The date and time the maintenance run was completed.
    timeStarted string
    The date and time the maintenance run execution started.
    totalTimeTakenInMins number
    The total time taken by this execution in minutes.
    workflowId string
    The OCID of the work request executed by this execution.
    compartment_id str
    The OCID of the compartment.
    custom_action_timeout_in_mins int
    Determines the amount of time the system will wait before the start of each compute server patching operation. Supported values are 15 to 120 minutes.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    Description of the maintenance run execution.
    display_name str
    The user-friendly name for the maintenance run execution.
    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    The provider-assigned unique ID for this managed resource.
    infrastructure_id str
    The OCID of the Database Infrastructure on which the maintenance run execution occurred.
    is_custom_action_timeout_enabled bool
    At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.
    lifecycle_details str
    Additional information about the current lifecycle state.
    maintenance_execution_id str
    maintenance_run_id str
    The OCID of the maintenance run to which this maintenance execution belongs.
    maintenance_subtype str
    Maintenance run execution sub-type.
    maintenance_type str
    Maintenance type.
    patching_mode str
    The patching mode for the maintenance run that is being executed.
    source_version str
    The source software version for the Oracle infrastructure.
    state str
    The state of the maintenance run execution.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    target_resource_type str
    The type of the target resource on which the maintenance run execution occurred.
    target_version str
    The target software version for the Database Infrastructure patching operation.
    time_ended str
    The date and time the maintenance run was completed.
    time_started str
    The date and time the maintenance run execution started.
    total_time_taken_in_mins int
    The total time taken by this execution in minutes.
    workflow_id str
    The OCID of the work request executed by this execution.
    compartmentId String
    The OCID of the compartment.
    customActionTimeoutInMins Number
    Determines the amount of time the system will wait before the start of each compute server patching operation. Supported values are 15 to 120 minutes.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Description of the maintenance run execution.
    displayName String
    The user-friendly name for the maintenance run execution.
    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    The provider-assigned unique ID for this managed resource.
    infrastructureId String
    The OCID of the Database Infrastructure on which the maintenance run execution occurred.
    isCustomActionTimeoutEnabled Boolean
    At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.
    lifecycleDetails String
    Additional information about the current lifecycle state.
    maintenanceExecutionId String
    maintenanceRunId String
    The OCID of the maintenance run to which this maintenance execution belongs.
    maintenanceSubtype String
    Maintenance run execution sub-type.
    maintenanceType String
    Maintenance type.
    patchingMode String
    The patching mode for the maintenance run that is being executed.
    sourceVersion String
    The source software version for the Oracle infrastructure.
    state String
    The state of the maintenance run execution.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceType String
    The type of the target resource on which the maintenance run execution occurred.
    targetVersion String
    The target software version for the Database Infrastructure patching operation.
    timeEnded String
    The date and time the maintenance run was completed.
    timeStarted String
    The date and time the maintenance run execution started.
    totalTimeTakenInMins Number
    The total time taken by this execution in minutes.
    workflowId String
    The OCID of the work request executed by this execution.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.20.0
    published on Wednesday, Jul 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial