Data Source: oci_os_management_hub_scheduled_job
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
data "oci_os_management_hub_scheduled_job" "test_scheduled_job" {
#Required
scheduled_job_id = oci_os_management_hub_scheduled_job.test_scheduled_job.id
}
Argument Reference
The following arguments are supported:
scheduled_job_id
- (Required) The OCID of the scheduled job.
Attributes Reference
The following attributes are exported:
compartment_id
- The OCID of the compartment that contains the scheduled job.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
description
- User-specified description for the scheduled job.display_name
- User-friendly name for the scheduled job.freeform_tags
- 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. Example:{"Department": "Finance"}
id
- The OCID of the scheduled job.is_managed_by_autonomous_linux
- Indicates whether this scheduled job is managed by the Autonomous Linux service.is_restricted
- Indicates if the schedule job has restricted update and deletion capabilities. For restricted scheduled jobs, you can update only the timeNextExecution, recurringRule, and tags.is_subcompartment_included
- Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy OCID (root compartment).lifecycle_stage_ids
- The lifecycle stage OCIDs 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.locations
- 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.managed_compartment_ids
- The compartment OCIDs 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.managed_instance_group_ids
- The managed instance group OCIDs 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.managed_instance_ids
- The managed instance OCIDs 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.operations
- 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
manage_module_streams_details
- The set of changes to make to the state of the modules, streams, and profiles on the managed target.disable
- The set of module streams to disable.module_name
- The name of a module.software_source_id
- The OCID of the software source that contains the module stream.stream_name
- The name of a stream of the specified module.
enable
- The set of module streams to enable.module_name
- The name of a module.software_source_id
- The OCID of the software source that contains the module stream.stream_name
- The name of a stream of the specified module.
install
- The set of module stream profiles to install.module_name
- The name of a module.profile_name
- The name of a profile of the specified module stream.software_source_id
- The OCID of the software source that contains the module stream.stream_name
- The name of a stream of the specified module.
remove
- The set of module stream profiles to remove.module_name
- The name of a module.profile_name
- The name of a profile of the specified module stream.software_source_id
- The OCID of the software source that contains the module stream.stream_name
- The name of a stream of the specified module.
operation_type
- The type of operation this scheduled job performs.package_names
- The names of the target packages. This parameter only applies when the scheduled job is for installing, updating, or removing packages.software_source_ids
- The software source OCIDs. This parameter only applies when the scheduled job is for attaching or detaching software sources.switch_module_streams_details
- Provides the information used to update a module stream.module_name
- The name of a module.software_source_id
- The OCID of the software source that contains the module stream.stream_name
- The name of a stream of the specified module.
windows_update_names
- Unique identifier for the Windows update. This parameter only applies if the scheduled job is for installing Windows updates. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. For example: ‘6981d463-cd91-4a26-b7c4-ea4ded9183ed’.
recurring_rule
- The frequency schedule for a recurring scheduled job.retry_intervals
- 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.schedule_type
- The type of scheduling frequency for the job.state
- The current state of the scheduled job.system_tags
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}
time_created
- The time this scheduled job was created (in RFC 3339 format).time_last_execution
- The time of the last execution of this scheduled job (in RFC 3339 format).time_next_execution
- The time of the next execution of this scheduled job (in RFC 3339 format).time_updated
- The time this scheduled job was updated (in RFC 3339 format).work_request_ids
- The list of work request OCIDs associated with this scheduled job.