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

oci.Adm.getRemediationRunStages

Explore with Pulumi AI

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

    This data source provides the list of Remediation Run Stages in Oracle Cloud Infrastructure Adm service.

    Returns a list of Remediation Run Stages based on the specified query parameters and Remediation Run identifier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRemediationRunStages = oci.Adm.getRemediationRunStages({
        remediationRunId: testRemediationRun.id,
        status: remediationRunStageStatus,
        type: remediationRunStageType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_remediation_run_stages = oci.Adm.get_remediation_run_stages(remediation_run_id=test_remediation_run["id"],
        status=remediation_run_stage_status,
        type=remediation_run_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.GetRemediationRunStages(ctx, &adm.GetRemediationRunStagesArgs{
    			RemediationRunId: testRemediationRun.Id,
    			Status:           pulumi.StringRef(remediationRunStageStatus),
    			Type:             pulumi.StringRef(remediationRunStageType),
    		}, 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 testRemediationRunStages = Oci.Adm.GetRemediationRunStages.Invoke(new()
        {
            RemediationRunId = testRemediationRun.Id,
            Status = remediationRunStageStatus,
            Type = remediationRunStageType,
        });
    
    });
    
    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.GetRemediationRunStagesArgs;
    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 testRemediationRunStages = AdmFunctions.getRemediationRunStages(GetRemediationRunStagesArgs.builder()
                .remediationRunId(testRemediationRun.id())
                .status(remediationRunStageStatus)
                .type(remediationRunStageType)
                .build());
    
        }
    }
    
    variables:
      testRemediationRunStages:
        fn::invoke:
          Function: oci:Adm:getRemediationRunStages
          Arguments:
            remediationRunId: ${testRemediationRun.id}
            status: ${remediationRunStageStatus}
            type: ${remediationRunStageType}
    

    Using getRemediationRunStages

    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 getRemediationRunStages(args: GetRemediationRunStagesArgs, opts?: InvokeOptions): Promise<GetRemediationRunStagesResult>
    function getRemediationRunStagesOutput(args: GetRemediationRunStagesOutputArgs, opts?: InvokeOptions): Output<GetRemediationRunStagesResult>
    def get_remediation_run_stages(filters: Optional[Sequence[_adm.GetRemediationRunStagesFilter]] = None,
                                   remediation_run_id: Optional[str] = None,
                                   status: Optional[str] = None,
                                   type: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetRemediationRunStagesResult
    def get_remediation_run_stages_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_adm.GetRemediationRunStagesFilterArgs]]]] = None,
                                   remediation_run_id: Optional[pulumi.Input[str]] = None,
                                   status: Optional[pulumi.Input[str]] = None,
                                   type: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetRemediationRunStagesResult]
    func GetRemediationRunStages(ctx *Context, args *GetRemediationRunStagesArgs, opts ...InvokeOption) (*GetRemediationRunStagesResult, error)
    func GetRemediationRunStagesOutput(ctx *Context, args *GetRemediationRunStagesOutputArgs, opts ...InvokeOption) GetRemediationRunStagesResultOutput

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

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

    The following arguments are supported:

    RemediationRunId string
    Unique Remediation Run identifier path parameter.
    Filters List<GetRemediationRunStagesFilter>
    Status string
    A filter to return only Stages that match the specified status.
    Type string
    A filter to return only Stages that match the specified type.
    RemediationRunId string
    Unique Remediation Run identifier path parameter.
    Filters []GetRemediationRunStagesFilter
    Status string
    A filter to return only Stages that match the specified status.
    Type string
    A filter to return only Stages that match the specified type.
    remediationRunId String
    Unique Remediation Run identifier path parameter.
    filters List<GetRemediationRunStagesFilter>
    status String
    A filter to return only Stages that match the specified status.
    type String
    A filter to return only Stages that match the specified type.
    remediationRunId string
    Unique Remediation Run identifier path parameter.
    filters GetRemediationRunStagesFilter[]
    status string
    A filter to return only Stages that match the specified status.
    type string
    A filter to return only Stages that match the specified type.
    remediation_run_id str
    Unique Remediation Run identifier path parameter.
    filters Sequence[adm.GetRemediationRunStagesFilter]
    status str
    A filter to return only Stages that match the specified status.
    type str
    A filter to return only Stages that match the specified type.
    remediationRunId String
    Unique Remediation Run identifier path parameter.
    filters List<Property Map>
    status String
    A filter to return only Stages that match the specified status.
    type String
    A filter to return only Stages that match the specified type.

    getRemediationRunStages Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RemediationRunId string
    The Oracle Cloud identifier (OCID) of the remediation run.
    RemediationRunStageCollections List<GetRemediationRunStagesRemediationRunStageCollection>
    The list of remediation_run_stage_collection.
    Filters List<GetRemediationRunStagesFilter>
    Status string
    The current status of a remediation run stage.
    Type string
    The type of the remediation run stage.
    Id string
    The provider-assigned unique ID for this managed resource.
    RemediationRunId string
    The Oracle Cloud identifier (OCID) of the remediation run.
    RemediationRunStageCollections []GetRemediationRunStagesRemediationRunStageCollection
    The list of remediation_run_stage_collection.
    Filters []GetRemediationRunStagesFilter
    Status string
    The current status of a remediation run stage.
    Type string
    The type of the remediation run stage.
    id String
    The provider-assigned unique ID for this managed resource.
    remediationRunId String
    The Oracle Cloud identifier (OCID) of the remediation run.
    remediationRunStageCollections List<GetRemediationRunStagesRemediationRunStageCollection>
    The list of remediation_run_stage_collection.
    filters List<GetRemediationRunStagesFilter>
    status String
    The current status of a remediation run stage.
    type String
    The type of the remediation run stage.
    id string
    The provider-assigned unique ID for this managed resource.
    remediationRunId string
    The Oracle Cloud identifier (OCID) of the remediation run.
    remediationRunStageCollections GetRemediationRunStagesRemediationRunStageCollection[]
    The list of remediation_run_stage_collection.
    filters GetRemediationRunStagesFilter[]
    status string
    The current status of a remediation run stage.
    type string
    The type of the remediation run stage.
    id str
    The provider-assigned unique ID for this managed resource.
    remediation_run_id str
    The Oracle Cloud identifier (OCID) of the remediation run.
    remediation_run_stage_collections Sequence[adm.GetRemediationRunStagesRemediationRunStageCollection]
    The list of remediation_run_stage_collection.
    filters Sequence[adm.GetRemediationRunStagesFilter]
    status str
    The current status of a remediation run stage.
    type str
    The type of the remediation run stage.
    id String
    The provider-assigned unique ID for this managed resource.
    remediationRunId String
    The Oracle Cloud identifier (OCID) of the remediation run.
    remediationRunStageCollections List<Property Map>
    The list of remediation_run_stage_collection.
    filters List<Property Map>
    status String
    The current status of a remediation run stage.
    type String
    The type of the remediation run stage.

    Supporting Types

    GetRemediationRunStagesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetRemediationRunStagesRemediationRunStageCollection

    GetRemediationRunStagesRemediationRunStageCollectionItem

    AuditId string
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    NextStageType string
    The next type of stage in the remediation run.
    PipelineProperties List<GetRemediationRunStagesRemediationRunStageCollectionItemPipelineProperty>
    Pipeline properties which result from the run of the verify stage.
    PreviousStageType string
    The previous type of stage in the remediation run.
    PullRequestProperties List<GetRemediationRunStagesRemediationRunStageCollectionItemPullRequestProperty>
    Pull request properties from recommend stage of the remediation run.
    RecommendedUpdatesCount int
    Count of recommended application dependencies to update.
    RemediationRunId string
    Unique Remediation Run identifier path parameter.
    Status string
    A filter to return only Stages that match the specified status.
    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
    A filter to return only Stages that match the specified type.
    AuditId string
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    NextStageType string
    The next type of stage in the remediation run.
    PipelineProperties []GetRemediationRunStagesRemediationRunStageCollectionItemPipelineProperty
    Pipeline properties which result from the run of the verify stage.
    PreviousStageType string
    The previous type of stage in the remediation run.
    PullRequestProperties []GetRemediationRunStagesRemediationRunStageCollectionItemPullRequestProperty
    Pull request properties from recommend stage of the remediation run.
    RecommendedUpdatesCount int
    Count of recommended application dependencies to update.
    RemediationRunId string
    Unique Remediation Run identifier path parameter.
    Status string
    A filter to return only Stages that match the specified status.
    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
    A filter to return only Stages that match the specified type.
    auditId String
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    nextStageType String
    The next type of stage in the remediation run.
    pipelineProperties List<GetRemediationRunStagesRemediationRunStageCollectionItemPipelineProperty>
    Pipeline properties which result from the run of the verify stage.
    previousStageType String
    The previous type of stage in the remediation run.
    pullRequestProperties List<GetRemediationRunStagesRemediationRunStageCollectionItemPullRequestProperty>
    Pull request properties from recommend stage of the remediation run.
    recommendedUpdatesCount Integer
    Count of recommended application dependencies to update.
    remediationRunId String
    Unique Remediation Run identifier path parameter.
    status String
    A filter to return only Stages that match the specified status.
    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
    A filter to return only Stages that match the specified type.
    auditId string
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    nextStageType string
    The next type of stage in the remediation run.
    pipelineProperties GetRemediationRunStagesRemediationRunStageCollectionItemPipelineProperty[]
    Pipeline properties which result from the run of the verify stage.
    previousStageType string
    The previous type of stage in the remediation run.
    pullRequestProperties GetRemediationRunStagesRemediationRunStageCollectionItemPullRequestProperty[]
    Pull request properties from recommend stage of the remediation run.
    recommendedUpdatesCount number
    Count of recommended application dependencies to update.
    remediationRunId string
    Unique Remediation Run identifier path parameter.
    status string
    A filter to return only Stages that match the specified status.
    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
    A filter to return only Stages that match the specified type.
    audit_id str
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    next_stage_type str
    The next type of stage in the remediation run.
    pipeline_properties Sequence[adm.GetRemediationRunStagesRemediationRunStageCollectionItemPipelineProperty]
    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.GetRemediationRunStagesRemediationRunStageCollectionItemPullRequestProperty]
    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
    Unique Remediation Run identifier path parameter.
    status str
    A filter to return only Stages that match the specified status.
    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
    A filter to return only Stages that match the specified type.
    auditId String
    The Oracle Cloud identifier (OCID) of the vulnerability audit.
    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
    Unique Remediation Run identifier path parameter.
    status String
    A filter to return only Stages that match the specified status.
    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
    A filter to return only Stages that match the specified type.

    GetRemediationRunStagesRemediationRunStageCollectionItemPipelineProperty

    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.

    GetRemediationRunStagesRemediationRunStageCollectionItemPullRequestProperty

    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