Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.VulnerabilityScanning.getContainerScanRecipe
Explore with Pulumi AI
This data source provides details about a specific Container Scan Recipe resource in Oracle Cloud Infrastructure Vulnerability Scanning service.
Retrieves a ContainerScanRecipe identified by the recipe ID. 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 testContainerScanRecipe = oci.VulnerabilityScanning.getContainerScanRecipe({
    containerScanRecipeId: testContainerScanRecipeOciVulnerabilityScanningContainerScanRecipe.id,
});
import pulumi
import pulumi_oci as oci
test_container_scan_recipe = oci.VulnerabilityScanning.get_container_scan_recipe(container_scan_recipe_id=test_container_scan_recipe_oci_vulnerability_scanning_container_scan_recipe["id"])
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.GetContainerScanRecipe(ctx, &vulnerabilityscanning.GetContainerScanRecipeArgs{
			ContainerScanRecipeId: testContainerScanRecipeOciVulnerabilityScanningContainerScanRecipe.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 testContainerScanRecipe = Oci.VulnerabilityScanning.GetContainerScanRecipe.Invoke(new()
    {
        ContainerScanRecipeId = testContainerScanRecipeOciVulnerabilityScanningContainerScanRecipe.Id,
    });
});
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.GetContainerScanRecipeArgs;
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 testContainerScanRecipe = VulnerabilityScanningFunctions.getContainerScanRecipe(GetContainerScanRecipeArgs.builder()
            .containerScanRecipeId(testContainerScanRecipeOciVulnerabilityScanningContainerScanRecipe.id())
            .build());
    }
}
variables:
  testContainerScanRecipe:
    fn::invoke:
      function: oci:VulnerabilityScanning:getContainerScanRecipe
      arguments:
        containerScanRecipeId: ${testContainerScanRecipeOciVulnerabilityScanningContainerScanRecipe.id}
Using getContainerScanRecipe
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 getContainerScanRecipe(args: GetContainerScanRecipeArgs, opts?: InvokeOptions): Promise<GetContainerScanRecipeResult>
function getContainerScanRecipeOutput(args: GetContainerScanRecipeOutputArgs, opts?: InvokeOptions): Output<GetContainerScanRecipeResult>def get_container_scan_recipe(container_scan_recipe_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetContainerScanRecipeResult
def get_container_scan_recipe_output(container_scan_recipe_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetContainerScanRecipeResult]func LookupContainerScanRecipe(ctx *Context, args *LookupContainerScanRecipeArgs, opts ...InvokeOption) (*LookupContainerScanRecipeResult, error)
func LookupContainerScanRecipeOutput(ctx *Context, args *LookupContainerScanRecipeOutputArgs, opts ...InvokeOption) LookupContainerScanRecipeResultOutput> Note: This function is named LookupContainerScanRecipe in the Go SDK.
public static class GetContainerScanRecipe 
{
    public static Task<GetContainerScanRecipeResult> InvokeAsync(GetContainerScanRecipeArgs args, InvokeOptions? opts = null)
    public static Output<GetContainerScanRecipeResult> Invoke(GetContainerScanRecipeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContainerScanRecipeResult> getContainerScanRecipe(GetContainerScanRecipeArgs args, InvokeOptions options)
public static Output<GetContainerScanRecipeResult> getContainerScanRecipe(GetContainerScanRecipeArgs args, InvokeOptions options)
fn::invoke:
  function: oci:VulnerabilityScanning/getContainerScanRecipe:getContainerScanRecipe
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ContainerScan stringRecipe Id 
- unique ContainerScanRecipe identifier
- ContainerScan stringRecipe Id 
- unique ContainerScanRecipe identifier
- containerScan StringRecipe Id 
- unique ContainerScanRecipe identifier
- containerScan stringRecipe Id 
- unique ContainerScanRecipe identifier
- container_scan_ strrecipe_ id 
- unique ContainerScanRecipe identifier
- containerScan StringRecipe Id 
- unique ContainerScanRecipe identifier
getContainerScanRecipe Result
The following output properties are available:
- CompartmentId string
- The OCID of the container scan recipe's compartment
- ContainerScan stringRecipe Id 
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- User friendly name of container scan recipe
- 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.
- ImageCount int
- This field is set equal to the number of images we want to scan in the first go when the recipe is created
- ScanSettings List<GetContainer Scan Recipe Scan Setting> 
- A collection of container scan settings
- State string
- The current state of the config.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- Date and time the recipe was created, format as described in RFC 3339
- TimeUpdated string
- Date and time the recipe was last updated, format as described in RFC 3339
- CompartmentId string
- The OCID of the container scan recipe's compartment
- ContainerScan stringRecipe Id 
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- User friendly name of container scan recipe
- 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.
- ImageCount int
- This field is set equal to the number of images we want to scan in the first go when the recipe is created
- ScanSettings []GetContainer Scan Recipe Scan Setting 
- A collection of container scan settings
- State string
- The current state of the config.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- Date and time the recipe was created, format as described in RFC 3339
- TimeUpdated string
- Date and time the recipe was last updated, format as described in RFC 3339
- compartmentId String
- The OCID of the container scan recipe's compartment
- containerScan StringRecipe Id 
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- User friendly name of container scan recipe
- 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.
- imageCount Integer
- This field is set equal to the number of images we want to scan in the first go when the recipe is created
- scanSettings List<GetContainer Scan Recipe Scan Setting> 
- A collection of container scan settings
- state String
- The current state of the config.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- Date and time the recipe was created, format as described in RFC 3339
- timeUpdated String
- Date and time the recipe was last updated, format as described in RFC 3339
- compartmentId string
- The OCID of the container scan recipe's compartment
- containerScan stringRecipe Id 
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName string
- User friendly name of container scan recipe
- {[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.
- imageCount number
- This field is set equal to the number of images we want to scan in the first go when the recipe is created
- scanSettings GetContainer Scan Recipe Scan Setting[] 
- A collection of container scan settings
- state string
- The current state of the config.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- Date and time the recipe was created, format as described in RFC 3339
- timeUpdated string
- Date and time the recipe was last updated, format as described in RFC 3339
- compartment_id str
- The OCID of the container scan recipe's compartment
- container_scan_ strrecipe_ id 
- 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
- User friendly name of container scan recipe
- 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[GetContainer Scan Recipe Scan Setting] 
- A collection of container scan settings
- state str
- The current state of the config.
- 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
- compartmentId String
- The OCID of the container scan recipe's compartment
- containerScan StringRecipe Id 
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- User friendly name of container scan recipe
- 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.
- imageCount Number
- This field is set equal to the number of images we want to scan in the first go when the recipe is created
- scanSettings List<Property Map>
- A collection of container scan settings
- state String
- The current state of the config.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- Date and time the recipe was created, format as described in RFC 3339
- timeUpdated String
- Date and time the recipe was last updated, format as described in RFC 3339
Supporting Types
GetContainerScanRecipeScanSetting     
- ScanLevel string
- The scan level
- ScanLevel string
- The scan level
- scanLevel String
- The scan level
- scanLevel string
- The scan level
- scan_level str
- The scan level
- scanLevel String
- The scan level
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.