1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. VulnerabilityScanning
  5. HostScanTarget
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.VulnerabilityScanning.HostScanTarget

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

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

    Creates a new HostScanTarget. A host scan target is a collection of compute instances that you want routinely scanned for security vulnerabilities.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testHostScanTarget = new oci.vulnerabilityscanning.HostScanTarget("test_host_scan_target", {
        compartmentId: compartmentId,
        hostScanRecipeId: testHostScanRecipe.id,
        targetCompartmentId: testCompartment.id,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        description: hostScanTargetDescription,
        displayName: hostScanTargetDisplayName,
        freeformTags: {
            "bar-key": "value",
        },
        instanceIds: hostScanTargetInstanceIds,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_host_scan_target = oci.vulnerability_scanning.HostScanTarget("test_host_scan_target",
        compartment_id=compartment_id,
        host_scan_recipe_id=test_host_scan_recipe["id"],
        target_compartment_id=test_compartment["id"],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        description=host_scan_target_description,
        display_name=host_scan_target_display_name,
        freeform_tags={
            "bar-key": "value",
        },
        instance_ids=host_scan_target_instance_ids)
    
    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.NewHostScanTarget(ctx, "test_host_scan_target", &VulnerabilityScanning.HostScanTargetArgs{
    			CompartmentId:       pulumi.Any(compartmentId),
    			HostScanRecipeId:    pulumi.Any(testHostScanRecipe.Id),
    			TargetCompartmentId: pulumi.Any(testCompartment.Id),
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			Description: pulumi.Any(hostScanTargetDescription),
    			DisplayName: pulumi.Any(hostScanTargetDisplayName),
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			InstanceIds: pulumi.Any(hostScanTargetInstanceIds),
    		})
    		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 testHostScanTarget = new Oci.VulnerabilityScanning.HostScanTarget("test_host_scan_target", new()
        {
            CompartmentId = compartmentId,
            HostScanRecipeId = testHostScanRecipe.Id,
            TargetCompartmentId = testCompartment.Id,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            Description = hostScanTargetDescription,
            DisplayName = hostScanTargetDisplayName,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            InstanceIds = hostScanTargetInstanceIds,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.VulnerabilityScanning.HostScanTarget;
    import com.pulumi.oci.VulnerabilityScanning.HostScanTargetArgs;
    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 testHostScanTarget = new HostScanTarget("testHostScanTarget", HostScanTargetArgs.builder()
                .compartmentId(compartmentId)
                .hostScanRecipeId(testHostScanRecipe.id())
                .targetCompartmentId(testCompartment.id())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .description(hostScanTargetDescription)
                .displayName(hostScanTargetDisplayName)
                .freeformTags(Map.of("bar-key", "value"))
                .instanceIds(hostScanTargetInstanceIds)
                .build());
    
        }
    }
    
    resources:
      testHostScanTarget:
        type: oci:VulnerabilityScanning:HostScanTarget
        name: test_host_scan_target
        properties:
          compartmentId: ${compartmentId}
          hostScanRecipeId: ${testHostScanRecipe.id}
          targetCompartmentId: ${testCompartment.id}
          definedTags:
            foo-namespace.bar-key: value
          description: ${hostScanTargetDescription}
          displayName: ${hostScanTargetDisplayName}
          freeformTags:
            bar-key: value
          instanceIds: ${hostScanTargetInstanceIds}
    

    Create HostScanTarget Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new HostScanTarget(name: string, args: HostScanTargetArgs, opts?: CustomResourceOptions);
    @overload
    def HostScanTarget(resource_name: str,
                       args: HostScanTargetArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def HostScanTarget(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       compartment_id: Optional[str] = None,
                       host_scan_recipe_id: Optional[str] = None,
                       target_compartment_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,
                       instance_ids: Optional[Sequence[str]] = None)
    func NewHostScanTarget(ctx *Context, name string, args HostScanTargetArgs, opts ...ResourceOption) (*HostScanTarget, error)
    public HostScanTarget(string name, HostScanTargetArgs args, CustomResourceOptions? opts = null)
    public HostScanTarget(String name, HostScanTargetArgs args)
    public HostScanTarget(String name, HostScanTargetArgs args, CustomResourceOptions options)
    
    type: oci:VulnerabilityScanning:HostScanTarget
    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 HostScanTargetArgs
    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 HostScanTargetArgs
    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 HostScanTargetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HostScanTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HostScanTargetArgs
    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 hostScanTargetResource = new Oci.VulnerabilityScanning.HostScanTarget("hostScanTargetResource", new()
    {
        CompartmentId = "string",
        HostScanRecipeId = "string",
        TargetCompartmentId = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        Description = "string",
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "any" },
        },
        InstanceIds = new[]
        {
            "string",
        },
    });
    
    example, err := VulnerabilityScanning.NewHostScanTarget(ctx, "hostScanTargetResource", &VulnerabilityScanning.HostScanTargetArgs{
    	CompartmentId:       pulumi.String("string"),
    	HostScanRecipeId:    pulumi.String("string"),
    	TargetCompartmentId: pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Description: pulumi.String("string"),
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	InstanceIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var hostScanTargetResource = new HostScanTarget("hostScanTargetResource", HostScanTargetArgs.builder()
        .compartmentId("string")
        .hostScanRecipeId("string")
        .targetCompartmentId("string")
        .definedTags(Map.of("string", "any"))
        .description("string")
        .displayName("string")
        .freeformTags(Map.of("string", "any"))
        .instanceIds("string")
        .build());
    
    host_scan_target_resource = oci.vulnerability_scanning.HostScanTarget("hostScanTargetResource",
        compartment_id="string",
        host_scan_recipe_id="string",
        target_compartment_id="string",
        defined_tags={
            "string": "any",
        },
        description="string",
        display_name="string",
        freeform_tags={
            "string": "any",
        },
        instance_ids=["string"])
    
    const hostScanTargetResource = new oci.vulnerabilityscanning.HostScanTarget("hostScanTargetResource", {
        compartmentId: "string",
        hostScanRecipeId: "string",
        targetCompartmentId: "string",
        definedTags: {
            string: "any",
        },
        description: "string",
        displayName: "string",
        freeformTags: {
            string: "any",
        },
        instanceIds: ["string"],
    });
    
    type: oci:VulnerabilityScanning:HostScanTarget
    properties:
        compartmentId: string
        definedTags:
            string: any
        description: string
        displayName: string
        freeformTags:
            string: any
        hostScanRecipeId: string
        instanceIds:
            - string
        targetCompartmentId: string
    

    HostScanTarget 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 HostScanTarget resource accepts the following input properties:

    CompartmentId string
    (Updatable) Compartment ID of the object (this).
    HostScanRecipeId string
    (Updatable) ID of the host scan recipe this target applies.
    TargetCompartmentId string

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    InstanceIds List<string>
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
    CompartmentId string
    (Updatable) Compartment ID of the object (this).
    HostScanRecipeId string
    (Updatable) ID of the host scan recipe this target applies.
    TargetCompartmentId string

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    InstanceIds []string
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
    compartmentId String
    (Updatable) Compartment ID of the object (this).
    hostScanRecipeId String
    (Updatable) ID of the host scan recipe this target applies.
    targetCompartmentId String

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    instanceIds List<String>
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
    compartmentId string
    (Updatable) Compartment ID of the object (this).
    hostScanRecipeId string
    (Updatable) ID of the host scan recipe this target applies.
    targetCompartmentId string

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    instanceIds string[]
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
    compartment_id str
    (Updatable) Compartment ID of the object (this).
    host_scan_recipe_id str
    (Updatable) ID of the host scan recipe this target applies.
    target_compartment_id str

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    instance_ids Sequence[str]
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
    compartmentId String
    (Updatable) Compartment ID of the object (this).
    hostScanRecipeId String
    (Updatable) ID of the host scan recipe this target applies.
    targetCompartmentId String

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    instanceIds List<String>
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HostScanTarget 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 HostScanTarget Resource

    Get an existing HostScanTarget 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?: HostScanTargetState, opts?: CustomResourceOptions): HostScanTarget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_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,
            host_scan_recipe_id: Optional[str] = None,
            instance_ids: Optional[Sequence[str]] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            target_compartment_id: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> HostScanTarget
    func GetHostScanTarget(ctx *Context, name string, id IDInput, state *HostScanTargetState, opts ...ResourceOption) (*HostScanTarget, error)
    public static HostScanTarget Get(string name, Input<string> id, HostScanTargetState? state, CustomResourceOptions? opts = null)
    public static HostScanTarget get(String name, Output<String> id, HostScanTargetState 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) Compartment ID of the object (this).
    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    HostScanRecipeId string
    (Updatable) ID of the host scan recipe this target applies.
    InstanceIds List<string>
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
    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"}
    TargetCompartmentId string

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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) Compartment ID of the object (this).
    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    HostScanRecipeId string
    (Updatable) ID of the host scan recipe this target applies.
    InstanceIds []string
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
    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"}
    TargetCompartmentId string

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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) Compartment ID of the object (this).
    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    hostScanRecipeId String
    (Updatable) ID of the host scan recipe this target applies.
    instanceIds List<String>
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
    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"}
    targetCompartmentId String

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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) Compartment ID of the object (this).
    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    hostScanRecipeId string
    (Updatable) ID of the host scan recipe this target applies.
    instanceIds string[]
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
    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"}
    targetCompartmentId string

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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) Compartment ID of the object (this).
    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    host_scan_recipe_id str
    (Updatable) ID of the host scan recipe this target applies.
    instance_ids Sequence[str]
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
    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_compartment_id str

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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) Compartment ID of the object (this).
    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) Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.
    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"}
    hostScanRecipeId String
    (Updatable) ID of the host scan recipe this target applies.
    instanceIds List<String>
    (Updatable) List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
    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"}
    targetCompartmentId String

    (Updatable) Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

    ** 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

    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

    Import

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

    $ pulumi import oci:VulnerabilityScanning/hostScanTarget:HostScanTarget test_host_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.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi