Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.LogAnalytics.getLogAnalyticsEntity
Explore with Pulumi AI
This data source provides details about a specific Log Analytics Entity resource in Oracle Cloud Infrastructure Log Analytics service.
Retrieve the log analytics entity with the given id.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogAnalyticsEntity = oci.LogAnalytics.getLogAnalyticsEntity({
    logAnalyticsEntityId: testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.id,
    namespace: logAnalyticsEntityNamespace,
});
import pulumi
import pulumi_oci as oci
test_log_analytics_entity = oci.LogAnalytics.get_log_analytics_entity(log_analytics_entity_id=test_log_analytics_entity_oci_log_analytics_log_analytics_entity["id"],
    namespace=log_analytics_entity_namespace)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/loganalytics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := loganalytics.GetLogAnalyticsEntity(ctx, &loganalytics.GetLogAnalyticsEntityArgs{
			LogAnalyticsEntityId: testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.Id,
			Namespace:            logAnalyticsEntityNamespace,
		}, 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 testLogAnalyticsEntity = Oci.LogAnalytics.GetLogAnalyticsEntity.Invoke(new()
    {
        LogAnalyticsEntityId = testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.Id,
        Namespace = logAnalyticsEntityNamespace,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.LogAnalyticsFunctions;
import com.pulumi.oci.LogAnalytics.inputs.GetLogAnalyticsEntityArgs;
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 testLogAnalyticsEntity = LogAnalyticsFunctions.getLogAnalyticsEntity(GetLogAnalyticsEntityArgs.builder()
            .logAnalyticsEntityId(testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.id())
            .namespace(logAnalyticsEntityNamespace)
            .build());
    }
}
variables:
  testLogAnalyticsEntity:
    fn::invoke:
      function: oci:LogAnalytics:getLogAnalyticsEntity
      arguments:
        logAnalyticsEntityId: ${testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.id}
        namespace: ${logAnalyticsEntityNamespace}
Using getLogAnalyticsEntity
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 getLogAnalyticsEntity(args: GetLogAnalyticsEntityArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsEntityResult>
function getLogAnalyticsEntityOutput(args: GetLogAnalyticsEntityOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsEntityResult>def get_log_analytics_entity(log_analytics_entity_id: Optional[str] = None,
                             namespace: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsEntityResult
def get_log_analytics_entity_output(log_analytics_entity_id: Optional[pulumi.Input[str]] = None,
                             namespace: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsEntityResult]func LookupLogAnalyticsEntity(ctx *Context, args *LookupLogAnalyticsEntityArgs, opts ...InvokeOption) (*LookupLogAnalyticsEntityResult, error)
func LookupLogAnalyticsEntityOutput(ctx *Context, args *LookupLogAnalyticsEntityOutputArgs, opts ...InvokeOption) LookupLogAnalyticsEntityResultOutput> Note: This function is named LookupLogAnalyticsEntity in the Go SDK.
public static class GetLogAnalyticsEntity 
{
    public static Task<GetLogAnalyticsEntityResult> InvokeAsync(GetLogAnalyticsEntityArgs args, InvokeOptions? opts = null)
    public static Output<GetLogAnalyticsEntityResult> Invoke(GetLogAnalyticsEntityInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLogAnalyticsEntityResult> getLogAnalyticsEntity(GetLogAnalyticsEntityArgs args, InvokeOptions options)
public static Output<GetLogAnalyticsEntityResult> getLogAnalyticsEntity(GetLogAnalyticsEntityArgs args, InvokeOptions options)
fn::invoke:
  function: oci:LogAnalytics/getLogAnalyticsEntity:getLogAnalyticsEntity
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LogAnalytics stringEntity Id 
- The log analytics entity OCID.
- Namespace string
- The Logging Analytics namespace used for the request.
- LogAnalytics stringEntity Id 
- The log analytics entity OCID.
- Namespace string
- The Logging Analytics namespace used for the request.
- logAnalytics StringEntity Id 
- The log analytics entity OCID.
- namespace String
- The Logging Analytics namespace used for the request.
- logAnalytics stringEntity Id 
- The log analytics entity OCID.
- namespace string
- The Logging Analytics namespace used for the request.
- log_analytics_ strentity_ id 
- The log analytics entity OCID.
- namespace str
- The Logging Analytics namespace used for the request.
- logAnalytics StringEntity Id 
- The log analytics entity OCID.
- namespace String
- The Logging Analytics namespace used for the request.
getLogAnalyticsEntity Result
The following output properties are available:
- AreLogs boolCollected 
- The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- CloudResource stringId 
- The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- CompartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- EntityType stringInternal Name 
- Internal name for the log analytics entity type.
- EntityType stringName 
- Log analytics entity type name.
- 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"}
- Hostname string
- The hostname where the entity represented here is actually present. This would be the output one would get if they run echo $HOSTNAMEon Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.
- Id string
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- LifecycleDetails string
- lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- LogAnalytics stringEntity Id 
- ManagementAgent stringCompartment Id 
- Management agent (management-agents resource kind) compartment OCID
- ManagementAgent stringDisplay Name 
- Management agent (management-agents resource kind) display name
- ManagementAgent stringId 
- The OCID of the Management Agent.
- Metadatas
List<GetLog Analytics Entity Metadata> 
- Details of entity metadata information.
- Name string
- Log analytics entity name.
- Namespace string
- Properties Dictionary<string, string>
- The name/value pairs for parameter values to be used in file patterns specified in log sources.
- SourceId string
- This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- State string
- The current state of the log analytics entity.
- TimeCreated string
- The date and time the resource was created, in the format defined by RFC3339.
- TimeLast stringDiscovered 
- The date and time the resource was last discovered, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the resource was last updated, in the format defined by RFC3339.
- TimezoneRegion string
- The timezone region of the log analytics entity.
- AreLogs boolCollected 
- The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- CloudResource stringId 
- The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- CompartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- EntityType stringInternal Name 
- Internal name for the log analytics entity type.
- EntityType stringName 
- Log analytics entity type name.
- 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"}
- Hostname string
- The hostname where the entity represented here is actually present. This would be the output one would get if they run echo $HOSTNAMEon Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.
- Id string
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- LifecycleDetails string
- lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- LogAnalytics stringEntity Id 
- ManagementAgent stringCompartment Id 
- Management agent (management-agents resource kind) compartment OCID
- ManagementAgent stringDisplay Name 
- Management agent (management-agents resource kind) display name
- ManagementAgent stringId 
- The OCID of the Management Agent.
- Metadatas
[]GetLog Analytics Entity Metadata 
- Details of entity metadata information.
- Name string
- Log analytics entity name.
- Namespace string
- Properties map[string]string
- The name/value pairs for parameter values to be used in file patterns specified in log sources.
- SourceId string
- This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- State string
- The current state of the log analytics entity.
- TimeCreated string
- The date and time the resource was created, in the format defined by RFC3339.
- TimeLast stringDiscovered 
- The date and time the resource was last discovered, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the resource was last updated, in the format defined by RFC3339.
- TimezoneRegion string
- The timezone region of the log analytics entity.
- areLogs BooleanCollected 
- The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- cloudResource StringId 
- The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- compartmentId String
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- entityType StringInternal Name 
- Internal name for the log analytics entity type.
- entityType StringName 
- Log analytics entity type name.
- 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"}
- hostname String
- The hostname where the entity represented here is actually present. This would be the output one would get if they run echo $HOSTNAMEon Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.
- id String
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- lifecycleDetails String
- lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- logAnalytics StringEntity Id 
- managementAgent StringCompartment Id 
- Management agent (management-agents resource kind) compartment OCID
- managementAgent StringDisplay Name 
- Management agent (management-agents resource kind) display name
- managementAgent StringId 
- The OCID of the Management Agent.
- metadatas
List<GetEntity Metadata> 
- Details of entity metadata information.
- name String
- Log analytics entity name.
- namespace String
- properties Map<String,String>
- The name/value pairs for parameter values to be used in file patterns specified in log sources.
- sourceId String
- This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- state String
- The current state of the log analytics entity.
- timeCreated String
- The date and time the resource was created, in the format defined by RFC3339.
- timeLast StringDiscovered 
- The date and time the resource was last discovered, in the format defined by RFC3339.
- timeUpdated String
- The date and time the resource was last updated, in the format defined by RFC3339.
- timezoneRegion String
- The timezone region of the log analytics entity.
- areLogs booleanCollected 
- The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- cloudResource stringId 
- The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- compartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- entityType stringInternal Name 
- Internal name for the log analytics entity type.
- entityType stringName 
- Log analytics entity type name.
- {[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"}
- hostname string
- The hostname where the entity represented here is actually present. This would be the output one would get if they run echo $HOSTNAMEon Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.
- id string
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- lifecycleDetails string
- lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- logAnalytics stringEntity Id 
- managementAgent stringCompartment Id 
- Management agent (management-agents resource kind) compartment OCID
- managementAgent stringDisplay Name 
- Management agent (management-agents resource kind) display name
- managementAgent stringId 
- The OCID of the Management Agent.
- metadatas
GetLog Analytics Entity Metadata[] 
- Details of entity metadata information.
- name string
- Log analytics entity name.
- namespace string
- properties {[key: string]: string}
- The name/value pairs for parameter values to be used in file patterns specified in log sources.
- sourceId string
- This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- state string
- The current state of the log analytics entity.
- timeCreated string
- The date and time the resource was created, in the format defined by RFC3339.
- timeLast stringDiscovered 
- The date and time the resource was last discovered, in the format defined by RFC3339.
- timeUpdated string
- The date and time the resource was last updated, in the format defined by RFC3339.
- timezoneRegion string
- The timezone region of the log analytics entity.
- are_logs_ boolcollected 
- The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- cloud_resource_ strid 
- The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- compartment_id str
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- entity_type_ strinternal_ name 
- Internal name for the log analytics entity type.
- entity_type_ strname 
- Log analytics entity type name.
- 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"}
- hostname str
- The hostname where the entity represented here is actually present. This would be the output one would get if they run echo $HOSTNAMEon Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.
- id str
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- lifecycle_details str
- lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- log_analytics_ strentity_ id 
- management_agent_ strcompartment_ id 
- Management agent (management-agents resource kind) compartment OCID
- management_agent_ strdisplay_ name 
- Management agent (management-agents resource kind) display name
- management_agent_ strid 
- The OCID of the Management Agent.
- metadatas
Sequence[GetLog Analytics Entity Metadata] 
- Details of entity metadata information.
- name str
- Log analytics entity name.
- namespace str
- properties Mapping[str, str]
- The name/value pairs for parameter values to be used in file patterns specified in log sources.
- source_id str
- This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- state str
- The current state of the log analytics entity.
- time_created str
- The date and time the resource was created, in the format defined by RFC3339.
- time_last_ strdiscovered 
- The date and time the resource was last discovered, in the format defined by RFC3339.
- time_updated str
- The date and time the resource was last updated, in the format defined by RFC3339.
- timezone_region str
- The timezone region of the log analytics entity.
- areLogs BooleanCollected 
- The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- cloudResource StringId 
- The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- compartmentId String
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- entityType StringInternal Name 
- Internal name for the log analytics entity type.
- entityType StringName 
- Log analytics entity type name.
- 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"}
- hostname String
- The hostname where the entity represented here is actually present. This would be the output one would get if they run echo $HOSTNAMEon Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.
- id String
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- lifecycleDetails String
- lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- logAnalytics StringEntity Id 
- managementAgent StringCompartment Id 
- Management agent (management-agents resource kind) compartment OCID
- managementAgent StringDisplay Name 
- Management agent (management-agents resource kind) display name
- managementAgent StringId 
- The OCID of the Management Agent.
- metadatas List<Property Map>
- Details of entity metadata information.
- name String
- Log analytics entity name.
- namespace String
- properties Map<String>
- The name/value pairs for parameter values to be used in file patterns specified in log sources.
- sourceId String
- This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- state String
- The current state of the log analytics entity.
- timeCreated String
- The date and time the resource was created, in the format defined by RFC3339.
- timeLast StringDiscovered 
- The date and time the resource was last discovered, in the format defined by RFC3339.
- timeUpdated String
- The date and time the resource was last updated, in the format defined by RFC3339.
- timezoneRegion String
- The timezone region of the log analytics entity.
Supporting Types
GetLogAnalyticsEntityMetadata    
- Items
List<GetLog Analytics Entity Metadata Item> 
- An array of entity metadata.
- Items
[]GetLog Analytics Entity Metadata Item 
- An array of entity metadata.
- items
List<GetEntity Metadata Item> 
- An array of entity metadata.
- items
GetLog Analytics Entity Metadata Item[] 
- An array of entity metadata.
- items
Sequence[GetLog Analytics Entity Metadata Item] 
- An array of entity metadata.
- items List<Property Map>
- An array of entity metadata.
GetLogAnalyticsEntityMetadataItem     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.