Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getContainerScanRecipe

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testContainerScanRecipe = Output.Create(Oci.VulnerabilityScanning.GetContainerScanRecipe.InvokeAsync(new Oci.VulnerabilityScanning.GetContainerScanRecipeArgs
        {
            ContainerScanRecipeId = 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
	})
}

Coming soon!

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

Coming soon!

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 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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.