1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. VulnerabilityScanning
  5. getContainerScanRecipe
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.VulnerabilityScanning.getContainerScanRecipe

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testContainerScanRecipe:
    fn::invoke:
      function: oci:VulnerabilityScanning:getContainerScanRecipe
      arguments:
        containerScanRecipeId: ${testContainerScanRecipeOciVulnerabilityScanningContainerScanRecipe.id}
Copy

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>
Copy
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]
Copy
func GetContainerScanRecipe(ctx *Context, args *GetContainerScanRecipeArgs, opts ...InvokeOption) (*GetContainerScanRecipeResult, error)
func GetContainerScanRecipeOutput(ctx *Context, args *GetContainerScanRecipeOutputArgs, opts ...InvokeOption) GetContainerScanRecipeResultOutput
Copy

> Note: This function is named GetContainerScanRecipe 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)
}
Copy
public static CompletableFuture<GetContainerScanRecipeResult> getContainerScanRecipe(GetContainerScanRecipeArgs args, InvokeOptions options)
public static Output<GetContainerScanRecipeResult> getContainerScanRecipe(GetContainerScanRecipeArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:VulnerabilityScanning/getContainerScanRecipe:getContainerScanRecipe
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ContainerScanRecipeId This property is required. string
unique ContainerScanRecipe identifier
ContainerScanRecipeId This property is required. string
unique ContainerScanRecipe identifier
containerScanRecipeId This property is required. String
unique ContainerScanRecipe identifier
containerScanRecipeId This property is required. string
unique ContainerScanRecipe identifier
container_scan_recipe_id This property is required. str
unique ContainerScanRecipe identifier
containerScanRecipeId This property is required. String
unique ContainerScanRecipe identifier

getContainerScanRecipe Result

The following output properties are available:

CompartmentId string
The OCID of the container scan recipe's compartment
ContainerScanRecipeId string
DefinedTags 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
FreeformTags 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<GetContainerScanRecipeScanSetting>
A collection of container scan settings
State string
The current state of the config.
SystemTags 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
ContainerScanRecipeId string
DefinedTags 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
FreeformTags 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 []GetContainerScanRecipeScanSetting
A collection of container scan settings
State string
The current state of the config.
SystemTags 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
containerScanRecipeId String
definedTags 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
freeformTags 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<GetContainerScanRecipeScanSetting>
A collection of container scan settings
state String
The current state of the config.
systemTags 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
containerScanRecipeId string
definedTags {[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
freeformTags {[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 GetContainerScanRecipeScanSetting[]
A collection of container scan settings
state string
The current state of the config.
systemTags {[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_recipe_id str
defined_tags 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
freeform_tags 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.GetContainerScanRecipeScanSetting]
A collection of container scan settings
state str
The current state of the config.
system_tags 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
containerScanRecipeId String
definedTags 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
freeformTags 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.
systemTags 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 This property is required. string
The scan level
ScanLevel This property is required. string
The scan level
scanLevel This property is required. String
The scan level
scanLevel This property is required. string
The scan level
scan_level This property is required. str
The scan level
scanLevel This property is required. String
The scan level

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi