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

oci.LogAnalytics.LogAnalyticsEntityType

Explore with Pulumi AI

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

    This resource provides the Log Analytics Entity Type resource in Oracle Cloud Infrastructure Log Analytics service.

    Add custom log analytics entity type.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testLogAnalyticsEntityType = new oci.loganalytics.LogAnalyticsEntityType("test_log_analytics_entity_type", {
        name: logAnalyticsEntityTypeName,
        namespace: logAnalyticsEntityTypeNamespace,
        category: logAnalyticsEntityTypeCategory,
        properties: [{
            name: logAnalyticsEntityTypePropertiesName,
            description: logAnalyticsEntityTypePropertiesDescription,
        }],
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_log_analytics_entity_type = oci.log_analytics.LogAnalyticsEntityType("test_log_analytics_entity_type",
        name=log_analytics_entity_type_name,
        namespace=log_analytics_entity_type_namespace,
        category=log_analytics_entity_type_category,
        properties=[{
            "name": log_analytics_entity_type_properties_name,
            "description": log_analytics_entity_type_properties_description,
        }])
    
    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.NewLogAnalyticsEntityType(ctx, "test_log_analytics_entity_type", &loganalytics.LogAnalyticsEntityTypeArgs{
    			Name:      pulumi.Any(logAnalyticsEntityTypeName),
    			Namespace: pulumi.Any(logAnalyticsEntityTypeNamespace),
    			Category:  pulumi.Any(logAnalyticsEntityTypeCategory),
    			Properties: loganalytics.LogAnalyticsEntityTypePropertyArray{
    				&loganalytics.LogAnalyticsEntityTypePropertyArgs{
    					Name:        pulumi.Any(logAnalyticsEntityTypePropertiesName),
    					Description: pulumi.Any(logAnalyticsEntityTypePropertiesDescription),
    				},
    			},
    		})
    		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 = new Oci.LogAnalytics.LogAnalyticsEntityType("test_log_analytics_entity_type", new()
        {
            Name = logAnalyticsEntityTypeName,
            Namespace = logAnalyticsEntityTypeNamespace,
            Category = logAnalyticsEntityTypeCategory,
            Properties = new[]
            {
                new Oci.LogAnalytics.Inputs.LogAnalyticsEntityTypePropertyArgs
                {
                    Name = logAnalyticsEntityTypePropertiesName,
                    Description = logAnalyticsEntityTypePropertiesDescription,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.LogAnalytics.LogAnalyticsEntityType;
    import com.pulumi.oci.LogAnalytics.LogAnalyticsEntityTypeArgs;
    import com.pulumi.oci.LogAnalytics.inputs.LogAnalyticsEntityTypePropertyArgs;
    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) {
            var testLogAnalyticsEntityType = new LogAnalyticsEntityType("testLogAnalyticsEntityType", LogAnalyticsEntityTypeArgs.builder()
                .name(logAnalyticsEntityTypeName)
                .namespace(logAnalyticsEntityTypeNamespace)
                .category(logAnalyticsEntityTypeCategory)
                .properties(LogAnalyticsEntityTypePropertyArgs.builder()
                    .name(logAnalyticsEntityTypePropertiesName)
                    .description(logAnalyticsEntityTypePropertiesDescription)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testLogAnalyticsEntityType:
        type: oci:LogAnalytics:LogAnalyticsEntityType
        name: test_log_analytics_entity_type
        properties:
          name: ${logAnalyticsEntityTypeName}
          namespace: ${logAnalyticsEntityTypeNamespace}
          category: ${logAnalyticsEntityTypeCategory}
          properties:
            - name: ${logAnalyticsEntityTypePropertiesName}
              description: ${logAnalyticsEntityTypePropertiesDescription}
    

    Create LogAnalyticsEntityType Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LogAnalyticsEntityType(name: string, args: LogAnalyticsEntityTypeArgs, opts?: CustomResourceOptions);
    @overload
    def LogAnalyticsEntityType(resource_name: str,
                               args: LogAnalyticsEntityTypeArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogAnalyticsEntityType(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               namespace: Optional[str] = None,
                               category: Optional[str] = None,
                               name: Optional[str] = None,
                               properties: Optional[Sequence[LogAnalyticsEntityTypePropertyArgs]] = None)
    func NewLogAnalyticsEntityType(ctx *Context, name string, args LogAnalyticsEntityTypeArgs, opts ...ResourceOption) (*LogAnalyticsEntityType, error)
    public LogAnalyticsEntityType(string name, LogAnalyticsEntityTypeArgs args, CustomResourceOptions? opts = null)
    public LogAnalyticsEntityType(String name, LogAnalyticsEntityTypeArgs args)
    public LogAnalyticsEntityType(String name, LogAnalyticsEntityTypeArgs args, CustomResourceOptions options)
    
    type: oci:LogAnalytics:LogAnalyticsEntityType
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LogAnalyticsEntityTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LogAnalyticsEntityTypeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LogAnalyticsEntityTypeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogAnalyticsEntityTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogAnalyticsEntityTypeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var logAnalyticsEntityTypeResource = new Oci.LogAnalytics.LogAnalyticsEntityType("logAnalyticsEntityTypeResource", new()
    {
        Namespace = "string",
        Category = "string",
        Name = "string",
        Properties = new[]
        {
            new Oci.LogAnalytics.Inputs.LogAnalyticsEntityTypePropertyArgs
            {
                Name = "string",
                Description = "string",
            },
        },
    });
    
    example, err := loganalytics.NewLogAnalyticsEntityType(ctx, "logAnalyticsEntityTypeResource", &loganalytics.LogAnalyticsEntityTypeArgs{
    	Namespace: pulumi.String("string"),
    	Category:  pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	Properties: loganalytics.LogAnalyticsEntityTypePropertyArray{
    		&loganalytics.LogAnalyticsEntityTypePropertyArgs{
    			Name:        pulumi.String("string"),
    			Description: pulumi.String("string"),
    		},
    	},
    })
    
    var logAnalyticsEntityTypeResource = new LogAnalyticsEntityType("logAnalyticsEntityTypeResource", LogAnalyticsEntityTypeArgs.builder()
        .namespace("string")
        .category("string")
        .name("string")
        .properties(LogAnalyticsEntityTypePropertyArgs.builder()
            .name("string")
            .description("string")
            .build())
        .build());
    
    log_analytics_entity_type_resource = oci.loganalytics.LogAnalyticsEntityType("logAnalyticsEntityTypeResource",
        namespace="string",
        category="string",
        name="string",
        properties=[{
            "name": "string",
            "description": "string",
        }])
    
    const logAnalyticsEntityTypeResource = new oci.loganalytics.LogAnalyticsEntityType("logAnalyticsEntityTypeResource", {
        namespace: "string",
        category: "string",
        name: "string",
        properties: [{
            name: "string",
            description: "string",
        }],
    });
    
    type: oci:LogAnalytics:LogAnalyticsEntityType
    properties:
        category: string
        name: string
        namespace: string
        properties:
            - description: string
              name: string
    

    LogAnalyticsEntityType Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LogAnalyticsEntityType resource accepts the following input properties:

    Namespace string
    The Logging Analytics namespace used for the request.
    Category string
    Log analytics entity type category. Category will be used for grouping and filtering.
    Name string
    Log analytics entity type name.
    Properties List<LogAnalyticsEntityTypeProperty>
    Log analytics entity type property definition.
    Namespace string
    The Logging Analytics namespace used for the request.
    Category string
    Log analytics entity type category. Category will be used for grouping and filtering.
    Name string
    Log analytics entity type name.
    Properties []LogAnalyticsEntityTypePropertyArgs
    Log analytics entity type property definition.
    namespace String
    The Logging Analytics namespace used for the request.
    category String
    Log analytics entity type category. Category will be used for grouping and filtering.
    name String
    Log analytics entity type name.
    properties List<EntityTypeProperty>
    Log analytics entity type property definition.
    namespace string
    The Logging Analytics namespace used for the request.
    category string
    Log analytics entity type category. Category will be used for grouping and filtering.
    name string
    Log analytics entity type name.
    properties LogAnalyticsEntityTypeProperty[]
    Log analytics entity type property definition.
    namespace str
    The Logging Analytics namespace used for the request.
    category str
    Log analytics entity type category. Category will be used for grouping and filtering.
    name str
    Log analytics entity type name.
    properties Sequence[LogAnalyticsEntityTypePropertyArgs]
    Log analytics entity type property definition.
    namespace String
    The Logging Analytics namespace used for the request.
    category String
    Log analytics entity type category. Category will be used for grouping and filtering.
    name String
    Log analytics entity type name.
    properties List<Property Map>
    Log analytics entity type property definition.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LogAnalyticsEntityType resource produces the following output properties:

    CloudType string
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalName string
    Internal name for the log analytics entity type.
    ManagementAgentEligibilityStatus string
    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.
    CloudType string
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalName string
    Internal name for the log analytics entity type.
    ManagementAgentEligibilityStatus string
    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.
    cloudType String
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    id String
    The provider-assigned unique ID for this managed resource.
    internalName String
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus String
    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.
    cloudType string
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    id string
    The provider-assigned unique ID for this managed resource.
    internalName string
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus string
    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.
    cloud_type str
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    id str
    The provider-assigned unique ID for this managed resource.
    internal_name str
    Internal name for the log analytics entity type.
    management_agent_eligibility_status str
    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.
    cloudType String
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    id String
    The provider-assigned unique ID for this managed resource.
    internalName String
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus String
    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.

    Look up Existing LogAnalyticsEntityType Resource

    Get an existing LogAnalyticsEntityType resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LogAnalyticsEntityTypeState, opts?: CustomResourceOptions): LogAnalyticsEntityType
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            category: Optional[str] = None,
            cloud_type: Optional[str] = None,
            internal_name: Optional[str] = None,
            management_agent_eligibility_status: Optional[str] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            properties: Optional[Sequence[LogAnalyticsEntityTypePropertyArgs]] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> LogAnalyticsEntityType
    func GetLogAnalyticsEntityType(ctx *Context, name string, id IDInput, state *LogAnalyticsEntityTypeState, opts ...ResourceOption) (*LogAnalyticsEntityType, error)
    public static LogAnalyticsEntityType Get(string name, Input<string> id, LogAnalyticsEntityTypeState? state, CustomResourceOptions? opts = null)
    public static LogAnalyticsEntityType get(String name, Output<String> id, LogAnalyticsEntityTypeState state, CustomResourceOptions options)
    resources:  _:    type: oci:LogAnalytics:LogAnalyticsEntityType    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Category string
    Log analytics entity type category. Category will be used for grouping and filtering.
    CloudType string
    Log analytics entity type group. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    InternalName string
    Internal name for the log analytics entity type.
    ManagementAgentEligibilityStatus string
    Name string
    Log analytics entity type name.
    Namespace string
    The Logging Analytics namespace used for the request.
    Properties List<LogAnalyticsEntityTypeProperty>
    Log analytics entity type property definition.
    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. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    InternalName string
    Internal name for the log analytics entity type.
    ManagementAgentEligibilityStatus string
    Name string
    Log analytics entity type name.
    Namespace string
    The Logging Analytics namespace used for the request.
    Properties []LogAnalyticsEntityTypePropertyArgs
    Log analytics entity type property definition.
    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. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    internalName String
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus String
    name String
    Log analytics entity type name.
    namespace String
    The Logging Analytics namespace used for the request.
    properties List<EntityTypeProperty>
    Log analytics entity type property definition.
    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. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    internalName string
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus string
    name string
    Log analytics entity type name.
    namespace string
    The Logging Analytics namespace used for the request.
    properties LogAnalyticsEntityTypeProperty[]
    Log analytics entity type property definition.
    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. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    internal_name str
    Internal name for the log analytics entity type.
    management_agent_eligibility_status str
    name str
    Log analytics entity type name.
    namespace str
    The Logging Analytics namespace used for the request.
    properties Sequence[LogAnalyticsEntityTypePropertyArgs]
    Log analytics entity type property definition.
    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. This can be CLOUD (OCI) or NON_CLOUD otherwise.
    internalName String
    Internal name for the log analytics entity type.
    managementAgentEligibilityStatus String
    name String
    Log analytics entity type name.
    namespace String
    The Logging Analytics namespace used for the request.
    properties List<Property Map>
    Log analytics entity type property definition.
    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

    LogAnalyticsEntityTypeProperty, LogAnalyticsEntityTypePropertyArgs

    Name string

    Log analytics entity type property name.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Description string
    Description for the log analytics entity type property.
    Name string

    Log analytics entity type property name.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Description string
    Description for the log analytics entity type property.
    name String

    Log analytics entity type property name.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

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

    Log analytics entity type property name.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

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

    Log analytics entity type property name.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

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

    Log analytics entity type property name.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    description String
    Description for the log analytics entity type property.

    Import

    LogAnalyticsEntityTypes can be imported using the id, e.g.

    $ pulumi import oci:LogAnalytics/logAnalyticsEntityType:LogAnalyticsEntityType test_log_analytics_entity_type "namespaces/{namespaceName}/logAnalyticsEntityTypes"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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