oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.VulnerabilityScanning.ContainerScanTarget

This resource provides the Container Scan Target resource in Oracle Cloud Infrastructure Vulnerability Scanning service.

Creates a new ContainerScanTarget. A container scan target specifies a group of one or more Docker image repositories in Oracle Cloud Infrastructure Registry (OCIR) that you want routinely scanned for security vulnerabilities.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testContainerScanTarget = new Oci.VulnerabilityScanning.ContainerScanTarget("testContainerScanTarget", new()
    {
        CompartmentId = @var.Compartment_id,
        ContainerScanRecipeId = oci_vulnerability_scanning_container_scan_recipe.Test_container_scan_recipe.Id,
        TargetRegistry = new Oci.VulnerabilityScanning.Inputs.ContainerScanTargetTargetRegistryArgs
        {
            CompartmentId = @var.Compartment_id,
            Type = @var.Container_scan_target_target_registry_type,
            Repositories = @var.Container_scan_target_target_registry_repositories,
            Url = @var.Container_scan_target_target_registry_url,
        },
        DefinedTags = 
        {
            { "foo-namespace.bar-key", "value" },
        },
        Description = @var.Container_scan_target_description,
        DisplayName = @var.Container_scan_target_display_name,
        FreeformTags = 
        {
            { "bar-key", "value" },
        },
    });

});
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.NewContainerScanTarget(ctx, "testContainerScanTarget", &VulnerabilityScanning.ContainerScanTargetArgs{
			CompartmentId:         pulumi.Any(_var.Compartment_id),
			ContainerScanRecipeId: pulumi.Any(oci_vulnerability_scanning_container_scan_recipe.Test_container_scan_recipe.Id),
			TargetRegistry: &vulnerabilityscanning.ContainerScanTargetTargetRegistryArgs{
				CompartmentId: pulumi.Any(_var.Compartment_id),
				Type:          pulumi.Any(_var.Container_scan_target_target_registry_type),
				Repositories:  pulumi.Any(_var.Container_scan_target_target_registry_repositories),
				Url:           pulumi.Any(_var.Container_scan_target_target_registry_url),
			},
			DefinedTags: pulumi.AnyMap{
				"foo-namespace.bar-key": pulumi.Any("value"),
			},
			Description: pulumi.Any(_var.Container_scan_target_description),
			DisplayName: pulumi.Any(_var.Container_scan_target_display_name),
			FreeformTags: pulumi.AnyMap{
				"bar-key": pulumi.Any("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.VulnerabilityScanning.ContainerScanTarget;
import com.pulumi.oci.VulnerabilityScanning.ContainerScanTargetArgs;
import com.pulumi.oci.VulnerabilityScanning.inputs.ContainerScanTargetTargetRegistryArgs;
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) {
        var testContainerScanTarget = new ContainerScanTarget("testContainerScanTarget", ContainerScanTargetArgs.builder()        
            .compartmentId(var_.compartment_id())
            .containerScanRecipeId(oci_vulnerability_scanning_container_scan_recipe.test_container_scan_recipe().id())
            .targetRegistry(ContainerScanTargetTargetRegistryArgs.builder()
                .compartmentId(var_.compartment_id())
                .type(var_.container_scan_target_target_registry_type())
                .repositories(var_.container_scan_target_target_registry_repositories())
                .url(var_.container_scan_target_target_registry_url())
                .build())
            .definedTags(Map.of("foo-namespace.bar-key", "value"))
            .description(var_.container_scan_target_description())
            .displayName(var_.container_scan_target_display_name())
            .freeformTags(Map.of("bar-key", "value"))
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_container_scan_target = oci.vulnerability_scanning.ContainerScanTarget("testContainerScanTarget",
    compartment_id=var["compartment_id"],
    container_scan_recipe_id=oci_vulnerability_scanning_container_scan_recipe["test_container_scan_recipe"]["id"],
    target_registry=oci.vulnerability_scanning.ContainerScanTargetTargetRegistryArgs(
        compartment_id=var["compartment_id"],
        type=var["container_scan_target_target_registry_type"],
        repositories=var["container_scan_target_target_registry_repositories"],
        url=var["container_scan_target_target_registry_url"],
    ),
    defined_tags={
        "foo-namespace.bar-key": "value",
    },
    description=var["container_scan_target_description"],
    display_name=var["container_scan_target_display_name"],
    freeform_tags={
        "bar-key": "value",
    })
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testContainerScanTarget = new oci.vulnerabilityscanning.ContainerScanTarget("testContainerScanTarget", {
    compartmentId: _var.compartment_id,
    containerScanRecipeId: oci_vulnerability_scanning_container_scan_recipe.test_container_scan_recipe.id,
    targetRegistry: {
        compartmentId: _var.compartment_id,
        type: _var.container_scan_target_target_registry_type,
        repositories: _var.container_scan_target_target_registry_repositories,
        url: _var.container_scan_target_target_registry_url,
    },
    definedTags: {
        "foo-namespace.bar-key": "value",
    },
    description: _var.container_scan_target_description,
    displayName: _var.container_scan_target_display_name,
    freeformTags: {
        "bar-key": "value",
    },
});
resources:
  testContainerScanTarget:
    type: oci:VulnerabilityScanning:ContainerScanTarget
    properties:
      #Required
      compartmentId: ${var.compartment_id}
      containerScanRecipeId: ${oci_vulnerability_scanning_container_scan_recipe.test_container_scan_recipe.id}
      targetRegistry:
        compartmentId: ${var.compartment_id}
        type: ${var.container_scan_target_target_registry_type}
        repositories: ${var.container_scan_target_target_registry_repositories}
        url: ${var.container_scan_target_target_registry_url}
      #Optional
      definedTags:
        foo-namespace.bar-key: value
      description: ${var.container_scan_target_description}
      displayName: ${var.container_scan_target_display_name}
      freeformTags:
        bar-key: value

Create ContainerScanTarget Resource

new ContainerScanTarget(name: string, args: ContainerScanTargetArgs, opts?: CustomResourceOptions);
@overload
def ContainerScanTarget(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        compartment_id: Optional[str] = None,
                        container_scan_recipe_id: Optional[str] = None,
                        defined_tags: Optional[Mapping[str, Any]] = None,
                        description: Optional[str] = None,
                        display_name: Optional[str] = None,
                        freeform_tags: Optional[Mapping[str, Any]] = None,
                        target_registry: Optional[_vulnerabilityscanning.ContainerScanTargetTargetRegistryArgs] = None)
@overload
def ContainerScanTarget(resource_name: str,
                        args: ContainerScanTargetArgs,
                        opts: Optional[ResourceOptions] = None)
func NewContainerScanTarget(ctx *Context, name string, args ContainerScanTargetArgs, opts ...ResourceOption) (*ContainerScanTarget, error)
public ContainerScanTarget(string name, ContainerScanTargetArgs args, CustomResourceOptions? opts = null)
public ContainerScanTarget(String name, ContainerScanTargetArgs args)
public ContainerScanTarget(String name, ContainerScanTargetArgs args, CustomResourceOptions options)
type: oci:VulnerabilityScanning:ContainerScanTarget
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ContainerScanTargetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ContainerScanTargetArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ContainerScanTargetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ContainerScanTargetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ContainerScanTargetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ContainerScanTarget Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ContainerScanTarget resource accepts the following input properties:

CompartmentId string

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

ContainerScanRecipeId string

(Updatable) ID of the container scan recipe this target applies.

TargetRegistry ContainerScanTargetTargetRegistryArgs

(Updatable) Registry information for a container scan target

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) Target description.

DisplayName string

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

CompartmentId string

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

ContainerScanRecipeId string

(Updatable) ID of the container scan recipe this target applies.

TargetRegistry ContainerScanTargetTargetRegistryArgs

(Updatable) Registry information for a container scan target

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) Target description.

DisplayName string

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId String

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

containerScanRecipeId String

(Updatable) ID of the container scan recipe this target applies.

targetRegistry ContainerScanTargetTargetRegistryArgs

(Updatable) Registry information for a container scan target

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) Target description.

displayName String

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId string

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

containerScanRecipeId string

(Updatable) ID of the container scan recipe this target applies.

targetRegistry ContainerScanTargetTargetRegistryArgs

(Updatable) Registry information for a container scan target

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description string

(Updatable) Target description.

displayName string

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartment_id str

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

container_scan_recipe_id str

(Updatable) ID of the container scan recipe this target applies.

target_registry ContainerScanTargetTargetRegistryArgs

(Updatable) Registry information for a container scan target

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description str

(Updatable) Target description.

display_name str

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId String

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

containerScanRecipeId String

(Updatable) ID of the container scan recipe this target applies.

targetRegistry Property Map

(Updatable) Registry information for a container scan target

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) Target description.

displayName String

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Outputs

All input properties are implicitly available as output properties. Additionally, the ContainerScanTarget resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

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 target was created, format as described in RFC 3339

TimeUpdated string

Date and time the target was last updated, format as described in RFC 3339

Id string

The provider-assigned unique ID for this managed resource.

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 target was created, format as described in RFC 3339

TimeUpdated string

Date and time the target was last updated, format as described in RFC 3339

id String

The provider-assigned unique ID for this managed resource.

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 target was created, format as described in RFC 3339

timeUpdated String

Date and time the target was last updated, format as described in RFC 3339

id string

The provider-assigned unique ID for this managed resource.

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 target was created, format as described in RFC 3339

timeUpdated string

Date and time the target was last updated, format as described in RFC 3339

id str

The provider-assigned unique ID for this managed resource.

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 target was created, format as described in RFC 3339

time_updated str

Date and time the target was last updated, format as described in RFC 3339

id String

The provider-assigned unique ID for this managed resource.

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 target was created, format as described in RFC 3339

timeUpdated String

Date and time the target was last updated, format as described in RFC 3339

Look up Existing ContainerScanTarget Resource

Get an existing ContainerScanTarget resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ContainerScanTargetState, opts?: CustomResourceOptions): ContainerScanTarget
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        container_scan_recipe_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, Any]] = None,
        target_registry: Optional[_vulnerabilityscanning.ContainerScanTargetTargetRegistryArgs] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> ContainerScanTarget
func GetContainerScanTarget(ctx *Context, name string, id IDInput, state *ContainerScanTargetState, opts ...ResourceOption) (*ContainerScanTarget, error)
public static ContainerScanTarget Get(string name, Input<string> id, ContainerScanTargetState? state, CustomResourceOptions? opts = null)
public static ContainerScanTarget get(String name, Output<String> id, ContainerScanTargetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CompartmentId string

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

ContainerScanRecipeId string

(Updatable) ID of the container scan recipe this target applies.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) Target description.

DisplayName string

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

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"}

TargetRegistry ContainerScanTargetTargetRegistryArgs

(Updatable) Registry information for a container scan target

TimeCreated string

Date and time the target was created, format as described in RFC 3339

TimeUpdated string

Date and time the target was last updated, format as described in RFC 3339

CompartmentId string

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

ContainerScanRecipeId string

(Updatable) ID of the container scan recipe this target applies.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) Target description.

DisplayName string

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

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"}

TargetRegistry ContainerScanTargetTargetRegistryArgs

(Updatable) Registry information for a container scan target

TimeCreated string

Date and time the target was created, format as described in RFC 3339

TimeUpdated string

Date and time the target was last updated, format as described in RFC 3339

compartmentId String

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

containerScanRecipeId String

(Updatable) ID of the container scan recipe this target applies.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) Target description.

displayName String

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

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"}

targetRegistry ContainerScanTargetTargetRegistryArgs

(Updatable) Registry information for a container scan target

timeCreated String

Date and time the target was created, format as described in RFC 3339

timeUpdated String

Date and time the target was last updated, format as described in RFC 3339

compartmentId string

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

containerScanRecipeId string

(Updatable) ID of the container scan recipe this target applies.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description string

(Updatable) Target description.

displayName string

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

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"}

targetRegistry ContainerScanTargetTargetRegistryArgs

(Updatable) Registry information for a container scan target

timeCreated string

Date and time the target was created, format as described in RFC 3339

timeUpdated string

Date and time the target was last updated, format as described in RFC 3339

compartment_id str

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

container_scan_recipe_id str

(Updatable) ID of the container scan recipe this target applies.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description str

(Updatable) Target description.

display_name str

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

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"}

target_registry ContainerScanTargetTargetRegistryArgs

(Updatable) Registry information for a container scan target

time_created str

Date and time the target was created, format as described in RFC 3339

time_updated str

Date and time the target was last updated, format as described in RFC 3339

compartmentId String

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

containerScanRecipeId String

(Updatable) ID of the container scan recipe this target applies.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) Target description.

displayName String

(Updatable) User friendly name of container scan target. If not present, will be auto-generated.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

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"}

targetRegistry Property Map

(Updatable) Registry information for a container scan target

timeCreated String

Date and time the target was created, format as described in RFC 3339

timeUpdated String

Date and time the target was last updated, format as described in RFC 3339

Supporting Types

ContainerScanTargetTargetRegistry

CompartmentId string

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

Type string

(Updatable) The scan level

Repositories List<string>

(Updatable) List of repositories to scan images in. If left empty, the target defaults to scanning all repos in the compartmentId

Url string

(Updatable) URL of the registry. Required for non-OCIR registry types (for OCIR registry types, it can be inferred from the tenancy).

CompartmentId string

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

Type string

(Updatable) The scan level

Repositories []string

(Updatable) List of repositories to scan images in. If left empty, the target defaults to scanning all repos in the compartmentId

Url string

(Updatable) URL of the registry. Required for non-OCIR registry types (for OCIR registry types, it can be inferred from the tenancy).

compartmentId String

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

type String

(Updatable) The scan level

repositories List<String>

(Updatable) List of repositories to scan images in. If left empty, the target defaults to scanning all repos in the compartmentId

url String

(Updatable) URL of the registry. Required for non-OCIR registry types (for OCIR registry types, it can be inferred from the tenancy).

compartmentId string

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

type string

(Updatable) The scan level

repositories string[]

(Updatable) List of repositories to scan images in. If left empty, the target defaults to scanning all repos in the compartmentId

url string

(Updatable) URL of the registry. Required for non-OCIR registry types (for OCIR registry types, it can be inferred from the tenancy).

compartment_id str

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

type str

(Updatable) The scan level

repositories Sequence[str]

(Updatable) List of repositories to scan images in. If left empty, the target defaults to scanning all repos in the compartmentId

url str

(Updatable) URL of the registry. Required for non-OCIR registry types (for OCIR registry types, it can be inferred from the tenancy).

compartmentId String

(Updatable) The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.

type String

(Updatable) The scan level

repositories List<String>

(Updatable) List of repositories to scan images in. If left empty, the target defaults to scanning all repos in the compartmentId

url String

(Updatable) URL of the registry. Required for non-OCIR registry types (for OCIR registry types, it can be inferred from the tenancy).

Import

ContainerScanTargets can be imported using the id, e.g.

 $ pulumi import oci:VulnerabilityScanning/containerScanTarget:ContainerScanTarget test_container_scan_target "id"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.