oci.Opsi.HostInsight
Explore with Pulumi AI
This resource provides the Host Insight resource in Oracle Cloud Infrastructure Opsi service.
Create a Host Insight resource for a host in Operations Insights. The host will be enabled in Operations Insights. Host metric collection and analysis will be started.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testHostInsight = new oci.opsi.HostInsight("test_host_insight", {
compartmentId: compartmentId,
entitySource: hostInsightEntitySource,
computeId: testCompute.id,
definedTags: {
"foo-namespace.bar-key": "value",
},
enterpriseManagerBridgeId: testEnterpriseManagerBridge.id,
enterpriseManagerEntityIdentifier: hostInsightEnterpriseManagerEntityIdentifier,
enterpriseManagerIdentifier: hostInsightEnterpriseManagerIdentifier,
exadataInsightId: testExadataInsight.id,
freeformTags: {
"bar-key": "value",
},
managementAgentId: testManagementAgent.id,
status: "DISABLED",
});
import pulumi
import pulumi_oci as oci
test_host_insight = oci.opsi.HostInsight("test_host_insight",
compartment_id=compartment_id,
entity_source=host_insight_entity_source,
compute_id=test_compute["id"],
defined_tags={
"foo-namespace.bar-key": "value",
},
enterprise_manager_bridge_id=test_enterprise_manager_bridge["id"],
enterprise_manager_entity_identifier=host_insight_enterprise_manager_entity_identifier,
enterprise_manager_identifier=host_insight_enterprise_manager_identifier,
exadata_insight_id=test_exadata_insight["id"],
freeform_tags={
"bar-key": "value",
},
management_agent_id=test_management_agent["id"],
status="DISABLED")
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Opsi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Opsi.NewHostInsight(ctx, "test_host_insight", &Opsi.HostInsightArgs{
CompartmentId: pulumi.Any(compartmentId),
EntitySource: pulumi.Any(hostInsightEntitySource),
ComputeId: pulumi.Any(testCompute.Id),
DefinedTags: pulumi.Map{
"foo-namespace.bar-key": pulumi.Any("value"),
},
EnterpriseManagerBridgeId: pulumi.Any(testEnterpriseManagerBridge.Id),
EnterpriseManagerEntityIdentifier: pulumi.Any(hostInsightEnterpriseManagerEntityIdentifier),
EnterpriseManagerIdentifier: pulumi.Any(hostInsightEnterpriseManagerIdentifier),
ExadataInsightId: pulumi.Any(testExadataInsight.Id),
FreeformTags: pulumi.Map{
"bar-key": pulumi.Any("value"),
},
ManagementAgentId: pulumi.Any(testManagementAgent.Id),
Status: pulumi.String("DISABLED"),
})
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 = new Oci.Opsi.HostInsight("test_host_insight", new()
{
CompartmentId = compartmentId,
EntitySource = hostInsightEntitySource,
ComputeId = testCompute.Id,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
EnterpriseManagerBridgeId = testEnterpriseManagerBridge.Id,
EnterpriseManagerEntityIdentifier = hostInsightEnterpriseManagerEntityIdentifier,
EnterpriseManagerIdentifier = hostInsightEnterpriseManagerIdentifier,
ExadataInsightId = testExadataInsight.Id,
FreeformTags =
{
{ "bar-key", "value" },
},
ManagementAgentId = testManagementAgent.Id,
Status = "DISABLED",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Opsi.HostInsight;
import com.pulumi.oci.Opsi.HostInsightArgs;
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 testHostInsight = new HostInsight("testHostInsight", HostInsightArgs.builder()
.compartmentId(compartmentId)
.entitySource(hostInsightEntitySource)
.computeId(testCompute.id())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.enterpriseManagerBridgeId(testEnterpriseManagerBridge.id())
.enterpriseManagerEntityIdentifier(hostInsightEnterpriseManagerEntityIdentifier)
.enterpriseManagerIdentifier(hostInsightEnterpriseManagerIdentifier)
.exadataInsightId(testExadataInsight.id())
.freeformTags(Map.of("bar-key", "value"))
.managementAgentId(testManagementAgent.id())
.status("DISABLED")
.build());
}
}
resources:
testHostInsight:
type: oci:Opsi:HostInsight
name: test_host_insight
properties:
compartmentId: ${compartmentId}
entitySource: ${hostInsightEntitySource}
computeId: ${testCompute.id}
definedTags:
foo-namespace.bar-key: value
enterpriseManagerBridgeId: ${testEnterpriseManagerBridge.id}
enterpriseManagerEntityIdentifier: ${hostInsightEnterpriseManagerEntityIdentifier}
enterpriseManagerIdentifier: ${hostInsightEnterpriseManagerIdentifier}
exadataInsightId: ${testExadataInsight.id}
freeformTags:
bar-key: value
managementAgentId: ${testManagementAgent.id}
status: DISABLED
Create HostInsight Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HostInsight(name: string, args: HostInsightArgs, opts?: CustomResourceOptions);
@overload
def HostInsight(resource_name: str,
args: HostInsightArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HostInsight(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
entity_source: Optional[str] = None,
compute_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
enterprise_manager_bridge_id: Optional[str] = None,
enterprise_manager_entity_identifier: Optional[str] = None,
enterprise_manager_identifier: Optional[str] = None,
exadata_insight_id: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
management_agent_id: Optional[str] = None,
status: Optional[str] = None)
func NewHostInsight(ctx *Context, name string, args HostInsightArgs, opts ...ResourceOption) (*HostInsight, error)
public HostInsight(string name, HostInsightArgs args, CustomResourceOptions? opts = null)
public HostInsight(String name, HostInsightArgs args)
public HostInsight(String name, HostInsightArgs args, CustomResourceOptions options)
type: oci:Opsi:HostInsight
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 HostInsightArgs
- 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 HostInsightArgs
- 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 HostInsightArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HostInsightArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HostInsightArgs
- 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 hostInsightResource = new Oci.Opsi.HostInsight("hostInsightResource", new()
{
CompartmentId = "string",
EntitySource = "string",
ComputeId = "string",
DefinedTags =
{
{ "string", "any" },
},
EnterpriseManagerBridgeId = "string",
EnterpriseManagerEntityIdentifier = "string",
EnterpriseManagerIdentifier = "string",
ExadataInsightId = "string",
FreeformTags =
{
{ "string", "any" },
},
ManagementAgentId = "string",
Status = "string",
});
example, err := Opsi.NewHostInsight(ctx, "hostInsightResource", &Opsi.HostInsightArgs{
CompartmentId: pulumi.String("string"),
EntitySource: pulumi.String("string"),
ComputeId: pulumi.String("string"),
DefinedTags: pulumi.Map{
"string": pulumi.Any("any"),
},
EnterpriseManagerBridgeId: pulumi.String("string"),
EnterpriseManagerEntityIdentifier: pulumi.String("string"),
EnterpriseManagerIdentifier: pulumi.String("string"),
ExadataInsightId: pulumi.String("string"),
FreeformTags: pulumi.Map{
"string": pulumi.Any("any"),
},
ManagementAgentId: pulumi.String("string"),
Status: pulumi.String("string"),
})
var hostInsightResource = new HostInsight("hostInsightResource", HostInsightArgs.builder()
.compartmentId("string")
.entitySource("string")
.computeId("string")
.definedTags(Map.of("string", "any"))
.enterpriseManagerBridgeId("string")
.enterpriseManagerEntityIdentifier("string")
.enterpriseManagerIdentifier("string")
.exadataInsightId("string")
.freeformTags(Map.of("string", "any"))
.managementAgentId("string")
.status("string")
.build());
host_insight_resource = oci.opsi.HostInsight("hostInsightResource",
compartment_id="string",
entity_source="string",
compute_id="string",
defined_tags={
"string": "any",
},
enterprise_manager_bridge_id="string",
enterprise_manager_entity_identifier="string",
enterprise_manager_identifier="string",
exadata_insight_id="string",
freeform_tags={
"string": "any",
},
management_agent_id="string",
status="string")
const hostInsightResource = new oci.opsi.HostInsight("hostInsightResource", {
compartmentId: "string",
entitySource: "string",
computeId: "string",
definedTags: {
string: "any",
},
enterpriseManagerBridgeId: "string",
enterpriseManagerEntityIdentifier: "string",
enterpriseManagerIdentifier: "string",
exadataInsightId: "string",
freeformTags: {
string: "any",
},
managementAgentId: "string",
status: "string",
});
type: oci:Opsi:HostInsight
properties:
compartmentId: string
computeId: string
definedTags:
string: any
enterpriseManagerBridgeId: string
enterpriseManagerEntityIdentifier: string
enterpriseManagerIdentifier: string
entitySource: string
exadataInsightId: string
freeformTags:
string: any
managementAgentId: string
status: string
HostInsight 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 HostInsight resource accepts the following input properties:
- Compartment
Id string - (Updatable) Compartment Identifier of host
- Entity
Source string - (Updatable) Source of the host entity.
- Compute
Id string - The OCID of the Compute Instance
- Dictionary<string, object>
- (Updatable) 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 Identifier - Enterprise Manager Entity Unique Identifier
- Enterprise
Manager stringIdentifier - Enterprise Manager Unique Identifier
- Exadata
Insight stringId - The OCID of the Exadata insight.
- 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"}
- Management
Agent stringId The OCID of the Management Agent
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- Status string
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
- Compartment
Id string - (Updatable) Compartment Identifier of host
- Entity
Source string - (Updatable) Source of the host entity.
- Compute
Id string - The OCID of the Compute Instance
- map[string]interface{}
- (Updatable) 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 Identifier - Enterprise Manager Entity Unique Identifier
- Enterprise
Manager stringIdentifier - Enterprise Manager Unique Identifier
- Exadata
Insight stringId - The OCID of the Exadata insight.
- 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"}
- Management
Agent stringId The OCID of the Management Agent
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- Status string
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
- compartment
Id String - (Updatable) Compartment Identifier of host
- entity
Source String - (Updatable) Source of the host entity.
- compute
Id String - The OCID of the Compute Instance
- Map<String,Object>
- (Updatable) 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 Identifier - Enterprise Manager Entity Unique Identifier
- enterprise
Manager StringIdentifier - Enterprise Manager Unique Identifier
- exadata
Insight StringId - The OCID of the Exadata insight.
- 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"}
- management
Agent StringId The OCID of the Management Agent
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- status String
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
- compartment
Id string - (Updatable) Compartment Identifier of host
- entity
Source string - (Updatable) Source of the host entity.
- compute
Id string - The OCID of the Compute Instance
- {[key: string]: any}
- (Updatable) 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 Identifier - Enterprise Manager Entity Unique Identifier
- enterprise
Manager stringIdentifier - Enterprise Manager Unique Identifier
- exadata
Insight stringId - The OCID of the Exadata insight.
- {[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"}
- management
Agent stringId The OCID of the Management Agent
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- status string
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
- compartment_
id str - (Updatable) Compartment Identifier of host
- entity_
source str - (Updatable) Source of the host entity.
- compute_
id str - The OCID of the Compute Instance
- Mapping[str, Any]
- (Updatable) 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_ identifier - Enterprise Manager Entity Unique Identifier
- enterprise_
manager_ stridentifier - Enterprise Manager Unique Identifier
- exadata_
insight_ strid - The OCID of the Exadata insight.
- 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"}
- management_
agent_ strid The OCID of the Management Agent
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- status str
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
- compartment
Id String - (Updatable) Compartment Identifier of host
- entity
Source String - (Updatable) Source of the host entity.
- compute
Id String - The OCID of the Compute Instance
- Map<Any>
- (Updatable) 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 Identifier - Enterprise Manager Entity Unique Identifier
- enterprise
Manager StringIdentifier - Enterprise Manager Unique Identifier
- exadata
Insight StringId - The OCID of the Exadata insight.
- 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"}
- management
Agent StringId The OCID of the Management Agent
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- status String
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
Outputs
All input properties are implicitly available as output properties. Additionally, the HostInsight resource produces the following output properties:
- Enterprise
Manager stringEntity Display Name - Enterprise Manager Entity Display Name
- Enterprise
Manager stringEntity Name - Enterprise Manager Entity Name
- Enterprise
Manager stringEntity Type - Enterprise Manager Entity Type
- Host
Display stringName - The user-friendly name for the host. The name does not have to be unique.
- Host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
- Host
Type string - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- Id string
- The provider-assigned unique ID for this managed 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.
- 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 - Processor count.
- State string
- The current state of the host.
- Dictionary<string, object>
- 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
- Enterprise
Manager stringEntity Display Name - Enterprise Manager Entity Display Name
- Enterprise
Manager stringEntity Name - Enterprise Manager Entity Name
- Enterprise
Manager stringEntity Type - Enterprise Manager Entity Type
- Host
Display stringName - The user-friendly name for the host. The name does not have to be unique.
- Host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
- Host
Type string - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- Id string
- The provider-assigned unique ID for this managed 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.
- 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 - Processor count.
- State string
- The current state of the host.
- map[string]interface{}
- 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
- enterprise
Manager StringEntity Display Name - Enterprise Manager Entity Display Name
- enterprise
Manager StringEntity Name - Enterprise Manager Entity Name
- enterprise
Manager StringEntity Type - Enterprise Manager Entity Type
- host
Display StringName - The user-friendly name for the host. The name does not have to be unique.
- host
Name String - The host name. The host name is unique amongst the hosts managed by the same management agent.
- host
Type String - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- id String
- The provider-assigned unique ID for this managed 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.
- 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 - Processor count.
- state String
- The current state of the host.
- Map<String,Object>
- 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
- enterprise
Manager stringEntity Display Name - Enterprise Manager Entity Display Name
- enterprise
Manager stringEntity Name - Enterprise Manager Entity Name
- enterprise
Manager stringEntity Type - Enterprise Manager Entity Type
- host
Display stringName - The user-friendly name for the host. The name does not have to be unique.
- host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
- host
Type string - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- id string
- The provider-assigned unique ID for this managed 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.
- 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 - Processor count.
- state string
- The current state of the host.
- {[key: string]: any}
- 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
- enterprise_
manager_ strentity_ display_ name - Enterprise Manager Entity Display Name
- enterprise_
manager_ strentity_ name - Enterprise Manager Entity Name
- enterprise_
manager_ strentity_ type - Enterprise Manager Entity Type
- host_
display_ strname - The user-friendly name for the host. The name does not have to be unique.
- host_
name str - The host name. The host name is unique amongst the hosts managed by the same management agent.
- host_
type str - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- id str
- The provider-assigned unique ID for this managed 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.
- 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 - Processor count.
- state str
- The current state of the host.
- Mapping[str, Any]
- 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
- enterprise
Manager StringEntity Display Name - Enterprise Manager Entity Display Name
- enterprise
Manager StringEntity Name - Enterprise Manager Entity Name
- enterprise
Manager StringEntity Type - Enterprise Manager Entity Type
- host
Display StringName - The user-friendly name for the host. The name does not have to be unique.
- host
Name String - The host name. The host name is unique amongst the hosts managed by the same management agent.
- host
Type String - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- id String
- The provider-assigned unique ID for this managed 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.
- 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 - Processor count.
- state String
- The current state of the host.
- Map<Any>
- 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
Look up Existing HostInsight Resource
Get an existing HostInsight 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?: HostInsightState, opts?: CustomResourceOptions): HostInsight
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
compute_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
enterprise_manager_bridge_id: Optional[str] = None,
enterprise_manager_entity_display_name: Optional[str] = None,
enterprise_manager_entity_identifier: Optional[str] = None,
enterprise_manager_entity_name: Optional[str] = None,
enterprise_manager_entity_type: Optional[str] = None,
enterprise_manager_identifier: Optional[str] = None,
entity_source: Optional[str] = None,
exadata_insight_id: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
host_display_name: Optional[str] = None,
host_name: Optional[str] = None,
host_type: Optional[str] = None,
lifecycle_details: Optional[str] = None,
management_agent_id: Optional[str] = None,
platform_name: Optional[str] = None,
platform_type: Optional[str] = None,
platform_version: Optional[str] = None,
processor_count: Optional[int] = None,
state: Optional[str] = None,
status: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> HostInsight
func GetHostInsight(ctx *Context, name string, id IDInput, state *HostInsightState, opts ...ResourceOption) (*HostInsight, error)
public static HostInsight Get(string name, Input<string> id, HostInsightState? state, CustomResourceOptions? opts = null)
public static HostInsight get(String name, Output<String> id, HostInsightState 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) Compartment Identifier of host
- Compute
Id string - The OCID of the Compute Instance
- Dictionary<string, object>
- (Updatable) 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 - (Updatable) Source of the host entity.
- Exadata
Insight stringId - The OCID of the Exadata insight.
- 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"}
- Host
Display stringName - The user-friendly name for the host. The name does not have to be unique.
- Host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
- Host
Type string - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- 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
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- 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 - Processor count.
- State string
- The current state of the host.
- Status string
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
- Dictionary<string, object>
- 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 - (Updatable) Compartment Identifier of host
- Compute
Id string - The OCID of the Compute Instance
- map[string]interface{}
- (Updatable) 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 - (Updatable) Source of the host entity.
- Exadata
Insight stringId - The OCID of the Exadata insight.
- 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"}
- Host
Display stringName - The user-friendly name for the host. The name does not have to be unique.
- Host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
- Host
Type string - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- 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
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- 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 - Processor count.
- State string
- The current state of the host.
- Status string
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
- map[string]interface{}
- 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 - (Updatable) Compartment Identifier of host
- compute
Id String - The OCID of the Compute Instance
- Map<String,Object>
- (Updatable) 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 - (Updatable) Source of the host entity.
- exadata
Insight StringId - The OCID of the Exadata insight.
- 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"}
- host
Display StringName - The user-friendly name for the host. The name does not have to be unique.
- host
Name String - The host name. The host name is unique amongst the hosts managed by the same management agent.
- host
Type String - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- 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
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- 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 - Processor count.
- state String
- The current state of the host.
- status String
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
- Map<String,Object>
- 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 - (Updatable) Compartment Identifier of host
- compute
Id string - The OCID of the Compute Instance
- {[key: string]: any}
- (Updatable) 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 - (Updatable) Source of the host entity.
- exadata
Insight stringId - The OCID of the Exadata insight.
- {[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"}
- host
Display stringName - The user-friendly name for the host. The name does not have to be unique.
- host
Name string - The host name. The host name is unique amongst the hosts managed by the same management agent.
- host
Type string - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- 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
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- 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 - Processor count.
- state string
- The current state of the host.
- status string
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
- {[key: string]: any}
- 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 - (Updatable) Compartment Identifier of host
- compute_
id str - The OCID of the Compute Instance
- Mapping[str, Any]
- (Updatable) 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 - (Updatable) Source of the host entity.
- exadata_
insight_ strid - The OCID of the Exadata insight.
- 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_
display_ strname - The user-friendly name for the host. The name does not have to be unique.
- host_
name str - The host name. The host name is unique amongst the hosts managed by the same management agent.
- host_
type str - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- 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
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- 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 - Processor count.
- state str
- The current state of the host.
- status str
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
- Mapping[str, Any]
- 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 - (Updatable) Compartment Identifier of host
- compute
Id String - The OCID of the Compute Instance
- Map<Any>
- (Updatable) 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 - (Updatable) Source of the host entity.
- exadata
Insight StringId - The OCID of the Exadata insight.
- 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"}
- host
Display StringName - The user-friendly name for the host. The name does not have to be unique.
- host
Name String - The host name. The host name is unique amongst the hosts managed by the same management agent.
- host
Type String - Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
- 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
** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.
- 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 - Processor count.
- state String
- The current state of the host.
- status String
- (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED"
- Map<Any>
- 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
Import
HostInsights can be imported using the id
, e.g.
$ pulumi import oci:Opsi/hostInsight:HostInsight test_host_insight "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.