Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 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 LookupHostInsight(ctx *Context, args *LookupHostInsightArgs, opts ...InvokeOption) (*LookupHostInsightResult, error)
func LookupHostInsightOutput(ctx *Context, args *LookupHostInsightOutputArgs, opts ...InvokeOption) LookupHostInsightResultOutput> Note: This function is named LookupHostInsight 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:
- HostInsight stringId 
- Unique host insight identifier
- HostInsight stringId 
- Unique host insight identifier
- hostInsight StringId 
- Unique host insight identifier
- hostInsight stringId 
- Unique host insight identifier
- host_insight_ strid 
- Unique host insight identifier
- hostInsight StringId 
- Unique host insight identifier
getHostInsight Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- ComputeId 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"}
- EnterpriseManager stringBridge Id 
- OPSI Enterprise Manager Bridge OCID
- EnterpriseManager stringEntity Display Name 
- Enterprise Manager Entity Display Name
- EnterpriseManager stringEntity Identifier 
- Enterprise Manager Entity Unique Identifier
- EnterpriseManager stringEntity Name 
- Enterprise Manager Entity Name
- EnterpriseManager stringEntity Type 
- Enterprise Manager Entity Type
- EnterpriseManager stringIdentifier 
- Enterprise Manager Unique Identifier
- EntitySource string
- Source of the host entity.
- ExadataInsight 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"}
- HostDisplay stringName 
- The user-friendly name for the host. The name does not have to be unique.
- HostInsight stringId 
- HostName string
- The host name. The host name is unique amongst the hosts managed by the same management agent.
- HostType string
- Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- Id string
- The OCID of the host insight resource.
- LifecycleDetails 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.
- ManagementAgent stringId 
- The OCID of the Management Agent
- PlatformName string
- Platform name.
- PlatformType 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].
- PlatformVersion string
- Platform version.
- ProcessorCount 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"}
- TimeCreated string
- The time the the host insight was first enabled. An RFC3339 formatted datetime string
- TimeUpdated string
- The time the host insight was updated. An RFC3339 formatted datetime string
- CompartmentId string
- The OCID of the compartment.
- ComputeId 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"}
- EnterpriseManager stringBridge Id 
- OPSI Enterprise Manager Bridge OCID
- EnterpriseManager stringEntity Display Name 
- Enterprise Manager Entity Display Name
- EnterpriseManager stringEntity Identifier 
- Enterprise Manager Entity Unique Identifier
- EnterpriseManager stringEntity Name 
- Enterprise Manager Entity Name
- EnterpriseManager stringEntity Type 
- Enterprise Manager Entity Type
- EnterpriseManager stringIdentifier 
- Enterprise Manager Unique Identifier
- EntitySource string
- Source of the host entity.
- ExadataInsight 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"}
- HostDisplay stringName 
- The user-friendly name for the host. The name does not have to be unique.
- HostInsight stringId 
- HostName string
- The host name. The host name is unique amongst the hosts managed by the same management agent.
- HostType string
- Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- Id string
- The OCID of the host insight resource.
- LifecycleDetails 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.
- ManagementAgent stringId 
- The OCID of the Management Agent
- PlatformName string
- Platform name.
- PlatformType 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].
- PlatformVersion string
- Platform version.
- ProcessorCount 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"}
- TimeCreated string
- The time the the host insight was first enabled. An RFC3339 formatted datetime string
- TimeUpdated string
- The time the host insight was updated. An RFC3339 formatted datetime string
- compartmentId String
- The OCID of the compartment.
- computeId 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"}
- enterpriseManager StringBridge Id 
- OPSI Enterprise Manager Bridge OCID
- enterpriseManager StringEntity Display Name 
- Enterprise Manager Entity Display Name
- enterpriseManager StringEntity Identifier 
- Enterprise Manager Entity Unique Identifier
- enterpriseManager StringEntity Name 
- Enterprise Manager Entity Name
- enterpriseManager StringEntity Type 
- Enterprise Manager Entity Type
- enterpriseManager StringIdentifier 
- Enterprise Manager Unique Identifier
- entitySource String
- Source of the host entity.
- exadataInsight 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"}
- hostDisplay StringName 
- The user-friendly name for the host. The name does not have to be unique.
- hostInsight StringId 
- hostName String
- The host name. The host name is unique amongst the hosts managed by the same management agent.
- hostType String
- Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- id String
- The OCID of the host insight resource.
- lifecycleDetails 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.
- managementAgent StringId 
- The OCID of the Management Agent
- platformName String
- Platform name.
- platformType 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].
- platformVersion String
- Platform version.
- processorCount 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"}
- timeCreated String
- The time the the host insight was first enabled. An RFC3339 formatted datetime string
- timeUpdated String
- The time the host insight was updated. An RFC3339 formatted datetime string
- compartmentId string
- The OCID of the compartment.
- computeId 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"}
- enterpriseManager stringBridge Id 
- OPSI Enterprise Manager Bridge OCID
- enterpriseManager stringEntity Display Name 
- Enterprise Manager Entity Display Name
- enterpriseManager stringEntity Identifier 
- Enterprise Manager Entity Unique Identifier
- enterpriseManager stringEntity Name 
- Enterprise Manager Entity Name
- enterpriseManager stringEntity Type 
- Enterprise Manager Entity Type
- enterpriseManager stringIdentifier 
- Enterprise Manager Unique Identifier
- entitySource string
- Source of the host entity.
- exadataInsight 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"}
- hostDisplay stringName 
- The user-friendly name for the host. The name does not have to be unique.
- hostInsight stringId 
- hostName string
- The host name. The host name is unique amongst the hosts managed by the same management agent.
- hostType string
- Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- id string
- The OCID of the host insight resource.
- lifecycleDetails 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.
- managementAgent stringId 
- The OCID of the Management Agent
- platformName string
- Platform name.
- platformType 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].
- platformVersion string
- Platform version.
- processorCount 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"}
- timeCreated string
- The time the the host insight was first enabled. An RFC3339 formatted datetime string
- timeUpdated 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
- compartmentId String
- The OCID of the compartment.
- computeId 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"}
- enterpriseManager StringBridge Id 
- OPSI Enterprise Manager Bridge OCID
- enterpriseManager StringEntity Display Name 
- Enterprise Manager Entity Display Name
- enterpriseManager StringEntity Identifier 
- Enterprise Manager Entity Unique Identifier
- enterpriseManager StringEntity Name 
- Enterprise Manager Entity Name
- enterpriseManager StringEntity Type 
- Enterprise Manager Entity Type
- enterpriseManager StringIdentifier 
- Enterprise Manager Unique Identifier
- entitySource String
- Source of the host entity.
- exadataInsight 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"}
- hostDisplay StringName 
- The user-friendly name for the host. The name does not have to be unique.
- hostInsight StringId 
- hostName String
- The host name. The host name is unique amongst the hosts managed by the same management agent.
- hostType String
- Ops Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- id String
- The OCID of the host insight resource.
- lifecycleDetails 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.
- managementAgent StringId 
- The OCID of the Management Agent
- platformName String
- Platform name.
- platformType 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].
- platformVersion String
- Platform version.
- processorCount 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"}
- timeCreated String
- The time the the host insight was first enabled. An RFC3339 formatted datetime string
- timeUpdated 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.