1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getLogAnalyticsEntityTypes
Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi

oci.LogAnalytics.getLogAnalyticsEntityTypes

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi

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

    Return a list of log analytics entity types.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testLogAnalyticsEntityTypes = oci.LogAnalytics.getLogAnalyticsEntityTypes({
        namespace: logAnalyticsEntityTypeNamespace,
        cloudType: logAnalyticsEntityTypeCloudType,
        name: logAnalyticsEntityTypeName,
        nameContains: logAnalyticsEntityTypeNameContains,
        state: logAnalyticsEntityTypeState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_log_analytics_entity_types = oci.LogAnalytics.get_log_analytics_entity_types(namespace=log_analytics_entity_type_namespace,
        cloud_type=log_analytics_entity_type_cloud_type,
        name=log_analytics_entity_type_name,
        name_contains=log_analytics_entity_type_name_contains,
        state=log_analytics_entity_type_state)
    
    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.GetLogAnalyticsEntityTypes(ctx, &loganalytics.GetLogAnalyticsEntityTypesArgs{
    			Namespace:    logAnalyticsEntityTypeNamespace,
    			CloudType:    pulumi.StringRef(logAnalyticsEntityTypeCloudType),
    			Name:         pulumi.StringRef(logAnalyticsEntityTypeName),
    			NameContains: pulumi.StringRef(logAnalyticsEntityTypeNameContains),
    			State:        pulumi.StringRef(logAnalyticsEntityTypeState),
    		}, 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 testLogAnalyticsEntityTypes = Oci.LogAnalytics.GetLogAnalyticsEntityTypes.Invoke(new()
        {
            Namespace = logAnalyticsEntityTypeNamespace,
            CloudType = logAnalyticsEntityTypeCloudType,
            Name = logAnalyticsEntityTypeName,
            NameContains = logAnalyticsEntityTypeNameContains,
            State = logAnalyticsEntityTypeState,
        });
    
    });
    
    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.GetLogAnalyticsEntityTypesArgs;
    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 testLogAnalyticsEntityTypes = LogAnalyticsFunctions.getLogAnalyticsEntityTypes(GetLogAnalyticsEntityTypesArgs.builder()
                .namespace(logAnalyticsEntityTypeNamespace)
                .cloudType(logAnalyticsEntityTypeCloudType)
                .name(logAnalyticsEntityTypeName)
                .nameContains(logAnalyticsEntityTypeNameContains)
                .state(logAnalyticsEntityTypeState)
                .build());
    
        }
    }
    
    variables:
      testLogAnalyticsEntityTypes:
        fn::invoke:
          function: oci:LogAnalytics:getLogAnalyticsEntityTypes
          arguments:
            namespace: ${logAnalyticsEntityTypeNamespace}
            cloudType: ${logAnalyticsEntityTypeCloudType}
            name: ${logAnalyticsEntityTypeName}
            nameContains: ${logAnalyticsEntityTypeNameContains}
            state: ${logAnalyticsEntityTypeState}
    

    Using getLogAnalyticsEntityTypes

    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 getLogAnalyticsEntityTypes(args: GetLogAnalyticsEntityTypesArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsEntityTypesResult>
    function getLogAnalyticsEntityTypesOutput(args: GetLogAnalyticsEntityTypesOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsEntityTypesResult>
    def get_log_analytics_entity_types(cloud_type: Optional[str] = None,
                                       filters: Optional[Sequence[GetLogAnalyticsEntityTypesFilter]] = None,
                                       name: Optional[str] = None,
                                       name_contains: Optional[str] = None,
                                       namespace: Optional[str] = None,
                                       state: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsEntityTypesResult
    def get_log_analytics_entity_types_output(cloud_type: Optional[pulumi.Input[str]] = None,
                                       filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetLogAnalyticsEntityTypesFilterArgs]]]] = None,
                                       name: Optional[pulumi.Input[str]] = None,
                                       name_contains: Optional[pulumi.Input[str]] = None,
                                       namespace: Optional[pulumi.Input[str]] = None,
                                       state: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsEntityTypesResult]
    func GetLogAnalyticsEntityTypes(ctx *Context, args *GetLogAnalyticsEntityTypesArgs, opts ...InvokeOption) (*GetLogAnalyticsEntityTypesResult, error)
    func GetLogAnalyticsEntityTypesOutput(ctx *Context, args *GetLogAnalyticsEntityTypesOutputArgs, opts ...InvokeOption) GetLogAnalyticsEntityTypesResultOutput

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

    public static class GetLogAnalyticsEntityTypes 
    {
        public static Task<GetLogAnalyticsEntityTypesResult> InvokeAsync(GetLogAnalyticsEntityTypesArgs args, InvokeOptions? opts = null)
        public static Output<GetLogAnalyticsEntityTypesResult> Invoke(GetLogAnalyticsEntityTypesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogAnalyticsEntityTypesResult> getLogAnalyticsEntityTypes(GetLogAnalyticsEntityTypesArgs args, InvokeOptions options)
    public static Output<GetLogAnalyticsEntityTypesResult> getLogAnalyticsEntityTypes(GetLogAnalyticsEntityTypesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:LogAnalytics/getLogAnalyticsEntityTypes:getLogAnalyticsEntityTypes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Namespace string
    The Logging Analytics namespace used for the request.
    CloudType string
    A filter to return CLOUD or NON_CLOUD entity types.
    Filters List<GetLogAnalyticsEntityTypesFilter>
    Name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    NameContains string
    A filter to return only log analytics entity types whose name or internalName contains name given. The match is case-insensitive.
    State string
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.
    Namespace string
    The Logging Analytics namespace used for the request.
    CloudType string
    A filter to return CLOUD or NON_CLOUD entity types.
    Filters []GetLogAnalyticsEntityTypesFilter
    Name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    NameContains string
    A filter to return only log analytics entity types whose name or internalName contains name given. The match is case-insensitive.
    State string
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.
    namespace String
    The Logging Analytics namespace used for the request.
    cloudType String
    A filter to return CLOUD or NON_CLOUD entity types.
    filters List<GetEntityTypesFilter>
    name String
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    nameContains String
    A filter to return only log analytics entity types whose name or internalName contains name given. The match is case-insensitive.
    state String
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.
    namespace string
    The Logging Analytics namespace used for the request.
    cloudType string
    A filter to return CLOUD or NON_CLOUD entity types.
    filters GetLogAnalyticsEntityTypesFilter[]
    name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    nameContains string
    A filter to return only log analytics entity types whose name or internalName contains name given. The match is case-insensitive.
    state string
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.
    namespace str
    The Logging Analytics namespace used for the request.
    cloud_type str
    A filter to return CLOUD or NON_CLOUD entity types.
    filters Sequence[GetLogAnalyticsEntityTypesFilter]
    name str
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    name_contains str
    A filter to return only log analytics entity types whose name or internalName contains name given. The match is case-insensitive.
    state str
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.
    namespace String
    The Logging Analytics namespace used for the request.
    cloudType String
    A filter to return CLOUD or NON_CLOUD entity types.
    filters List<Property Map>
    name String
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    nameContains String
    A filter to return only log analytics entity types whose name or internalName contains name given. The match is case-insensitive.
    state String
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.

    getLogAnalyticsEntityTypes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LogAnalyticsEntityTypeCollections List<GetLogAnalyticsEntityTypesLogAnalyticsEntityTypeCollection>
    The list of log_analytics_entity_type_collection.
    Namespace string
    CloudType string
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    Filters List<GetLogAnalyticsEntityTypesFilter>
    Name string
    Log analytics entity type name.
    NameContains string
    State string
    The current lifecycle state of the log analytics entity type.
    Id string
    The provider-assigned unique ID for this managed resource.
    LogAnalyticsEntityTypeCollections []GetLogAnalyticsEntityTypesLogAnalyticsEntityTypeCollection
    The list of log_analytics_entity_type_collection.
    Namespace string
    CloudType string
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    Filters []GetLogAnalyticsEntityTypesFilter
    Name string
    Log analytics entity type name.
    NameContains string
    State string
    The current lifecycle state of the log analytics entity type.
    id String
    The provider-assigned unique ID for this managed resource.
    logAnalyticsEntityTypeCollections List<GetEntityTypesEntityTypeCollection>
    The list of log_analytics_entity_type_collection.
    namespace String
    cloudType String
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    filters List<GetEntityTypesFilter>
    name String
    Log analytics entity type name.
    nameContains String
    state String
    The current lifecycle state of the log analytics entity type.
    id string
    The provider-assigned unique ID for this managed resource.
    logAnalyticsEntityTypeCollections GetLogAnalyticsEntityTypesLogAnalyticsEntityTypeCollection[]
    The list of log_analytics_entity_type_collection.
    namespace string
    cloudType string
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    filters GetLogAnalyticsEntityTypesFilter[]
    name string
    Log analytics entity type name.
    nameContains string
    state string
    The current lifecycle state of the log analytics entity type.
    id str
    The provider-assigned unique ID for this managed resource.
    log_analytics_entity_type_collections Sequence[GetLogAnalyticsEntityTypesLogAnalyticsEntityTypeCollection]
    The list of log_analytics_entity_type_collection.
    namespace str
    cloud_type str
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    filters Sequence[GetLogAnalyticsEntityTypesFilter]
    name str
    Log analytics entity type name.
    name_contains str
    state str
    The current lifecycle state of the log analytics entity type.
    id String
    The provider-assigned unique ID for this managed resource.
    logAnalyticsEntityTypeCollections List<Property Map>
    The list of log_analytics_entity_type_collection.
    namespace String
    cloudType String
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    filters List<Property Map>
    name String
    Log analytics entity type name.
    nameContains String
    state String
    The current lifecycle state of the log analytics entity type.

    Supporting Types

    GetLogAnalyticsEntityTypesFilter

    Name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    Values List<string>
    Regex bool
    Name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    Values []string
    Regex bool
    name String
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    values List<String>
    regex Boolean
    name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    values string[]
    regex boolean
    name str
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    values Sequence[str]
    regex bool
    name String
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    values List<String>
    regex Boolean

    GetLogAnalyticsEntityTypesLogAnalyticsEntityTypeCollection

    items List<GetEntityTypesEntityTypeCollectionItem>
    Array of log analytics entity type summary.
    items List<Property Map>
    Array of log analytics entity type summary.

    GetLogAnalyticsEntityTypesLogAnalyticsEntityTypeCollectionItem

    Category string
    Log analytics entity type category. Category will be used for grouping and filtering.
    CloudType string
    A filter to return CLOUD or NON_CLOUD entity types.
    InternalName string
    Internal name for the log analytics entity type.
    ManagementAgentEligibilityStatus string
    Name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    Namespace string
    The Logging Analytics namespace used for the request.
    Properties List<GetLogAnalyticsEntityTypesLogAnalyticsEntityTypeCollectionItemProperty>
    State string
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.
    TimeCreated string
    Time the log analytics entity type was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    Time the log analytics entity type was updated. An RFC3339 formatted datetime string.
    Category string
    Log analytics entity type category. Category will be used for grouping and filtering.
    CloudType string
    A filter to return CLOUD or NON_CLOUD entity types.
    InternalName string
    Internal name for the log analytics entity type.
    ManagementAgentEligibilityStatus string
    Name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    Namespace string
    The Logging Analytics namespace used for the request.
    Properties []GetLogAnalyticsEntityTypesLogAnalyticsEntityTypeCollectionItemProperty
    State string
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.
    TimeCreated string
    Time the log analytics entity type was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    Time the log analytics entity type was updated. An RFC3339 formatted datetime string.
    category String
    Log analytics entity type category. Category will be used for grouping and filtering.
    cloudType String
    A filter to return CLOUD or NON_CLOUD entity types.
    internalName String
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus String
    name String
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    namespace String
    The Logging Analytics namespace used for the request.
    properties List<GetEntityTypesEntityTypeCollectionItemProperty>
    state String
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.
    timeCreated String
    Time the log analytics entity type was created. An RFC3339 formatted datetime string.
    timeUpdated String
    Time the log analytics entity type was updated. An RFC3339 formatted datetime string.
    category string
    Log analytics entity type category. Category will be used for grouping and filtering.
    cloudType string
    A filter to return CLOUD or NON_CLOUD entity types.
    internalName string
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus string
    name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    namespace string
    The Logging Analytics namespace used for the request.
    properties GetLogAnalyticsEntityTypesLogAnalyticsEntityTypeCollectionItemProperty[]
    state string
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.
    timeCreated string
    Time the log analytics entity type was created. An RFC3339 formatted datetime string.
    timeUpdated string
    Time the log analytics entity type was updated. An RFC3339 formatted datetime string.
    category str
    Log analytics entity type category. Category will be used for grouping and filtering.
    cloud_type str
    A filter to return CLOUD or NON_CLOUD entity types.
    internal_name str
    Internal name for the log analytics entity type.
    management_agent_eligibility_status str
    name str
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    namespace str
    The Logging Analytics namespace used for the request.
    properties Sequence[GetLogAnalyticsEntityTypesLogAnalyticsEntityTypeCollectionItemProperty]
    state str
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.
    time_created str
    Time the log analytics entity type was created. An RFC3339 formatted datetime string.
    time_updated str
    Time the log analytics entity type was updated. An RFC3339 formatted datetime string.
    category String
    Log analytics entity type category. Category will be used for grouping and filtering.
    cloudType String
    A filter to return CLOUD or NON_CLOUD entity types.
    internalName String
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus String
    name String
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    namespace String
    The Logging Analytics namespace used for the request.
    properties List<Property Map>
    state String
    A filter to return only those log analytics entity types with the specified lifecycle state. The state value is case-insensitive.
    timeCreated String
    Time the log analytics entity type was created. An RFC3339 formatted datetime string.
    timeUpdated String
    Time the log analytics entity type was updated. An RFC3339 formatted datetime string.

    GetLogAnalyticsEntityTypesLogAnalyticsEntityTypeCollectionItemProperty

    Description string
    Name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    Description string
    Name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    description String
    name String
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    description string
    name string
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    description str
    name str
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.
    description String
    name String
    A filter to return only log analytics entity types whose name matches the entire name given. The match is case-insensitive.

    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.3.0 published on Thursday, Jul 17, 2025 by Pulumi