Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Adm.getRemediationRun
Explore with Pulumi AI
This data source provides details about a specific Remediation Run resource in Oracle Cloud Infrastructure Adm service.
Returns the details of the specified remediation run.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRemediationRun = oci.Adm.getRemediationRun({
    remediationRunId: testRemediationRunOciAdmRemediationRun.id,
});
import pulumi
import pulumi_oci as oci
test_remediation_run = oci.Adm.get_remediation_run(remediation_run_id=test_remediation_run_oci_adm_remediation_run["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/adm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := adm.GetRemediationRun(ctx, &adm.GetRemediationRunArgs{
			RemediationRunId: testRemediationRunOciAdmRemediationRun.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testRemediationRun = Oci.Adm.GetRemediationRun.Invoke(new()
    {
        RemediationRunId = testRemediationRunOciAdmRemediationRun.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Adm.AdmFunctions;
import com.pulumi.oci.Adm.inputs.GetRemediationRunArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testRemediationRun = AdmFunctions.getRemediationRun(GetRemediationRunArgs.builder()
            .remediationRunId(testRemediationRunOciAdmRemediationRun.id())
            .build());
    }
}
variables:
  testRemediationRun:
    fn::invoke:
      function: oci:Adm:getRemediationRun
      arguments:
        remediationRunId: ${testRemediationRunOciAdmRemediationRun.id}
Using getRemediationRun
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRemediationRun(args: GetRemediationRunArgs, opts?: InvokeOptions): Promise<GetRemediationRunResult>
function getRemediationRunOutput(args: GetRemediationRunOutputArgs, opts?: InvokeOptions): Output<GetRemediationRunResult>def get_remediation_run(remediation_run_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetRemediationRunResult
def get_remediation_run_output(remediation_run_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetRemediationRunResult]func GetRemediationRun(ctx *Context, args *GetRemediationRunArgs, opts ...InvokeOption) (*GetRemediationRunResult, error)
func GetRemediationRunOutput(ctx *Context, args *GetRemediationRunOutputArgs, opts ...InvokeOption) GetRemediationRunResultOutput> Note: This function is named GetRemediationRun in the Go SDK.
public static class GetRemediationRun 
{
    public static Task<GetRemediationRunResult> InvokeAsync(GetRemediationRunArgs args, InvokeOptions? opts = null)
    public static Output<GetRemediationRunResult> Invoke(GetRemediationRunInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRemediationRunResult> getRemediationRun(GetRemediationRunArgs args, InvokeOptions options)
public static Output<GetRemediationRunResult> getRemediationRun(GetRemediationRunArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Adm/getRemediationRun:getRemediationRun
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RemediationRun stringId 
- Unique Remediation Run identifier path parameter.
- RemediationRun stringId 
- Unique Remediation Run identifier path parameter.
- remediationRun StringId 
- Unique Remediation Run identifier path parameter.
- remediationRun stringId 
- Unique Remediation Run identifier path parameter.
- remediation_run_ strid 
- Unique Remediation Run identifier path parameter.
- remediationRun StringId 
- Unique Remediation Run identifier path parameter.
getRemediationRun Result
The following output properties are available:
- CompartmentId string
- The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- CurrentStage stringType 
- The type of the current stage of the remediation run.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- The name of the remediation run.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The Oracle Cloud Identifier (OCID) of the remediation run.
- RemediationRecipe stringId 
- The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- RemediationRun stringId 
- RemediationRun stringSource 
- The source that triggered the Remediation Recipe.
- Stages
List<GetRemediation Run Stage> 
- The list of remediation run stage summaries.
- State string
- The current lifecycle state of the remediation run.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The creation date and time of the remediation run (formatted according to RFC3339).
- TimeFinished string
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- TimeStarted string
- The date and time of the start of the remediation run (formatted according to RFC3339).
- TimeUpdated string
- The date and time the remediation run was last updated (formatted according to RFC3339).
- CompartmentId string
- The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- CurrentStage stringType 
- The type of the current stage of the remediation run.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- The name of the remediation run.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The Oracle Cloud Identifier (OCID) of the remediation run.
- RemediationRecipe stringId 
- The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- RemediationRun stringId 
- RemediationRun stringSource 
- The source that triggered the Remediation Recipe.
- Stages
[]GetRemediation Run Stage 
- The list of remediation run stage summaries.
- State string
- The current lifecycle state of the remediation run.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The creation date and time of the remediation run (formatted according to RFC3339).
- TimeFinished string
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- TimeStarted string
- The date and time of the start of the remediation run (formatted according to RFC3339).
- TimeUpdated string
- The date and time the remediation run was last updated (formatted according to RFC3339).
- compartmentId String
- The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- currentStage StringType 
- The type of the current stage of the remediation run.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- The name of the remediation run.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The Oracle Cloud Identifier (OCID) of the remediation run.
- remediationRecipe StringId 
- The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- remediationRun StringId 
- remediationRun StringSource 
- The source that triggered the Remediation Recipe.
- stages
List<GetRemediation Run Stage> 
- The list of remediation run stage summaries.
- state String
- The current lifecycle state of the remediation run.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The creation date and time of the remediation run (formatted according to RFC3339).
- timeFinished String
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- timeStarted String
- The date and time of the start of the remediation run (formatted according to RFC3339).
- timeUpdated String
- The date and time the remediation run was last updated (formatted according to RFC3339).
- compartmentId string
- The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- currentStage stringType 
- The type of the current stage of the remediation run.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName string
- The name of the remediation run.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id string
- The Oracle Cloud Identifier (OCID) of the remediation run.
- remediationRecipe stringId 
- The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- remediationRun stringId 
- remediationRun stringSource 
- The source that triggered the Remediation Recipe.
- stages
GetRemediation Run Stage[] 
- The list of remediation run stage summaries.
- state string
- The current lifecycle state of the remediation run.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The creation date and time of the remediation run (formatted according to RFC3339).
- timeFinished string
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- timeStarted string
- The date and time of the start of the remediation run (formatted according to RFC3339).
- timeUpdated string
- The date and time the remediation run was last updated (formatted according to RFC3339).
- compartment_id str
- The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- current_stage_ strtype 
- The type of the current stage of the remediation run.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- display_name str
- The name of the remediation run.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id str
- The Oracle Cloud Identifier (OCID) of the remediation run.
- remediation_recipe_ strid 
- The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- remediation_run_ strid 
- remediation_run_ strsource 
- The source that triggered the Remediation Recipe.
- stages
Sequence[adm.Get Remediation Run Stage] 
- The list of remediation run stage summaries.
- state str
- The current lifecycle state of the remediation run.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The creation date and time of the remediation run (formatted according to RFC3339).
- time_finished str
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- time_started str
- The date and time of the start of the remediation run (formatted according to RFC3339).
- time_updated str
- The date and time the remediation run was last updated (formatted according to RFC3339).
- compartmentId String
- The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- currentStage StringType 
- The type of the current stage of the remediation run.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- The name of the remediation run.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The Oracle Cloud Identifier (OCID) of the remediation run.
- remediationRecipe StringId 
- The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- remediationRun StringId 
- remediationRun StringSource 
- The source that triggered the Remediation Recipe.
- stages List<Property Map>
- The list of remediation run stage summaries.
- state String
- The current lifecycle state of the remediation run.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The creation date and time of the remediation run (formatted according to RFC3339).
- timeFinished String
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- timeStarted String
- The date and time of the start of the remediation run (formatted according to RFC3339).
- timeUpdated String
- The date and time the remediation run was last updated (formatted according to RFC3339).
Supporting Types
GetRemediationRunStage   
- Summary string
- Information about the current step within the given stage.
- TimeCreated string
- The creation date and time of the remediation run (formatted according to RFC3339).
- TimeFinished string
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- TimeStarted string
- The date and time of the start of the remediation run (formatted according to RFC3339).
- Type string
- The type of stage.
- Summary string
- Information about the current step within the given stage.
- TimeCreated string
- The creation date and time of the remediation run (formatted according to RFC3339).
- TimeFinished string
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- TimeStarted string
- The date and time of the start of the remediation run (formatted according to RFC3339).
- Type string
- The type of stage.
- summary String
- Information about the current step within the given stage.
- timeCreated String
- The creation date and time of the remediation run (formatted according to RFC3339).
- timeFinished String
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- timeStarted String
- The date and time of the start of the remediation run (formatted according to RFC3339).
- type String
- The type of stage.
- summary string
- Information about the current step within the given stage.
- timeCreated string
- The creation date and time of the remediation run (formatted according to RFC3339).
- timeFinished string
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- timeStarted string
- The date and time of the start of the remediation run (formatted according to RFC3339).
- type string
- The type of stage.
- summary str
- Information about the current step within the given stage.
- time_created str
- The creation date and time of the remediation run (formatted according to RFC3339).
- time_finished str
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- time_started str
- The date and time of the start of the remediation run (formatted according to RFC3339).
- type str
- The type of stage.
- summary String
- Information about the current step within the given stage.
- timeCreated String
- The creation date and time of the remediation run (formatted according to RFC3339).
- timeFinished String
- The date and time of the finish of the remediation run (formatted according to RFC3339).
- timeStarted String
- The date and time of the start of the remediation run (formatted according to RFC3339).
- type String
- The type of stage.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.