import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Maintenance Runs in Oracle Cloud Infrastructure Database service. * * Gets a list of the maintenance runs in the specified compartment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMaintenanceRuns = oci.database.getMaintenanceRuns({ * compartmentId: compartmentId, * availabilityDomain: maintenanceRunAvailabilityDomain, * isLocalAdg: maintenanceRunIsLocalAdg === "true", * maintenanceSubtype: maintenanceRunMaintenanceSubtype, * maintenanceType: maintenanceRunMaintenanceType, * state: maintenanceRunState, * targetResourceId: testTargetResource.id, * targetResourceType: maintenanceRunTargetResourceType, * }); * ``` */ export declare function getMaintenanceRuns(args: GetMaintenanceRunsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getMaintenanceRuns. */ export interface GetMaintenanceRunsArgs { /** * A filter to return only resources that match the given availability domain exactly. */ availabilityDomain?: string; /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: string; filters?: inputs.Database.GetMaintenanceRunsFilter[]; /** * A filter to return the maintenance history results for the local standby Autonomous AI Database Serverless only. */ isLocalAdg?: boolean; /** * The sub-type of the maintenance run. */ maintenanceSubtype?: string; /** * The maintenance type. */ maintenanceType?: string; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: string; /** * The target resource ID. */ targetResourceId?: string; /** * The type of the target resource. Accepted values are: AUTONOMOUS_CONTAINER_DATABASE, AUTONOMOUS_EXADATA_INFRASTRUCTURE, EXADATA_DB_SYSTEM */ targetResourceType?: string; } /** * A collection of values returned by getMaintenanceRuns. */ export interface GetMaintenanceRunsResult { readonly availabilityDomain?: string; /** * The OCID of the compartment. */ readonly compartmentId: string; readonly filters?: outputs.Database.GetMaintenanceRunsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly isLocalAdg?: boolean; /** * The list of maintenance_runs. */ readonly maintenanceRuns: outputs.Database.GetMaintenanceRunsMaintenanceRun[]; /** * Maintenance sub-type. */ readonly maintenanceSubtype?: string; /** * Maintenance type. */ readonly maintenanceType?: string; /** * The current state of the maintenance run. For Autonomous AI Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED. */ readonly state?: string; /** * The ID of the target resource on which the maintenance run occurs. */ readonly targetResourceId?: string; /** * The type of the target resource on which the maintenance run occurs. */ readonly targetResourceType?: string; } /** * This data source provides the list of Maintenance Runs in Oracle Cloud Infrastructure Database service. * * Gets a list of the maintenance runs in the specified compartment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMaintenanceRuns = oci.database.getMaintenanceRuns({ * compartmentId: compartmentId, * availabilityDomain: maintenanceRunAvailabilityDomain, * isLocalAdg: maintenanceRunIsLocalAdg === "true", * maintenanceSubtype: maintenanceRunMaintenanceSubtype, * maintenanceType: maintenanceRunMaintenanceType, * state: maintenanceRunState, * targetResourceId: testTargetResource.id, * targetResourceType: maintenanceRunTargetResourceType, * }); * ``` */ export declare function getMaintenanceRunsOutput(args: GetMaintenanceRunsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getMaintenanceRuns. */ export interface GetMaintenanceRunsOutputArgs { /** * A filter to return only resources that match the given availability domain exactly. */ availabilityDomain?: pulumi.Input; /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return the maintenance history results for the local standby Autonomous AI Database Serverless only. */ isLocalAdg?: pulumi.Input; /** * The sub-type of the maintenance run. */ maintenanceSubtype?: pulumi.Input; /** * The maintenance type. */ maintenanceType?: pulumi.Input; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: pulumi.Input; /** * The target resource ID. */ targetResourceId?: pulumi.Input; /** * The type of the target resource. Accepted values are: AUTONOMOUS_CONTAINER_DATABASE, AUTONOMOUS_EXADATA_INFRASTRUCTURE, EXADATA_DB_SYSTEM */ targetResourceType?: pulumi.Input; } //# sourceMappingURL=getMaintenanceRuns.d.ts.map