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

oci.LogAnalytics.getLogAnalyticsEntityType

Explore with Pulumi AI

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

    This data source provides details about a specific Log Analytics Entity Type resource in Oracle Cloud Infrastructure Log Analytics service.

    Retrieve the log analytics entity type with the given name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testLogAnalyticsEntityType = oci.LogAnalytics.getLogAnalyticsEntityType({
        entityTypeName: logAnalyticsEntityTypeName,
        namespace: logAnalyticsEntityTypeNamespace,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_log_analytics_entity_type = oci.LogAnalytics.get_log_analytics_entity_type(entity_type_name=log_analytics_entity_type_name,
        namespace=log_analytics_entity_type_namespace)
    
    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.GetLogAnalyticsEntityType(ctx, &loganalytics.GetLogAnalyticsEntityTypeArgs{
    			EntityTypeName: logAnalyticsEntityTypeName,
    			Namespace:      logAnalyticsEntityTypeNamespace,
    		}, 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 testLogAnalyticsEntityType = Oci.LogAnalytics.GetLogAnalyticsEntityType.Invoke(new()
        {
            EntityTypeName = logAnalyticsEntityTypeName,
            Namespace = logAnalyticsEntityTypeNamespace,
        });
    
    });
    
    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.GetLogAnalyticsEntityTypeArgs;
    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 testLogAnalyticsEntityType = LogAnalyticsFunctions.getLogAnalyticsEntityType(GetLogAnalyticsEntityTypeArgs.builder()
                .entityTypeName(logAnalyticsEntityTypeName)
                .namespace(logAnalyticsEntityTypeNamespace)
                .build());
    
        }
    }
    
    variables:
      testLogAnalyticsEntityType:
        fn::invoke:
          function: oci:LogAnalytics:getLogAnalyticsEntityType
          arguments:
            entityTypeName: ${logAnalyticsEntityTypeName}
            namespace: ${logAnalyticsEntityTypeNamespace}
    

    Using getLogAnalyticsEntityType

    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 getLogAnalyticsEntityType(args: GetLogAnalyticsEntityTypeArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsEntityTypeResult>
    function getLogAnalyticsEntityTypeOutput(args: GetLogAnalyticsEntityTypeOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsEntityTypeResult>
    def get_log_analytics_entity_type(entity_type_name: Optional[str] = None,
                                      namespace: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsEntityTypeResult
    def get_log_analytics_entity_type_output(entity_type_name: Optional[pulumi.Input[str]] = None,
                                      namespace: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsEntityTypeResult]
    func LookupLogAnalyticsEntityType(ctx *Context, args *LookupLogAnalyticsEntityTypeArgs, opts ...InvokeOption) (*LookupLogAnalyticsEntityTypeResult, error)
    func LookupLogAnalyticsEntityTypeOutput(ctx *Context, args *LookupLogAnalyticsEntityTypeOutputArgs, opts ...InvokeOption) LookupLogAnalyticsEntityTypeResultOutput

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

    public static class GetLogAnalyticsEntityType 
    {
        public static Task<GetLogAnalyticsEntityTypeResult> InvokeAsync(GetLogAnalyticsEntityTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetLogAnalyticsEntityTypeResult> Invoke(GetLogAnalyticsEntityTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogAnalyticsEntityTypeResult> getLogAnalyticsEntityType(GetLogAnalyticsEntityTypeArgs args, InvokeOptions options)
    public static Output<GetLogAnalyticsEntityTypeResult> getLogAnalyticsEntityType(GetLogAnalyticsEntityTypeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:LogAnalytics/getLogAnalyticsEntityType:getLogAnalyticsEntityType
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EntityTypeName string
    Log analytics entity type name.
    Namespace string
    The Logging Analytics namespace used for the request.
    EntityTypeName string
    Log analytics entity type name.
    Namespace string
    The Logging Analytics namespace used for the request.
    entityTypeName String
    Log analytics entity type name.
    namespace String
    The Logging Analytics namespace used for the request.
    entityTypeName string
    Log analytics entity type name.
    namespace string
    The Logging Analytics namespace used for the request.
    entity_type_name str
    Log analytics entity type name.
    namespace str
    The Logging Analytics namespace used for the request.
    entityTypeName String
    Log analytics entity type name.
    namespace String
    The Logging Analytics namespace used for the request.

    getLogAnalyticsEntityType Result

    The following output properties are available:

    Category string
    Log analytics entity type category. Category will be used for grouping and filtering.
    CloudType string
    Log analytics entity type group. That can be CLOUD (OCI) or NON_CLOUD otherwise.
    EntityTypeName string
    Id string
    InternalName string
    Internal name for the log analytics entity type.
    ManagementAgentEligibilityStatus string
    Name string
    Log analytics entity type property name.
    Namespace string
    Properties List<GetLogAnalyticsEntityTypeProperty>
    The parameters used in file patterns specified in log sources for this log analytics entity type.
    State string
    The current lifecycle state of the log analytics entity type.
    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
    Log analytics entity type group. That can be CLOUD (OCI) or NON_CLOUD otherwise.
    EntityTypeName string
    Id string
    InternalName string
    Internal name for the log analytics entity type.
    ManagementAgentEligibilityStatus string
    Name string
    Log analytics entity type property name.
    Namespace string
    Properties []GetLogAnalyticsEntityTypeProperty
    The parameters used in file patterns specified in log sources for this log analytics entity type.
    State string
    The current lifecycle state of the log analytics entity type.
    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
    Log analytics entity type group. That can be CLOUD (OCI) or NON_CLOUD otherwise.
    entityTypeName String
    id String
    internalName String
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus String
    name String
    Log analytics entity type property name.
    namespace String
    properties List<GetEntityTypeProperty>
    The parameters used in file patterns specified in log sources for this log analytics entity type.
    state String
    The current lifecycle state of the log analytics entity type.
    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
    Log analytics entity type group. That can be CLOUD (OCI) or NON_CLOUD otherwise.
    entityTypeName string
    id string
    internalName string
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus string
    name string
    Log analytics entity type property name.
    namespace string
    properties GetLogAnalyticsEntityTypeProperty[]
    The parameters used in file patterns specified in log sources for this log analytics entity type.
    state string
    The current lifecycle state of the log analytics entity type.
    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
    Log analytics entity type group. That can be CLOUD (OCI) or NON_CLOUD otherwise.
    entity_type_name str
    id str
    internal_name str
    Internal name for the log analytics entity type.
    management_agent_eligibility_status str
    name str
    Log analytics entity type property name.
    namespace str
    properties Sequence[GetLogAnalyticsEntityTypeProperty]
    The parameters used in file patterns specified in log sources for this log analytics entity type.
    state str
    The current lifecycle state of the log analytics entity type.
    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
    Log analytics entity type group. That can be CLOUD (OCI) or NON_CLOUD otherwise.
    entityTypeName String
    id String
    internalName String
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus String
    name String
    Log analytics entity type property name.
    namespace String
    properties List<Property Map>
    The parameters used in file patterns specified in log sources for this log analytics entity type.
    state String
    The current lifecycle state of the log analytics entity type.
    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.

    Supporting Types

    GetLogAnalyticsEntityTypeProperty

    Description string
    Description for the log analytics entity type property.
    Name string
    Log analytics entity type property name.
    Description string
    Description for the log analytics entity type property.
    Name string
    Log analytics entity type property name.
    description String
    Description for the log analytics entity type property.
    name String
    Log analytics entity type property name.
    description string
    Description for the log analytics entity type property.
    name string
    Log analytics entity type property name.
    description str
    Description for the log analytics entity type property.
    name str
    Log analytics entity type property name.
    description String
    Description for the log analytics entity type property.
    name String
    Log analytics entity type property name.

    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