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 Scheduled Jobs in Oracle Cloud Infrastructure Os Management Hub service. * * Lists scheduled jobs that match the specified compartment or scheduled job [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testScheduledJobs = oci.osmanagementhub.getScheduledJobs({ * compartmentId: compartmentId, * compartmentIdInSubtree: scheduledJobCompartmentIdInSubtree === "true", * displayName: scheduledJobDisplayName, * displayNameContains: scheduledJobDisplayNameContains, * dynamicSetId: testDynamicSet.id, * id: scheduledJobId, * isManagedByAutonomousLinux: scheduledJobIsManagedByAutonomousLinux === "true", * isRestricted: scheduledJobIsRestricted === "true", * lifecycleStageId: testLifecycleStage.id, * locations: scheduledJobLocation, * locationNotEqualTos: scheduledJobLocationNotEqualTo, * managedCompartmentId: testCompartment.id, * managedInstanceGroupId: testManagedInstanceGroup.id, * managedInstanceId: testManagedInstance.id, * operationType: scheduledJobOperationType, * scheduleType: scheduledJobScheduleType, * state: scheduledJobState, * timeEnd: scheduledJobTimeEnd, * timeStart: scheduledJobTimeStart, * }); * ``` */ export declare function getScheduledJobs(args?: GetScheduledJobsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getScheduledJobs. */ export interface GetScheduledJobsArgs { /** * (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. */ compartmentId?: string; /** * Indicates whether to include subcompartments in the returned results. Default is false. */ compartmentIdInSubtree?: boolean; /** * A filter to return resources that match the given user-friendly name. */ displayName?: string; /** * A filter to return resources that may partially match the given display name. */ displayNameContains?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. */ dynamicSetId?: string; filters?: inputs.OsManagementHub.GetScheduledJobsFilter[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the scheduled job. A filter to return the specified job. */ id?: string; /** * Indicates whether to list only resources managed by the Autonomous Linux service. */ isManagedByAutonomousLinux?: boolean; /** * A filter to return only restricted scheduled jobs. */ isRestricted?: boolean; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the lifecycle stage. This resource returns resources associated with this lifecycle stage. */ lifecycleStageId?: string; /** * A filter to return only resources whose location does not match the given value. */ locationNotEqualTos?: string[]; /** * A filter to return only resources whose location matches the given value. */ locations?: string[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed compartment. This filter returns resources associated with this compartment. */ managedCompartmentId?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. This filter returns resources associated with this group. */ managedInstanceGroupId?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. This filter returns resources associated with this managed instance. */ managedInstanceId?: string; /** * A filter to return only scheduled jobs with the given operation type. */ operationType?: string; /** * A filter to return only scheduled jobs of the given scheduling type (one-time or recurring). */ scheduleType?: string; /** * A filter to return only scheduled jobs currently in the given state. */ state?: string; /** * A filter to return only resources with a date on or before the given value, in ISO 8601 format. Example: 2017-07-14T02:40:00.000Z */ timeEnd?: string; /** * A filter to return only resources with a date on or after the given value, in ISO 8601 format. Example: 2017-07-14T02:40:00.000Z */ timeStart?: string; } /** * A collection of values returned by getScheduledJobs. */ export interface GetScheduledJobsResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the scheduled job. */ readonly compartmentId?: string; readonly compartmentIdInSubtree?: boolean; /** * User-friendly name for the scheduled job. */ readonly displayName?: string; readonly displayNameContains?: string; readonly dynamicSetId?: string; readonly filters?: outputs.OsManagementHub.GetScheduledJobsFilter[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the scheduled job. */ readonly id?: string; /** * Indicates whether this scheduled job is managed by the Autonomous Linux service. */ readonly isManagedByAutonomousLinux?: boolean; /** * Indicates if the schedule job has restricted update and deletion capabilities. For restricted scheduled jobs, you can update only the timeNextExecution, recurringRule, and tags. */ readonly isRestricted?: boolean; readonly lifecycleStageId?: string; readonly locationNotEqualTos?: string[]; readonly locations?: string[]; readonly managedCompartmentId?: string; readonly managedInstanceGroupId?: string; readonly managedInstanceId?: string; /** * The type of operation this scheduled job performs. */ readonly operationType?: string; /** * The type of scheduling frequency for the job. */ readonly scheduleType?: string; /** * The list of scheduled_job_collection. */ readonly scheduledJobCollections: outputs.OsManagementHub.GetScheduledJobsScheduledJobCollection[]; /** * The current state of the scheduled job. */ readonly state?: string; readonly timeEnd?: string; readonly timeStart?: string; } /** * This data source provides the list of Scheduled Jobs in Oracle Cloud Infrastructure Os Management Hub service. * * Lists scheduled jobs that match the specified compartment or scheduled job [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testScheduledJobs = oci.osmanagementhub.getScheduledJobs({ * compartmentId: compartmentId, * compartmentIdInSubtree: scheduledJobCompartmentIdInSubtree === "true", * displayName: scheduledJobDisplayName, * displayNameContains: scheduledJobDisplayNameContains, * dynamicSetId: testDynamicSet.id, * id: scheduledJobId, * isManagedByAutonomousLinux: scheduledJobIsManagedByAutonomousLinux === "true", * isRestricted: scheduledJobIsRestricted === "true", * lifecycleStageId: testLifecycleStage.id, * locations: scheduledJobLocation, * locationNotEqualTos: scheduledJobLocationNotEqualTo, * managedCompartmentId: testCompartment.id, * managedInstanceGroupId: testManagedInstanceGroup.id, * managedInstanceId: testManagedInstance.id, * operationType: scheduledJobOperationType, * scheduleType: scheduledJobScheduleType, * state: scheduledJobState, * timeEnd: scheduledJobTimeEnd, * timeStart: scheduledJobTimeStart, * }); * ``` */ export declare function getScheduledJobsOutput(args?: GetScheduledJobsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getScheduledJobs. */ export interface GetScheduledJobsOutputArgs { /** * (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment. */ compartmentId?: pulumi.Input; /** * Indicates whether to include subcompartments in the returned results. Default is false. */ compartmentIdInSubtree?: pulumi.Input; /** * A filter to return resources that match the given user-friendly name. */ displayName?: pulumi.Input; /** * A filter to return resources that may partially match the given display name. */ displayNameContains?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dynamic set. This filter returns resources associated with this dynamic set. */ dynamicSetId?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the scheduled job. A filter to return the specified job. */ id?: pulumi.Input; /** * Indicates whether to list only resources managed by the Autonomous Linux service. */ isManagedByAutonomousLinux?: pulumi.Input; /** * A filter to return only restricted scheduled jobs. */ isRestricted?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the lifecycle stage. This resource returns resources associated with this lifecycle stage. */ lifecycleStageId?: pulumi.Input; /** * A filter to return only resources whose location does not match the given value. */ locationNotEqualTos?: pulumi.Input[] | undefined>; /** * A filter to return only resources whose location matches the given value. */ locations?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed compartment. This filter returns resources associated with this compartment. */ managedCompartmentId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance group. This filter returns resources associated with this group. */ managedInstanceGroupId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the managed instance. This filter returns resources associated with this managed instance. */ managedInstanceId?: pulumi.Input; /** * A filter to return only scheduled jobs with the given operation type. */ operationType?: pulumi.Input; /** * A filter to return only scheduled jobs of the given scheduling type (one-time or recurring). */ scheduleType?: pulumi.Input; /** * A filter to return only scheduled jobs currently in the given state. */ state?: pulumi.Input; /** * A filter to return only resources with a date on or before the given value, in ISO 8601 format. Example: 2017-07-14T02:40:00.000Z */ timeEnd?: pulumi.Input; /** * A filter to return only resources with a date on or after the given value, in ISO 8601 format. Example: 2017-07-14T02:40:00.000Z */ timeStart?: pulumi.Input; } //# sourceMappingURL=getScheduledJobs.d.ts.map