Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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 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:
- Container
Scan stringRecipe Id - unique ContainerScanRecipe identifier
- Container
Scan stringRecipe Id - unique ContainerScanRecipe identifier
- container
Scan StringRecipe Id - unique ContainerScanRecipe identifier
- container
Scan stringRecipe Id - unique ContainerScanRecipe identifier
- container_
scan_ strrecipe_ id - unique ContainerScanRecipe identifier
- container
Scan StringRecipe Id - unique ContainerScanRecipe identifier
getContainerScanRecipe Result
The following output properties are available:
- Compartment
Id string - The OCID of the container scan recipe's compartment
- Container
Scan 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"}
- Display
Name 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.
- 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 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"}
- 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 OCID of the container scan recipe's compartment
- Container
Scan 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"}
- Display
Name 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.
- 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 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"}
- 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 OCID of the container scan recipe's compartment
- container
Scan 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"}
- display
Name 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.
- 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 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"}
- 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 OCID of the container scan recipe's compartment
- container
Scan 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"}
- display
Name 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.
- 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 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"}
- 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 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[vulnerabilityscanning.Get Container 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
- compartment
Id String - The OCID of the container scan recipe's compartment
- container
Scan StringRecipe Id - 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 - 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.
- 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
- 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"}
- 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
Supporting Types
GetContainerScanRecipeScanSetting
- 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
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.