Oracle Cloud Infrastructure
getHostScanTarget
This data source provides details about a specific Host Scan Target resource in Oracle Cloud Infrastructure Vulnerability Scanning service.
Retrieves a HostScanTarget identified by the target ID. A host scan target is a collection of compute instances that you want routinely scanned for security vulnerabilities.
Example Usage
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testHostScanTarget = Output.Create(Oci.VulnerabilityScanning.GetHostScanTarget.InvokeAsync(new Oci.VulnerabilityScanning.GetHostScanTargetArgs
{
HostScanTargetId = oci_vulnerability_scanning_host_scan_target.Test_host_scan_target.Id,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/VulnerabilityScanning"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := VulnerabilityScanning.GetHostScanTarget(ctx, &vulnerabilityscanning.GetHostScanTargetArgs{
HostScanTargetId: oci_vulnerability_scanning_host_scan_target.Test_host_scan_target.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_host_scan_target = oci.VulnerabilityScanning.get_host_scan_target(host_scan_target_id=oci_vulnerability_scanning_host_scan_target["test_host_scan_target"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testHostScanTarget = oci.VulnerabilityScanning.getHostScanTarget({
hostScanTargetId: oci_vulnerability_scanning_host_scan_target.test_host_scan_target.id,
});
Coming soon!
Using getHostScanTarget
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getHostScanTarget(args: GetHostScanTargetArgs, opts?: InvokeOptions): Promise<GetHostScanTargetResult>
function getHostScanTargetOutput(args: GetHostScanTargetOutputArgs, opts?: InvokeOptions): Output<GetHostScanTargetResult>
def get_host_scan_target(host_scan_target_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHostScanTargetResult
def get_host_scan_target_output(host_scan_target_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHostScanTargetResult]
func GetHostScanTarget(ctx *Context, args *GetHostScanTargetArgs, opts ...InvokeOption) (*GetHostScanTargetResult, error)
func GetHostScanTargetOutput(ctx *Context, args *GetHostScanTargetOutputArgs, opts ...InvokeOption) GetHostScanTargetResultOutput
> Note: This function is named GetHostScanTarget
in the Go SDK.
public static class GetHostScanTarget
{
public static Task<GetHostScanTargetResult> InvokeAsync(GetHostScanTargetArgs args, InvokeOptions? opts = null)
public static Output<GetHostScanTargetResult> Invoke(GetHostScanTargetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHostScanTargetResult> getHostScanTarget(GetHostScanTargetArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:VulnerabilityScanning/getHostScanTarget:getHostScanTarget
Arguments:
# Arguments dictionary
The following arguments are supported:
- Host
Scan stringTarget Id unique HostScanTarget identifier
- Host
Scan stringTarget Id unique HostScanTarget identifier
- host
Scan StringTarget Id unique HostScanTarget identifier
- host
Scan stringTarget Id unique HostScanTarget identifier
- host_
scan_ strtarget_ id unique HostScanTarget identifier
- host
Scan StringTarget Id unique HostScanTarget identifier
getHostScanTarget Result
The following output properties are available:
- Compartment
Id string Compartment ID of the object (this).
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
Target description.
- Display
Name string Target identifier, which can be renamed.
- Dictionary<string, object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Host
Scan stringRecipe Id ID of the host scan recipe this target applies.
- Host
Scan stringTarget Id - Id string
Unique identifier of the config that is immutable on creation
- Instance
Ids List<string> List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
- State string
The current state of the config.
- Dictionary<string, object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Target
Compartment stringId Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.
- 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 Compartment ID of the object (this).
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
Target description.
- Display
Name string Target identifier, which can be renamed.
- map[string]interface{}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Host
Scan stringRecipe Id ID of the host scan recipe this target applies.
- Host
Scan stringTarget Id - Id string
Unique identifier of the config that is immutable on creation
- Instance
Ids []string List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
- State string
The current state of the config.
- map[string]interface{}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Target
Compartment stringId Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.
- 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 Compartment ID of the object (this).
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
Target description.
- display
Name String Target identifier, which can be renamed.
- Map<String,Object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- host
Scan StringRecipe Id ID of the host scan recipe this target applies.
- host
Scan StringTarget Id - id String
Unique identifier of the config that is immutable on creation
- instance
Ids List<String> List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
- state String
The current state of the config.
- Map<String,Object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Compartment StringId Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.
- 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 Compartment ID of the object (this).
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
Target description.
- display
Name string Target identifier, which can be renamed.
- {[key: string]: any}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- host
Scan stringRecipe Id ID of the host scan recipe this target applies.
- host
Scan stringTarget Id - id string
Unique identifier of the config that is immutable on creation
- instance
Ids string[] List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
- state string
The current state of the config.
- {[key: string]: any}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Compartment stringId Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.
- 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 Compartment ID of the object (this).
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
Target description.
- display_
name str Target identifier, which can be renamed.
- Mapping[str, Any]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- host_
scan_ strrecipe_ id ID of the host scan recipe this target applies.
- host_
scan_ strtarget_ id - id str
Unique identifier of the config that is immutable on creation
- instance_
ids Sequence[str] List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
- state str
The current state of the config.
- Mapping[str, Any]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target_
compartment_ strid Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.
- 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 Compartment ID of the object (this).
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
Target description.
- display
Name String Target identifier, which can be renamed.
- Map<Any>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- host
Scan StringRecipe Id ID of the host scan recipe this target applies.
- host
Scan StringTarget Id - id String
Unique identifier of the config that is immutable on creation
- instance
Ids List<String> List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.
- state String
The current state of the config.
- Map<Any>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Compartment StringId Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.
- 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
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.