Data Source: oci_adm_remediation_runs
This data source provides the list of Remediation Runs in Oracle Cloud Infrastructure Adm service.
Returns a list of remediation runs contained by a compartment.
The query parameter compartmentId is required unless the query parameter id is specified.
Example Usage
data "oci_adm_remediation_runs" "test_remediation_runs" {
#Optional
compartment_id = var.compartment_id
display_name = var.remediation_run_display_name
id = var.remediation_run_id
remediation_recipe_id = oci_adm_remediation_recipe.test_remediation_recipe.id
state = var.remediation_run_state
}
Argument Reference
The following arguments are supported:
compartment_id- (Optional) A filter to return only resources that belong to the specified compartment identifier. Required only if the id query param is not specified.display_name- (Optional) A filter to return only resources that match the entire display name given.id- (Optional) A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.remediation_recipe_id- (Optional) A filter to return only resources that match the specified Remediation Recipe identifier.state- (Optional) A filter to return only Remediation Runs that match the specified lifecycleState.
Attributes Reference
The following attributes are exported:
remediation_run_collection- The list of remediation_run_collection.
RemediationRun Reference
The following attributes are exported:
compartment_id- The compartment Oracle Cloud Identifier (OCID) of the remediation run.current_stage_type- The type of the current stage of the remediation run.defined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}display_name- The name of the remediation run.freeform_tags- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}id- The Oracle Cloud Identifier (OCID) of the remediation run.remediation_recipe_id- The Oracle Cloud Identifier (OCID) of the Remediation Recipe.remediation_run_source- The source that triggered the Remediation Recipe.stages- The list of remediation run stage summaries.summary- Information about the current step within the given stage.time_created- The creation date and time of the stage (formatted according to RFC3339).time_finished- The date and time of the finish of the stage (formatted according to RFC3339).time_started- The date and time of the start of the stage (formatted according to RFC3339).type- The type of stage.
state- The current lifecycle state of the remediation run.system_tags- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:{"orcl-cloud.free-tier-retained": "true"}time_created- The creation date and time of the remediation run (formatted according to RFC3339).time_finished- The date and time of the finish of the remediation run (formatted according to RFC3339).time_started- The date and time of the start of the remediation run (formatted according to RFC3339).time_updated- The date and time the remediation run was last updated (formatted according to RFC3339).