1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Adm
  5. getRemediationRun
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

oci.Adm.getRemediationRun

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

    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/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Adm/getRemediationRun:getRemediationRun
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RemediationRunId string
    Unique Remediation Run identifier path parameter.
    RemediationRunId string
    Unique Remediation Run identifier path parameter.
    remediationRunId String
    Unique Remediation Run identifier path parameter.
    remediationRunId string
    Unique Remediation Run identifier path parameter.
    remediation_run_id str
    Unique Remediation Run identifier path parameter.
    remediationRunId String
    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.
    CurrentStageType string
    The type of the current stage of the remediation run.
    DefinedTags Dictionary<string, object>
    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.
    FreeformTags Dictionary<string, object>
    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.
    RemediationRecipeId string
    The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
    RemediationRunId string
    RemediationRunSource string
    The source that triggered the Remediation Recipe.
    Stages List<GetRemediationRunStage>
    The list of remediation run stage summaries.
    State string
    The current lifecycle state of the remediation run.
    SystemTags Dictionary<string, object>
    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.
    CurrentStageType string
    The type of the current stage of the remediation run.
    DefinedTags map[string]interface{}
    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.
    FreeformTags map[string]interface{}
    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.
    RemediationRecipeId string
    The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
    RemediationRunId string
    RemediationRunSource string
    The source that triggered the Remediation Recipe.
    Stages []GetRemediationRunStage
    The list of remediation run stage summaries.
    State string
    The current lifecycle state of the remediation run.
    SystemTags map[string]interface{}
    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.
    currentStageType String
    The type of the current stage of the remediation run.
    definedTags Map<String,Object>
    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.
    freeformTags Map<String,Object>
    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.
    remediationRecipeId String
    The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
    remediationRunId String
    remediationRunSource String
    The source that triggered the Remediation Recipe.
    stages List<GetRemediationRunStage>
    The list of remediation run stage summaries.
    state String
    The current lifecycle state of the remediation run.
    systemTags Map<String,Object>
    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.
    currentStageType string
    The type of the current stage of the remediation run.
    definedTags {[key: string]: any}
    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.
    freeformTags {[key: string]: any}
    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.
    remediationRecipeId string
    The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
    remediationRunId string
    remediationRunSource string
    The source that triggered the Remediation Recipe.
    stages GetRemediationRunStage[]
    The list of remediation run stage summaries.
    state string
    The current lifecycle state of the remediation run.
    systemTags {[key: string]: any}
    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_type str
    The type of the current stage of the remediation run.
    defined_tags Mapping[str, Any]
    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.
    freeform_tags Mapping[str, Any]
    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_id str
    The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
    remediation_run_id str
    remediation_run_source str
    The source that triggered the Remediation Recipe.
    stages Sequence[adm.GetRemediationRunStage]
    The list of remediation run stage summaries.
    state str
    The current lifecycle state of the remediation run.
    system_tags Mapping[str, Any]
    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.
    currentStageType String
    The type of the current stage of the remediation run.
    definedTags Map<Any>
    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.
    freeformTags Map<Any>
    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.
    remediationRecipeId String
    The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
    remediationRunId String
    remediationRunSource String
    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.
    systemTags Map<Any>
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi