oci.VulnerabilityScanning.ContainerScanTarget
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testContainerScanTarget = new oci.vulnerabilityscanning.ContainerScanTarget("test_container_scan_target", {
compartmentId: compartmentId,
containerScanRecipeId: testContainerScanRecipe.id,
targetRegistry: {
compartmentId: compartmentId,
type: containerScanTargetTargetRegistryType,
repositories: containerScanTargetTargetRegistryRepositories,
url: containerScanTargetTargetRegistryUrl,
},
definedTags: {
"foo-namespace.bar-key": "value",
},
description: containerScanTargetDescription,
displayName: containerScanTargetDisplayName,
freeformTags: {
"bar-key": "value",
},
});
import pulumi
import pulumi_oci as oci
test_container_scan_target = oci.vulnerability_scanning.ContainerScanTarget("test_container_scan_target",
compartment_id=compartment_id,
container_scan_recipe_id=test_container_scan_recipe["id"],
target_registry={
"compartment_id": compartment_id,
"type": container_scan_target_target_registry_type,
"repositories": container_scan_target_target_registry_repositories,
"url": container_scan_target_target_registry_url,
},
defined_tags={
"foo-namespace.bar-key": "value",
},
description=container_scan_target_description,
display_name=container_scan_target_display_name,
freeform_tags={
"bar-key": "value",
})
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.NewContainerScanTarget(ctx, "test_container_scan_target", &VulnerabilityScanning.ContainerScanTargetArgs{
CompartmentId: pulumi.Any(compartmentId),
ContainerScanRecipeId: pulumi.Any(testContainerScanRecipe.Id),
TargetRegistry: &vulnerabilityscanning.ContainerScanTargetTargetRegistryArgs{
CompartmentId: pulumi.Any(compartmentId),
Type: pulumi.Any(containerScanTargetTargetRegistryType),
Repositories: pulumi.Any(containerScanTargetTargetRegistryRepositories),
Url: pulumi.Any(containerScanTargetTargetRegistryUrl),
},
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
Description: pulumi.Any(containerScanTargetDescription),
DisplayName: pulumi.Any(containerScanTargetDisplayName),
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
})
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 testContainerScanTarget = new Oci.VulnerabilityScanning.ContainerScanTarget("test_container_scan_target", new()
{
CompartmentId = compartmentId,
ContainerScanRecipeId = testContainerScanRecipe.Id,
TargetRegistry = new Oci.VulnerabilityScanning.Inputs.ContainerScanTargetTargetRegistryArgs
{
CompartmentId = compartmentId,
Type = containerScanTargetTargetRegistryType,
Repositories = containerScanTargetTargetRegistryRepositories,
Url = containerScanTargetTargetRegistryUrl,
},
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = containerScanTargetDescription,
DisplayName = containerScanTargetDisplayName,
FreeformTags =
{
{ "bar-key", "value" },
},
});
});
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(compartmentId)
.containerScanRecipeId(testContainerScanRecipe.id())
.targetRegistry(ContainerScanTargetTargetRegistryArgs.builder()
.compartmentId(compartmentId)
.type(containerScanTargetTargetRegistryType)
.repositories(containerScanTargetTargetRegistryRepositories)
.url(containerScanTargetTargetRegistryUrl)
.build())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(containerScanTargetDescription)
.displayName(containerScanTargetDisplayName)
.freeformTags(Map.of("bar-key", "value"))
.build());
}
}
resources:
testContainerScanTarget:
type: oci:VulnerabilityScanning:ContainerScanTarget
name: test_container_scan_target
properties:
compartmentId: ${compartmentId}
containerScanRecipeId: ${testContainerScanRecipe.id}
targetRegistry:
compartmentId: ${compartmentId}
type: ${containerScanTargetTargetRegistryType}
repositories: ${containerScanTargetTargetRegistryRepositories}
url: ${containerScanTargetTargetRegistryUrl}
definedTags:
foo-namespace.bar-key: value
description: ${containerScanTargetDescription}
displayName: ${containerScanTargetDisplayName}
freeformTags:
bar-key: value
Create ContainerScanTarget Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerScanTarget(name: string, args: ContainerScanTargetArgs, opts?: CustomResourceOptions);
@overload
def ContainerScanTarget(resource_name: str,
args: ContainerScanTargetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContainerScanTarget(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
container_scan_recipe_id: Optional[str] = None,
target_registry: Optional[_vulnerabilityscanning.ContainerScanTargetTargetRegistryArgs] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var containerScanTargetResource = new Oci.VulnerabilityScanning.ContainerScanTarget("containerScanTargetResource", new()
{
CompartmentId = "string",
ContainerScanRecipeId = "string",
TargetRegistry = new Oci.VulnerabilityScanning.Inputs.ContainerScanTargetTargetRegistryArgs
{
CompartmentId = "string",
Type = "string",
Repositories = new[]
{
"string",
},
Url = "string",
},
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
});
example, err := VulnerabilityScanning.NewContainerScanTarget(ctx, "containerScanTargetResource", &VulnerabilityScanning.ContainerScanTargetArgs{
CompartmentId: pulumi.String("string"),
ContainerScanRecipeId: pulumi.String("string"),
TargetRegistry: &vulnerabilityscanning.ContainerScanTargetTargetRegistryArgs{
CompartmentId: pulumi.String("string"),
Type: pulumi.String("string"),
Repositories: pulumi.StringArray{
pulumi.String("string"),
},
Url: pulumi.String("string"),
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var containerScanTargetResource = new ContainerScanTarget("containerScanTargetResource", ContainerScanTargetArgs.builder()
.compartmentId("string")
.containerScanRecipeId("string")
.targetRegistry(ContainerScanTargetTargetRegistryArgs.builder()
.compartmentId("string")
.type("string")
.repositories("string")
.url("string")
.build())
.definedTags(Map.of("string", "string"))
.description("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.build());
container_scan_target_resource = oci.vulnerability_scanning.ContainerScanTarget("containerScanTargetResource",
compartment_id="string",
container_scan_recipe_id="string",
target_registry={
"compartment_id": "string",
"type": "string",
"repositories": ["string"],
"url": "string",
},
defined_tags={
"string": "string",
},
description="string",
display_name="string",
freeform_tags={
"string": "string",
})
const containerScanTargetResource = new oci.vulnerabilityscanning.ContainerScanTarget("containerScanTargetResource", {
compartmentId: "string",
containerScanRecipeId: "string",
targetRegistry: {
compartmentId: "string",
type: "string",
repositories: ["string"],
url: "string",
},
definedTags: {
string: "string",
},
description: "string",
displayName: "string",
freeformTags: {
string: "string",
},
});
type: oci:VulnerabilityScanning:ContainerScanTarget
properties:
compartmentId: string
containerScanRecipeId: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
targetRegistry:
compartmentId: string
repositories:
- string
type: string
url: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ContainerScanTarget resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the container scan target's compartment
- Container
Scan stringRecipe Id - (Updatable) ID of the container scan recipe this target applies.
- Target
Registry ContainerScan Target Target Registry - (Updatable) Registry information for a container scan target
- Dictionary<string, string>
- (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.
- Display
Name string - (Updatable) User friendly name of container scan target. If not present, will be auto-generated.
- Dictionary<string, string>
- (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 string - (Updatable) The OCID of the container scan target's compartment
- Container
Scan stringRecipe Id - (Updatable) ID of the container scan recipe this target applies.
- Target
Registry ContainerScan Target Target Registry Args - (Updatable) Registry information for a container scan target
- map[string]string
- (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.
- Display
Name string - (Updatable) User friendly name of container scan target. If not present, will be auto-generated.
- map[string]string
- (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 String - (Updatable) The OCID of the container scan target's compartment
- container
Scan StringRecipe Id - (Updatable) ID of the container scan recipe this target applies.
- target
Registry ContainerScan Target Target Registry - (Updatable) Registry information for a container scan target
- Map<String,String>
- (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.
- display
Name String - (Updatable) User friendly name of container scan target. If not present, will be auto-generated.
- Map<String,String>
- (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 string - (Updatable) The OCID of the container scan target's compartment
- container
Scan stringRecipe Id - (Updatable) ID of the container scan recipe this target applies.
- target
Registry ContainerScan Target Target Registry - (Updatable) Registry information for a container scan target
- {[key: string]: string}
- (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.
- display
Name string - (Updatable) User friendly name of container scan target. If not present, will be auto-generated.
- {[key: string]: string}
- (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 container scan target's compartment
- container_
scan_ strrecipe_ id - (Updatable) ID of the container scan recipe this target applies.
- target_
registry vulnerabilityscanning.Container Scan Target Target Registry Args - (Updatable) Registry information for a container scan target
- Mapping[str, str]
- (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.
- Mapping[str, str]
- (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 String - (Updatable) The OCID of the container scan target's compartment
- container
Scan StringRecipe Id - (Updatable) ID of the container scan recipe this target applies.
- target
Registry Property Map - (Updatable) Registry information for a container scan target
- Map<String>
- (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.
- display
Name String - (Updatable) User friendly name of container scan target. If not present, will be auto-generated.
- Map<String>
- (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.
- 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 target was created, format as described in RFC 3339
- Time
Updated 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.
- 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 target was created, format as described in RFC 3339
- Time
Updated 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.
- 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 target was created, format as described in RFC 3339
- time
Updated 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.
- {[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 target was created, format as described in RFC 3339
- time
Updated 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.
- 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 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.
- 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 target was created, format as described in RFC 3339
- time
Updated 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, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = 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.
- Compartment
Id string - (Updatable) The OCID of the container scan target's compartment
- Container
Scan stringRecipe Id - (Updatable) ID of the container scan recipe this target applies.
- Dictionary<string, string>
- (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.
- Display
Name string - (Updatable) User friendly name of container scan target. If not present, will be auto-generated.
- Dictionary<string, string>
- (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.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Target
Registry ContainerScan Target Target Registry - (Updatable) Registry information for a container scan target
- Time
Created string - Date and time the target was created, format as described in RFC 3339
- Time
Updated string - Date and time the target was last updated, format as described in RFC 3339
- Compartment
Id string - (Updatable) The OCID of the container scan target's compartment
- Container
Scan stringRecipe Id - (Updatable) ID of the container scan recipe this target applies.
- map[string]string
- (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.
- Display
Name string - (Updatable) User friendly name of container scan target. If not present, will be auto-generated.
- map[string]string
- (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.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Target
Registry ContainerScan Target Target Registry Args - (Updatable) Registry information for a container scan target
- Time
Created string - Date and time the target was created, format as described in RFC 3339
- Time
Updated string - Date and time the target was last updated, format as described in RFC 3339
- compartment
Id String - (Updatable) The OCID of the container scan target's compartment
- container
Scan StringRecipe Id - (Updatable) ID of the container scan recipe this target applies.
- Map<String,String>
- (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.
- display
Name String - (Updatable) User friendly name of container scan target. If not present, will be auto-generated.
- Map<String,String>
- (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.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Registry ContainerScan Target Target Registry - (Updatable) Registry information for a container scan target
- time
Created String - Date and time the target was created, format as described in RFC 3339
- time
Updated String - Date and time the target was last updated, format as described in RFC 3339
- compartment
Id string - (Updatable) The OCID of the container scan target's compartment
- container
Scan stringRecipe Id - (Updatable) ID of the container scan recipe this target applies.
- {[key: string]: string}
- (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.
- display
Name string - (Updatable) User friendly name of container scan target. If not present, will be auto-generated.
- {[key: string]: string}
- (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.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Registry ContainerScan Target Target Registry - (Updatable) Registry information for a container scan target
- time
Created string - Date and time the target was created, format as described in RFC 3339
- time
Updated string - Date and time the target was last updated, format as described in RFC 3339
- compartment_
id str - (Updatable) The OCID of the container scan target's compartment
- container_
scan_ strrecipe_ id - (Updatable) ID of the container scan recipe this target applies.
- Mapping[str, str]
- (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.
- Mapping[str, str]
- (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.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target_
registry vulnerabilityscanning.Container Scan Target Target Registry Args - (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
- compartment
Id String - (Updatable) The OCID of the container scan target's compartment
- container
Scan StringRecipe Id - (Updatable) ID of the container scan recipe this target applies.
- Map<String>
- (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.
- display
Name String - (Updatable) User friendly name of container scan target. If not present, will be auto-generated.
- Map<String>
- (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.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Registry Property Map - (Updatable) Registry information for a container scan target
- time
Created String - Date and time the target was created, format as described in RFC 3339
- time
Updated String - Date and time the target was last updated, format as described in RFC 3339
Supporting Types
ContainerScanTargetTargetRegistry, ContainerScanTargetTargetRegistryArgs
- Compartment
Id 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).
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Compartment
Id 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).
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id 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).
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id 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).
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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).
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id 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).
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
ContainerScanTargets can be imported using the id
, e.g.
$ pulumi import oci:VulnerabilityScanning/containerScanTarget:ContainerScanTarget test_container_scan_target "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.