1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Adm
  5. getRemediationRunStage
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Adm.getRemediationRunStage

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Remediation Run Stage resource in Oracle Cloud Infrastructure Adm service.

    Returns the details of the specified Remediation Run Stage.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRemediationRunStage = oci.Adm.getRemediationRunStage({
        remediationRunId: testRemediationRun.id,
        stageType: remediationRunStageStageType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_remediation_run_stage = oci.Adm.get_remediation_run_stage(remediation_run_id=test_remediation_run["id"],
        stage_type=remediation_run_stage_stage_type)
    
    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.GetRemediationRunStage(ctx, &adm.GetRemediationRunStageArgs{
    			RemediationRunId: testRemediationRun.Id,
    			StageType:        remediationRunStageStageType,
    		}, 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 testRemediationRunStage = Oci.Adm.GetRemediationRunStage.Invoke(new()
        {
            RemediationRunId = testRemediationRun.Id,
            StageType = remediationRunStageStageType,
        });
    
    });
    
    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.GetRemediationRunStageArgs;
    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 testRemediationRunStage = AdmFunctions.getRemediationRunStage(GetRemediationRunStageArgs.builder()
                .remediationRunId(testRemediationRun.id())
                .stageType(remediationRunStageStageType)
                .build());
    
        }
    }
    
    variables:
      testRemediationRunStage:
        fn::invoke:
          Function: oci:Adm:getRemediationRunStage
          Arguments:
            remediationRunId: ${testRemediationRun.id}
            stageType: ${remediationRunStageStageType}
    

    Using getRemediationRunStage

    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 getRemediationRunStage(args: GetRemediationRunStageArgs, opts?: InvokeOptions): Promise<GetRemediationRunStageResult>
    function getRemediationRunStageOutput(args: GetRemediationRunStageOutputArgs, opts?: InvokeOptions): Output<GetRemediationRunStageResult>
    def get_remediation_run_stage(remediation_run_id: Optional[str] = None,
                                  stage_type: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetRemediationRunStageResult
    def get_remediation_run_stage_output(remediation_run_id: Optional[pulumi.Input[str]] = None,
                                  stage_type: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetRemediationRunStageResult]
    func GetRemediationRunStage(ctx *Context, args *GetRemediationRunStageArgs, opts ...InvokeOption) (*GetRemediationRunStageResult, error)
    func GetRemediationRunStageOutput(ctx *Context, args *GetRemediationRunStageOutputArgs, opts ...InvokeOption) GetRemediationRunStageResultOutput

    > Note: This function is named GetRemediationRunStage in the Go SDK.

    public static class GetRemediationRunStage 
    {
        public static Task<GetRemediationRunStageResult> InvokeAsync(GetRemediationRunStageArgs args, InvokeOptions? opts = null)
        public static Output<GetRemediationRunStageResult> Invoke(GetRemediationRunStageInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRemediationRunStageResult> getRemediationRunStage(GetRemediationRunStageArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Adm/getRemediationRunStage:getRemediationRunStage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RemediationRunId string
    Unique Remediation Run identifier path parameter.
    StageType string
    The type of Remediation Run Stage, as a URL path parameter.
    RemediationRunId string
    Unique Remediation Run identifier path parameter.
    StageType string
    The type of Remediation Run Stage, as a URL path parameter.
    remediationRunId String
    Unique Remediation Run identifier path parameter.
    stageType String
    The type of Remediation Run Stage, as a URL path parameter.
    remediationRunId string
    Unique Remediation Run identifier path parameter.
    stageType string
    The type of Remediation Run Stage, as a URL path parameter.
    remediation_run_id str
    Unique Remediation Run identifier path parameter.
    stage_type str
    The type of Remediation Run Stage, as a URL path parameter.
    remediationRunId String
    Unique Remediation Run identifier path parameter.
    stageType String
    The type of Remediation Run Stage, as a URL path parameter.

    getRemediationRunStage Result

    The following output properties are available:

    AuditId string
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    Id string
    The provider-assigned unique ID for this managed resource.
    NextStageType string
    The next type of stage in the remediation run.
    PipelineProperties List<GetRemediationRunStagePipelineProperty>
    Pipeline properties which result from the run of the verify stage.
    PreviousStageType string
    The previous type of stage in the remediation run.
    PullRequestProperties List<GetRemediationRunStagePullRequestProperty>
    Pull request properties from recommend stage of the remediation run.
    RecommendedUpdatesCount int
    Count of recommended application dependencies to update.
    RemediationRunId string
    The Oracle Cloud identifier (OCID) of the remediation run.
    StageType string
    Status string
    The current status of a remediation run stage.
    Summary string
    Information about the current step within the stage.
    TimeCreated string
    The creation date and time of the remediation run stage (formatted according to RFC3339).
    TimeFinished string
    The date and time of the finish of the remediation run stage (formatted according to RFC3339).
    TimeStarted string
    The date and time of the start of the remediation run stage (formatted according to RFC3339).
    Type string
    The type of the remediation run stage.
    AuditId string
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    Id string
    The provider-assigned unique ID for this managed resource.
    NextStageType string
    The next type of stage in the remediation run.
    PipelineProperties []GetRemediationRunStagePipelineProperty
    Pipeline properties which result from the run of the verify stage.
    PreviousStageType string
    The previous type of stage in the remediation run.
    PullRequestProperties []GetRemediationRunStagePullRequestProperty
    Pull request properties from recommend stage of the remediation run.
    RecommendedUpdatesCount int
    Count of recommended application dependencies to update.
    RemediationRunId string
    The Oracle Cloud identifier (OCID) of the remediation run.
    StageType string
    Status string
    The current status of a remediation run stage.
    Summary string
    Information about the current step within the stage.
    TimeCreated string
    The creation date and time of the remediation run stage (formatted according to RFC3339).
    TimeFinished string
    The date and time of the finish of the remediation run stage (formatted according to RFC3339).
    TimeStarted string
    The date and time of the start of the remediation run stage (formatted according to RFC3339).
    Type string
    The type of the remediation run stage.
    auditId String
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    id String
    The provider-assigned unique ID for this managed resource.
    nextStageType String
    The next type of stage in the remediation run.
    pipelineProperties List<GetRemediationRunStagePipelineProperty>
    Pipeline properties which result from the run of the verify stage.
    previousStageType String
    The previous type of stage in the remediation run.
    pullRequestProperties List<GetRemediationRunStagePullRequestProperty>
    Pull request properties from recommend stage of the remediation run.
    recommendedUpdatesCount Integer
    Count of recommended application dependencies to update.
    remediationRunId String
    The Oracle Cloud identifier (OCID) of the remediation run.
    stageType String
    status String
    The current status of a remediation run stage.
    summary String
    Information about the current step within the stage.
    timeCreated String
    The creation date and time of the remediation run stage (formatted according to RFC3339).
    timeFinished String
    The date and time of the finish of the remediation run stage (formatted according to RFC3339).
    timeStarted String
    The date and time of the start of the remediation run stage (formatted according to RFC3339).
    type String
    The type of the remediation run stage.
    auditId string
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    id string
    The provider-assigned unique ID for this managed resource.
    nextStageType string
    The next type of stage in the remediation run.
    pipelineProperties GetRemediationRunStagePipelineProperty[]
    Pipeline properties which result from the run of the verify stage.
    previousStageType string
    The previous type of stage in the remediation run.
    pullRequestProperties GetRemediationRunStagePullRequestProperty[]
    Pull request properties from recommend stage of the remediation run.
    recommendedUpdatesCount number
    Count of recommended application dependencies to update.
    remediationRunId string
    The Oracle Cloud identifier (OCID) of the remediation run.
    stageType string
    status string
    The current status of a remediation run stage.
    summary string
    Information about the current step within the stage.
    timeCreated string
    The creation date and time of the remediation run stage (formatted according to RFC3339).
    timeFinished string
    The date and time of the finish of the remediation run stage (formatted according to RFC3339).
    timeStarted string
    The date and time of the start of the remediation run stage (formatted according to RFC3339).
    type string
    The type of the remediation run stage.
    audit_id str
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    id str
    The provider-assigned unique ID for this managed resource.
    next_stage_type str
    The next type of stage in the remediation run.
    pipeline_properties Sequence[adm.GetRemediationRunStagePipelineProperty]
    Pipeline properties which result from the run of the verify stage.
    previous_stage_type str
    The previous type of stage in the remediation run.
    pull_request_properties Sequence[adm.GetRemediationRunStagePullRequestProperty]
    Pull request properties from recommend stage of the remediation run.
    recommended_updates_count int
    Count of recommended application dependencies to update.
    remediation_run_id str
    The Oracle Cloud identifier (OCID) of the remediation run.
    stage_type str
    status str
    The current status of a remediation run stage.
    summary str
    Information about the current step within the stage.
    time_created str
    The creation date and time of the remediation run stage (formatted according to RFC3339).
    time_finished str
    The date and time of the finish of the remediation run stage (formatted according to RFC3339).
    time_started str
    The date and time of the start of the remediation run stage (formatted according to RFC3339).
    type str
    The type of the remediation run stage.
    auditId String
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    id String
    The provider-assigned unique ID for this managed resource.
    nextStageType String
    The next type of stage in the remediation run.
    pipelineProperties List<Property Map>
    Pipeline properties which result from the run of the verify stage.
    previousStageType String
    The previous type of stage in the remediation run.
    pullRequestProperties List<Property Map>
    Pull request properties from recommend stage of the remediation run.
    recommendedUpdatesCount Number
    Count of recommended application dependencies to update.
    remediationRunId String
    The Oracle Cloud identifier (OCID) of the remediation run.
    stageType String
    status String
    The current status of a remediation run stage.
    summary String
    Information about the current step within the stage.
    timeCreated String
    The creation date and time of the remediation run stage (formatted according to RFC3339).
    timeFinished String
    The date and time of the finish of the remediation run stage (formatted according to RFC3339).
    timeStarted String
    The date and time of the start of the remediation run stage (formatted according to RFC3339).
    type String
    The type of the remediation run stage.

    Supporting Types

    GetRemediationRunStagePipelineProperty

    PipelineIdentifier string
    Unique identifier for the pipeline or action created in the Verify stage.
    PipelineUrl string
    The web link to the pipeline from the Verify stage.
    PipelineIdentifier string
    Unique identifier for the pipeline or action created in the Verify stage.
    PipelineUrl string
    The web link to the pipeline from the Verify stage.
    pipelineIdentifier String
    Unique identifier for the pipeline or action created in the Verify stage.
    pipelineUrl String
    The web link to the pipeline from the Verify stage.
    pipelineIdentifier string
    Unique identifier for the pipeline or action created in the Verify stage.
    pipelineUrl string
    The web link to the pipeline from the Verify stage.
    pipeline_identifier str
    Unique identifier for the pipeline or action created in the Verify stage.
    pipeline_url str
    The web link to the pipeline from the Verify stage.
    pipelineIdentifier String
    Unique identifier for the pipeline or action created in the Verify stage.
    pipelineUrl String
    The web link to the pipeline from the Verify stage.

    GetRemediationRunStagePullRequestProperty

    PullRequestIdentifier string
    Unique identifier for the pull or merge request created in the recommend stage.
    PullRequestUrl string
    The web link to the pull or merge request created in the recommend stage.
    PullRequestIdentifier string
    Unique identifier for the pull or merge request created in the recommend stage.
    PullRequestUrl string
    The web link to the pull or merge request created in the recommend stage.
    pullRequestIdentifier String
    Unique identifier for the pull or merge request created in the recommend stage.
    pullRequestUrl String
    The web link to the pull or merge request created in the recommend stage.
    pullRequestIdentifier string
    Unique identifier for the pull or merge request created in the recommend stage.
    pullRequestUrl string
    The web link to the pull or merge request created in the recommend stage.
    pull_request_identifier str
    Unique identifier for the pull or merge request created in the recommend stage.
    pull_request_url str
    The web link to the pull or merge request created in the recommend stage.
    pullRequestIdentifier String
    Unique identifier for the pull or merge request created in the recommend stage.
    pullRequestUrl String
    The web link to the pull or merge request created in the recommend 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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi