Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.VulnerabilityScanning.getContainerScanRecipes
Explore with Pulumi AI
This data source provides the list of Container Scan Recipes in Oracle Cloud Infrastructure Vulnerability Scanning service.
Retrieves a list of ContainerScanRecipeSummary objects in a compartment. A recipe determines the types of security issues that you want scanned.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testContainerScanRecipes = oci.VulnerabilityScanning.getContainerScanRecipes({
compartmentId: compartmentId,
displayName: containerScanRecipeDisplayName,
state: containerScanRecipeState,
});
import pulumi
import pulumi_oci as oci
test_container_scan_recipes = oci.VulnerabilityScanning.get_container_scan_recipes(compartment_id=compartment_id,
display_name=container_scan_recipe_display_name,
state=container_scan_recipe_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/VulnerabilityScanning"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := VulnerabilityScanning.GetContainerScanRecipes(ctx, &vulnerabilityscanning.GetContainerScanRecipesArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(containerScanRecipeDisplayName),
State: pulumi.StringRef(containerScanRecipeState),
}, 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 testContainerScanRecipes = Oci.VulnerabilityScanning.GetContainerScanRecipes.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = containerScanRecipeDisplayName,
State = containerScanRecipeState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.VulnerabilityScanning.VulnerabilityScanningFunctions;
import com.pulumi.oci.VulnerabilityScanning.inputs.GetContainerScanRecipesArgs;
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 testContainerScanRecipes = VulnerabilityScanningFunctions.getContainerScanRecipes(GetContainerScanRecipesArgs.builder()
.compartmentId(compartmentId)
.displayName(containerScanRecipeDisplayName)
.state(containerScanRecipeState)
.build());
}
}
variables:
testContainerScanRecipes:
fn::invoke:
Function: oci:VulnerabilityScanning:getContainerScanRecipes
Arguments:
compartmentId: ${compartmentId}
displayName: ${containerScanRecipeDisplayName}
state: ${containerScanRecipeState}
Using getContainerScanRecipes
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 getContainerScanRecipes(args: GetContainerScanRecipesArgs, opts?: InvokeOptions): Promise<GetContainerScanRecipesResult>
function getContainerScanRecipesOutput(args: GetContainerScanRecipesOutputArgs, opts?: InvokeOptions): Output<GetContainerScanRecipesResult>
def get_container_scan_recipes(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_vulnerabilityscanning.GetContainerScanRecipesFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerScanRecipesResult
def get_container_scan_recipes_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_vulnerabilityscanning.GetContainerScanRecipesFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainerScanRecipesResult]
func GetContainerScanRecipes(ctx *Context, args *GetContainerScanRecipesArgs, opts ...InvokeOption) (*GetContainerScanRecipesResult, error)
func GetContainerScanRecipesOutput(ctx *Context, args *GetContainerScanRecipesOutputArgs, opts ...InvokeOption) GetContainerScanRecipesResultOutput
> Note: This function is named GetContainerScanRecipes
in the Go SDK.
public static class GetContainerScanRecipes
{
public static Task<GetContainerScanRecipesResult> InvokeAsync(GetContainerScanRecipesArgs args, InvokeOptions? opts = null)
public static Output<GetContainerScanRecipesResult> Invoke(GetContainerScanRecipesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerScanRecipesResult> getContainerScanRecipes(GetContainerScanRecipesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:VulnerabilityScanning/getContainerScanRecipes:getContainerScanRecipes
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Container Scan Recipes Filter> - State string
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Container Scan Recipes Filter - State string
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Container Scan Recipes Filter> - state String
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Container Scan Recipes Filter[] - state string
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- compartment_
id str - The ID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[vulnerabilityscanning.
Get Container Scan Recipes Filter] - state str
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- state String
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
getContainerScanRecipes Result
The following output properties are available:
- Compartment
Id string - The OCID of the container scan recipe's compartment
- Container
Scan List<GetRecipe Summary Collections Container Scan Recipes Container Scan Recipe Summary Collection> - The list of container_scan_recipe_summary_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - User friendly name of container scan recipe
- Filters
List<Get
Container Scan Recipes Filter> - State string
- The current state of the config.
- Compartment
Id string - The OCID of the container scan recipe's compartment
- Container
Scan []GetRecipe Summary Collections Container Scan Recipes Container Scan Recipe Summary Collection - The list of container_scan_recipe_summary_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - User friendly name of container scan recipe
- Filters
[]Get
Container Scan Recipes Filter - State string
- The current state of the config.
- compartment
Id String - The OCID of the container scan recipe's compartment
- container
Scan List<GetRecipe Summary Collections Container Scan Recipes Container Scan Recipe Summary Collection> - The list of container_scan_recipe_summary_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - User friendly name of container scan recipe
- filters
List<Get
Container Scan Recipes Filter> - state String
- The current state of the config.
- compartment
Id string - The OCID of the container scan recipe's compartment
- container
Scan GetRecipe Summary Collections Container Scan Recipes Container Scan Recipe Summary Collection[] - The list of container_scan_recipe_summary_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- display
Name string - User friendly name of container scan recipe
- filters
Get
Container Scan Recipes Filter[] - state string
- The current state of the config.
- compartment_
id str - The OCID of the container scan recipe's compartment
- container_
scan_ Sequence[vulnerabilityscanning.recipe_ summary_ collections Get Container Scan Recipes Container Scan Recipe Summary Collection] - The list of container_scan_recipe_summary_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- display_
name str - User friendly name of container scan recipe
- filters
Sequence[vulnerabilityscanning.
Get Container Scan Recipes Filter] - state str
- The current state of the config.
- compartment
Id String - The OCID of the container scan recipe's compartment
- container
Scan List<Property Map>Recipe Summary Collections - The list of container_scan_recipe_summary_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - User friendly name of container scan recipe
- filters List<Property Map>
- state String
- The current state of the config.
Supporting Types
GetContainerScanRecipesContainerScanRecipeSummaryCollection
GetContainerScanRecipesContainerScanRecipeSummaryCollectionItem
- Compartment
Id string - The ID of the compartment in which to list resources.
- 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
- The OCID of container scan recipe. Immutable and generated on creation.
- Image
Count int - This field is set equal to the number of images we want to scan in the first go when the recipe is created
- Scan
Settings List<GetContainer Scan Recipes Container Scan Recipe Summary Collection Item Scan Setting> - A collection of container scan settings
- State string
- A filter to return only resources whose lifecycleState matches the given 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 - Date and time the recipe was created, format as described in RFC 3339
- Time
Updated string - Date and time the recipe was last updated, format as described in RFC 3339
- Compartment
Id string - The ID of the compartment in which to list resources.
- 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
- The OCID of container scan recipe. Immutable and generated on creation.
- Image
Count int - This field is set equal to the number of images we want to scan in the first go when the recipe is created
- Scan
Settings []GetContainer Scan Recipes Container Scan Recipe Summary Collection Item Scan Setting - A collection of container scan settings
- State string
- A filter to return only resources whose lifecycleState matches the given 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 - Date and time the recipe was created, format as described in RFC 3339
- Time
Updated string - Date and time the recipe was last updated, format as described in RFC 3339
- compartment
Id String - The ID of the compartment in which to list resources.
- 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
- The OCID of container scan recipe. Immutable and generated on creation.
- image
Count Integer - This field is set equal to the number of images we want to scan in the first go when the recipe is created
- scan
Settings List<GetContainer Scan Recipes Container Scan Recipe Summary Collection Item Scan Setting> - A collection of container scan settings
- state String
- A filter to return only resources whose lifecycleState matches the given 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 - Date and time the recipe was created, format as described in RFC 3339
- time
Updated String - Date and time the recipe was last updated, format as described in RFC 3339
- compartment
Id string - The ID of the compartment in which to list resources.
- {[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
- The OCID of container scan recipe. Immutable and generated on creation.
- image
Count number - This field is set equal to the number of images we want to scan in the first go when the recipe is created
- scan
Settings GetContainer Scan Recipes Container Scan Recipe Summary Collection Item Scan Setting[] - A collection of container scan settings
- state string
- A filter to return only resources whose lifecycleState matches the given 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 - Date and time the recipe was created, format as described in RFC 3339
- time
Updated string - Date and time the recipe was last updated, format as described in RFC 3339
- compartment_
id str - The ID of the compartment in which to list resources.
- 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
- The OCID of container scan recipe. Immutable and generated on creation.
- image_
count int - This field is set equal to the number of images we want to scan in the first go when the recipe is created
- scan_
settings Sequence[vulnerabilityscanning.Get Container Scan Recipes Container Scan Recipe Summary Collection Item Scan Setting] - A collection of container scan settings
- state str
- A filter to return only resources whose lifecycleState matches the given 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 - Date and time the recipe was created, format as described in RFC 3339
- time_
updated str - Date and time the recipe was last updated, format as described in RFC 3339
- compartment
Id String - The ID of the compartment in which to list resources.
- 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
- The OCID of container scan recipe. Immutable and generated on creation.
- image
Count Number - This field is set equal to the number of images we want to scan in the first go when the recipe is created
- scan
Settings List<Property Map> - A collection of container scan settings
- state String
- A filter to return only resources whose lifecycleState matches the given 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 - Date and time the recipe was created, format as described in RFC 3339
- time
Updated String - Date and time the recipe was last updated, format as described in RFC 3339
GetContainerScanRecipesContainerScanRecipeSummaryCollectionItemScanSetting
- Scan
Level string - The scan level
- Scan
Level string - The scan level
- scan
Level String - The scan level
- scan
Level string - The scan level
- scan_
level str - The scan level
- scan
Level String - The scan level
GetContainerScanRecipesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.