1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getMaintenanceRun
Oracle Cloud Infrastructure v1.16.0 published on Thursday, Nov 2, 2023 by Pulumi

oci.Database.getMaintenanceRun

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.16.0 published on Thursday, Nov 2, 2023 by Pulumi

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

    Gets information about the specified maintenance run.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testMaintenanceRun = Oci.Database.GetMaintenanceRun.Invoke(new()
        {
            MaintenanceRunId = oci_database_maintenance_run.Test_maintenance_run.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Database.GetMaintenanceRun(ctx, &database.GetMaintenanceRunArgs{
    			MaintenanceRunId: oci_database_maintenance_run.Test_maintenance_run.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.GetMaintenanceRunArgs;
    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 testMaintenanceRun = DatabaseFunctions.getMaintenanceRun(GetMaintenanceRunArgs.builder()
                .maintenanceRunId(oci_database_maintenance_run.test_maintenance_run().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_maintenance_run = oci.Database.get_maintenance_run(maintenance_run_id=oci_database_maintenance_run["test_maintenance_run"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMaintenanceRun = oci.Database.getMaintenanceRun({
        maintenanceRunId: oci_database_maintenance_run.test_maintenance_run.id,
    });
    
    variables:
      testMaintenanceRun:
        fn::invoke:
          Function: oci:Database:getMaintenanceRun
          Arguments:
            maintenanceRunId: ${oci_database_maintenance_run.test_maintenance_run.id}
    

    Using getMaintenanceRun

    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 getMaintenanceRun(args: GetMaintenanceRunArgs, opts?: InvokeOptions): Promise<GetMaintenanceRunResult>
    function getMaintenanceRunOutput(args: GetMaintenanceRunOutputArgs, opts?: InvokeOptions): Output<GetMaintenanceRunResult>
    def get_maintenance_run(maintenance_run_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetMaintenanceRunResult
    def get_maintenance_run_output(maintenance_run_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetMaintenanceRunResult]
    func GetMaintenanceRun(ctx *Context, args *GetMaintenanceRunArgs, opts ...InvokeOption) (*GetMaintenanceRunResult, error)
    func GetMaintenanceRunOutput(ctx *Context, args *GetMaintenanceRunOutputArgs, opts ...InvokeOption) GetMaintenanceRunResultOutput

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

    public static class GetMaintenanceRun 
    {
        public static Task<GetMaintenanceRunResult> InvokeAsync(GetMaintenanceRunArgs args, InvokeOptions? opts = null)
        public static Output<GetMaintenanceRunResult> Invoke(GetMaintenanceRunInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMaintenanceRunResult> getMaintenanceRun(GetMaintenanceRunArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getMaintenanceRun:getMaintenanceRun
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MaintenanceRunId string

    The maintenance run OCID.

    MaintenanceRunId string

    The maintenance run OCID.

    maintenanceRunId String

    The maintenance run OCID.

    maintenanceRunId string

    The maintenance run OCID.

    maintenance_run_id str

    The maintenance run OCID.

    maintenanceRunId String

    The maintenance run OCID.

    getMaintenanceRun Result

    The following output properties are available:

    CompartmentId string

    The OCID of the compartment.

    CurrentCustomActionTimeoutInMins int

    Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.

    CurrentPatchingComponent string

    The name of the current infrastruture component that is getting patched.

    CustomActionTimeoutInMins int

    Determines the amount of time the system will wait before the start of each database server patching operation. Specify a number of minutes, from 15 to 120.

    Description string

    Description of the maintenance run.

    DisplayName string

    The user-friendly name for the maintenance run.

    EstimatedComponentPatchingStartTime string

    The estimated start time of the next infrastruture component patching operation.

    EstimatedPatchingTimes List<GetMaintenanceRunEstimatedPatchingTime>

    The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching).

    Id string

    The OCID of the maintenance run.

    IsCustomActionTimeoutEnabled bool

    If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.

    IsDstFileUpdateEnabled bool

    Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database. If enabled along with Release Update, patching will be done in a Non-Rolling manner.

    LifecycleDetails string

    Additional information about the current lifecycle state.

    MaintenanceRunId string
    MaintenanceSubtype string

    Maintenance sub-type.

    MaintenanceType string

    Maintenance type.

    PatchFailureCount int

    Contain the patch failure count.

    PatchId string

    The unique identifier of the patch. The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier ru_patch_19.9.0.0_201030 is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020.

    PatchType string
    PatchingEndTime string

    The time when the patching operation ended.

    PatchingMode string

    Cloud Exadata infrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

    PatchingStartTime string

    The time when the patching operation started.

    PatchingStatus string

    The status of the patching operation.

    PeerMaintenanceRunId string

    The OCID of the maintenance run for the Autonomous Data Guard association's peer container database.

    State string

    The current state of the maintenance run. For Autonomous Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED.

    TargetDbServerVersion string

    The target software version for the database server patching operation.

    TargetResourceId string

    The ID of the target resource on which the maintenance run occurs.

    TargetResourceType string

    The type of the target resource on which the maintenance run occurs.

    TargetStorageServerVersion string

    The target Cell version that is to be patched to.

    TimeEnded string

    The date and time the maintenance run was completed.

    TimeScheduled string

    The date and time the maintenance run is scheduled to occur.

    TimeStarted string

    The date and time the maintenance run starts.

    CompartmentId string

    The OCID of the compartment.

    CurrentCustomActionTimeoutInMins int

    Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.

    CurrentPatchingComponent string

    The name of the current infrastruture component that is getting patched.

    CustomActionTimeoutInMins int

    Determines the amount of time the system will wait before the start of each database server patching operation. Specify a number of minutes, from 15 to 120.

    Description string

    Description of the maintenance run.

    DisplayName string

    The user-friendly name for the maintenance run.

    EstimatedComponentPatchingStartTime string

    The estimated start time of the next infrastruture component patching operation.

    EstimatedPatchingTimes []GetMaintenanceRunEstimatedPatchingTime

    The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching).

    Id string

    The OCID of the maintenance run.

    IsCustomActionTimeoutEnabled bool

    If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.

    IsDstFileUpdateEnabled bool

    Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database. If enabled along with Release Update, patching will be done in a Non-Rolling manner.

    LifecycleDetails string

    Additional information about the current lifecycle state.

    MaintenanceRunId string
    MaintenanceSubtype string

    Maintenance sub-type.

    MaintenanceType string

    Maintenance type.

    PatchFailureCount int

    Contain the patch failure count.

    PatchId string

    The unique identifier of the patch. The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier ru_patch_19.9.0.0_201030 is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020.

    PatchType string
    PatchingEndTime string

    The time when the patching operation ended.

    PatchingMode string

    Cloud Exadata infrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

    PatchingStartTime string

    The time when the patching operation started.

    PatchingStatus string

    The status of the patching operation.

    PeerMaintenanceRunId string

    The OCID of the maintenance run for the Autonomous Data Guard association's peer container database.

    State string

    The current state of the maintenance run. For Autonomous Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED.

    TargetDbServerVersion string

    The target software version for the database server patching operation.

    TargetResourceId string

    The ID of the target resource on which the maintenance run occurs.

    TargetResourceType string

    The type of the target resource on which the maintenance run occurs.

    TargetStorageServerVersion string

    The target Cell version that is to be patched to.

    TimeEnded string

    The date and time the maintenance run was completed.

    TimeScheduled string

    The date and time the maintenance run is scheduled to occur.

    TimeStarted string

    The date and time the maintenance run starts.

    compartmentId String

    The OCID of the compartment.

    currentCustomActionTimeoutInMins Integer

    Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.

    currentPatchingComponent String

    The name of the current infrastruture component that is getting patched.

    customActionTimeoutInMins Integer

    Determines the amount of time the system will wait before the start of each database server patching operation. Specify a number of minutes, from 15 to 120.

    description String

    Description of the maintenance run.

    displayName String

    The user-friendly name for the maintenance run.

    estimatedComponentPatchingStartTime String

    The estimated start time of the next infrastruture component patching operation.

    estimatedPatchingTimes List<GetMaintenanceRunEstimatedPatchingTime>

    The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching).

    id String

    The OCID of the maintenance run.

    isCustomActionTimeoutEnabled Boolean

    If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.

    isDstFileUpdateEnabled Boolean

    Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database. If enabled along with Release Update, patching will be done in a Non-Rolling manner.

    lifecycleDetails String

    Additional information about the current lifecycle state.

    maintenanceRunId String
    maintenanceSubtype String

    Maintenance sub-type.

    maintenanceType String

    Maintenance type.

    patchFailureCount Integer

    Contain the patch failure count.

    patchId String

    The unique identifier of the patch. The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier ru_patch_19.9.0.0_201030 is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020.

    patchType String
    patchingEndTime String

    The time when the patching operation ended.

    patchingMode String

    Cloud Exadata infrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

    patchingStartTime String

    The time when the patching operation started.

    patchingStatus String

    The status of the patching operation.

    peerMaintenanceRunId String

    The OCID of the maintenance run for the Autonomous Data Guard association's peer container database.

    state String

    The current state of the maintenance run. For Autonomous Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED.

    targetDbServerVersion String

    The target software version for the database server patching operation.

    targetResourceId String

    The ID of the target resource on which the maintenance run occurs.

    targetResourceType String

    The type of the target resource on which the maintenance run occurs.

    targetStorageServerVersion String

    The target Cell version that is to be patched to.

    timeEnded String

    The date and time the maintenance run was completed.

    timeScheduled String

    The date and time the maintenance run is scheduled to occur.

    timeStarted String

    The date and time the maintenance run starts.

    compartmentId string

    The OCID of the compartment.

    currentCustomActionTimeoutInMins number

    Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.

    currentPatchingComponent string

    The name of the current infrastruture component that is getting patched.

    customActionTimeoutInMins number

    Determines the amount of time the system will wait before the start of each database server patching operation. Specify a number of minutes, from 15 to 120.

    description string

    Description of the maintenance run.

    displayName string

    The user-friendly name for the maintenance run.

    estimatedComponentPatchingStartTime string

    The estimated start time of the next infrastruture component patching operation.

    estimatedPatchingTimes GetMaintenanceRunEstimatedPatchingTime[]

    The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching).

    id string

    The OCID of the maintenance run.

    isCustomActionTimeoutEnabled boolean

    If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.

    isDstFileUpdateEnabled boolean

    Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database. If enabled along with Release Update, patching will be done in a Non-Rolling manner.

    lifecycleDetails string

    Additional information about the current lifecycle state.

    maintenanceRunId string
    maintenanceSubtype string

    Maintenance sub-type.

    maintenanceType string

    Maintenance type.

    patchFailureCount number

    Contain the patch failure count.

    patchId string

    The unique identifier of the patch. The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier ru_patch_19.9.0.0_201030 is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020.

    patchType string
    patchingEndTime string

    The time when the patching operation ended.

    patchingMode string

    Cloud Exadata infrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

    patchingStartTime string

    The time when the patching operation started.

    patchingStatus string

    The status of the patching operation.

    peerMaintenanceRunId string

    The OCID of the maintenance run for the Autonomous Data Guard association's peer container database.

    state string

    The current state of the maintenance run. For Autonomous Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED.

    targetDbServerVersion string

    The target software version for the database server patching operation.

    targetResourceId string

    The ID of the target resource on which the maintenance run occurs.

    targetResourceType string

    The type of the target resource on which the maintenance run occurs.

    targetStorageServerVersion string

    The target Cell version that is to be patched to.

    timeEnded string

    The date and time the maintenance run was completed.

    timeScheduled string

    The date and time the maintenance run is scheduled to occur.

    timeStarted string

    The date and time the maintenance run starts.

    compartment_id str

    The OCID of the compartment.

    current_custom_action_timeout_in_mins int

    Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.

    current_patching_component str

    The name of the current infrastruture component that is getting patched.

    custom_action_timeout_in_mins int

    Determines the amount of time the system will wait before the start of each database server patching operation. Specify a number of minutes, from 15 to 120.

    description str

    Description of the maintenance run.

    display_name str

    The user-friendly name for the maintenance run.

    estimated_component_patching_start_time str

    The estimated start time of the next infrastruture component patching operation.

    estimated_patching_times GetMaintenanceRunEstimatedPatchingTime]

    The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching).

    id str

    The OCID of the maintenance run.

    is_custom_action_timeout_enabled bool

    If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.

    is_dst_file_update_enabled bool

    Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database. If enabled along with Release Update, patching will be done in a Non-Rolling manner.

    lifecycle_details str

    Additional information about the current lifecycle state.

    maintenance_run_id str
    maintenance_subtype str

    Maintenance sub-type.

    maintenance_type str

    Maintenance type.

    patch_failure_count int

    Contain the patch failure count.

    patch_id str

    The unique identifier of the patch. The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier ru_patch_19.9.0.0_201030 is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020.

    patch_type str
    patching_end_time str

    The time when the patching operation ended.

    patching_mode str

    Cloud Exadata infrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

    patching_start_time str

    The time when the patching operation started.

    patching_status str

    The status of the patching operation.

    peer_maintenance_run_id str

    The OCID of the maintenance run for the Autonomous Data Guard association's peer container database.

    state str

    The current state of the maintenance run. For Autonomous Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED.

    target_db_server_version str

    The target software version for the database server patching operation.

    target_resource_id str

    The ID of the target resource on which the maintenance run occurs.

    target_resource_type str

    The type of the target resource on which the maintenance run occurs.

    target_storage_server_version str

    The target Cell version that is to be patched to.

    time_ended str

    The date and time the maintenance run was completed.

    time_scheduled str

    The date and time the maintenance run is scheduled to occur.

    time_started str

    The date and time the maintenance run starts.

    compartmentId String

    The OCID of the compartment.

    currentCustomActionTimeoutInMins Number

    Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.

    currentPatchingComponent String

    The name of the current infrastruture component that is getting patched.

    customActionTimeoutInMins Number

    Determines the amount of time the system will wait before the start of each database server patching operation. Specify a number of minutes, from 15 to 120.

    description String

    Description of the maintenance run.

    displayName String

    The user-friendly name for the maintenance run.

    estimatedComponentPatchingStartTime String

    The estimated start time of the next infrastruture component patching operation.

    estimatedPatchingTimes List<Property Map>

    The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching).

    id String

    The OCID of the maintenance run.

    isCustomActionTimeoutEnabled Boolean

    If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.

    isDstFileUpdateEnabled Boolean

    Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database. If enabled along with Release Update, patching will be done in a Non-Rolling manner.

    lifecycleDetails String

    Additional information about the current lifecycle state.

    maintenanceRunId String
    maintenanceSubtype String

    Maintenance sub-type.

    maintenanceType String

    Maintenance type.

    patchFailureCount Number

    Contain the patch failure count.

    patchId String

    The unique identifier of the patch. The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier ru_patch_19.9.0.0_201030 is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020.

    patchType String
    patchingEndTime String

    The time when the patching operation ended.

    patchingMode String

    Cloud Exadata infrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

    patchingStartTime String

    The time when the patching operation started.

    patchingStatus String

    The status of the patching operation.

    peerMaintenanceRunId String

    The OCID of the maintenance run for the Autonomous Data Guard association's peer container database.

    state String

    The current state of the maintenance run. For Autonomous Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED.

    targetDbServerVersion String

    The target software version for the database server patching operation.

    targetResourceId String

    The ID of the target resource on which the maintenance run occurs.

    targetResourceType String

    The type of the target resource on which the maintenance run occurs.

    targetStorageServerVersion String

    The target Cell version that is to be patched to.

    timeEnded String

    The date and time the maintenance run was completed.

    timeScheduled String

    The date and time the maintenance run is scheduled to occur.

    timeStarted String

    The date and time the maintenance run starts.

    Supporting Types

    GetMaintenanceRunEstimatedPatchingTime

    EstimatedDbServerPatchingTime int

    The estimated time required in minutes for database server patching.

    EstimatedNetworkSwitchesPatchingTime int

    The estimated time required in minutes for network switch patching.

    EstimatedStorageServerPatchingTime int

    The estimated time required in minutes for storage server patching.

    TotalEstimatedPatchingTime int

    The estimated total time required in minutes for all patching operations.

    EstimatedDbServerPatchingTime int

    The estimated time required in minutes for database server patching.

    EstimatedNetworkSwitchesPatchingTime int

    The estimated time required in minutes for network switch patching.

    EstimatedStorageServerPatchingTime int

    The estimated time required in minutes for storage server patching.

    TotalEstimatedPatchingTime int

    The estimated total time required in minutes for all patching operations.

    estimatedDbServerPatchingTime Integer

    The estimated time required in minutes for database server patching.

    estimatedNetworkSwitchesPatchingTime Integer

    The estimated time required in minutes for network switch patching.

    estimatedStorageServerPatchingTime Integer

    The estimated time required in minutes for storage server patching.

    totalEstimatedPatchingTime Integer

    The estimated total time required in minutes for all patching operations.

    estimatedDbServerPatchingTime number

    The estimated time required in minutes for database server patching.

    estimatedNetworkSwitchesPatchingTime number

    The estimated time required in minutes for network switch patching.

    estimatedStorageServerPatchingTime number

    The estimated time required in minutes for storage server patching.

    totalEstimatedPatchingTime number

    The estimated total time required in minutes for all patching operations.

    estimated_db_server_patching_time int

    The estimated time required in minutes for database server patching.

    estimated_network_switches_patching_time int

    The estimated time required in minutes for network switch patching.

    estimated_storage_server_patching_time int

    The estimated time required in minutes for storage server patching.

    total_estimated_patching_time int

    The estimated total time required in minutes for all patching operations.

    estimatedDbServerPatchingTime Number

    The estimated time required in minutes for database server patching.

    estimatedNetworkSwitchesPatchingTime Number

    The estimated time required in minutes for network switch patching.

    estimatedStorageServerPatchingTime Number

    The estimated time required in minutes for storage server patching.

    totalEstimatedPatchingTime Number

    The estimated total time required in minutes for all patching operations.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the oci Terraform Provider.

    oci logo
    Oracle Cloud Infrastructure v1.16.0 published on Thursday, Nov 2, 2023 by Pulumi