1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getLogAnalyticsEntityAssociationsList
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi

    This data source provides the list of Log Analytics Entity Associations List in Oracle Cloud Infrastructure Log Analytics service.

    Return a list of log analytics entities associated with input source log analytics entity.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testLogAnalyticsEntityAssociationsList = oci.LogAnalytics.getLogAnalyticsEntityAssociationsList({
        logAnalyticsEntityId: testLogAnalyticsEntity.id,
        namespace: logAnalyticsEntityAssociationsListNamespace,
        directOrAllAssociations: logAnalyticsEntityAssociationsListDirectOrAllAssociations,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_log_analytics_entity_associations_list = oci.LogAnalytics.get_log_analytics_entity_associations_list(log_analytics_entity_id=test_log_analytics_entity["id"],
        namespace=log_analytics_entity_associations_list_namespace,
        direct_or_all_associations=log_analytics_entity_associations_list_direct_or_all_associations)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/loganalytics"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := loganalytics.GetLogAnalyticsEntityAssociationsList(ctx, &loganalytics.GetLogAnalyticsEntityAssociationsListArgs{
    			LogAnalyticsEntityId:    testLogAnalyticsEntity.Id,
    			Namespace:               logAnalyticsEntityAssociationsListNamespace,
    			DirectOrAllAssociations: pulumi.StringRef(logAnalyticsEntityAssociationsListDirectOrAllAssociations),
    		}, 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 testLogAnalyticsEntityAssociationsList = Oci.LogAnalytics.GetLogAnalyticsEntityAssociationsList.Invoke(new()
        {
            LogAnalyticsEntityId = testLogAnalyticsEntity.Id,
            Namespace = logAnalyticsEntityAssociationsListNamespace,
            DirectOrAllAssociations = logAnalyticsEntityAssociationsListDirectOrAllAssociations,
        });
    
    });
    
    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.GetLogAnalyticsEntityAssociationsListArgs;
    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 testLogAnalyticsEntityAssociationsList = LogAnalyticsFunctions.getLogAnalyticsEntityAssociationsList(GetLogAnalyticsEntityAssociationsListArgs.builder()
                .logAnalyticsEntityId(testLogAnalyticsEntity.id())
                .namespace(logAnalyticsEntityAssociationsListNamespace)
                .directOrAllAssociations(logAnalyticsEntityAssociationsListDirectOrAllAssociations)
                .build());
    
        }
    }
    
    variables:
      testLogAnalyticsEntityAssociationsList:
        fn::invoke:
          function: oci:LogAnalytics:getLogAnalyticsEntityAssociationsList
          arguments:
            logAnalyticsEntityId: ${testLogAnalyticsEntity.id}
            namespace: ${logAnalyticsEntityAssociationsListNamespace}
            directOrAllAssociations: ${logAnalyticsEntityAssociationsListDirectOrAllAssociations}
    

    Using getLogAnalyticsEntityAssociationsList

    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 getLogAnalyticsEntityAssociationsList(args: GetLogAnalyticsEntityAssociationsListArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsEntityAssociationsListResult>
    function getLogAnalyticsEntityAssociationsListOutput(args: GetLogAnalyticsEntityAssociationsListOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsEntityAssociationsListResult>
    def get_log_analytics_entity_associations_list(direct_or_all_associations: Optional[str] = None,
                                                   filters: Optional[Sequence[GetLogAnalyticsEntityAssociationsListFilter]] = None,
                                                   log_analytics_entity_id: Optional[str] = None,
                                                   namespace: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsEntityAssociationsListResult
    def get_log_analytics_entity_associations_list_output(direct_or_all_associations: Optional[pulumi.Input[str]] = None,
                                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetLogAnalyticsEntityAssociationsListFilterArgs]]]] = None,
                                                   log_analytics_entity_id: Optional[pulumi.Input[str]] = None,
                                                   namespace: Optional[pulumi.Input[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsEntityAssociationsListResult]
    func GetLogAnalyticsEntityAssociationsList(ctx *Context, args *GetLogAnalyticsEntityAssociationsListArgs, opts ...InvokeOption) (*GetLogAnalyticsEntityAssociationsListResult, error)
    func GetLogAnalyticsEntityAssociationsListOutput(ctx *Context, args *GetLogAnalyticsEntityAssociationsListOutputArgs, opts ...InvokeOption) GetLogAnalyticsEntityAssociationsListResultOutput

    > Note: This function is named GetLogAnalyticsEntityAssociationsList in the Go SDK.

    public static class GetLogAnalyticsEntityAssociationsList 
    {
        public static Task<GetLogAnalyticsEntityAssociationsListResult> InvokeAsync(GetLogAnalyticsEntityAssociationsListArgs args, InvokeOptions? opts = null)
        public static Output<GetLogAnalyticsEntityAssociationsListResult> Invoke(GetLogAnalyticsEntityAssociationsListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogAnalyticsEntityAssociationsListResult> getLogAnalyticsEntityAssociationsList(GetLogAnalyticsEntityAssociationsListArgs args, InvokeOptions options)
    public static Output<GetLogAnalyticsEntityAssociationsListResult> getLogAnalyticsEntityAssociationsList(GetLogAnalyticsEntityAssociationsListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:LogAnalytics/getLogAnalyticsEntityAssociationsList:getLogAnalyticsEntityAssociationsList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    LogAnalyticsEntityId string
    The Log analytics entity OCID.
    Namespace string
    The Log Analytics namespace used for the request.
    DirectOrAllAssociations string
    Indicates whether to return direct associated entities or direct and inferred associated entities.
    Filters List<GetLogAnalyticsEntityAssociationsListFilter>
    LogAnalyticsEntityId string
    The Log analytics entity OCID.
    Namespace string
    The Log Analytics namespace used for the request.
    DirectOrAllAssociations string
    Indicates whether to return direct associated entities or direct and inferred associated entities.
    Filters []GetLogAnalyticsEntityAssociationsListFilter
    logAnalyticsEntityId String
    The Log analytics entity OCID.
    namespace String
    The Log Analytics namespace used for the request.
    directOrAllAssociations String
    Indicates whether to return direct associated entities or direct and inferred associated entities.
    filters List<GetEntityAssociationsListFilter>
    logAnalyticsEntityId string
    The Log analytics entity OCID.
    namespace string
    The Log Analytics namespace used for the request.
    directOrAllAssociations string
    Indicates whether to return direct associated entities or direct and inferred associated entities.
    filters GetLogAnalyticsEntityAssociationsListFilter[]
    log_analytics_entity_id str
    The Log analytics entity OCID.
    namespace str
    The Log Analytics namespace used for the request.
    direct_or_all_associations str
    Indicates whether to return direct associated entities or direct and inferred associated entities.
    filters Sequence[GetLogAnalyticsEntityAssociationsListFilter]
    logAnalyticsEntityId String
    The Log analytics entity OCID.
    namespace String
    The Log Analytics namespace used for the request.
    directOrAllAssociations String
    Indicates whether to return direct associated entities or direct and inferred associated entities.
    filters List<Property Map>

    getLogAnalyticsEntityAssociationsList Result

    The following output properties are available:

    id String
    The provider-assigned unique ID for this managed resource.
    logAnalyticsEntityCollections List<GetEntityAssociationsListEntityCollection>
    The list of log_analytics_entity_collection.
    logAnalyticsEntityId String
    namespace String
    directOrAllAssociations String
    filters List<GetEntityAssociationsListFilter>
    id String
    The provider-assigned unique ID for this managed resource.
    logAnalyticsEntityCollections List<Property Map>
    The list of log_analytics_entity_collection.
    logAnalyticsEntityId String
    namespace String
    directOrAllAssociations String
    filters List<Property Map>

    Supporting Types

    GetLogAnalyticsEntityAssociationsListFilter

    Name string
    Log analytics entity name.
    Values List<string>
    Regex bool
    Name string
    Log analytics entity name.
    Values []string
    Regex bool
    name String
    Log analytics entity name.
    values List<String>
    regex Boolean
    name string
    Log analytics entity name.
    values string[]
    regex boolean
    name str
    Log analytics entity name.
    values Sequence[str]
    regex bool
    name String
    Log analytics entity name.
    values List<String>
    regex Boolean

    GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollection

    items List<Property Map>
    An array of entity metadata.

    GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollectionItem

    AreLogsCollected bool
    The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
    AssociatedSourcesCount int
    The count of associated log sources for a given log analytics entity.
    CloudResourceId string
    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).
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    EntityTypeInternalName string
    Internal name for the log analytics entity type.
    EntityTypeName string
    Log analytics entity type name.
    FreeformTags 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"}
    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.
    ManagementAgentId string
    The OCID of the Management Agent.
    Metadatas List<GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollectionItemMetadata>
    A collection of entity metadata information.
    Name string
    Log analytics entity name.
    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.
    TimeLastDiscovered string
    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.
    AreLogsCollected bool
    The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
    AssociatedSourcesCount int
    The count of associated log sources for a given log analytics entity.
    CloudResourceId string
    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).
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    EntityTypeInternalName string
    Internal name for the log analytics entity type.
    EntityTypeName string
    Log analytics entity type name.
    FreeformTags 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"}
    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.
    ManagementAgentId string
    The OCID of the Management Agent.
    Metadatas []GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollectionItemMetadata
    A collection of entity metadata information.
    Name string
    Log analytics entity name.
    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.
    TimeLastDiscovered string
    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.
    areLogsCollected Boolean
    The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
    associatedSourcesCount Integer
    The count of associated log sources for a given log analytics entity.
    cloudResourceId String
    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).
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    entityTypeInternalName String
    Internal name for the log analytics entity type.
    entityTypeName String
    Log analytics entity type name.
    freeformTags 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"}
    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.
    managementAgentId String
    The OCID of the Management Agent.
    metadatas List<GetEntityAssociationsListEntityCollectionItemMetadata>
    A collection of entity metadata information.
    name String
    Log analytics entity name.
    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.
    timeLastDiscovered String
    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.
    areLogsCollected boolean
    The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
    associatedSourcesCount number
    The count of associated log sources for a given log analytics entity.
    cloudResourceId string
    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).
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    entityTypeInternalName string
    Internal name for the log analytics entity type.
    entityTypeName string
    Log analytics entity type name.
    freeformTags {[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"}
    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.
    managementAgentId string
    The OCID of the Management Agent.
    metadatas GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollectionItemMetadata[]
    A collection of entity metadata information.
    name string
    Log analytics entity name.
    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.
    timeLastDiscovered string
    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_collected bool
    The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
    associated_sources_count int
    The count of associated log sources for a given log analytics entity.
    cloud_resource_id str
    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).
    defined_tags 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_internal_name str
    Internal name for the log analytics entity type.
    entity_type_name str
    Log analytics entity type name.
    freeform_tags 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"}
    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.
    management_agent_id str
    The OCID of the Management Agent.
    metadatas Sequence[GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollectionItemMetadata]
    A collection of entity metadata information.
    name str
    Log analytics entity name.
    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_discovered str
    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.
    areLogsCollected Boolean
    The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
    associatedSourcesCount Number
    The count of associated log sources for a given log analytics entity.
    cloudResourceId String
    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).
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    entityTypeInternalName String
    Internal name for the log analytics entity type.
    entityTypeName String
    Log analytics entity type name.
    freeformTags 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"}
    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.
    managementAgentId String
    The OCID of the Management Agent.
    metadatas List<Property Map>
    A collection of entity metadata information.
    name String
    Log analytics entity name.
    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.
    timeLastDiscovered String
    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.

    GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollectionItemMetadata

    items List<Property Map>
    An array of entity metadata.

    GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollectionItemMetadataItem

    Name string
    Log analytics entity name.
    Type string
    The metadata type.
    Value string
    The metadata value.
    Name string
    Log analytics entity name.
    Type string
    The metadata type.
    Value string
    The metadata value.
    name String
    Log analytics entity name.
    type String
    The metadata type.
    value String
    The metadata value.
    name string
    Log analytics entity name.
    type string
    The metadata type.
    value string
    The metadata value.
    name str
    Log analytics entity name.
    type str
    The metadata type.
    value str
    The metadata value.
    name String
    Log analytics entity name.
    type String
    The metadata type.
    value String
    The metadata value.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate