Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
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 dictionaryThe following arguments are supported:
- Log
Analytics stringEntity Id - The Log analytics entity OCID.
- Namespace string
- The Log Analytics namespace used for the request.
- Direct
Or stringAll Associations - Indicates whether to return direct associated entities or direct and inferred associated entities.
- Filters
List<Get
Log Analytics Entity Associations List Filter>
- Log
Analytics stringEntity Id - The Log analytics entity OCID.
- Namespace string
- The Log Analytics namespace used for the request.
- Direct
Or stringAll Associations - Indicates whether to return direct associated entities or direct and inferred associated entities.
- Filters
[]Get
Log Analytics Entity Associations List Filter
- log
Analytics StringEntity Id - The Log analytics entity OCID.
- namespace String
- The Log Analytics namespace used for the request.
- direct
Or StringAll Associations - Indicates whether to return direct associated entities or direct and inferred associated entities.
- filters
List<Get
Entity Associations List Filter>
- log
Analytics stringEntity Id - The Log analytics entity OCID.
- namespace string
- The Log Analytics namespace used for the request.
- direct
Or stringAll Associations - Indicates whether to return direct associated entities or direct and inferred associated entities.
- filters
Get
Log Analytics Entity Associations List Filter[]
- log_
analytics_ strentity_ id - The Log analytics entity OCID.
- namespace str
- The Log Analytics namespace used for the request.
- direct_
or_ strall_ associations - Indicates whether to return direct associated entities or direct and inferred associated entities.
- filters
Sequence[Get
Log Analytics Entity Associations List Filter]
- log
Analytics StringEntity Id - The Log analytics entity OCID.
- namespace String
- The Log Analytics namespace used for the request.
- direct
Or StringAll Associations - 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.
- Log
Analytics List<GetEntity Collections Log Analytics Entity Associations List Log Analytics Entity Collection> - The list of log_analytics_entity_collection.
- Log
Analytics stringEntity Id - Namespace string
- Direct
Or stringAll Associations - Filters
List<Get
Log Analytics Entity Associations List Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Analytics []GetEntity Collections Log Analytics Entity Associations List Log Analytics Entity Collection - The list of log_analytics_entity_collection.
- Log
Analytics stringEntity Id - Namespace string
- Direct
Or stringAll Associations - Filters
[]Get
Log Analytics Entity Associations List Filter
- id String
- The provider-assigned unique ID for this managed resource.
- log
Analytics List<GetEntity Collections Entity Associations List Entity Collection> - The list of log_analytics_entity_collection.
- log
Analytics StringEntity Id - namespace String
- direct
Or StringAll Associations - filters
List<Get
Entity Associations List Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- log
Analytics GetEntity Collections Log Analytics Entity Associations List Log Analytics Entity Collection[] - The list of log_analytics_entity_collection.
- log
Analytics stringEntity Id - namespace string
- direct
Or stringAll Associations - filters
Get
Log Analytics Entity Associations List Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- log_
analytics_ Sequence[Getentity_ collections Log Analytics Entity Associations List Log Analytics Entity Collection] - The list of log_analytics_entity_collection.
- log_
analytics_ strentity_ id - namespace str
- direct_
or_ strall_ associations - filters
Sequence[Get
Log Analytics Entity Associations List Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- log
Analytics List<Property Map>Entity Collections - The list of log_analytics_entity_collection.
- log
Analytics StringEntity Id - namespace String
- direct
Or StringAll Associations - filters List<Property Map>
Supporting Types
GetLogAnalyticsEntityAssociationsListFilter
GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollection
- Items
List<Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item> - An array of entity metadata.
- Items
[]Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item - An array of entity metadata.
- items
List<Get
Entity Associations List Entity Collection Item> - An array of entity metadata.
- items
Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item[] - An array of entity metadata.
- items
Sequence[Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item] - An array of entity metadata.
- items List<Property Map>
- An array of entity metadata.
GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollectionItem
- Are
Logs boolCollected - The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- Associated
Sources intCount - The count of associated log sources for a given log analytics entity.
- Cloud
Resource 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.
- Compartment
Id 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"} - Entity
Type stringInternal Name - Internal name for the log analytics entity type.
- Entity
Type 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"} - 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.
- Lifecycle
Details string - lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- Management
Agent stringId - The OCID of the Management Agent.
- Metadatas
List<Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item Metadata> - A collection of entity metadata information.
- Name string
- Log analytics entity name.
- Source
Id 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.
- Time
Created string - The date and time the resource was created, in the format defined by RFC3339.
- Time
Last stringDiscovered - The date and time the resource was last discovered, in the format defined by RFC3339.
- Time
Updated string - The date and time the resource was last updated, in the format defined by RFC3339.
- Timezone
Region 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.
- Associated
Sources intCount - The count of associated log sources for a given log analytics entity.
- Cloud
Resource 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.
- Compartment
Id 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"} - Entity
Type stringInternal Name - Internal name for the log analytics entity type.
- Entity
Type 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"} - 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.
- Lifecycle
Details string - lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- Management
Agent stringId - The OCID of the Management Agent.
- Metadatas
[]Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item Metadata - A collection of entity metadata information.
- Name string
- Log analytics entity name.
- Source
Id 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.
- Time
Created string - The date and time the resource was created, in the format defined by RFC3339.
- Time
Last stringDiscovered - The date and time the resource was last discovered, in the format defined by RFC3339.
- Time
Updated string - The date and time the resource was last updated, in the format defined by RFC3339.
- Timezone
Region string - The timezone region of the log analytics entity.
- are
Logs BooleanCollected - The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- associated
Sources IntegerCount - The count of associated log sources for a given log analytics entity.
- cloud
Resource 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.
- compartment
Id 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"} - entity
Type StringInternal Name - Internal name for the log analytics entity type.
- entity
Type 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"} - 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.
- lifecycle
Details String - lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- management
Agent StringId - The OCID of the Management Agent.
- metadatas
List<Get
Entity Associations List Entity Collection Item Metadata> - A collection of entity metadata information.
- name String
- Log analytics entity name.
- source
Id 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.
- time
Created String - The date and time the resource was created, in the format defined by RFC3339.
- time
Last StringDiscovered - The date and time the resource was last discovered, in the format defined by RFC3339.
- time
Updated String - The date and time the resource was last updated, in the format defined by RFC3339.
- timezone
Region String - The timezone region of the log analytics entity.
- are
Logs booleanCollected - The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- associated
Sources numberCount - The count of associated log sources for a given log analytics entity.
- cloud
Resource 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.
- compartment
Id 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"} - entity
Type stringInternal Name - Internal name for the log analytics entity type.
- entity
Type 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"} - 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.
- lifecycle
Details string - lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- management
Agent stringId - The OCID of the Management Agent.
- metadatas
Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item Metadata[] - A collection of entity metadata information.
- name string
- Log analytics entity name.
- source
Id 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.
- time
Created string - The date and time the resource was created, in the format defined by RFC3339.
- time
Last stringDiscovered - The date and time the resource was last discovered, in the format defined by RFC3339.
- time
Updated string - The date and time the resource was last updated, in the format defined by RFC3339.
- timezone
Region 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.
- associated_
sources_ intcount - The count of associated log sources for a given log analytics entity.
- 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"} - 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_ strid - The OCID of the Management Agent.
- metadatas
Sequence[Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item Metadata] - 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_ 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.
- are
Logs BooleanCollected - The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- associated
Sources NumberCount - The count of associated log sources for a given log analytics entity.
- cloud
Resource 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.
- compartment
Id 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"} - entity
Type StringInternal Name - Internal name for the log analytics entity type.
- entity
Type 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"} - 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.
- lifecycle
Details String - lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- management
Agent StringId - The OCID of the Management Agent.
- metadatas List<Property Map>
- A collection of entity metadata information.
- name String
- Log analytics entity name.
- source
Id 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.
- time
Created String - The date and time the resource was created, in the format defined by RFC3339.
- time
Last StringDiscovered - The date and time the resource was last discovered, in the format defined by RFC3339.
- time
Updated String - The date and time the resource was last updated, in the format defined by RFC3339.
- timezone
Region String - The timezone region of the log analytics entity.
GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollectionItemMetadata
- Items
List<Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item Metadata Item> - An array of entity metadata.
- Items
[]Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item Metadata Item - An array of entity metadata.
- items
List<Get
Entity Associations List Entity Collection Item Metadata Item> - An array of entity metadata.
- items
Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item Metadata Item[] - An array of entity metadata.
- items
Sequence[Get
Log Analytics Entity Associations List Log Analytics Entity Collection Item Metadata Item] - An array of entity metadata.
- items List<Property Map>
- An array of entity metadata.
GetLogAnalyticsEntityAssociationsListLogAnalyticsEntityCollectionItemMetadataItem
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
