import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Scheduled Job resource in Oracle Cloud Infrastructure Os Management Hub service. * * Gets information about the specified scheduled job. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testScheduledJob = oci.osmanagementhub.getScheduledJob({ * scheduledJobId: testScheduledJobOciOsManagementHubScheduledJob.id, * }); * ``` */ export declare function getScheduledJob(args: GetScheduledJobArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getScheduledJob. */ export interface GetScheduledJobArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the scheduled job. */ scheduledJobId: string; } /** * A collection of values returned by getScheduledJob. */ export interface GetScheduledJobResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the scheduled job. */ readonly compartmentId: string; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: { [key: string]: string; }; /** * User-specified description for the scheduled job. */ readonly description: string; /** * User-friendly name for the scheduled job. */ readonly displayName: string; /** * The dynamic set [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target. therefore this parameter is mutually exclusive with managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds. */ readonly dynamicSetIds: 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: { [key: string]: string; }; /** * 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; /** * Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment). */ readonly isSubcompartmentIncluded: boolean; /** * The lifecycle stage [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceIds, managedInstanceGroupIds, managedCompartmentIds, and dynamicSetIds. */ readonly lifecycleStageIds: string[]; /** * The list of locations this scheduled job should operate on for a job targeting on compartments. (Empty list means apply to all locations). This can only be set when managedCompartmentIds is not empty. */ readonly locations: string[]; /** * The compartment [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceIds, managedInstanceGroupIds, and lifecycleStageIds. */ readonly managedCompartmentIds: string[]; /** * The managed instance group [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceIds, managedCompartmentIds, and lifecycleStageIds. */ readonly managedInstanceGroupIds: string[]; /** * The managed instance [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceGroupIds, managedCompartmentIds, and lifecycleStageIds. */ readonly managedInstanceIds: string[]; /** * The list of operations this scheduled job needs to perform. A scheduled job supports only one operation type, unless it is one of the following: * * UPDATE_PACKAGES * * UPDATE_ALL * * UPDATE_SECURITY * * UPDATE_BUGFIX * * UPDATE_ENHANCEMENT * * UPDATE_OTHER * * UPDATE_KSPLICE_USERSPACE * * UPDATE_KSPLICE_KERNEL */ readonly operations: outputs.OsManagementHub.GetScheduledJobOperation[]; /** * The frequency schedule for a recurring scheduled job in the [RFC5535](https://www.rfc-editor.org/rfc/rfc5535) format. Currently, only FREQ/INTERVAL/BYMONTHDAY/BYDAY/BYSETPOS/BYMONTH/BYHOUR/BYMINUTE/BYSECOND rules are supported. In FREQ, only YEARLY, MONTHLY, WEEKLY, DAILY", HOURLY are supported. */ readonly recurringRule: string; /** * The amount of time in minutes to wait until retrying the scheduled job. If set, the service will automatically retry a failed scheduled job after the interval. For example, you could set the interval to [2,5,10]. If the initial execution of the job fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries. */ readonly retryIntervals: number[]; /** * The type of scheduling frequency for the job. */ readonly scheduleType: string; readonly scheduledJobId: string; /** * The current state of the scheduled job. */ readonly state: string; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: { [key: string]: string; }; /** * The time this scheduled job was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). */ readonly timeCreated: string; /** * The time of the last execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). */ readonly timeLastExecution: string; /** * The time of the next execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). */ readonly timeNextExecution: string; /** * The time this scheduled job was updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). */ readonly timeUpdated: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the work request that will be rerun. */ readonly workRequestId: string; /** * The list of work request [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this scheduled job. */ readonly workRequestIds: string[]; } /** * This data source provides details about a specific Scheduled Job resource in Oracle Cloud Infrastructure Os Management Hub service. * * Gets information about the specified scheduled job. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testScheduledJob = oci.osmanagementhub.getScheduledJob({ * scheduledJobId: testScheduledJobOciOsManagementHubScheduledJob.id, * }); * ``` */ export declare function getScheduledJobOutput(args: GetScheduledJobOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getScheduledJob. */ export interface GetScheduledJobOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the scheduled job. */ scheduledJobId: pulumi.Input; } //# sourceMappingURL=getScheduledJob.d.ts.map