Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Adm.getRemediationRuns
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRemediationRuns = oci.Adm.getRemediationRuns({
compartmentId: compartmentId,
displayName: remediationRunDisplayName,
id: remediationRunId,
remediationRecipeId: testRemediationRecipe.id,
state: remediationRunState,
});
import pulumi
import pulumi_oci as oci
test_remediation_runs = oci.Adm.get_remediation_runs(compartment_id=compartment_id,
display_name=remediation_run_display_name,
id=remediation_run_id,
remediation_recipe_id=test_remediation_recipe["id"],
state=remediation_run_state)
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.GetRemediationRuns(ctx, &adm.GetRemediationRunsArgs{
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(remediationRunDisplayName),
Id: pulumi.StringRef(remediationRunId),
RemediationRecipeId: pulumi.StringRef(testRemediationRecipe.Id),
State: pulumi.StringRef(remediationRunState),
}, 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 testRemediationRuns = Oci.Adm.GetRemediationRuns.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = remediationRunDisplayName,
Id = remediationRunId,
RemediationRecipeId = testRemediationRecipe.Id,
State = remediationRunState,
});
});
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.GetRemediationRunsArgs;
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 testRemediationRuns = AdmFunctions.getRemediationRuns(GetRemediationRunsArgs.builder()
.compartmentId(compartmentId)
.displayName(remediationRunDisplayName)
.id(remediationRunId)
.remediationRecipeId(testRemediationRecipe.id())
.state(remediationRunState)
.build());
}
}
variables:
testRemediationRuns:
fn::invoke:
Function: oci:Adm:getRemediationRuns
Arguments:
compartmentId: ${compartmentId}
displayName: ${remediationRunDisplayName}
id: ${remediationRunId}
remediationRecipeId: ${testRemediationRecipe.id}
state: ${remediationRunState}
Using getRemediationRuns
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 getRemediationRuns(args: GetRemediationRunsArgs, opts?: InvokeOptions): Promise<GetRemediationRunsResult>
function getRemediationRunsOutput(args: GetRemediationRunsOutputArgs, opts?: InvokeOptions): Output<GetRemediationRunsResult>
def get_remediation_runs(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_adm.GetRemediationRunsFilter]] = None,
id: Optional[str] = None,
remediation_recipe_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRemediationRunsResult
def get_remediation_runs_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_adm.GetRemediationRunsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
remediation_recipe_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRemediationRunsResult]
func GetRemediationRuns(ctx *Context, args *GetRemediationRunsArgs, opts ...InvokeOption) (*GetRemediationRunsResult, error)
func GetRemediationRunsOutput(ctx *Context, args *GetRemediationRunsOutputArgs, opts ...InvokeOption) GetRemediationRunsResultOutput
> Note: This function is named GetRemediationRuns
in the Go SDK.
public static class GetRemediationRuns
{
public static Task<GetRemediationRunsResult> InvokeAsync(GetRemediationRunsArgs args, InvokeOptions? opts = null)
public static Output<GetRemediationRunsResult> Invoke(GetRemediationRunsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRemediationRunsResult> getRemediationRuns(GetRemediationRunsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Adm/getRemediationRuns:getRemediationRuns
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - 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 string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Remediation Runs Filter> - Id string
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- Remediation
Recipe stringId - A filter to return only resources that match the specified Remediation Recipe identifier.
- State string
- A filter to return only Remediation Runs that match the specified lifecycleState.
- Compartment
Id string - 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 string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Remediation Runs Filter - Id string
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- Remediation
Recipe stringId - A filter to return only resources that match the specified Remediation Recipe identifier.
- State string
- A filter to return only Remediation Runs that match the specified lifecycleState.
- compartment
Id String - 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 String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Remediation Runs Filter> - id String
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- remediation
Recipe StringId - A filter to return only resources that match the specified Remediation Recipe identifier.
- state String
- A filter to return only Remediation Runs that match the specified lifecycleState.
- compartment
Id string - 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 string - A filter to return only resources that match the entire display name given.
- filters
Get
Remediation Runs Filter[] - id string
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- remediation
Recipe stringId - A filter to return only resources that match the specified Remediation Recipe identifier.
- state string
- A filter to return only Remediation Runs that match the specified lifecycleState.
- compartment_
id str - 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 str - A filter to return only resources that match the entire display name given.
- filters
Sequence[adm.
Get Remediation Runs Filter] - id str
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- remediation_
recipe_ strid - A filter to return only resources that match the specified Remediation Recipe identifier.
- state str
- A filter to return only Remediation Runs that match the specified lifecycleState.
- compartment
Id String - 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 String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- id String
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- remediation
Recipe StringId - A filter to return only resources that match the specified Remediation Recipe identifier.
- state String
- A filter to return only Remediation Runs that match the specified lifecycleState.
getRemediationRuns Result
The following output properties are available:
- Remediation
Run List<GetCollections Remediation Runs Remediation Run Collection> - The list of remediation_run_collection.
- Compartment
Id string - The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- Display
Name string - The name of the remediation run.
- Filters
List<Get
Remediation Runs Filter> - Id string
- The Oracle Cloud Identifier (OCID) of the remediation run.
- Remediation
Recipe stringId - The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- State string
- The current lifecycle state of the remediation run.
- Remediation
Run []GetCollections Remediation Runs Remediation Run Collection - The list of remediation_run_collection.
- Compartment
Id string - The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- Display
Name string - The name of the remediation run.
- Filters
[]Get
Remediation Runs Filter - Id string
- The Oracle Cloud Identifier (OCID) of the remediation run.
- Remediation
Recipe stringId - The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- State string
- The current lifecycle state of the remediation run.
- remediation
Run List<GetCollections Remediation Runs Remediation Run Collection> - The list of remediation_run_collection.
- compartment
Id String - The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- display
Name String - The name of the remediation run.
- filters
List<Get
Remediation Runs Filter> - id String
- The Oracle Cloud Identifier (OCID) of the remediation run.
- remediation
Recipe StringId - The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- state String
- The current lifecycle state of the remediation run.
- remediation
Run GetCollections Remediation Runs Remediation Run Collection[] - The list of remediation_run_collection.
- compartment
Id string - The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- display
Name string - The name of the remediation run.
- filters
Get
Remediation Runs Filter[] - id string
- The Oracle Cloud Identifier (OCID) of the remediation run.
- remediation
Recipe stringId - The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- state string
- The current lifecycle state of the remediation run.
- remediation_
run_ Sequence[adm.collections Get Remediation Runs Remediation Run Collection] - The list of remediation_run_collection.
- compartment_
id str - The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- display_
name str - The name of the remediation run.
- filters
Sequence[adm.
Get Remediation Runs Filter] - id str
- The Oracle Cloud Identifier (OCID) of the remediation run.
- remediation_
recipe_ strid - The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- state str
- The current lifecycle state of the remediation run.
- remediation
Run List<Property Map>Collections - The list of remediation_run_collection.
- compartment
Id String - The compartment Oracle Cloud Identifier (OCID) of the remediation run.
- display
Name String - The name of the remediation run.
- filters List<Property Map>
- id String
- The Oracle Cloud Identifier (OCID) of the remediation run.
- remediation
Recipe StringId - The Oracle Cloud Identifier (OCID) of the Remediation Recipe.
- state String
- The current lifecycle state of the remediation run.
Supporting Types
GetRemediationRunsFilter
GetRemediationRunsRemediationRunCollection
GetRemediationRunsRemediationRunCollectionItem
- Compartment
Id string - A filter to return only resources that belong to the specified compartment identifier. Required only if the id query param is not specified.
- Current
Stage 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"}
- Display
Name string - A filter to return only resources that match the entire display name given.
- 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
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- Remediation
Recipe stringId - A filter to return only resources that match the specified Remediation Recipe identifier.
- Remediation
Run stringSource - The source that triggered the Remediation Recipe.
- Stages
List<Get
Remediation Runs Remediation Run Collection Item Stage> - The list of remediation run stage summaries.
- State string
- A filter to return only Remediation Runs that match the specified lifecycleState.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The creation date and time of the remediation run (formatted according to RFC3339).
- Time
Finished string - The date and time of the finish of the remediation run (formatted according to RFC3339).
- Time
Started string - The date and time of the start of the remediation run (formatted according to RFC3339).
- Time
Updated string - The date and time the remediation run was last updated (formatted according to RFC3339).
- Compartment
Id string - A filter to return only resources that belong to the specified compartment identifier. Required only if the id query param is not specified.
- Current
Stage 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"}
- Display
Name string - A filter to return only resources that match the entire display name given.
- 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
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- Remediation
Recipe stringId - A filter to return only resources that match the specified Remediation Recipe identifier.
- Remediation
Run stringSource - The source that triggered the Remediation Recipe.
- Stages
[]Get
Remediation Runs Remediation Run Collection Item Stage - The list of remediation run stage summaries.
- State string
- A filter to return only Remediation Runs that match the specified lifecycleState.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The creation date and time of the remediation run (formatted according to RFC3339).
- Time
Finished string - The date and time of the finish of the remediation run (formatted according to RFC3339).
- Time
Started string - The date and time of the start of the remediation run (formatted according to RFC3339).
- Time
Updated string - The date and time the remediation run was last updated (formatted according to RFC3339).
- compartment
Id String - A filter to return only resources that belong to the specified compartment identifier. Required only if the id query param is not specified.
- current
Stage 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"}
- display
Name String - A filter to return only resources that match the entire display name given.
- 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
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- remediation
Recipe StringId - A filter to return only resources that match the specified Remediation Recipe identifier.
- remediation
Run StringSource - The source that triggered the Remediation Recipe.
- stages
List<Get
Remediation Runs Remediation Run Collection Item Stage> - The list of remediation run stage summaries.
- state String
- A filter to return only Remediation Runs that match the specified lifecycleState.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The creation date and time of the remediation run (formatted according to RFC3339).
- time
Finished String - The date and time of the finish of the remediation run (formatted according to RFC3339).
- time
Started String - The date and time of the start of the remediation run (formatted according to RFC3339).
- time
Updated String - The date and time the remediation run was last updated (formatted according to RFC3339).
- compartment
Id string - A filter to return only resources that belong to the specified compartment identifier. Required only if the id query param is not specified.
- current
Stage 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"}
- display
Name string - A filter to return only resources that match the entire display name given.
- {[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
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- remediation
Recipe stringId - A filter to return only resources that match the specified Remediation Recipe identifier.
- remediation
Run stringSource - The source that triggered the Remediation Recipe.
- stages
Get
Remediation Runs Remediation Run Collection Item Stage[] - The list of remediation run stage summaries.
- state string
- A filter to return only Remediation Runs that match the specified lifecycleState.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The creation date and time of the remediation run (formatted according to RFC3339).
- time
Finished string - The date and time of the finish of the remediation run (formatted according to RFC3339).
- time
Started string - The date and time of the start of the remediation run (formatted according to RFC3339).
- time
Updated string - The date and time the remediation run was last updated (formatted according to RFC3339).
- compartment_
id str - A filter to return only resources that belong to the specified compartment identifier. Required only if the id query param is not specified.
- 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 - A filter to return only resources that match the entire display name given.
- 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
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- remediation_
recipe_ strid - A filter to return only resources that match the specified Remediation Recipe identifier.
- remediation_
run_ strsource - The source that triggered the Remediation Recipe.
- stages
Sequence[adm.
Get Remediation Runs Remediation Run Collection Item Stage] - The list of remediation run stage summaries.
- state str
- A filter to return only Remediation Runs that match the specified lifecycleState.
- 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).
- compartment
Id String - A filter to return only resources that belong to the specified compartment identifier. Required only if the id query param is not specified.
- current
Stage 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"}
- display
Name String - A filter to return only resources that match the entire display name given.
- 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
- A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified.
- remediation
Recipe StringId - A filter to return only resources that match the specified Remediation Recipe identifier.
- remediation
Run StringSource - The source that triggered the Remediation Recipe.
- stages List<Property Map>
- The list of remediation run stage summaries.
- state String
- A filter to return only Remediation Runs that match the specified lifecycleState.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The creation date and time of the remediation run (formatted according to RFC3339).
- time
Finished String - The date and time of the finish of the remediation run (formatted according to RFC3339).
- time
Started String - The date and time of the start of the remediation run (formatted according to RFC3339).
- time
Updated String - The date and time the remediation run was last updated (formatted according to RFC3339).
GetRemediationRunsRemediationRunCollectionItemStage
- Summary string
- Information about the current step within the given stage.
- Time
Created string - The creation date and time of the remediation run (formatted according to RFC3339).
- Time
Finished string - The date and time of the finish of the remediation run (formatted according to RFC3339).
- Time
Started 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.
- Time
Created string - The creation date and time of the remediation run (formatted according to RFC3339).
- Time
Finished string - The date and time of the finish of the remediation run (formatted according to RFC3339).
- Time
Started 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.
- time
Created String - The creation date and time of the remediation run (formatted according to RFC3339).
- time
Finished String - The date and time of the finish of the remediation run (formatted according to RFC3339).
- time
Started 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.
- time
Created string - The creation date and time of the remediation run (formatted according to RFC3339).
- time
Finished string - The date and time of the finish of the remediation run (formatted according to RFC3339).
- time
Started 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.
- time
Created String - The creation date and time of the remediation run (formatted according to RFC3339).
- time
Finished String - The date and time of the finish of the remediation run (formatted according to RFC3339).
- time
Started 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.