1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. VulnerabilityScanning
  5. getContainerScanRecipe
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.VulnerabilityScanning.getContainerScanRecipe

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 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: oci_vulnerability_scanning_container_scan_recipe.test_container_scan_recipe.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_container_scan_recipe = oci.VulnerabilityScanning.get_container_scan_recipe(container_scan_recipe_id=oci_vulnerability_scanning_container_scan_recipe["test_container_scan_recipe"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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: oci_vulnerability_scanning_container_scan_recipe.Test_container_scan_recipe.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 = oci_vulnerability_scanning_container_scan_recipe.Test_container_scan_recipe.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(oci_vulnerability_scanning_container_scan_recipe.test_container_scan_recipe().id())
                .build());
    
        }
    }
    
    variables:
      testContainerScanRecipe:
        fn::invoke:
          Function: oci:VulnerabilityScanning:getContainerScanRecipe
          Arguments:
            containerScanRecipeId: ${oci_vulnerability_scanning_container_scan_recipe.test_container_scan_recipe.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 GetContainerScanRecipe(ctx *Context, args *GetContainerScanRecipeArgs, opts ...InvokeOption) (*GetContainerScanRecipeResult, error)
    func GetContainerScanRecipeOutput(ctx *Context, args *GetContainerScanRecipeOutputArgs, opts ...InvokeOption) GetContainerScanRecipeResultOutput

    > 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)
    }
    public static CompletableFuture<GetContainerScanRecipeResult> getContainerScanRecipe(GetContainerScanRecipeArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:VulnerabilityScanning/getContainerScanRecipe:getContainerScanRecipe
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ContainerScanRecipeId string
    unique ContainerScanRecipe identifier
    ContainerScanRecipeId string
    unique ContainerScanRecipe identifier
    containerScanRecipeId String
    unique ContainerScanRecipe identifier
    containerScanRecipeId string
    unique ContainerScanRecipe identifier
    container_scan_recipe_id str
    unique ContainerScanRecipe identifier
    containerScanRecipeId 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, object>
    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, object>
    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, object>
    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]interface{}
    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]interface{}
    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]interface{}
    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,Object>
    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,Object>
    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,Object>
    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]: any}
    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]: any}
    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]: any}
    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, Any]
    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, Any]
    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, Any]
    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<Any>
    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<Any>
    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<Any>
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi