Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi
oci.Opsi.getHostInsight
Explore with Pulumi AI
This data source provides details about a specific Host Insight resource in Oracle Cloud Infrastructure Opsi service.
Gets details of a host insight.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testHostInsight = oci.Opsi.getHostInsight({
    hostInsightId: testHostInsightOciOpsiHostInsight.id,
});
import pulumi
import pulumi_oci as oci
test_host_insight = oci.Opsi.get_host_insight(host_insight_id=test_host_insight_oci_opsi_host_insight["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/opsi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opsi.GetHostInsight(ctx, &opsi.GetHostInsightArgs{
			HostInsightId: testHostInsightOciOpsiHostInsight.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testHostInsight = Oci.Opsi.GetHostInsight.Invoke(new()
    {
        HostInsightId = testHostInsightOciOpsiHostInsight.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Opsi.OpsiFunctions;
import com.pulumi.oci.Opsi.inputs.GetHostInsightArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testHostInsight = OpsiFunctions.getHostInsight(GetHostInsightArgs.builder()
            .hostInsightId(testHostInsightOciOpsiHostInsight.id())
            .build());
    }
}
variables:
  testHostInsight:
    fn::invoke:
      function: oci:Opsi:getHostInsight
      arguments:
        hostInsightId: ${testHostInsightOciOpsiHostInsight.id}
Using getHostInsight
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 getHostInsight(args: GetHostInsightArgs, opts?: InvokeOptions): Promise<GetHostInsightResult>
function getHostInsightOutput(args: GetHostInsightOutputArgs, opts?: InvokeOptions): Output<GetHostInsightResult>def get_host_insight(host_insight_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetHostInsightResult
def get_host_insight_output(host_insight_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetHostInsightResult]func GetHostInsight(ctx *Context, args *GetHostInsightArgs, opts ...InvokeOption) (*GetHostInsightResult, error)
func GetHostInsightOutput(ctx *Context, args *GetHostInsightOutputArgs, opts ...InvokeOption) GetHostInsightResultOutput> Note: This function is named GetHostInsight in the Go SDK.
public static class GetHostInsight 
{
    public static Task<GetHostInsightResult> InvokeAsync(GetHostInsightArgs args, InvokeOptions? opts = null)
    public static Output<GetHostInsightResult> Invoke(GetHostInsightInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHostInsightResult> getHostInsight(GetHostInsightArgs args, InvokeOptions options)
public static Output<GetHostInsightResult> getHostInsight(GetHostInsightArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Opsi/getHostInsight:getHostInsight
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Host
Insight stringId  - Unique host insight identifier
 
- Host
Insight stringId  - Unique host insight identifier
 
- host
Insight StringId  - Unique host insight identifier
 
- host
Insight stringId  - Unique host insight identifier
 
- host_
insight_ strid  - Unique host insight identifier
 
- host
Insight StringId  - Unique host insight identifier
 
getHostInsight Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
 - Compute
Id string - The OCID of the Compute Instance
 - Dictionary<string, string>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - Enterprise
Manager stringBridge Id  - OPSI Enterprise Manager Bridge OCID
 - Enterprise
Manager stringEntity Display Name  - Enterprise Manager Entity Display Name
 - Enterprise
Manager stringEntity Identifier  - Enterprise Manager Entity Unique Identifier
 - Enterprise
Manager stringEntity Name  - Enterprise Manager Entity Name
 - Enterprise
Manager stringEntity Type  - Enterprise Manager Entity Type
 - Enterprise
Manager stringIdentifier  - Enterprise Manager Unique Identifier
 - Entity
Source string - Source of the host entity.
 - Exadata
Insight stringId  - The OCID of the Exadata insight.
 - Dictionary<string, string>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - Host
Display stringName  - The user-friendly name for the host. The name does not have to be unique.
 - Host
Insight stringId  - Host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
 - Host
Type string - Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
 - Id string
 - The OCID of the host insight resource.
 - Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
 - Management
Agent stringId  - The OCID of the Management Agent
 - Platform
Name string - Platform name.
 - Platform
Type string - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX].
 - Platform
Version string - Platform version.
 - Processor
Count int - State string
 - The current state of the host.
 - Status string
 - Indicates the status of a host insight in Operations Insights
 - Dictionary<string, string>
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time the the host insight was first enabled. An RFC3339 formatted datetime string
 - Time
Updated string - The time the host insight was updated. An RFC3339 formatted datetime string
 
- Compartment
Id string - The OCID of the compartment.
 - Compute
Id string - The OCID of the Compute Instance
 - map[string]string
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - Enterprise
Manager stringBridge Id  - OPSI Enterprise Manager Bridge OCID
 - Enterprise
Manager stringEntity Display Name  - Enterprise Manager Entity Display Name
 - Enterprise
Manager stringEntity Identifier  - Enterprise Manager Entity Unique Identifier
 - Enterprise
Manager stringEntity Name  - Enterprise Manager Entity Name
 - Enterprise
Manager stringEntity Type  - Enterprise Manager Entity Type
 - Enterprise
Manager stringIdentifier  - Enterprise Manager Unique Identifier
 - Entity
Source string - Source of the host entity.
 - Exadata
Insight stringId  - The OCID of the Exadata insight.
 - map[string]string
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - Host
Display stringName  - The user-friendly name for the host. The name does not have to be unique.
 - Host
Insight stringId  - Host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
 - Host
Type string - Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
 - Id string
 - The OCID of the host insight resource.
 - Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
 - Management
Agent stringId  - The OCID of the Management Agent
 - Platform
Name string - Platform name.
 - Platform
Type string - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX].
 - Platform
Version string - Platform version.
 - Processor
Count int - State string
 - The current state of the host.
 - Status string
 - Indicates the status of a host insight in Operations Insights
 - map[string]string
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time the the host insight was first enabled. An RFC3339 formatted datetime string
 - Time
Updated string - The time the host insight was updated. An RFC3339 formatted datetime string
 
- compartment
Id String - The OCID of the compartment.
 - compute
Id String - The OCID of the Compute Instance
 - Map<String,String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - enterprise
Manager StringBridge Id  - OPSI Enterprise Manager Bridge OCID
 - enterprise
Manager StringEntity Display Name  - Enterprise Manager Entity Display Name
 - enterprise
Manager StringEntity Identifier  - Enterprise Manager Entity Unique Identifier
 - enterprise
Manager StringEntity Name  - Enterprise Manager Entity Name
 - enterprise
Manager StringEntity Type  - Enterprise Manager Entity Type
 - enterprise
Manager StringIdentifier  - Enterprise Manager Unique Identifier
 - entity
Source String - Source of the host entity.
 - exadata
Insight StringId  - The OCID of the Exadata insight.
 - Map<String,String>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - host
Display StringName  - The user-friendly name for the host. The name does not have to be unique.
 - host
Insight StringId  - host
Name String - The host name. The host name is unique amongst the hosts managed by the same management agent.
 - host
Type String - Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
 - id String
 - The OCID of the host insight resource.
 - lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
 - management
Agent StringId  - The OCID of the Management Agent
 - platform
Name String - Platform name.
 - platform
Type String - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX].
 - platform
Version String - Platform version.
 - processor
Count Integer - state String
 - The current state of the host.
 - status String
 - Indicates the status of a host insight in Operations Insights
 - Map<String,String>
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time the the host insight was first enabled. An RFC3339 formatted datetime string
 - time
Updated String - The time the host insight was updated. An RFC3339 formatted datetime string
 
- compartment
Id string - The OCID of the compartment.
 - compute
Id string - The OCID of the Compute Instance
 - {[key: string]: string}
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - enterprise
Manager stringBridge Id  - OPSI Enterprise Manager Bridge OCID
 - enterprise
Manager stringEntity Display Name  - Enterprise Manager Entity Display Name
 - enterprise
Manager stringEntity Identifier  - Enterprise Manager Entity Unique Identifier
 - enterprise
Manager stringEntity Name  - Enterprise Manager Entity Name
 - enterprise
Manager stringEntity Type  - Enterprise Manager Entity Type
 - enterprise
Manager stringIdentifier  - Enterprise Manager Unique Identifier
 - entity
Source string - Source of the host entity.
 - exadata
Insight stringId  - The OCID of the Exadata insight.
 - {[key: string]: string}
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - host
Display stringName  - The user-friendly name for the host. The name does not have to be unique.
 - host
Insight stringId  - host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
 - host
Type string - Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
 - id string
 - The OCID of the host insight resource.
 - lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
 - management
Agent stringId  - The OCID of the Management Agent
 - platform
Name string - Platform name.
 - platform
Type string - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX].
 - platform
Version string - Platform version.
 - processor
Count number - state string
 - The current state of the host.
 - status string
 - Indicates the status of a host insight in Operations Insights
 - {[key: string]: string}
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The time the the host insight was first enabled. An RFC3339 formatted datetime string
 - time
Updated string - The time the host insight was updated. An RFC3339 formatted datetime string
 
- compartment_
id str - The OCID of the compartment.
 - compute_
id str - The OCID of the Compute Instance
 - Mapping[str, str]
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - enterprise_
manager_ strbridge_ id  - OPSI Enterprise Manager Bridge OCID
 - enterprise_
manager_ strentity_ display_ name  - Enterprise Manager Entity Display Name
 - enterprise_
manager_ strentity_ identifier  - Enterprise Manager Entity Unique Identifier
 - enterprise_
manager_ strentity_ name  - Enterprise Manager Entity Name
 - enterprise_
manager_ strentity_ type  - Enterprise Manager Entity Type
 - enterprise_
manager_ stridentifier  - Enterprise Manager Unique Identifier
 - entity_
source str - Source of the host entity.
 - exadata_
insight_ strid  - The OCID of the Exadata insight.
 - Mapping[str, str]
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - host_
display_ strname  - The user-friendly name for the host. The name does not have to be unique.
 - host_
insight_ strid  - host_
name str - The host name. The host name is unique amongst the hosts managed by the same management agent.
 - host_
type str - Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
 - id str
 - The OCID of the host insight resource.
 - lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
 - management_
agent_ strid  - The OCID of the Management Agent
 - platform_
name str - Platform name.
 - platform_
type str - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX].
 - platform_
version str - Platform version.
 - processor_
count int - state str
 - The current state of the host.
 - status str
 - Indicates the status of a host insight in Operations Insights
 - Mapping[str, str]
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The time the the host insight was first enabled. An RFC3339 formatted datetime string
 - time_
updated str - The time the host insight was updated. An RFC3339 formatted datetime string
 
- compartment
Id String - The OCID of the compartment.
 - compute
Id String - The OCID of the Compute Instance
 - Map<String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - enterprise
Manager StringBridge Id  - OPSI Enterprise Manager Bridge OCID
 - enterprise
Manager StringEntity Display Name  - Enterprise Manager Entity Display Name
 - enterprise
Manager StringEntity Identifier  - Enterprise Manager Entity Unique Identifier
 - enterprise
Manager StringEntity Name  - Enterprise Manager Entity Name
 - enterprise
Manager StringEntity Type  - Enterprise Manager Entity Type
 - enterprise
Manager StringIdentifier  - Enterprise Manager Unique Identifier
 - entity
Source String - Source of the host entity.
 - exadata
Insight StringId  - The OCID of the Exadata insight.
 - Map<String>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - host
Display StringName  - The user-friendly name for the host. The name does not have to be unique.
 - host
Insight StringId  - host
Name String - The host name. The host name is unique amongst the hosts managed by the same management agent.
 - host
Type String - Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
 - id String
 - The OCID of the host insight resource.
 - lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
 - management
Agent StringId  - The OCID of the Management Agent
 - platform
Name String - Platform name.
 - platform
Type String - Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX].
 - platform
Version String - Platform version.
 - processor
Count Number - state String
 - The current state of the host.
 - status String
 - Indicates the status of a host insight in Operations Insights
 - Map<String>
 - System tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time the the host insight was first enabled. An RFC3339 formatted datetime string
 - time
Updated String - The time the host insight was updated. An RFC3339 formatted datetime string
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.